@fangzhongya/fang-ui 0.0.66 → 0.0.68

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 (76) hide show
  1. package/dist/components/array/src/index2.cjs +21 -2
  2. package/dist/components/array/src/index2.js +22 -3
  3. package/dist/components/cascaders/src/index2.cjs +3 -8
  4. package/dist/components/cascaders/src/index2.js +4 -9
  5. package/dist/components/dates-divide/src/data.cjs +1 -1
  6. package/dist/components/dates-divide/src/data.d.ts +1 -1
  7. package/dist/components/dates-divide/src/data.js +1 -1
  8. package/dist/components/forms/src/data.cjs +12 -12
  9. package/dist/components/forms/src/data.d.ts +1 -27
  10. package/dist/components/forms/src/data.js +12 -12
  11. package/dist/components/forms-div/src/data.cjs +5 -2
  12. package/dist/components/forms-div/src/data.d.ts +3 -2
  13. package/dist/components/forms-div/src/data.js +5 -2
  14. package/dist/components/forms-div/src/index2.cjs +2 -2
  15. package/dist/components/forms-div/src/index2.js +3 -3
  16. package/dist/components/forms-drag/src/index2.cjs +6 -10
  17. package/dist/components/forms-drag/src/index2.js +6 -10
  18. package/dist/components/forms-item/src/data.cjs +5 -2
  19. package/dist/components/forms-item/src/data.d.ts +3 -2
  20. package/dist/components/forms-item/src/data.js +5 -2
  21. package/dist/components/forms-item/src/indexts.d.ts +5 -2
  22. package/dist/components/global-config/src/data.cjs +1 -1
  23. package/dist/components/global-config/src/data.d.ts +1 -0
  24. package/dist/components/global-config/src/data.js +1 -1
  25. package/dist/components/global-config/src/index.cjs +7 -3
  26. package/dist/components/global-config/src/index.js +7 -3
  27. package/dist/components/icon/src/index2.cjs +2 -2
  28. package/dist/components/icon/src/index2.js +3 -3
  29. package/dist/components/input-history/src/data.cjs +2 -2
  30. package/dist/components/input-history/src/data.d.ts +0 -1
  31. package/dist/components/input-history/src/data.js +2 -2
  32. package/dist/components/input-num/index.css +1 -0
  33. package/dist/components/input-num/index.scss +1 -0
  34. package/dist/components/list/src/data.cjs +1 -1
  35. package/dist/components/list/src/data.d.ts +1 -1
  36. package/dist/components/list/src/data.js +1 -1
  37. package/dist/components/listsp/src/index2.cjs +3 -3
  38. package/dist/components/listsp/src/index2.js +3 -3
  39. package/dist/components/page/index.css +64 -1
  40. package/dist/components/page/index.scss +66 -1
  41. package/dist/components/page/src/data.cjs +13 -1
  42. package/dist/components/page/src/data.d.ts +26 -1
  43. package/dist/components/page/src/data.js +13 -1
  44. package/dist/components/page/src/index2.cjs +5 -4
  45. package/dist/components/page/src/index2.js +5 -4
  46. package/dist/components/page/src/set-column.cjs +1 -4
  47. package/dist/components/page/src/set-column.js +1 -4
  48. package/dist/components/page/src/set-column2.cjs +74 -34
  49. package/dist/components/page/src/set-column2.js +69 -29
  50. package/dist/components/paging/src/index2.cjs +2 -2
  51. package/dist/components/paging/src/index2.js +2 -2
  52. package/dist/components/selects/src/data.cjs +1 -1
  53. package/dist/components/selects/src/data.js +1 -1
  54. package/dist/components/stick-div/src/index2.cjs +8 -1
  55. package/dist/components/stick-div/src/index2.js +8 -1
  56. package/dist/components/tablesv/src/columns2.cjs +1 -1
  57. package/dist/components/tablesv/src/columns2.js +1 -1
  58. package/dist/css/index.css +65 -1
  59. package/dist/css/input-num.css +1 -0
  60. package/dist/css/page.css +64 -1
  61. package/dist/directives/adjust/index.cjs +0 -8
  62. package/dist/directives/adjust/index.js +0 -8
  63. package/dist/icons/index.css +38 -38
  64. package/dist/icons/index.json +12 -12
  65. package/dist/index.css +65 -1
  66. package/dist/locale/en.cjs +9 -0
  67. package/dist/locale/en.d.ts +9 -0
  68. package/dist/locale/en.js +9 -0
  69. package/dist/locale/zh-cn.cjs +9 -0
  70. package/dist/locale/zh-cn.d.ts +9 -0
  71. package/dist/locale/zh-cn.js +9 -0
  72. package/package.json +7 -7
  73. package/dist/components/page/set-column.css +0 -38
  74. package/dist/css/page/set-column.css +0 -38
  75. /package/dist/components/{keep-com → global-config}/index.css +0 -0
  76. /package/dist/css/{keep-com.css → global-config.css} +0 -0
@@ -6,6 +6,7 @@ const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index$2 = require("../../icon/index.cjs");
7
7
  const clear = require("../../../icons/vue/clear.cjs");
8
8
  const use = require("../../common/use.cjs");
9
+ const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
9
10
  const index = require("../../../hooks/locale/index.cjs");
10
11
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
12
  __name: "index",
@@ -13,6 +14,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
14
  emits: data.dataEmits,
14
15
  setup(__props, { expose: __expose, emit: __emit }) {
15
16
  const { getLocale } = index.useLocale();
17
+ const compons = vue.inject("forms-compons", {});
18
+ const pcompon = vue.computed(() => {
19
+ if (typeof props.compon == "string") {
20
+ const tcom = lineToLargeHump.lineToLargeHump(props.compon);
21
+ return compons[tcom] || props.compon;
22
+ } else {
23
+ return props.compon;
24
+ }
25
+ });
16
26
  const cs = index$1.useCssName("array");
17
27
  const prs = __props;
18
28
  const props = use.uesPropsDefault(prs, {
@@ -179,6 +189,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
179
189
  function clearBlur() {
180
190
  clearTimeout(timeout);
181
191
  }
192
+ vue.onMounted(() => {
193
+ if (window) {
194
+ console.log("onMounted");
195
+ window.addEventListener("click", () => {
196
+ console.log("click");
197
+ isfocus.value = false;
198
+ });
199
+ }
200
+ });
182
201
  __expose({
183
202
  ...data.dataExpose
184
203
  });
@@ -191,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
191
210
  onClick: vue.withModifiers(onClick, ["stop"])
192
211
  }, [
193
212
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
194
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(props).compon), vue.mergeProps(vue.unref(props).config, {
213
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
195
214
  multiple: multiple.value,
196
215
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("start")],
197
216
  modelValue: start.value,
@@ -206,7 +225,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
206
225
  vue.createElementVNode("span", {
207
226
  class: vue.normalizeClass([vue.unref(cs).z("range")])
208
227
  }, vue.toDisplayString(vue.unref(props).rangeSeparator), 3),
209
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(props).compon), vue.mergeProps(vue.unref(props).config, {
228
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
210
229
  multiple: multiple.value,
211
230
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("end")],
212
231
  modelValue: end.value,
@@ -1,9 +1,10 @@
1
- import { defineComponent, ref, computed, watch, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, createElementVNode, createCommentVNode, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, withCtx } from "vue";
1
+ import { defineComponent, inject, computed, ref, watch, onMounted, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, createElementVNode, createCommentVNode, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, withCtx } from "vue";
2
2
  import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { Icon } from "../../icon/index.js";
5
5
  import Clear from "../../../icons/vue/clear.js";
6
6
  import { uesPropsDefault } from "../../common/use.js";
7
+ import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
7
8
  import { useLocale } from "../../../hooks/locale/index.js";
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  __name: "index",
@@ -11,6 +12,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  emits: dataEmits,
12
13
  setup(__props, { expose: __expose, emit: __emit }) {
13
14
  const { getLocale } = useLocale();
15
+ const compons = inject("forms-compons", {});
16
+ const pcompon = computed(() => {
17
+ if (typeof props.compon == "string") {
18
+ const tcom = lineToLargeHump(props.compon);
19
+ return compons[tcom] || props.compon;
20
+ } else {
21
+ return props.compon;
22
+ }
23
+ });
14
24
  const cs = useCssName("array");
15
25
  const prs = __props;
16
26
  const props = uesPropsDefault(prs, {
@@ -177,6 +187,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
187
  function clearBlur() {
178
188
  clearTimeout(timeout);
179
189
  }
190
+ onMounted(() => {
191
+ if (window) {
192
+ console.log("onMounted");
193
+ window.addEventListener("click", () => {
194
+ console.log("click");
195
+ isfocus.value = false;
196
+ });
197
+ }
198
+ });
180
199
  __expose({
181
200
  ...dataExpose
182
201
  });
@@ -189,7 +208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
208
  onClick: withModifiers(onClick, ["stop"])
190
209
  }, [
191
210
  renderSlot(_ctx.$slots, unref(dataSlot).prefix),
192
- (openBlock(), createBlock(resolveDynamicComponent(unref(props).compon), mergeProps(unref(props).config, {
211
+ (openBlock(), createBlock(resolveDynamicComponent(pcompon.value), mergeProps(unref(props).config, {
193
212
  multiple: multiple.value,
194
213
  class: [unref(cs).z("value"), unref(cs).z("start")],
195
214
  modelValue: start.value,
@@ -204,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
223
  createElementVNode("span", {
205
224
  class: normalizeClass([unref(cs).z("range")])
206
225
  }, toDisplayString(unref(props).rangeSeparator), 3),
207
- (openBlock(), createBlock(resolveDynamicComponent(unref(props).compon), mergeProps(unref(props).config, {
226
+ (openBlock(), createBlock(resolveDynamicComponent(pcompon.value), mergeProps(unref(props).config, {
208
227
  multiple: multiple.value,
209
228
  class: [unref(cs).z("value"), unref(cs).z("end")],
210
229
  modelValue: end.value,
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../../directives/expose/index.cjs");
5
4
  const ElCascader = require("element-plus/es/components/cascader/index");
6
5
  const ElTreeSelect = require("element-plus/es/components/tree-select/index");
7
6
  const index = require("../../../hooks/cssname/index.cjs");
@@ -32,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
31
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
33
32
  class: vue.unref(cs).z()
34
33
  }, vue.unref(attrs).root), [
35
- props.isTree ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElTreeSelect), vue.mergeProps({
34
+ props.isTree ? (vue.openBlock(), vue.createBlock(vue.unref(ElTreeSelect), vue.mergeProps({
36
35
  key: 0,
37
36
  modelValue: vue.unref(value),
38
37
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
@@ -41,18 +40,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
41
40
  data: props.options,
42
41
  multiple: vue.unref(multiple),
43
42
  "show-checkbox": vue.unref(multiple)
44
- }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])), [
45
- [vue.unref(index$2.default), {}]
46
- ]) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
43
+ }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])) : (vue.openBlock(), vue.createBlock(vue.unref(ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
47
44
  class: vue.unref(cs).z("cascader"),
48
45
  "show-all-levels": false,
49
46
  modelValue: vue.unref(value),
50
47
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null),
51
48
  options: props.options,
52
49
  props: cprops
53
- }), null, 16, ["class", "modelValue", "options"])), [
54
- [vue.unref(index$2.default), {}]
55
- ])
50
+ }), null, 16, ["class", "modelValue", "options"]))
56
51
  ], 16);
57
52
  };
58
53
  }
@@ -1,5 +1,4 @@
1
- import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, isRef } from "vue";
2
- import vExpose from "../../../directives/expose/index.js";
1
+ import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, createBlock, isRef } from "vue";
3
2
  import ElCascader from "element-plus/es/components/cascader/index";
4
3
  import ElTreeSelect from "element-plus/es/components/tree-select/index";
5
4
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -30,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
29
  return openBlock(), createElementBlock("div", mergeProps({
31
30
  class: unref(cs).z()
32
31
  }, unref(attrs).root), [
33
- props.isTree ? withDirectives((openBlock(), createBlock(unref(ElTreeSelect), mergeProps({
32
+ props.isTree ? (openBlock(), createBlock(unref(ElTreeSelect), mergeProps({
34
33
  key: 0,
35
34
  modelValue: unref(value),
36
35
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
@@ -39,18 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
38
  data: props.options,
40
39
  multiple: unref(multiple),
41
40
  "show-checkbox": unref(multiple)
42
- }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])), [
43
- [unref(vExpose), {}]
44
- ]) : withDirectives((openBlock(), createBlock(unref(ElCascader), mergeProps({ key: 1 }, unref(attrs).assem, {
41
+ }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])) : (openBlock(), createBlock(unref(ElCascader), mergeProps({ key: 1 }, unref(attrs).assem, {
45
42
  class: unref(cs).z("cascader"),
46
43
  "show-all-levels": false,
47
44
  modelValue: unref(value),
48
45
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(value) ? value.value = $event : null),
49
46
  options: props.options,
50
47
  props: cprops
51
- }), null, 16, ["class", "modelValue", "options"])), [
52
- [unref(vExpose), {}]
53
- ])
48
+ }), null, 16, ["class", "modelValue", "options"]))
54
49
  ], 16);
55
50
  };
56
51
  }
@@ -7,7 +7,7 @@ const dataProps = {
7
7
  type: String
8
8
  },
9
9
  /**
10
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
10
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
11
11
  */
12
12
  modelValue: {
13
13
  type: Array,
@@ -5,7 +5,7 @@ export declare const dataProps: {
5
5
  type: () => SingleType;
6
6
  };
7
7
  /**
8
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
8
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
9
9
  */
10
10
  modelValue: {
11
11
  type: {
@@ -5,7 +5,7 @@ const dataProps = {
5
5
  type: String
6
6
  },
7
7
  /**
8
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
8
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
9
9
  */
10
10
  modelValue: {
11
11
  type: Array,
@@ -167,38 +167,38 @@ const dataProps = {
167
167
  */
168
168
  colon: [Boolean, String]
169
169
  };
170
- const dataEmits = {
170
+ const dataEmits = [
171
171
  /**
172
172
  * @emits update:modelValue (value:[ObjAny]值)
173
173
  * v-model 数据更新
174
174
  */
175
- "update:modelValue": (value) => {
176
- },
175
+ "update:modelValue",
176
+ //: (value: ObjAny) => {},
177
177
  /**
178
178
  * @emits submit (obj:[ObjAny]form值)
179
179
  * 提交事件
180
180
  */
181
- submit: (obj) => {
182
- },
181
+ "submit",
182
+ // : (obj: ObjAny) => {},
183
183
  /**
184
184
  * @emits cancel (obj:[ObjAny]form值)
185
185
  * 关闭事件
186
186
  */
187
- cancel: (obj) => {
188
- },
187
+ "cancel",
188
+ // : (obj: ObjAny) => {},
189
189
  /**
190
190
  * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
191
191
  * buts按钮事件
192
192
  */
193
- buts: (obj, dataForm, index, event) => {
194
- },
193
+ "buts",
194
+ // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
195
195
  /**
196
196
  * @emits upform (dataForm:[ObjAny]form值)
197
197
  * 表单数据变动
198
198
  */
199
- upform: (dataForm) => {
200
- }
201
- };
199
+ "upform"
200
+ // : (dataForm: ObjAny) => {},
201
+ ];
202
202
  const dataSlot = {
203
203
  /**
204
204
  * @slot default 默认插槽
@@ -215,33 +215,7 @@ export type DataProps = ExtractPropTypes<typeof dataProps>;
215
215
  /**
216
216
  * 组件事件
217
217
  */
218
- export declare const dataEmits: {
219
- /**
220
- * @emits update:modelValue (value:[ObjAny]值)
221
- * v-model 数据更新
222
- */
223
- 'update:modelValue': (value: ObjAny) => void;
224
- /**
225
- * @emits submit (obj:[ObjAny]form值)
226
- * 提交事件
227
- */
228
- submit: (obj: ObjAny) => void;
229
- /**
230
- * @emits cancel (obj:[ObjAny]form值)
231
- * 关闭事件
232
- */
233
- cancel: (obj: ObjAny) => void;
234
- /**
235
- * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
236
- * buts按钮事件
237
- */
238
- buts: (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => void;
239
- /**
240
- * @emits upform (dataForm:[ObjAny]form值)
241
- * 表单数据变动
242
- */
243
- upform: (dataForm: ObjAny) => void;
244
- };
218
+ export declare const dataEmits: string[];
245
219
  /**
246
220
  * 组件事件
247
221
  */
@@ -165,38 +165,38 @@ const dataProps = {
165
165
  */
166
166
  colon: [Boolean, String]
167
167
  };
168
- const dataEmits = {
168
+ const dataEmits = [
169
169
  /**
170
170
  * @emits update:modelValue (value:[ObjAny]值)
171
171
  * v-model 数据更新
172
172
  */
173
- "update:modelValue": (value) => {
174
- },
173
+ "update:modelValue",
174
+ //: (value: ObjAny) => {},
175
175
  /**
176
176
  * @emits submit (obj:[ObjAny]form值)
177
177
  * 提交事件
178
178
  */
179
- submit: (obj) => {
180
- },
179
+ "submit",
180
+ // : (obj: ObjAny) => {},
181
181
  /**
182
182
  * @emits cancel (obj:[ObjAny]form值)
183
183
  * 关闭事件
184
184
  */
185
- cancel: (obj) => {
186
- },
185
+ "cancel",
186
+ // : (obj: ObjAny) => {},
187
187
  /**
188
188
  * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
189
189
  * buts按钮事件
190
190
  */
191
- buts: (obj, dataForm, index, event) => {
192
- },
191
+ "buts",
192
+ // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
193
193
  /**
194
194
  * @emits upform (dataForm:[ObjAny]form值)
195
195
  * 表单数据变动
196
196
  */
197
- upform: (dataForm) => {
198
- }
199
- };
197
+ "upform"
198
+ // : (dataForm: ObjAny) => {},
199
+ ];
200
200
  const dataSlot = {
201
201
  /**
202
202
  * @slot default 默认插槽
@@ -29,11 +29,14 @@ const dataProps = {
29
29
  type: Object
30
30
  },
31
31
  /**
32
- * @props { String } modelValue= ( )
33
32
  * 传入值
33
+ * @props { Object } modelValue={} ( )
34
34
  */
35
35
  modelValue: {
36
- type: null
36
+ type: Object,
37
+ default() {
38
+ return {};
39
+ }
37
40
  },
38
41
  /**
39
42
  * @props { Object<ObjStr> } formvalue= ( )
@@ -24,11 +24,12 @@ export declare const dataProps: {
24
24
  type: ObjectConstructor;
25
25
  };
26
26
  /**
27
- * @props { String } modelValue= ( )
28
27
  * 传入值
28
+ * @props { Object } modelValue={} ( )
29
29
  */
30
30
  modelValue: {
31
- type: null;
31
+ type: ObjectConstructor;
32
+ default(): {};
32
33
  };
33
34
  /**
34
35
  * @props { Object<ObjStr> } formvalue= ( )
@@ -27,11 +27,14 @@ const dataProps = {
27
27
  type: Object
28
28
  },
29
29
  /**
30
- * @props { String } modelValue= ( )
31
30
  * 传入值
31
+ * @props { Object } modelValue={} ( )
32
32
  */
33
33
  modelValue: {
34
- type: null
34
+ type: Object,
35
+ default() {
36
+ return {};
37
+ }
35
38
  },
36
39
  /**
37
40
  * @props { Object<ObjStr> } formvalue= ( )
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
- const index$1 = require("../../../directives/expose/index.cjs");
5
+ require("../../../directives/expose/index.cjs");
6
6
  require("../../../utils/index.cjs");
7
7
  const index = require("../../../hooks/cssname/index.cjs");
8
8
  const use = require("../../common/use.cjs");
@@ -135,7 +135,7 @@ const _sfc_main = vue.defineComponent({
135
135
  });
136
136
  }
137
137
  }
138
- return vue.withDirectives(render(), [[index$1.default, {}]]);
138
+ return render();
139
139
  };
140
140
  return () => {
141
141
  return props.compon ? vue.h("div", { class: cs.z() }, [setSslot()]) : "";
@@ -1,6 +1,6 @@
1
- import { defineComponent, inject, computed, h, resolveComponent, withDirectives } from "vue";
1
+ import { defineComponent, inject, computed, h, resolveComponent } from "vue";
2
2
  import { dataProps, dataEmits, dataExpose } from "./data.js";
3
- import vExpose from "../../../directives/expose/index.js";
3
+ import "../../../directives/expose/index.js";
4
4
  import "../../../utils/index.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
6
  import { getOnObjs } from "../../common/use.js";
@@ -133,7 +133,7 @@ const _sfc_main = defineComponent({
133
133
  });
134
134
  }
135
135
  }
136
- return withDirectives(render(), [[vExpose, {}]]);
136
+ return render();
137
137
  };
138
138
  return () => {
139
139
  return props.compon ? h("div", { class: cs.z() }, [setSslot()]) : "";
@@ -27,17 +27,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
27
  },
28
28
  butDisabled: Boolean
29
29
  },
30
- emits: {
30
+ emits: [
31
31
  ...data.dataEmits,
32
- "update:list": (e) => {
33
- },
34
- "update:index": (e) => {
35
- },
36
- handle: (a, b) => {
37
- },
38
- adjust: (a, b, c, d) => {
39
- }
40
- },
32
+ "update:list",
33
+ "update:index",
34
+ "handle",
35
+ "adjust"
36
+ ],
41
37
  setup(__props, { expose: __expose, emit: __emit }) {
42
38
  const { getLocale } = index.useLocale();
43
39
  const slots = vue.useSlots();
@@ -25,17 +25,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  },
26
26
  butDisabled: Boolean
27
27
  },
28
- emits: {
28
+ emits: [
29
29
  ...dataEmits,
30
- "update:list": (e) => {
31
- },
32
- "update:index": (e) => {
33
- },
34
- handle: (a, b) => {
35
- },
36
- adjust: (a, b, c, d) => {
37
- }
38
- },
30
+ "update:list",
31
+ "update:index",
32
+ "handle",
33
+ "adjust"
34
+ ],
39
35
  setup(__props, { expose: __expose, emit: __emit }) {
40
36
  const { getLocale } = useLocale();
41
37
  const slots = useSlots();
@@ -49,10 +49,13 @@ const dataProps = {
49
49
  hideLabel: Boolean,
50
50
  /**
51
51
  * 传入值
52
- * @props { String } modelValue= ( )
52
+ * @props { Object } modelValue={} ( )
53
53
  */
54
54
  modelValue: {
55
- type: null
55
+ type: Object,
56
+ default() {
57
+ return {};
58
+ }
56
59
  }
57
60
  };
58
61
  const dataEmits = ["update:modelValue"];
@@ -44,10 +44,11 @@ export declare const dataProps: {
44
44
  hideLabel: BooleanConstructor;
45
45
  /**
46
46
  * 传入值
47
- * @props { String } modelValue= ( )
47
+ * @props { Object } modelValue={} ( )
48
48
  */
49
49
  modelValue: {
50
- type: null;
50
+ type: ObjectConstructor;
51
+ default(): {};
51
52
  };
52
53
  };
53
54
  export type DataProps = ExtractPropTypes<typeof dataProps>;
@@ -47,10 +47,13 @@ const dataProps = {
47
47
  hideLabel: Boolean,
48
48
  /**
49
49
  * 传入值
50
- * @props { String } modelValue= ( )
50
+ * @props { Object } modelValue={} ( )
51
51
  */
52
52
  modelValue: {
53
- type: null
53
+ type: Object,
54
+ default() {
55
+ return {};
56
+ }
54
57
  }
55
58
  };
56
59
  const dataEmits = ["update:modelValue"];
@@ -19,7 +19,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
19
19
  };
20
20
  hideLabel: BooleanConstructor;
21
21
  modelValue: {
22
- type: null;
22
+ type: ObjectConstructor;
23
+ default(): {};
23
24
  };
24
25
  }>, () => VNode<RendererNode, RendererElement, {
25
26
  [key: string]: any;
@@ -43,11 +44,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
43
44
  };
44
45
  hideLabel: BooleanConstructor;
45
46
  modelValue: {
46
- type: null;
47
+ type: ObjectConstructor;
48
+ default(): {};
47
49
  };
48
50
  }>> & Readonly<{
49
51
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
50
52
  }>, {
53
+ modelValue: Record<string, any>;
51
54
  listobj: ListObj;
52
55
  optionss: ObjAny;
53
56
  hideLabel: boolean;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const buildProps = require("../../../utils/vues/buildProps.cjs");
4
- require("../../../utils/vues/definePropType.cjs");
5
4
  const enums = require("../../../utils/enums.cjs");
6
5
  const dataProps = buildProps.buildProps({
7
6
  /**
@@ -16,6 +15,7 @@ const dataProps = buildProps.buildProps({
16
15
  },
17
16
  /**
18
17
  * @props { Number } size='default' ('large' | 'default' | 'small')
18
+ * 大小
19
19
  */
20
20
  size: {
21
21
  type: String,
@@ -15,6 +15,7 @@ export declare const dataProps: {
15
15
  };
16
16
  /**
17
17
  * @props { Number } size='default' ('large' | 'default' | 'small')
18
+ * 大小
18
19
  */
19
20
  size: {
20
21
  type: () => "large" | "default" | "small";
@@ -1,5 +1,4 @@
1
1
  import { buildProps } from "../../../utils/vues/buildProps.js";
2
- import "../../../utils/vues/definePropType.js";
3
2
  import { DefaultConfig } from "../../../utils/enums.js";
4
3
  const dataProps = buildProps({
5
4
  /**
@@ -14,6 +13,7 @@ const dataProps = buildProps({
14
13
  },
15
14
  /**
16
15
  * @props { Number } size='default' ('large' | 'default' | 'small')
16
+ * 大小
17
17
  */
18
18
  size: {
19
19
  type: String,
@@ -25,9 +25,13 @@ const SrcVue = vue.defineComponent({
25
25
  namespace: props.namespace,
26
26
  locale: is ? zhCn : void 0
27
27
  },
28
- vue.renderSlot(slots, "default", {
29
- config: config == null ? void 0 : config.value
30
- })
28
+ {
29
+ default() {
30
+ return vue.renderSlot(slots, "default", {
31
+ config: config == null ? void 0 : config.value
32
+ });
33
+ }
34
+ }
31
35
  );
32
36
  } else {
33
37
  return vue.renderSlot(slots, "default", {
@@ -23,9 +23,13 @@ const SrcVue = defineComponent({
23
23
  namespace: props.namespace,
24
24
  locale: is ? zhCn : void 0
25
25
  },
26
- renderSlot(slots, "default", {
27
- config: config == null ? void 0 : config.value
28
- })
26
+ {
27
+ default() {
28
+ return renderSlot(slots, "default", {
29
+ config: config == null ? void 0 : config.value
30
+ });
31
+ }
32
+ }
29
33
  );
30
34
  } else {
31
35
  return renderSlot(slots, "default", {