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.
@@ -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()">查询</le-button>
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.88",
3
+ "version": "0.5.90",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",