Comments (1)
格式化清单
以下是内置的格式化参数清单
数字
可以通过 #,###.##
来控制千分位或万分位及小数位,整数与小数用.
分割
示例
$format('#,####',data);//对data的整数部分进行万分位分割
$format('#,###',data);//对data的整数部分进行千分位分割
$format('.##‘,data);//对data保留2位小数
$format('#,###.##‘,data);//对data的整数部分进行千分位分割,同时保留2位小数
中文大小写
可以通过ss
小写简称或tf
大写全称来控制
示例
$format('ss',data);//对data以中文小写简称展示
$format('sf',data);//对data以中文小写全称展示
$format('ts‘,data);//对data以中文大写简称展示
$format('tf‘,data);//对data以中文大写全称展示
中文货币
可以通过s.f
简称保留元或s.s
简称省略元来控制
示例
$format('s.s',data);//对data以中文货币简称省略元展示
$format('s.f',data);//对data以中文货币简称保留元展示
$format('f.s‘,data);//对data以中文货币全称省元元展示
$format('f.f',data);//对data以中文货币全称保留元展示
月份
可以通过month.zhf
中文全称month.ens
英文简称来控制
示例
$format('month.zhs',data);//对data以中文月份简称展示
$format('month.zhf',data);//对data以中文月份全称展示
$format('month.ens',data);//对data以英文月份简称展示
$format('month.enf',data);//对data以英文月份全称展示
星期
可以通过week.zhf
中文全称week.ens
英文简称来控制
示例
$format('week.zhs',data);//对data以中文星期简称展示
$format('week.zhf',data);//对data以中文星期全称展示
$format('week.ens',data);//对data以英文星期简称展示
$format('week.enf',data);//对data以英文星期全称展示
日期时间
可以通过date.YYYY-MM hh:mm
来控制
示例
$format('date.YYYY-MM hh:mm',data);//对data类似'2024-04 19:59'展示
from report-designer.
Related Issues (20)
- 序号器元素
- 动画
- 通用设计器里的有个概览图的可拖动的画布映射是基于什么方案实现的 HOT 1
- 设计器与预览器
- IoT 预览器中的 WebSocket 连接如何使用
- 隐藏显示元素
- 元素磁吸连接点
- 个人需求
- 体验与思考 HOT 7
- 层级调整操作升级,支持批量
- 授权版功能支持
- 请问node支撑什么版本 HOT 2
- 元素多选扩展 HOT 1
- vue中怎么使用? HOT 1
- 元素批量属性设置
- 浏览器打印标签页不管怎么选择都是a4纸 HOT 2
- 预设值与动态绑定
- 通过node本地启动项目后,点击元素会导致元素消失 HOT 1
- 空白编辑区,加一个表格,点击预览会预览编辑页,提示正在计算分页。线上的链接[xinglie.github.io/report-designer]也会有这个效果。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from report-designer.