@fangzhongya/fang-ui 0.0.28 → 0.0.29

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.
Files changed (99) hide show
  1. package/dist/components/array/src/index.cjs +6 -9
  2. package/dist/components/array/src/index.js +6 -9
  3. package/dist/components/cascader/index.d.ts +1 -1
  4. package/dist/components/cascader/src/index.d.ts +2 -2
  5. package/dist/components/checks/src/index.cjs +4 -4
  6. package/dist/components/checks/src/index.js +4 -4
  7. package/dist/components/common/list.cjs +2 -3
  8. package/dist/components/common/list.js +2 -3
  9. package/dist/components/common/use.cjs +11 -11
  10. package/dist/components/common/use.js +11 -11
  11. package/dist/components/cs-slot/src/index.cjs +6 -6
  12. package/dist/components/cs-slot/src/index.js +6 -6
  13. package/dist/components/dialog/src/index.cjs +2 -2
  14. package/dist/components/dialog/src/index.js +2 -2
  15. package/dist/components/edit-float/src/index2.cjs +2 -2
  16. package/dist/components/edit-float/src/index2.js +2 -2
  17. package/dist/components/el-tables/src/columns3.cjs +1 -1
  18. package/dist/components/el-tables/src/columns3.js +1 -1
  19. package/dist/components/el-tables/src/index.cjs +2 -3
  20. package/dist/components/el-tables/src/index.js +2 -3
  21. package/dist/components/forms/src/index.cjs +2 -2
  22. package/dist/components/forms/src/index.js +2 -2
  23. package/dist/components/forms/src/setup.cjs +5 -8
  24. package/dist/components/forms/src/setup.js +5 -8
  25. package/dist/components/forms/src/util.cjs +1 -2
  26. package/dist/components/forms/src/util.js +1 -2
  27. package/dist/components/forms-drag/src/index.cjs +2 -2
  28. package/dist/components/forms-drag/src/index.js +2 -2
  29. package/dist/components/forms-item/src/index.cjs +1 -1
  30. package/dist/components/forms-item/src/index.js +1 -1
  31. package/dist/components/forms-items/src/index.cjs +2 -2
  32. package/dist/components/forms-items/src/index.js +2 -2
  33. package/dist/components/global-config/src/index.cjs +1 -1
  34. package/dist/components/global-config/src/index.js +1 -1
  35. package/dist/components/icon-picker/src/index.cjs +4 -6
  36. package/dist/components/icon-picker/src/index.js +4 -6
  37. package/dist/components/input/index.d.ts +1 -1
  38. package/dist/components/input/src/index.d.ts +2 -2
  39. package/dist/components/input-number/index.d.ts +1 -1
  40. package/dist/components/input-number/src/index.d.ts +2 -2
  41. package/dist/components/input-select/index.d.ts +1 -1
  42. package/dist/components/input-select/src/index.d.ts +2 -2
  43. package/dist/components/input-select/src/index2.cjs +1 -1
  44. package/dist/components/input-select/src/index2.js +1 -1
  45. package/dist/components/labels/src/index2.cjs +1 -2
  46. package/dist/components/labels/src/index2.js +1 -2
  47. package/dist/components/menus/src/menu-ll.cjs +1 -1
  48. package/dist/components/menus/src/menu-ll.js +1 -1
  49. package/dist/components/page/src/index.cjs +65 -85
  50. package/dist/components/page/src/index.js +65 -85
  51. package/dist/components/page/src/set-column2.cjs +2 -2
  52. package/dist/components/page/src/set-column2.js +2 -2
  53. package/dist/components/right-key/index.d.ts +15 -0
  54. package/dist/components/right-key/src/data.cjs +4 -0
  55. package/dist/components/right-key/src/data.d.ts +4 -0
  56. package/dist/components/right-key/src/data.js +4 -0
  57. package/dist/components/right-key/src/index.cjs +5 -1
  58. package/dist/components/right-key/src/index.d.ts +9 -0
  59. package/dist/components/right-key/src/index.js +5 -1
  60. package/dist/components/role-select/src/index.cjs +1 -1
  61. package/dist/components/role-select/src/index.js +1 -1
  62. package/dist/components/selector/src/index2.cjs +2 -2
  63. package/dist/components/selector/src/index2.js +2 -2
  64. package/dist/components/selects/src/index.cjs +1 -1
  65. package/dist/components/selects/src/index.js +1 -1
  66. package/dist/components/stick-window/src/index.cjs +1 -1
  67. package/dist/components/stick-window/src/index.js +1 -1
  68. package/dist/components/switchs/src/index.cjs +4 -4
  69. package/dist/components/switchs/src/index.js +4 -4
  70. package/dist/components/table-list/src/table-list.cjs +10 -15
  71. package/dist/components/table-list/src/table-list.js +10 -15
  72. package/dist/components/tables/common/pagin.cjs +40 -57
  73. package/dist/components/tables/common/pagin.js +40 -57
  74. package/dist/components/tables/common/table-but.cjs +1 -2
  75. package/dist/components/tables/common/table-but.js +1 -2
  76. package/dist/components/tables/common/table-color.cjs +4 -5
  77. package/dist/components/tables/common/table-color.js +4 -5
  78. package/dist/components/tables/common/table-list.cjs +1 -2
  79. package/dist/components/tables/common/table-list.js +1 -2
  80. package/dist/components/tables/common/util.cjs +2 -3
  81. package/dist/components/tables/common/util.js +2 -3
  82. package/dist/components/tables/src/index.cjs +4 -5
  83. package/dist/components/tables/src/index.js +4 -5
  84. package/dist/components/tables-form/src/columns3.cjs +1 -1
  85. package/dist/components/tables-form/src/columns3.js +1 -1
  86. package/dist/components/tables-form/src/index.cjs +4 -7
  87. package/dist/components/tables-form/src/index.js +4 -7
  88. package/dist/components/tables-pagin/src/index.cjs +3 -4
  89. package/dist/components/tables-pagin/src/index.js +3 -4
  90. package/dist/components/vxe-tables/src/columns3.cjs +1 -1
  91. package/dist/components/vxe-tables/src/columns3.js +1 -1
  92. package/dist/components/vxe-tables/src/index.cjs +2 -3
  93. package/dist/components/vxe-tables/src/index.js +2 -3
  94. package/dist/directives/adjust/index.cjs +1 -2
  95. package/dist/directives/adjust/index.js +1 -2
  96. package/dist/hooks/global-config/index.cjs +2 -5
  97. package/dist/hooks/global-config/index.js +2 -5
  98. package/package.json +13 -13
  99. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
@@ -109,8 +109,7 @@ function setUp(props, emit, cs, refForm) {
109
109
  function getRules() {
110
110
  const rules = {};
111
111
  const setListValue = (arr, listobj) => {
112
- arr == null ? void 0 : arr.forEach((obj) => {
113
- var _a, _b;
112
+ arr?.forEach((obj) => {
114
113
  if (listobj) {
115
114
  obj.father = obj.father ?? listobj;
116
115
  }
@@ -127,10 +126,10 @@ function setUp(props, emit, cs, refForm) {
127
126
  }
128
127
  }
129
128
  obj.config = obj.config ?? {};
130
- if (((_a = obj.config) == null ? void 0 : _a.placeholder) === void 0) {
129
+ if (obj.config?.placeholder === void 0) {
131
130
  obj.config.placeholder = (trigger == 1 ? "请输入" : "请选择") + obj.label;
132
131
  }
133
- if (((_b = obj.config) == null ? void 0 : _b.clearable) === void 0) {
132
+ if (obj.config?.clearable === void 0) {
134
133
  obj.config.clearable = true;
135
134
  }
136
135
  if (obj.prop) {
@@ -202,12 +201,10 @@ function setUp(props, emit, cs, refForm) {
202
201
  });
203
202
  }
204
203
  function resetFields() {
205
- var _a;
206
- (_a = refForm.value) == null ? void 0 : _a.resetFields();
204
+ refForm.value?.resetFields();
207
205
  }
208
206
  function validateField(...arr) {
209
- var _a;
210
- (_a = refForm.value) == null ? void 0 : _a.validateField(...arr);
207
+ refForm.value?.validateField(...arr);
211
208
  }
212
209
  function closeForm() {
213
210
  resetFields();
@@ -20,9 +20,8 @@ function _interopNamespaceDefault(e) {
20
20
  }
21
21
  const judge__namespace = /* @__PURE__ */ _interopNamespaceDefault(judge);
22
22
  function getRule(trigger, obj, data, refForm) {
23
- var _a;
24
23
  const name = obj.label;
25
- let multiple = obj.multiple ?? ((_a = obj.config) == null ? void 0 : _a.multiple);
24
+ let multiple = obj.multiple ?? obj.config?.multiple;
26
25
  const rule = obj.rule;
27
26
  if (typeof multiple != "boolean") {
28
27
  multiple = false;
@@ -1,9 +1,8 @@
1
1
  import { useHide } from "../../common/use.js";
2
2
  import * as judge from "@fangzhongya/utils/judge/judge";
3
3
  function getRule(trigger, obj, data, refForm) {
4
- var _a;
5
4
  const name = obj.label;
6
- let multiple = obj.multiple ?? ((_a = obj.config) == null ? void 0 : _a.multiple);
5
+ let multiple = obj.multiple ?? obj.config?.multiple;
7
6
  const rule = obj.rule;
8
7
  if (typeof multiple != "boolean") {
9
8
  multiple = false;
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
144
144
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
145
145
  class: vue.normalizeClass(["handle", [
146
146
  vue.unref(cs).z("li"),
147
- vue.unref(cs).is("div", item == null ? void 0 : item.isDiv),
147
+ vue.unref(cs).is("div", item?.isDiv),
148
148
  item.class,
149
149
  props.itemClass,
150
150
  vue.unref(cs).is("hover", props.index == index2)
@@ -153,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
153
153
  onClick: vue.withModifiers(($event) => onClickHandle(item, index2), ["stop"]),
154
154
  "data-key": index2
155
155
  }, [
156
- (item == null ? void 0 : item.isDiv) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.FormsDiv), {
156
+ item?.isDiv ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.FormsDiv), {
157
157
  key: 0,
158
158
  listobj: item,
159
159
  optionss: props.options,
@@ -142,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
142
  withDirectives((openBlock(), createElementBlock("div", {
143
143
  class: normalizeClass(["handle", [
144
144
  unref(cs).z("li"),
145
- unref(cs).is("div", item == null ? void 0 : item.isDiv),
145
+ unref(cs).is("div", item?.isDiv),
146
146
  item.class,
147
147
  props.itemClass,
148
148
  unref(cs).is("hover", props.index == index)
@@ -151,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
151
151
  onClick: withModifiers(($event) => onClickHandle(item, index), ["stop"]),
152
152
  "data-key": index
153
153
  }, [
154
- (item == null ? void 0 : item.isDiv) ? (openBlock(), createBlock(unref(FormsDiv), {
154
+ item?.isDiv ? (openBlock(), createBlock(unref(FormsDiv), {
155
155
  key: 0,
156
156
  listobj: item,
157
157
  optionss: props.options,
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
30
30
  });
31
31
  const itemProp = props.__prop ?? props.prop;
32
32
  const rowHeight = vue.computed(() => {
33
- return props.rowHeight ?? prs.rowHeight ?? (form == null ? void 0 : form.rowHeight);
33
+ return props.rowHeight ?? prs.rowHeight ?? form?.rowHeight;
34
34
  });
35
35
  function setLabelWidth(v) {
36
36
  if (v.hideLabel ?? prs.hideLabel) {
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  });
29
29
  const itemProp = props.__prop ?? props.prop;
30
30
  const rowHeight = computed(() => {
31
- return props.rowHeight ?? prs.rowHeight ?? (form == null ? void 0 : form.rowHeight);
31
+ return props.rowHeight ?? prs.rowHeight ?? form?.rowHeight;
32
32
  });
33
33
  function setLabelWidth(v) {
34
34
  if (v.hideLabel ?? prs.hideLabel) {
@@ -72,10 +72,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
72
72
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(props).children, (item, index2) => {
73
73
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
74
74
  key: setKey(item, index2),
75
- class: vue.normalizeClass([vue.unref(cs).z("li"), vue.unref(cs).is("div", item == null ? void 0 : item.isdiv), item.class]),
75
+ class: vue.normalizeClass([vue.unref(cs).z("li"), vue.unref(cs).is("div", item?.isdiv), item.class]),
76
76
  style: vue.normalizeStyle(setStyles(item))
77
77
  }, [
78
- (item == null ? void 0 : item.isdiv) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.FormsDiv), vue.mergeProps({
78
+ item?.isdiv ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.FormsDiv), vue.mergeProps({
79
79
  key: 0,
80
80
  ref_for: true
81
81
  }, binds.value, {
@@ -70,10 +70,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
70
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(props).children, (item, index) => {
71
71
  return withDirectives((openBlock(), createElementBlock("div", {
72
72
  key: setKey(item, index),
73
- class: normalizeClass([unref(cs).z("li"), unref(cs).is("div", item == null ? void 0 : item.isdiv), item.class]),
73
+ class: normalizeClass([unref(cs).z("li"), unref(cs).is("div", item?.isdiv), item.class]),
74
74
  style: normalizeStyle(setStyles(item))
75
75
  }, [
76
- (item == null ? void 0 : item.isdiv) ? (openBlock(), createBlock(unref(FormsDiv), mergeProps({
76
+ item?.isdiv ? (openBlock(), createBlock(unref(FormsDiv), mergeProps({
77
77
  key: 0,
78
78
  ref_for: true
79
79
  }, binds.value, {
@@ -8,7 +8,7 @@ const SrcVue = vue.defineComponent({
8
8
  setup(props, { slots }) {
9
9
  const config = index.provideGlobalConfig(props);
10
10
  return () => vue.renderSlot(slots, "default", {
11
- config: config == null ? void 0 : config.value
11
+ config: config?.value
12
12
  });
13
13
  }
14
14
  });
@@ -6,7 +6,7 @@ const SrcVue = defineComponent({
6
6
  setup(props, { slots }) {
7
7
  const config = provideGlobalConfig(props);
8
8
  return () => renderSlot(slots, "default", {
9
- config: config == null ? void 0 : config.value
9
+ config: config?.value
10
10
  });
11
11
  }
12
12
  });
@@ -36,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
36
  props: data.dataProps,
37
37
  emits: data.dataEmits,
38
38
  setup(__props, { expose: __expose, emit: __emit }) {
39
- var _a, _b;
40
39
  const { getLocale } = index.useLocale();
41
40
  const cs = index$1.useCssName("icon-picker");
42
41
  const props = __props;
@@ -44,10 +43,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
44
43
  let ac = "";
45
44
  if (props.icons) {
46
45
  if (props.icons instanceof Array) {
47
- ac = (_a = props.icons[0]) == null ? void 0 : _a.prefix;
46
+ ac = props.icons[0]?.prefix;
48
47
  } else {
49
48
  const k = Object.keys(props.icons)[0];
50
- ac = (_b = props.icons[k]) == null ? void 0 : _b.prefix;
49
+ ac = props.icons[k]?.prefix;
51
50
  }
52
51
  }
53
52
  const activeName = vue.ref(ac);
@@ -55,7 +54,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
54
  const search = vue.ref("");
56
55
  const value = vue.ref("");
57
56
  const currentIconList = vue.computed(() => {
58
- var _a2;
59
57
  let arr = {};
60
58
  if (activeName.value) {
61
59
  if (props.icons instanceof Array) {
@@ -63,12 +61,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
63
61
  const element = props.icons[index2];
64
62
  const name = element.prefix;
65
63
  if (name == activeName.value) {
66
- arr = (element == null ? void 0 : element.icons) || [];
64
+ arr = element?.icons || [];
67
65
  break;
68
66
  }
69
67
  }
70
68
  } else {
71
- arr = ((_a2 = props.icons[activeName.value]) == null ? void 0 : _a2.icons) || [];
69
+ arr = props.icons[activeName.value]?.icons || [];
72
70
  }
73
71
  }
74
72
  if (search.value) {
@@ -34,7 +34,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  props: dataProps,
35
35
  emits: dataEmits,
36
36
  setup(__props, { expose: __expose, emit: __emit }) {
37
- var _a, _b;
38
37
  const { getLocale } = useLocale();
39
38
  const cs = useCssName("icon-picker");
40
39
  const props = __props;
@@ -42,10 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
41
  let ac = "";
43
42
  if (props.icons) {
44
43
  if (props.icons instanceof Array) {
45
- ac = (_a = props.icons[0]) == null ? void 0 : _a.prefix;
44
+ ac = props.icons[0]?.prefix;
46
45
  } else {
47
46
  const k = Object.keys(props.icons)[0];
48
- ac = (_b = props.icons[k]) == null ? void 0 : _b.prefix;
47
+ ac = props.icons[k]?.prefix;
49
48
  }
50
49
  }
51
50
  const activeName = ref(ac);
@@ -53,7 +52,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
52
  const search = ref("");
54
53
  const value = ref("");
55
54
  const currentIconList = computed(() => {
56
- var _a2;
57
55
  let arr = {};
58
56
  if (activeName.value) {
59
57
  if (props.icons instanceof Array) {
@@ -61,12 +59,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
59
  const element = props.icons[index];
62
60
  const name = element.prefix;
63
61
  if (name == activeName.value) {
64
- arr = (element == null ? void 0 : element.icons) || [];
62
+ arr = element?.icons || [];
65
63
  break;
66
64
  }
67
65
  }
68
66
  } else {
69
- arr = ((_a2 = props.icons[activeName.value]) == null ? void 0 : _a2.icons) || [];
67
+ arr = props.icons[activeName.value]?.icons || [];
70
68
  }
71
69
  }
72
70
  if (search.value) {
@@ -44,9 +44,9 @@ declare const Input: {
44
44
  readonly size?: ("" | "default" | "small" | "large") | undefined;
45
45
  readonly name?: string | undefined;
46
46
  readonly form?: string | undefined;
47
+ readonly placeholder?: string | undefined;
47
48
  readonly ariaLabel?: string | undefined;
48
49
  readonly id?: string | undefined;
49
- readonly placeholder?: string | undefined;
50
50
  readonly prefixIcon?: (string | Component) | undefined;
51
51
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
52
52
  readonly maxlength?: (string | number) | undefined;
@@ -44,9 +44,9 @@ declare function __VLS_template(): {
44
44
  readonly size?: ("" | "default" | "small" | "large") | undefined;
45
45
  readonly name?: string | undefined;
46
46
  readonly form?: string | undefined;
47
+ readonly placeholder?: string | undefined;
47
48
  readonly ariaLabel?: string | undefined;
48
49
  readonly id?: string | undefined;
49
- readonly placeholder?: string | undefined;
50
50
  readonly prefixIcon?: (string | Component) | undefined;
51
51
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
52
52
  readonly maxlength?: (string | number) | undefined;
@@ -570,9 +570,9 @@ declare const __VLS_component: DefineComponent<{}, {
570
570
  readonly size?: ("" | "default" | "small" | "large") | undefined;
571
571
  readonly name?: string | undefined;
572
572
  readonly form?: string | undefined;
573
+ readonly placeholder?: string | undefined;
573
574
  readonly ariaLabel?: string | undefined;
574
575
  readonly id?: string | undefined;
575
- readonly placeholder?: string | undefined;
576
576
  readonly prefixIcon?: (string | Component) | undefined;
577
577
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
578
578
  readonly maxlength?: (string | number) | undefined;
@@ -34,9 +34,9 @@ declare const InputNumber: {
34
34
  readonly size?: ("" | "default" | "small" | "large") | undefined;
35
35
  readonly name?: string | undefined;
36
36
  readonly modelValue?: any;
37
+ readonly placeholder?: string | undefined;
37
38
  readonly ariaLabel?: string | undefined;
38
39
  readonly id?: string | undefined;
39
- readonly placeholder?: string | undefined;
40
40
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
41
41
  readonly precision?: number | undefined;
42
42
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined | undefined;
@@ -34,9 +34,9 @@ declare function __VLS_template(): {
34
34
  readonly size?: ("" | "default" | "small" | "large") | undefined;
35
35
  readonly name?: string | undefined;
36
36
  readonly modelValue?: any;
37
+ readonly placeholder?: string | undefined;
37
38
  readonly ariaLabel?: string | undefined;
38
39
  readonly id?: string | undefined;
39
- readonly placeholder?: string | undefined;
40
40
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
41
41
  readonly precision?: number | undefined;
42
42
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined | undefined;
@@ -368,9 +368,9 @@ declare const __VLS_component: DefineComponent<{}, {
368
368
  readonly size?: ("" | "default" | "small" | "large") | undefined;
369
369
  readonly name?: string | undefined;
370
370
  readonly modelValue?: any;
371
+ readonly placeholder?: string | undefined;
371
372
  readonly ariaLabel?: string | undefined;
372
373
  readonly id?: string | undefined;
373
- readonly placeholder?: string | undefined;
374
374
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
375
375
  readonly precision?: number | undefined;
376
376
  "onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined | undefined;
@@ -93,9 +93,9 @@ declare const InputSelect: {
93
93
  readonly size?: ("" | "default" | "small" | "large") | undefined;
94
94
  readonly name?: string | undefined;
95
95
  readonly form?: string | undefined;
96
+ readonly placeholder?: string | undefined;
96
97
  readonly ariaLabel?: string | undefined;
97
98
  readonly id?: string | undefined;
98
- readonly placeholder?: string | undefined;
99
99
  readonly prefixIcon?: (string | Component) | undefined;
100
100
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
101
101
  readonly maxlength?: (string | number) | undefined;
@@ -44,9 +44,9 @@ declare function __VLS_template(): {
44
44
  readonly size?: ("" | "default" | "small" | "large") | undefined;
45
45
  readonly name?: string | undefined;
46
46
  readonly form?: string | undefined;
47
+ readonly placeholder?: string | undefined;
47
48
  readonly ariaLabel?: string | undefined;
48
49
  readonly id?: string | undefined;
49
- readonly placeholder?: string | undefined;
50
50
  readonly prefixIcon?: (string | Component) | undefined;
51
51
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
52
52
  readonly maxlength?: (string | number) | undefined;
@@ -662,9 +662,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
662
662
  readonly size?: ("" | "default" | "small" | "large") | undefined;
663
663
  readonly name?: string | undefined;
664
664
  readonly form?: string | undefined;
665
+ readonly placeholder?: string | undefined;
665
666
  readonly ariaLabel?: string | undefined;
666
667
  readonly id?: string | undefined;
667
- readonly placeholder?: string | undefined;
668
668
  readonly prefixIcon?: (string | Component) | undefined;
669
669
  readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
670
670
  readonly maxlength?: (string | number) | undefined;
@@ -204,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
204
204
  return vue.openBlock(), vue.createElementBlock("li", {
205
205
  class: vue.normalizeClass([
206
206
  vue.unref(cs).z("select-li"),
207
- vue.unref(cs).is("disabled", item == null ? void 0 : item.disabled),
207
+ vue.unref(cs).is("disabled", item?.disabled),
208
208
  getSelected(item)
209
209
  ]),
210
210
  onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
@@ -202,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
202
202
  return openBlock(), createElementBlock("li", {
203
203
  class: normalizeClass([
204
204
  unref(cs).z("select-li"),
205
- unref(cs).is("disabled", item == null ? void 0 : item.disabled),
205
+ unref(cs).is("disabled", item?.disabled),
206
206
  getSelected(item)
207
207
  ]),
208
208
  onClick: withModifiers(($event) => onClickSelect(item), ["stop"])
@@ -57,11 +57,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
57
  }
58
58
  },
59
59
  set(v) {
60
- var _a;
61
60
  if (v.includes(wholeValue)) {
62
61
  v = v.filter((item) => item !== wholeValue);
63
62
  }
64
- if (v.length !== (((_a = value.value) == null ? void 0 : _a.length) ?? 0)) {
63
+ if (v.length !== (value.value?.length ?? 0)) {
65
64
  value.value = [...v];
66
65
  }
67
66
  }
@@ -55,11 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  }
56
56
  },
57
57
  set(v) {
58
- var _a;
59
58
  if (v.includes(wholeValue)) {
60
59
  v = v.filter((item) => item !== wholeValue);
61
60
  }
62
- if (v.length !== (((_a = value.value) == null ? void 0 : _a.length) ?? 0)) {
61
+ if (v.length !== (value.value?.length ?? 0)) {
63
62
  value.value = [...v];
64
63
  }
65
64
  }
@@ -92,7 +92,7 @@ const _sfc_main = vue.defineComponent({
92
92
  };
93
93
  const getLists = (arrs, config = {}, listobj) => {
94
94
  let arr = [];
95
- arrs == null ? void 0 : arrs.forEach((obj, index2) => {
95
+ arrs?.forEach((obj, index2) => {
96
96
  if (listobj) {
97
97
  obj.father = obj.father ?? listobj;
98
98
  }
@@ -90,7 +90,7 @@ const _sfc_main = defineComponent({
90
90
  };
91
91
  const getLists = (arrs, config = {}, listobj) => {
92
92
  let arr = [];
93
- arrs == null ? void 0 : arrs.forEach((obj, index) => {
93
+ arrs?.forEach((obj, index) => {
94
94
  if (listobj) {
95
95
  obj.father = obj.father ?? listobj;
96
96
  }