numeral 
使用c-text组件type="number"显示格式化数字时,需要额外安装numeral插件,并挂载。
bash
npm install numeral --save1
挂载到cook-uni中
js
// main.js
import { createSSRApp } from 'vue';
import CookUni from '@/uni_modules/cook-uni'
import numeral from 'numeral';
export function createApp() {
  const app = createSSRApp(App)
  // cook-uni
  CookUni(app,{
    config:{},
    // 挂载numeral
    numeral
  });
  return {
    app
  }
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
挂载后你可以在其他地方使用numeral,如:uni.$c.numeral()
详细使用请查看文档numeral数字
