leisure-core 0.5.88 → 0.5.90
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 +7 -2
- package/package.json +1 -1
package/le-list/src/main.vue
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
<el-form-item>
|
|
6
6
|
<div class="queryBtnClass">
|
|
7
7
|
<slot></slot>
|
|
8
|
-
<le-button type="primary" @click="onClickQuery()"
|
|
8
|
+
<le-button type="primary" @click="onClickQuery()" v-if="isDispQBtn"
|
|
9
|
+
>查询</le-button
|
|
10
|
+
>
|
|
9
11
|
<le-button type="primary" @click="addItem()" v-if="isDispAddBtn">{{
|
|
10
12
|
addBtnText
|
|
11
13
|
}}</le-button>
|
|
@@ -138,6 +140,10 @@ export default {
|
|
|
138
140
|
type: Boolean,
|
|
139
141
|
default: true,
|
|
140
142
|
},
|
|
143
|
+
isDispQBtn: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: true,
|
|
146
|
+
},
|
|
141
147
|
addBtnText: {
|
|
142
148
|
type: String,
|
|
143
149
|
default: "新建",
|
|
@@ -333,7 +339,6 @@ export default {
|
|
|
333
339
|
const num = parseFloat(value);
|
|
334
340
|
if (isNaN(num)) return value;
|
|
335
341
|
|
|
336
|
-
// 简单自适应:整数不显示小数,小数显示实际位数(最多4位)
|
|
337
342
|
const decimalPart = num.toString().split(".")[1];
|
|
338
343
|
const hasDecimal = decimalPart && decimalPart.length > 0;
|
|
339
344
|
|