leisure-core 0.5.75 → 0.5.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/le-list/src/main.vue +11 -1
- package/package.json +2 -2
package/le-list/src/main.vue
CHANGED
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
label="操作"
|
|
51
51
|
:width="btnCellWidht"
|
|
52
52
|
align="center"
|
|
53
|
+
v-if="isdispOper"
|
|
53
54
|
>
|
|
54
55
|
<template slot-scope="scope">
|
|
55
56
|
<template v-if="$scopedSlots.rowAllBtns">
|
|
@@ -129,6 +130,10 @@ export default {
|
|
|
129
130
|
type: Object,
|
|
130
131
|
default: () => {},
|
|
131
132
|
},
|
|
133
|
+
isdispOper: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: true,
|
|
136
|
+
},
|
|
132
137
|
isDispAddBtn: {
|
|
133
138
|
type: Boolean,
|
|
134
139
|
default: true,
|
|
@@ -316,7 +321,12 @@ export default {
|
|
|
316
321
|
case "currency":
|
|
317
322
|
if (value == null || value === "") return "";
|
|
318
323
|
const num = parseFloat(value);
|
|
319
|
-
|
|
324
|
+
if (isNaN(num)) return value;
|
|
325
|
+
|
|
326
|
+
return new Intl.NumberFormat("zh-CN", {
|
|
327
|
+
style: "currency",
|
|
328
|
+
currency: "CNY",
|
|
329
|
+
}).format(num);
|
|
320
330
|
|
|
321
331
|
default:
|
|
322
332
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leisure-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.77",
|
|
4
4
|
"description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "北方乐逍遥(zcx7878)",
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
"vxe-table": "^3.7.13"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {}
|
|
26
|
-
}
|
|
26
|
+
}
|