leisure-core 0.5.74 → 0.5.76
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 +23 -10
- package/package.json +2 -2
package/le-list/src/main.vue
CHANGED
|
@@ -57,15 +57,23 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
<template v-else>
|
|
59
59
|
<div class="rowBtns">
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
<slot name="rowBtnStand" :scope="scope">
|
|
61
|
+
<le-button
|
|
62
|
+
@click="editItem(scope.row)"
|
|
63
|
+
v-if="disBtn === 'edit'"
|
|
64
|
+
>
|
|
65
|
+
{{ editBtnText }}</le-button
|
|
66
|
+
>
|
|
67
|
+
<le-button
|
|
68
|
+
@click="detail(scope.row)"
|
|
69
|
+
v-if="disBtn === 'detail'"
|
|
70
|
+
>
|
|
71
|
+
详情</le-button
|
|
72
|
+
>
|
|
73
|
+
<le-button-msg @click="del(scope.row.id)" v-if="isDispDelBtn"
|
|
74
|
+
>删除</le-button-msg
|
|
75
|
+
>
|
|
76
|
+
</slot>
|
|
69
77
|
<div class="rowBtnsExt">
|
|
70
78
|
<slot name="rowBtns" :scope="scope"></slot>
|
|
71
79
|
</div>
|
|
@@ -308,7 +316,12 @@ export default {
|
|
|
308
316
|
case "currency":
|
|
309
317
|
if (value == null || value === "") return "";
|
|
310
318
|
const num = parseFloat(value);
|
|
311
|
-
|
|
319
|
+
if (isNaN(num)) return value;
|
|
320
|
+
|
|
321
|
+
return new Intl.NumberFormat("zh-CN", {
|
|
322
|
+
style: "currency",
|
|
323
|
+
currency: "CNY",
|
|
324
|
+
}).format(num);
|
|
312
325
|
|
|
313
326
|
default:
|
|
314
327
|
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.76",
|
|
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
|
+
}
|