@neatui/vue 2.15.0 → 2.15.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/vue",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "@fekit/scale": "^2.0.1",
28
28
  "@fekit/scrollto": "^3.0.3",
29
29
  "@fekit/toast": "^2.7.2",
30
- "@fekit/utils": "^3.1.0",
30
+ "@fekit/utils": "^4.3.1",
31
31
  "@rollup/plugin-commonjs": "^26.0.1",
32
32
  "@rollup/plugin-node-resolve": "^15.2.3",
33
33
  "@vue/compiler-sfc": "^3.4.30",
@@ -73,7 +73,6 @@
73
73
 
74
74
  const emits = defineEmits(['update:modelValue', 'change', 'onshow', 'onhide', 'update:other']);
75
75
 
76
-
77
76
  /**
78
77
  * 入参说明
79
78
  * modelValue 值
@@ -107,7 +106,7 @@
107
106
 
108
107
  // 类型
109
108
  interface Props {
110
- modelValue?: string | number | null;
109
+ modelValue?: string | number | null | boolean;
111
110
  options: Array<object>;
112
111
  all?: { label: string; value: null | '*' };
113
112
  other?: {
@@ -217,7 +216,7 @@
217
216
  const otherLabel = found.label || '其他';
218
217
  return {
219
218
  label: `${otherLabel}-${props.otherValue}`,
220
- value: found.value
219
+ value: found.value,
221
220
  };
222
221
  }
223
222
  return found;
@@ -230,7 +229,7 @@
230
229
  const otherLabel = otherOption?.label || '其他';
231
230
  return {
232
231
  label: `${otherLabel}-${props.modelValue}`,
233
- value: props.modelValue
232
+ value: props.modelValue,
234
233
  };
235
234
  }
236
235
 
@@ -281,7 +280,7 @@
281
280
  customInputValue.value = '';
282
281
  }
283
282
  },
284
- { immediate: true }
283
+ { immediate: true },
285
284
  );
286
285
 
287
286
  // 监听并验证modelValue的有效性
@@ -312,7 +311,7 @@
312
311
  }
313
312
  }
314
313
  },
315
- { immediate: true }
314
+ { immediate: true },
316
315
  );
317
316
 
318
317
  // 选择