easybill-ui 1.0.16 → 1.0.17

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.
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </template>
15
15
  <script lang="ts">
16
- import { defineComponent, computed, PropType, toRaw } from "vue"
16
+ import { defineComponent, computed, toRaw } from "vue"
17
17
  import { Loading, Warning } from "@element-plus/icons-vue"
18
18
  import { ElTreeSelect, ElIcon } from "element-plus"
19
19
  import { FormItemProps } from "../types"
@@ -23,8 +23,8 @@ export default defineComponent({
23
23
  props: {
24
24
  ...FormItemProps,
25
25
  modelValue: {
26
- type: Array as PropType<(string | number)[]>,
27
- default: () => [],
26
+ type: [String, Number, Boolean],
27
+ default: "",
28
28
  }, // 表单项值
29
29
  },
30
30
  emits: ["update:modelValue"],
@@ -33,9 +33,6 @@ export default defineComponent({
33
33
  get: () => props.modelValue,
34
34
  set: (val) => emit("update:modelValue", val),
35
35
  })
36
- if (!(model.value instanceof Array)) {
37
- model.value = []
38
- }
39
36
 
40
37
  return {
41
38
  model,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easybill-ui",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "A component library for easybill",
5
5
  "author": "tuchongyang <779311998@qq.com>",
6
6
  "private": false,
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "b9bf064efdcf48f9e0a82157840ceeb85d14c996"
17
+ "gitHead": "fe7feba742765b8f0348ad4c39cbb97c51699de4"
18
18
  }