@fangzhongya/fang-ui 0.1.45 → 0.1.47

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 (121) hide show
  1. package/dist/components/cascaders/index.css +6 -0
  2. package/dist/components/cascaders/index.scss +6 -0
  3. package/dist/components/common/compons/components.cjs +0 -16
  4. package/dist/components/common/compons/components.d.ts +0 -8
  5. package/dist/components/common/compons/components.js +0 -16
  6. package/dist/components/common/compons/index.scss +0 -8
  7. package/dist/components/common/compons/index2.scss +0 -8
  8. package/dist/components/common/css.cjs +0 -1
  9. package/dist/components/common/css.js +0 -1
  10. package/dist/components/date-picker/style/element.scss +1 -1
  11. package/dist/components/dates-divide/index.css +6 -0
  12. package/dist/components/dates-divide/index.scss +6 -0
  13. package/dist/components/dates-divide/src/index2.cjs +4 -2
  14. package/dist/components/dates-divide/src/index2.js +4 -2
  15. package/dist/components/dates-picker/index.css +2 -2
  16. package/dist/components/dates-picker/index.scss +4 -4
  17. package/dist/components/dates-picker/src/index2.cjs +2 -1
  18. package/dist/components/dates-picker/src/index2.js +2 -1
  19. package/dist/components/dates2/index.css +9 -0
  20. package/dist/components/dates2/index.scss +3 -0
  21. package/dist/components/dates2/src/index2.cjs +6 -4
  22. package/dist/components/dates2/src/index2.js +6 -4
  23. package/dist/components/double/index.css +45 -10
  24. package/dist/components/double/index.scss +30 -17
  25. package/dist/components/double/src/data.cjs +24 -5
  26. package/dist/components/double/src/data.d.ts +23 -1
  27. package/dist/components/double/src/data.js +24 -5
  28. package/dist/components/double/src/index2.cjs +129 -64
  29. package/dist/components/double/src/index2.js +126 -61
  30. package/dist/components/double/style/index2.scss +1 -0
  31. package/dist/components/forms/common/config.cjs +3 -2
  32. package/dist/components/forms/common/config.js +3 -2
  33. package/dist/components/forms/index.css +74 -162
  34. package/dist/components/forms/src/setup.cjs +1 -2
  35. package/dist/components/forms/src/setup.js +1 -2
  36. package/dist/components/forms/src/util.cjs +30 -33
  37. package/dist/components/forms/src/util.js +29 -32
  38. package/dist/components/forms-item/index.css +3 -0
  39. package/dist/components/forms-item/index.scss +5 -0
  40. package/dist/components/forms-items/index.css +3 -0
  41. package/dist/components/forms-items/src/index2.cjs +1 -2
  42. package/dist/components/forms-items/src/index2.js +1 -2
  43. package/dist/components/input-history/index.css +3 -0
  44. package/dist/components/input-history/index.scss +3 -1
  45. package/dist/components/input-history/src/data.d.ts +1 -0
  46. package/dist/components/input-history/src/index2.cjs +23 -19
  47. package/dist/components/input-history/src/index2.js +15 -11
  48. package/dist/components/input-select/index.css +35 -7
  49. package/dist/components/input-select/index.scss +10 -7
  50. package/dist/components/input-select/src/index2.cjs +26 -19
  51. package/dist/components/input-select/src/index2.js +23 -16
  52. package/dist/components/input-select/style/index2.scss +2 -1
  53. package/dist/components/list/index.css +15 -14
  54. package/dist/components/list/index.scss +21 -19
  55. package/dist/components/list/src/index2.cjs +60 -41
  56. package/dist/components/list/src/index2.js +61 -42
  57. package/dist/components/lists/index.css +15 -14
  58. package/dist/components/lists/src/index2.cjs +1 -2
  59. package/dist/components/lists/src/index2.js +1 -2
  60. package/dist/components/listsp/index.css +15 -14
  61. package/dist/components/listspd/index.css +15 -14
  62. package/dist/components/page/index.css +94 -176
  63. package/dist/components/scss/function.scss +3 -1
  64. package/dist/components/select-scroll/src/index2.cjs +1 -1
  65. package/dist/components/select-scroll/src/index2.js +2 -2
  66. package/dist/components/selector/index.css +50 -10
  67. package/dist/components/selector/index.scss +5 -0
  68. package/dist/components/selector/src/data.cjs +7 -3
  69. package/dist/components/selector/src/data.d.ts +8 -4
  70. package/dist/components/selector/src/data.js +7 -3
  71. package/dist/components/selector/src/index2.cjs +127 -91
  72. package/dist/components/selector/src/index2.js +124 -88
  73. package/dist/components/tables/common/pagin.cjs +1 -1
  74. package/dist/components/tables/common/pagin.d.ts +4 -4
  75. package/dist/components/tables/common/pagin.js +1 -1
  76. package/dist/components/tables/common/tooltip.cjs +1 -1
  77. package/dist/components/tables/common/tooltip.js +1 -1
  78. package/dist/components/tables/index.css +5 -0
  79. package/dist/components/tables/index.scss +3 -0
  80. package/dist/components/tables/src/data.cjs +1 -3
  81. package/dist/components/tables/src/data.d.ts +1 -1
  82. package/dist/components/tables/src/data.js +1 -3
  83. package/dist/components/tables/src/index2.cjs +9 -3
  84. package/dist/components/tables/src/index2.js +10 -4
  85. package/dist/components/tablesp/index.css +5 -0
  86. package/dist/components/tablespd/index.css +5 -0
  87. package/dist/components/tablesv/src/data.cjs +1 -3
  88. package/dist/components/tablesv/src/data.d.ts +1 -1
  89. package/dist/components/tablesv/src/data.js +1 -3
  90. package/dist/components/tablesv/src/index2.cjs +9 -3
  91. package/dist/components/tablesv/src/index2.js +10 -4
  92. package/dist/css/cascaders.css +6 -0
  93. package/dist/css/dates-divide.css +6 -0
  94. package/dist/css/dates-picker.css +2 -2
  95. package/dist/css/dates2.css +9 -0
  96. package/dist/css/double.css +45 -10
  97. package/dist/css/forms-item.css +3 -0
  98. package/dist/css/forms-items.css +3 -0
  99. package/dist/css/forms.css +74 -162
  100. package/dist/css/index.css +247 -200
  101. package/dist/css/input-history.css +3 -0
  102. package/dist/css/input-select.css +35 -7
  103. package/dist/css/list.css +15 -14
  104. package/dist/css/lists.css +15 -14
  105. package/dist/css/listsp.css +15 -14
  106. package/dist/css/listspd.css +15 -14
  107. package/dist/css/page.css +94 -176
  108. package/dist/css/selector.css +50 -10
  109. package/dist/css/tables.css +5 -0
  110. package/dist/css/tablesp.css +5 -0
  111. package/dist/css/tablespd.css +5 -0
  112. package/dist/icons/index.json +1 -1
  113. package/dist/index.css +247 -200
  114. package/dist/type.d.ts +2 -2
  115. package/dist/utils/css.cjs +0 -10
  116. package/dist/utils/css.d.ts +0 -2
  117. package/dist/utils/css.js +1 -5
  118. package/dist/utils/vues/buildProps.d.ts +5 -0
  119. package/package.json +4 -4
  120. /package/dist/components/{keep-com → alert}/index.css +0 -0
  121. /package/dist/css/{keep-com.css → alert.css} +0 -0
@@ -35,10 +35,7 @@ const dataProps = {
35
35
  type: Boolean
36
36
  },
37
37
  modelValue: {
38
- type: [Array, String],
39
- default() {
40
- return [];
41
- }
38
+ type: [Array, String]
42
39
  },
43
40
  /**
44
41
  * @props { Object } config={}
@@ -69,10 +66,32 @@ const dataProps = {
69
66
  * @props { Boolean } disabled=false
70
67
  * 是否禁用
71
68
  */
72
- disabled: { type: Boolean, default: false }
69
+ disabled: { type: Boolean, default: false },
70
+ mouse: { type: Boolean },
71
+ /**
72
+ * @description whether to trigger form validation
73
+ */
74
+ validateEvent: {
75
+ type: Boolean,
76
+ default: true
77
+ },
78
+ isDoubleValue: {
79
+ type: Boolean
80
+ },
81
+ /**
82
+ * @props { Function } errorPrompt ( )
83
+ * 错误提示,默认用 ElMessage.error 提示
84
+ */
85
+ errorPrompt: {
86
+ type: Function
87
+ },
88
+ prop: {
89
+ type: String
90
+ }
73
91
  };
74
92
  const dataEmits = [
75
93
  "update:modelValue",
94
+ "click",
76
95
  "focus",
77
96
  "blur",
78
97
  "clear",
@@ -44,7 +44,6 @@ export declare const dataProps: {
44
44
  };
45
45
  modelValue: {
46
46
  type: (StringConstructor | ArrayConstructor)[];
47
- default(): never[];
48
47
  };
49
48
  /**
50
49
  * @props { Object } config={}
@@ -77,6 +76,29 @@ export declare const dataProps: {
77
76
  type: BooleanConstructor;
78
77
  default: boolean;
79
78
  };
79
+ mouse: {
80
+ type: BooleanConstructor;
81
+ };
82
+ /**
83
+ * @description whether to trigger form validation
84
+ */
85
+ validateEvent: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ isDoubleValue: {
90
+ type: BooleanConstructor;
91
+ };
92
+ /**
93
+ * @props { Function } errorPrompt ( )
94
+ * 错误提示,默认用 ElMessage.error 提示
95
+ */
96
+ errorPrompt: {
97
+ type: FunctionConstructor;
98
+ };
99
+ prop: {
100
+ type: StringConstructor;
101
+ };
80
102
  };
81
103
  export type DataProps = ExtractPropTypes<typeof dataProps>;
82
104
  /**
@@ -33,10 +33,7 @@ const dataProps = {
33
33
  type: Boolean
34
34
  },
35
35
  modelValue: {
36
- type: [Array, String],
37
- default() {
38
- return [];
39
- }
36
+ type: [Array, String]
40
37
  },
41
38
  /**
42
39
  * @props { Object } config={}
@@ -67,10 +64,32 @@ const dataProps = {
67
64
  * @props { Boolean } disabled=false
68
65
  * 是否禁用
69
66
  */
70
- disabled: { type: Boolean, default: false }
67
+ disabled: { type: Boolean, default: false },
68
+ mouse: { type: Boolean },
69
+ /**
70
+ * @description whether to trigger form validation
71
+ */
72
+ validateEvent: {
73
+ type: Boolean,
74
+ default: true
75
+ },
76
+ isDoubleValue: {
77
+ type: Boolean
78
+ },
79
+ /**
80
+ * @props { Function } errorPrompt ( )
81
+ * 错误提示,默认用 ElMessage.error 提示
82
+ */
83
+ errorPrompt: {
84
+ type: Function
85
+ },
86
+ prop: {
87
+ type: String
88
+ }
71
89
  };
72
90
  const dataEmits = [
73
91
  "update:modelValue",
92
+ "click",
74
93
  "focus",
75
94
  "blur",
76
95
  "clear",
@@ -1,20 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
+ const isEqual = require("@fangzhongya/utils/basic/object/isEqual");
4
5
  const data = require("./data.cjs");
5
6
  const index$1 = require("../../../hooks/cssname/index.cjs");
6
- const index$4 = require("../../icon/index.cjs");
7
+ const index$6 = require("../../icon/index.cjs");
7
8
  const clear = require("../../../icons/vue/clear.cjs");
8
- const index$3 = require("../../../hooks/compons/index.cjs");
9
+ const index$4 = require("../../../hooks/compons/index.cjs");
9
10
  const index$2 = require("../../../hooks/props-default/index.cjs");
10
11
  const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
11
12
  const index = require("../../../hooks/locale/index.cjs");
13
+ const index$5 = require("../../message/index.cjs");
14
+ require("../../form/index.cjs");
15
+ const index$3 = require("element-plus/es/components/form/index");
12
16
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
17
  __name: "index",
14
18
  props: index$2.getProps(data.dataProps),
15
19
  emits: data.dataEmits,
16
20
  setup(__props, { expose: __expose, emit: __emit }) {
17
21
  const { getLocale } = index.useLocale();
22
+ let doubleValueDate = 0;
18
23
  const cs = index$1.useCssName(data.name);
19
24
  const prs = __props;
20
25
  const props = index$2.usePropsDefault(data.name, prs, data.dataProps, {
@@ -28,7 +33,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
33
  return getLocale("end");
29
34
  }
30
35
  });
31
- const compons = index$3.useComponsGet(props.compons);
36
+ const disabled = index$3.useDisabled();
37
+ const { formItem: elFormItem } = index$3.useFormItem();
38
+ const refDom = vue.ref();
39
+ const compons = index$4.useComponsGet(props.compons);
32
40
  const pcompon = vue.computed(() => {
33
41
  if (typeof props.compon == "string") {
34
42
  const tcom = lineToLargeHump.lineToLargeHump(props.compon);
@@ -38,13 +46,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38
46
  }
39
47
  });
40
48
  const emit = __emit;
41
- const refInput = vue.ref();
42
49
  const isfocus = vue.ref(false);
43
50
  const start = vue.ref();
44
51
  const end = vue.ref();
45
52
  const emove = vue.ref(false);
53
+ vue.watch(
54
+ () => props.mouse,
55
+ () => {
56
+ emove.value = props.mouse;
57
+ }
58
+ );
46
59
  const isclear = vue.computed(() => {
47
- if (props.clearable) {
60
+ if (props.clearable && disabled.value === false) {
48
61
  if (start.value || end.value) {
49
62
  if (emove.value || isfocus.value) {
50
63
  return true;
@@ -75,14 +88,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
75
88
  }
76
89
  }
77
90
  if (v) {
91
+ if (props.isDoubleValue && v.length == 0) {
92
+ if (doubleValueDate > Date.now() - 400) {
93
+ return;
94
+ }
95
+ }
78
96
  const s = v[0];
79
97
  const e = v[1];
80
98
  if (s !== start.value) {
81
99
  start.value = s;
100
+ onInput(0);
82
101
  }
83
102
  if (e !== end.value) {
84
103
  end.value = e;
104
+ onInput(1);
85
105
  }
106
+ } else {
107
+ start.value = void 0;
108
+ end.value = void 0;
86
109
  }
87
110
  },
88
111
  {
@@ -90,30 +113,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
90
113
  deep: true
91
114
  }
92
115
  );
93
- vue.watch(
94
- () => isfocus.value,
95
- () => {
96
- if (isfocus.value) {
97
- emit("focus");
98
- } else {
99
- emit("blur");
100
- }
116
+ function validateEvent() {
117
+ var _a;
118
+ if (props.validateEvent) {
119
+ (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => console.log("err", err));
101
120
  }
102
- );
121
+ }
103
122
  function onMouseenter() {
104
123
  emove.value = true;
105
124
  }
106
125
  function onMouseleave() {
107
126
  emove.value = false;
108
127
  }
109
- const errer = vue.ref();
128
+ const error = vue.ref();
110
129
  function onInput(type) {
111
130
  var _a, _b;
112
131
  if (!props.check) {
113
132
  setValue([start.value, end.value]);
114
133
  return;
115
134
  }
116
- errer.value = void 0;
135
+ error.value = void 0;
117
136
  if (!start.value || !end.value) {
118
137
  handleValidationSuccess(type);
119
138
  return;
@@ -123,11 +142,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
123
142
  handleValidationError(e, type);
124
143
  } else {
125
144
  handleValidationSuccess(type);
126
- setValue([start.value, end.value]);
127
145
  }
146
+ setValue([start.value, end.value]);
128
147
  };
129
148
  if (typeof props.check === "function") {
130
- const v = props.check(start.value, end.value, callback);
149
+ const v = props.check(callback, start.value, end.value);
131
150
  if (v === false) {
132
151
  return false;
133
152
  }
@@ -143,29 +162,50 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
143
162
  }
144
163
  handleValidationSuccess(type);
145
164
  }
165
+ function errorPrompt(ts, num) {
166
+ if (props.errorPrompt) {
167
+ props.errorPrompt(ts, num);
168
+ } else {
169
+ index$5.Message.error(ts);
170
+ }
171
+ }
146
172
  function handleValidationError(e, type) {
173
+ if (type === 0) {
174
+ start.value = void 0;
175
+ } else if (type === 1) {
176
+ end.value = void 0;
177
+ }
147
178
  if (typeof e === "string") {
148
179
  e = new Error(e);
149
180
  }
150
- e.type = type;
151
- errer.value = e;
152
- emit("validate", void 0, false, e.message);
181
+ errorPrompt(e.message, type);
153
182
  }
154
183
  function handleValidationSuccess(type) {
155
- emit("validate", void 0, true, "");
156
184
  setValue([start.value, end.value]);
157
185
  }
158
- function onClear() {
186
+ function onClear(...arr) {
159
187
  start.value = void 0;
160
188
  end.value = void 0;
161
189
  if (props.check) {
162
- errer.value = void 0;
163
- emit("validate", void 0, true, "");
190
+ error.value = void 0;
164
191
  }
165
192
  setValue(void 0);
166
193
  emit("clear");
194
+ if (!isfocus.value) {
195
+ isfocus.value = true;
196
+ emit("focus", ...arr);
197
+ }
167
198
  }
168
199
  function setValue(value) {
200
+ if (value && (value[0] === void 0 || value[0] === null) && (value[1] === void 0 || value[1] === null)) {
201
+ value = [];
202
+ }
203
+ if (props.isDoubleValue && value) {
204
+ if (value[0] === void 0 || value[0] === null || value[1] === void 0 || value[1] === null) {
205
+ doubleValueDate = Date.now();
206
+ value = [];
207
+ }
208
+ }
169
209
  if (props.multiple && value) {
170
210
  let v = "";
171
211
  if (typeof props.multiple != "string") {
@@ -173,53 +213,83 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
173
213
  } else {
174
214
  v = value.join(props.multiple);
175
215
  }
176
- emit("update:modelValue", v);
177
- emit("change", v);
216
+ if (!isEqual.isEqual(v, props.modelValue)) {
217
+ emit("update:modelValue", v);
218
+ emit("change", v);
219
+ validateEvent();
220
+ }
178
221
  } else {
179
- emit("update:modelValue", value);
180
- emit("change", value);
222
+ if (!isEqual.isEqual(value, props.modelValue)) {
223
+ emit("update:modelValue", value);
224
+ emit("change", value);
225
+ validateEvent();
226
+ }
181
227
  }
182
228
  }
183
- function onClick() {
184
- isfocus.value = true;
185
- if (refInput.value) {
186
- refInput.value.focus();
229
+ function onClick(...arr) {
230
+ if (!disabled.value) {
231
+ if (!isfocus.value) {
232
+ isfocus.value = true;
233
+ emit("focus", ...arr);
234
+ }
187
235
  }
188
- clearBlur();
189
- }
190
- function onFocus() {
191
- isfocus.value = true;
192
- clearBlur();
236
+ emit("click", ...arr);
193
237
  }
194
- let timeout;
195
- function onBlur() {
196
- timeout = setTimeout(() => {
197
- isfocus.value = false;
198
- }, 200);
238
+ const isfocusCom = vue.ref(false);
239
+ function onFocus(...arr) {
240
+ isfocusCom.value = true;
241
+ if (!isfocus.value) {
242
+ isfocus.value = true;
243
+ emit("focus", ...arr);
244
+ }
199
245
  }
200
- function clearBlur() {
201
- clearTimeout(timeout);
246
+ function onBlur(...arr) {
247
+ isfocusCom.value = false;
248
+ if (!emove.value) {
249
+ if (isfocus.value) {
250
+ isfocus.value = false;
251
+ emit("blur", ...arr);
252
+ validateEvent();
253
+ }
254
+ }
202
255
  }
256
+ const onClickTotal = (event) => {
257
+ var _a;
258
+ if (!((_a = refDom.value) == null ? void 0 : _a.contains(event.target)) && isfocusCom.value == false) {
259
+ if (isfocus.value) {
260
+ isfocus.value = false;
261
+ emit("blur", event);
262
+ validateEvent();
263
+ }
264
+ }
265
+ };
203
266
  vue.onMounted(() => {
204
267
  if (globalThis) {
205
- globalThis.addEventListener("click", () => {
206
- isfocus.value = false;
207
- });
268
+ globalThis.addEventListener("click", onClickTotal);
269
+ }
270
+ });
271
+ vue.onUnmounted(() => {
272
+ if (globalThis) {
273
+ globalThis.removeEventListener("click", onClickTotal);
208
274
  }
209
275
  });
210
276
  __expose({
211
- ...data.dataExpose
277
+ ...data.dataExpose,
278
+ focus: onClick
212
279
  });
213
280
  return (_ctx, _cache) => {
214
281
  var _a, _b, _c, _d;
215
282
  return vue.openBlock(), vue.createElementBlock("div", {
216
- class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("focus", isfocus.value)]),
283
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("focus", isfocus.value), vue.unref(cs).is("disabled", vue.unref(disabled))]),
284
+ ref_key: "refDom",
285
+ ref: refDom,
217
286
  onMouseenter,
218
287
  onMouseleave,
219
288
  onClick: vue.withModifiers(onClick, ["stop"])
220
289
  }, [
221
290
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
222
291
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
292
+ disabled: vue.unref(disabled),
223
293
  multiple: multiple.value,
224
294
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("start")],
225
295
  modelValue: start.value,
@@ -228,13 +298,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
228
298
  _cache[1] || (_cache[1] = ($event) => onInput(0))
229
299
  ],
230
300
  placeholder: vue.unref(props).startPlaceholder + (((_a = vue.unref(props).config) == null ? void 0 : _a.placeholder) ?? ""),
231
- onClick: vue.withModifiers(onFocus, ["stop"]),
301
+ onFocus,
232
302
  onBlur
233
- }), null, 16, ["multiple", "class", "modelValue", "placeholder"])),
303
+ }), null, 16, ["disabled", "multiple", "class", "modelValue", "placeholder"])),
234
304
  vue.createElementVNode("span", {
235
305
  class: vue.normalizeClass([vue.unref(cs).z("range")])
236
306
  }, vue.toDisplayString(vue.unref(props).rangeSeparator), 3),
237
307
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
308
+ disabled: vue.unref(disabled),
238
309
  multiple: multiple.value,
239
310
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("end")],
240
311
  modelValue: end.value,
@@ -243,29 +314,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
243
314
  _cache[3] || (_cache[3] = ($event) => onInput(1))
244
315
  ],
245
316
  placeholder: vue.unref(props).endPlaceholder + (((_b = vue.unref(props).config) == null ? void 0 : _b.placeholder) ?? ""),
246
- onClick: vue.withModifiers(onFocus, ["stop"]),
317
+ onFocus,
247
318
  onBlur
248
- }), null, 16, ["multiple", "class", "modelValue", "placeholder"])),
249
- errer.value ? (vue.openBlock(), vue.createElementBlock("span", {
319
+ }), null, 16, ["disabled", "multiple", "class", "modelValue", "placeholder"])),
320
+ error.value ? (vue.openBlock(), vue.createElementBlock("span", {
250
321
  key: 0,
251
322
  class: vue.normalizeClass([
252
323
  vue.unref(cs).z("error"),
253
324
  vue.unref(cs).is("clear", isclear.value),
254
- "type-" + ((_c = errer.value) == null ? void 0 : _c.type)
325
+ "type-" + ((_c = error.value) == null ? void 0 : _c.type)
255
326
  ])
256
- }, vue.toDisplayString(((_d = errer.value) == null ? void 0 : _d.message) ? errer.value.message : errer.value), 3)) : vue.createCommentVNode("", true),
257
- vue.createElementVNode("input", {
258
- class: vue.normalizeClass(vue.unref(cs).z("focus")),
259
- ref_key: "refInput",
260
- ref: refInput,
261
- onBlur
262
- }, null, 34),
327
+ }, vue.toDisplayString(((_d = error.value) == null ? void 0 : _d.message) ? error.value.message : error.value), 3)) : vue.createCommentVNode("", true),
263
328
  isclear.value ? (vue.openBlock(), vue.createElementBlock("span", {
264
329
  key: 1,
265
330
  class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).z("clear")]),
266
331
  onClick: vue.withModifiers(onClear, ["stop"])
267
332
  }, [
268
- vue.createVNode(vue.unref(index$4.Icon), null, {
333
+ vue.createVNode(vue.unref(index$6.Icon), null, {
269
334
  default: vue.withCtx(() => [
270
335
  vue.createVNode(clear.default)
271
336
  ]),