@fangzhongya/fang-ui 0.1.39 → 0.1.41

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 (141) hide show
  1. package/dist/components/common/use.cjs +148 -101
  2. package/dist/components/common/use.d.ts +26 -6
  3. package/dist/components/common/use.js +149 -102
  4. package/dist/components/company-select/src/index2.cjs +1 -2
  5. package/dist/components/company-select/src/index2.js +1 -2
  6. package/dist/components/double/src/index2.cjs +2 -2
  7. package/dist/components/double/src/index2.js +2 -2
  8. package/dist/components/forms/index.css +18 -0
  9. package/dist/components/forms/src/index2.cjs +9 -6
  10. package/dist/components/forms/src/index2.js +9 -6
  11. package/dist/components/forms/src/setup.cjs +9 -12
  12. package/dist/components/forms/src/setup.js +9 -12
  13. package/dist/components/forms/src/util.cjs +6 -8
  14. package/dist/components/forms/src/util.js +6 -8
  15. package/dist/components/forms-div/src/data.cjs +8 -5
  16. package/dist/components/forms-div/src/data.d.ts +21 -3
  17. package/dist/components/forms-div/src/data.js +8 -5
  18. package/dist/components/forms-div/src/index2.cjs +41 -70
  19. package/dist/components/forms-div/src/index2.js +43 -72
  20. package/dist/components/forms-item/index.css +49 -0
  21. package/dist/components/forms-item/src/data.cjs +6 -0
  22. package/dist/components/forms-item/src/data.d.ts +19 -0
  23. package/dist/components/forms-item/src/data.js +6 -0
  24. package/dist/components/forms-item/src/index2.cjs +11 -7
  25. package/dist/components/forms-item/src/index2.js +11 -7
  26. package/dist/components/forms-item/src/indexts.d.ts +40 -1
  27. package/dist/components/forms-item/src/label.cjs +7 -1
  28. package/dist/components/forms-item/src/label.d.ts +40 -1
  29. package/dist/components/forms-item/src/label.js +7 -1
  30. package/dist/components/forms-items/index.css +18 -0
  31. package/dist/components/forms-items/index.scss +21 -0
  32. package/dist/components/forms-items/src/data.cjs +9 -0
  33. package/dist/components/forms-items/src/data.d.ts +22 -0
  34. package/dist/components/forms-items/src/data.js +9 -0
  35. package/dist/components/forms-items/src/index2.cjs +22 -10
  36. package/dist/components/forms-items/src/index2.js +22 -10
  37. package/dist/components/forms-items/style/index2.scss +1 -0
  38. package/dist/components/icon/src/index2.cjs +1 -2
  39. package/dist/components/icon/src/index2.js +1 -2
  40. package/dist/components/input-history/src/index2.cjs +1 -1
  41. package/dist/components/input-history/src/index2.js +1 -1
  42. package/dist/components/input-select/src/index2.cjs +0 -2
  43. package/dist/components/input-select/src/index2.js +0 -2
  44. package/dist/components/inputs/src/index2.cjs +1 -1
  45. package/dist/components/inputs/src/index2.js +1 -1
  46. package/dist/components/list/src/index2.cjs +4 -8
  47. package/dist/components/list/src/index2.js +4 -8
  48. package/dist/components/list/src/util.cjs +7 -5
  49. package/dist/components/list/src/util.d.ts +29 -1
  50. package/dist/components/list/src/util.js +7 -5
  51. package/dist/components/lists/src/index2.cjs +1 -2
  52. package/dist/components/lists/src/index2.js +1 -2
  53. package/dist/components/menus/src/util.cjs +8 -24
  54. package/dist/components/menus/src/util.js +9 -25
  55. package/dist/components/page/index.css +18 -0
  56. package/dist/components/right-key/src/index2.cjs +3 -3
  57. package/dist/components/right-key/src/index2.js +3 -3
  58. package/dist/components/seamless-scroll/src/index2.cjs +1 -1
  59. package/dist/components/seamless-scroll/src/index2.js +1 -1
  60. package/dist/components/selects/src/index2.cjs +2 -2
  61. package/dist/components/selects/src/index2.js +2 -2
  62. package/dist/components/stick-edge/src/index2.cjs +2 -2
  63. package/dist/components/stick-edge/src/index2.js +2 -2
  64. package/dist/components/switchs/src/index2.cjs +1 -1
  65. package/dist/components/switchs/src/index2.js +1 -1
  66. package/dist/components/tables/common/com-color2.cjs +0 -3
  67. package/dist/components/tables/common/com-color2.js +0 -3
  68. package/dist/components/tables/common/com-lis2.cjs +0 -1
  69. package/dist/components/tables/common/com-lis2.js +0 -1
  70. package/dist/components/tables/common/pagin.d.ts +6 -0
  71. package/dist/components/tables/common/tooltip.cjs +1 -1
  72. package/dist/components/tables/common/tooltip.js +1 -1
  73. package/dist/components/tables/common/util.cjs +2 -4
  74. package/dist/components/tables/common/util.js +2 -4
  75. package/dist/components/tables/src/column.cjs +11 -3
  76. package/dist/components/tables/src/column.d.ts +29 -0
  77. package/dist/components/tables/src/column.js +11 -3
  78. package/dist/components/tables/src/columns.d.ts +7 -0
  79. package/dist/components/tables/src/columns3.cjs +1 -7
  80. package/dist/components/tables/src/columns3.js +1 -7
  81. package/dist/components/tables/src/index2.cjs +2 -2
  82. package/dist/components/tables/src/index2.js +2 -2
  83. package/dist/components/tablesv/src/column.cjs +11 -3
  84. package/dist/components/tablesv/src/column.d.ts +25 -0
  85. package/dist/components/tablesv/src/column.js +11 -3
  86. package/dist/components/tablesv/src/columns.d.ts +7 -0
  87. package/dist/components/tablesv/src/columns3.cjs +1 -7
  88. package/dist/components/tablesv/src/columns3.js +1 -7
  89. package/dist/components/tablesv/src/index2.cjs +2 -2
  90. package/dist/components/tablesv/src/index2.js +2 -2
  91. package/dist/components/uploads/src/util.cjs +2 -3
  92. package/dist/components/uploads/src/util.d.ts +7 -0
  93. package/dist/components/uploads/src/util.js +2 -3
  94. package/dist/css/forms-item.css +49 -0
  95. package/dist/css/forms-items.css +18 -0
  96. package/dist/css/forms.css +18 -0
  97. package/dist/css/index.css +18 -0
  98. package/dist/css/page.css +18 -0
  99. package/dist/directives/adjust/index.cjs +4 -8
  100. package/dist/directives/adjust/index.js +4 -8
  101. package/dist/directives/drag/index.cjs +6 -1
  102. package/dist/directives/drag/index.js +6 -1
  103. package/dist/directives/expose/index.cjs +6 -0
  104. package/dist/directives/expose/index.js +6 -0
  105. package/dist/directives/inserted/index.cjs +5 -0
  106. package/dist/directives/inserted/index.js +5 -0
  107. package/dist/directives/locus/index.cjs +5 -0
  108. package/dist/directives/locus/index.js +5 -0
  109. package/dist/directives/scroll/index.cjs +10 -0
  110. package/dist/directives/scroll/index.d.ts +0 -5
  111. package/dist/directives/scroll/index.js +10 -0
  112. package/dist/directives/sortable/index.cjs +5 -0
  113. package/dist/directives/sortable/index.js +5 -0
  114. package/dist/directives/stick/index.cjs +13 -8
  115. package/dist/directives/stick/index.js +13 -8
  116. package/dist/hooks/attrs-default/index.d.ts +5 -3
  117. package/dist/hooks/compons/index.d.ts +13 -0
  118. package/dist/hooks/cssname/index.cjs +1 -1
  119. package/dist/hooks/cssname/index.d.ts +22 -1
  120. package/dist/hooks/cssname/index.js +1 -1
  121. package/dist/hooks/default-config/index.d.ts +10 -0
  122. package/dist/hooks/expose/index.cjs +2 -0
  123. package/dist/hooks/expose/index.d.ts +6 -0
  124. package/dist/hooks/expose/index.js +2 -0
  125. package/dist/hooks/full-screen/index.d.ts +6 -0
  126. package/dist/hooks/global-config/index.d.ts +16 -0
  127. package/dist/hooks/inherit/index.cjs +2 -0
  128. package/dist/hooks/inherit/index.d.ts +8 -0
  129. package/dist/hooks/inherit/index.js +2 -0
  130. package/dist/hooks/locale/index.d.ts +24 -0
  131. package/dist/hooks/props-default/index.d.ts +14 -5
  132. package/dist/icons/iconify.d.ts +7 -0
  133. package/dist/icons/iconifyCss.d.ts +6 -0
  134. package/dist/icons/index.json +1 -1
  135. package/dist/index.css +18 -0
  136. package/dist/type.d.ts +8 -0
  137. package/dist/utils/local.cjs +12 -6
  138. package/dist/utils/local.js +12 -6
  139. package/dist/utils/util.cjs +7 -5
  140. package/dist/utils/util.js +7 -5
  141. package/package.json +3 -3
@@ -35,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
35
35
  const rowHeight = vue.computed(() => {
36
36
  return props.rowHeight ?? prs.rowHeight ?? (form == null ? void 0 : form.rowHeight);
37
37
  });
38
+ const onUpform = (...arr) => emit("upform", ...arr);
38
39
  function setLabelWidth(v) {
39
40
  if (v.hideLabel ?? prs.hideLabel) {
40
41
  return "0px";
@@ -65,12 +66,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
65
66
  }), {
66
67
  default: vue.withCtx(() => [
67
68
  vue.createVNode(vue.unref(index$4.FormsDiv), {
69
+ index: vue.unref(prs).index,
68
70
  listobj: vue.unref(props),
69
71
  optionss: vue.unref(prs).optionss,
70
72
  valueobj: vue.unref(prs).valueobj,
71
- onUpform: _cache[0] || (_cache[0] = (...arr) => emit("upform", ...arr)),
72
73
  modelValue: value.value,
73
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
74
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
75
+ onUpform
74
76
  }, vue.createSlots({ _: 2 }, [
75
77
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
76
78
  return {
@@ -80,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
80
82
  ])
81
83
  };
82
84
  })
83
- ]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])
85
+ ]), 1032, ["index", "listobj", "optionss", "valueobj", "modelValue"])
84
86
  ]),
85
87
  _: 3
86
88
  }, 16, ["class", "prop", "required", "rules", "label-width"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.FormItem), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
@@ -96,21 +98,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
96
98
  }), {
97
99
  label: vue.withCtx(() => [
98
100
  vue.createVNode(vue.unref(label.default), {
101
+ index: vue.unref(prs).index,
99
102
  value: value.value,
100
103
  label: vue.unref(props).label,
101
104
  listobj: vue.unref(props),
102
105
  optionss: vue.unref(prs).optionss,
103
106
  valueobj: vue.unref(prs).valueobj
104
- }, null, 8, ["value", "label", "listobj", "optionss", "valueobj"])
107
+ }, null, 8, ["index", "value", "label", "listobj", "optionss", "valueobj"])
105
108
  ]),
106
109
  default: vue.withCtx(() => [
107
110
  vue.createVNode(vue.unref(index$4.FormsDiv), {
111
+ index: vue.unref(prs).index,
108
112
  listobj: vue.unref(props),
109
113
  optionss: vue.unref(prs).optionss,
110
114
  valueobj: vue.unref(prs).valueobj,
111
115
  modelValue: value.value,
112
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
113
- onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
116
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
117
+ onUpform
114
118
  }, vue.createSlots({ _: 2 }, [
115
119
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
116
120
  return {
@@ -120,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
120
124
  ])
121
125
  };
122
126
  })
123
- ]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])
127
+ ]), 1032, ["index", "listobj", "optionss", "valueobj", "modelValue"])
124
128
  ]),
125
129
  _: 3
126
130
  }, 16, ["class", "prop", "required", "rules", "label-width"]))
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  const rowHeight = computed(() => {
34
34
  return props.rowHeight ?? prs.rowHeight ?? (form == null ? void 0 : form.rowHeight);
35
35
  });
36
+ const onUpform = (...arr) => emit("upform", ...arr);
36
37
  function setLabelWidth(v) {
37
38
  if (v.hideLabel ?? prs.hideLabel) {
38
39
  return "0px";
@@ -63,12 +64,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
64
  }), {
64
65
  default: withCtx(() => [
65
66
  createVNode(unref(FormsDiv), {
67
+ index: unref(prs).index,
66
68
  listobj: unref(props),
67
69
  optionss: unref(prs).optionss,
68
70
  valueobj: unref(prs).valueobj,
69
- onUpform: _cache[0] || (_cache[0] = (...arr) => emit("upform", ...arr)),
70
71
  modelValue: value.value,
71
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
72
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
73
+ onUpform
72
74
  }, createSlots({ _: 2 }, [
73
75
  renderList(Object.keys(unref(slots)), (k) => {
74
76
  return {
@@ -78,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
80
  ])
79
81
  };
80
82
  })
81
- ]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])
83
+ ]), 1032, ["index", "listobj", "optionss", "valueobj", "modelValue"])
82
84
  ]),
83
85
  _: 3
84
86
  }, 16, ["class", "prop", "required", "rules", "label-width"])) : (openBlock(), createBlock(unref(FormItem), mergeProps({ key: 1 }, unref(attrs).assem, {
@@ -94,21 +96,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
96
  }), {
95
97
  label: withCtx(() => [
96
98
  createVNode(unref(Lable), {
99
+ index: unref(prs).index,
97
100
  value: value.value,
98
101
  label: unref(props).label,
99
102
  listobj: unref(props),
100
103
  optionss: unref(prs).optionss,
101
104
  valueobj: unref(prs).valueobj
102
- }, null, 8, ["value", "label", "listobj", "optionss", "valueobj"])
105
+ }, null, 8, ["index", "value", "label", "listobj", "optionss", "valueobj"])
103
106
  ]),
104
107
  default: withCtx(() => [
105
108
  createVNode(unref(FormsDiv), {
109
+ index: unref(prs).index,
106
110
  listobj: unref(props),
107
111
  optionss: unref(prs).optionss,
108
112
  valueobj: unref(prs).valueobj,
109
113
  modelValue: value.value,
110
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
111
- onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
114
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
115
+ onUpform
112
116
  }, createSlots({ _: 2 }, [
113
117
  renderList(Object.keys(unref(slots)), (k) => {
114
118
  return {
@@ -118,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
122
  ])
119
123
  };
120
124
  })
121
- ]), 1032, ["listobj", "optionss", "valueobj", "modelValue"])
125
+ ]), 1032, ["index", "listobj", "optionss", "valueobj", "modelValue"])
122
126
  ]),
123
127
  _: 3
124
128
  }, 16, ["class", "prop", "required", "rules", "label-width"]))
@@ -1,5 +1,24 @@
1
1
  import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
+ index: {
4
+ type: {
5
+ (arrayLength: number): number[];
6
+ (...items: number[]): number[];
7
+ new (arrayLength: number): number[];
8
+ new (...items: number[]): number[];
9
+ isArray(arg: any): arg is any[];
10
+ readonly prototype: any[];
11
+ from<T>(arrayLike: ArrayLike<T>): T[];
12
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
14
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
15
+ of<T>(...items: T[]): T[];
16
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
17
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
18
+ readonly [Symbol.species]: ArrayConstructor;
19
+ };
20
+ default(): never[];
21
+ };
3
22
  optionss: {
4
23
  type: () => ObjAny;
5
24
  default(): {};
@@ -25,6 +44,25 @@ declare const _default: DefineComponent<ExtractPropTypes<{
25
44
  }>, () => VNode<RendererNode, RendererElement, {
26
45
  [key: string]: any;
27
46
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, string[], string, PublicProps, Readonly< ExtractPropTypes<{
47
+ index: {
48
+ type: {
49
+ (arrayLength: number): number[];
50
+ (...items: number[]): number[];
51
+ new (arrayLength: number): number[];
52
+ new (...items: number[]): number[];
53
+ isArray(arg: any): arg is any[];
54
+ readonly prototype: any[];
55
+ from<T>(arrayLike: ArrayLike<T>): T[];
56
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
57
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
58
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
59
+ of<T>(...items: T[]): T[];
60
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
61
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
62
+ readonly [Symbol.species]: ArrayConstructor;
63
+ };
64
+ default(): never[];
65
+ };
28
66
  optionss: {
29
67
  type: () => ObjAny;
30
68
  default(): {};
@@ -51,8 +89,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
51
89
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
52
90
  }>, {
53
91
  modelValue: Record<string, any>;
54
- listobj: ListObj;
92
+ index: number[];
55
93
  optionss: ObjAny;
94
+ listobj: ListObj;
56
95
  hideLabel: boolean;
57
96
  }, {}, {}, {}, never, ComponentProvideOptions, true, {}, any>;
58
97
  export default _default;
@@ -7,7 +7,7 @@ const index = require("../../../hooks/compons/index.cjs");
7
7
  function render(props, emit, slots, form) {
8
8
  let label = props.label ?? "";
9
9
  if (label) {
10
- const index$1 = 0;
10
+ const index$1 = props.index;
11
11
  const compons = index.useComponsGet(config.provides.compons);
12
12
  const data = props.valueobj;
13
13
  const optionss = props.options || {};
@@ -36,6 +36,12 @@ const Lable = vue.defineComponent({
36
36
  emits: [],
37
37
  expose: [],
38
38
  props: {
39
+ index: {
40
+ type: Array,
41
+ default() {
42
+ return [];
43
+ }
44
+ },
39
45
  /**
40
46
  * @props { Object } data 表单数据
41
47
  */
@@ -1,5 +1,24 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
+ index: {
4
+ type: {
5
+ (arrayLength: number): number[];
6
+ (...items: number[]): number[];
7
+ new (arrayLength: number): number[];
8
+ new (...items: number[]): number[];
9
+ isArray(arg: any): arg is any[];
10
+ readonly prototype: any[];
11
+ from<T>(arrayLike: ArrayLike<T>): T[];
12
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
14
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
15
+ of<T>(...items: T[]): T[];
16
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
17
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
18
+ readonly [Symbol.species]: ArrayConstructor;
19
+ };
20
+ default(): never[];
21
+ };
3
22
  /**
4
23
  * @props { Object } data 表单数据
5
24
  */
@@ -28,6 +47,25 @@ declare const _default: DefineComponent<ExtractPropTypes<{
28
47
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
29
48
  };
30
49
  }>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, never[], never, PublicProps, Readonly< ExtractPropTypes<{
50
+ index: {
51
+ type: {
52
+ (arrayLength: number): number[];
53
+ (...items: number[]): number[];
54
+ new (arrayLength: number): number[];
55
+ new (...items: number[]): number[];
56
+ isArray(arg: any): arg is any[];
57
+ readonly prototype: any[];
58
+ from<T>(arrayLike: ArrayLike<T>): T[];
59
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
60
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
61
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
62
+ of<T>(...items: T[]): T[];
63
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
64
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
65
+ readonly [Symbol.species]: ArrayConstructor;
66
+ };
67
+ default(): never[];
68
+ };
31
69
  /**
32
70
  * @props { Object } data 表单数据
33
71
  */
@@ -57,7 +95,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
57
95
  };
58
96
  }>> & Readonly<{}>, {
59
97
  value: Record<string, any>;
60
- listobj: ListObj;
98
+ index: number[];
61
99
  optionss: ObjAny;
100
+ listobj: ListObj;
62
101
  }, {}, {}, {}, never, ComponentProvideOptions, true, {}, any>;
63
102
  export default _default;
@@ -5,7 +5,7 @@ import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  function render(props, emit, slots, form) {
6
6
  let label = props.label ?? "";
7
7
  if (label) {
8
- const index = 0;
8
+ const index = props.index;
9
9
  const compons = useComponsGet(provides.compons);
10
10
  const data = props.valueobj;
11
11
  const optionss = props.options || {};
@@ -34,6 +34,12 @@ const Lable = defineComponent({
34
34
  emits: [],
35
35
  expose: [],
36
36
  props: {
37
+ index: {
38
+ type: Array,
39
+ default() {
40
+ return [];
41
+ }
42
+ },
37
43
  /**
38
44
  * @props { Object } data 表单数据
39
45
  */
@@ -46,4 +46,22 @@
46
46
  .forms-item-el-item.is-top .el-form-item__content {
47
47
  min-height: var(--forms-item-row-height);
48
48
  display: grid;
49
+ }
50
+
51
+ .forms-items {
52
+ width: 100%;
53
+ }
54
+ .forms-items.row {
55
+ display: flex;
56
+ flex-direction: row;
57
+ }
58
+ .forms-items.column {
59
+ display: flex;
60
+ flex-direction: column;
61
+ }
62
+ .forms-items-li.no-error {
63
+ --el-color-danger: var(--el-border-color);
64
+ }
65
+ .forms-items-li.no-error .el-input__wrapper.is-focus {
66
+ --el-color-danger: var(--el-input-focus-border);
49
67
  }
@@ -1,2 +1,23 @@
1
+ @use '../scss/common.scss' as *;
1
2
  @use '../forms-div/index.scss' as *;
2
3
  @use '../forms-item/index.scss' as *;
4
+ $forms-items: 'forms-items';
5
+ @include b($forms-items) {
6
+ width: 100%;
7
+ &.row {
8
+ display: flex;
9
+ flex-direction: row;
10
+ }
11
+ &.column {
12
+ display: flex;
13
+ flex-direction: column;
14
+ }
15
+ &-li {
16
+ &.no-error {
17
+ #{v(e()+'color-danger')}: var(#{v(e() + 'border-color')});
18
+ .#{el('input', '', 'wrapper')}.#{is('focus')} {
19
+ #{v(e()+'color-danger')}: var(#{v(e() + 'input-focus-border')});
20
+ }
21
+ }
22
+ }
23
+ }
@@ -2,6 +2,15 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const name = "forms-items";
4
4
  const dataProps = {
5
+ mode: {
6
+ type: String
7
+ },
8
+ index: {
9
+ type: Array,
10
+ default() {
11
+ return [];
12
+ }
13
+ },
5
14
  /**
6
15
  * @props { Object<ObjAny>} options={}
7
16
  * 选择数据集合
@@ -4,6 +4,28 @@ import { ExtractPropTypes } from 'vue';
4
4
  */
5
5
  export declare const name = "forms-items";
6
6
  export declare const dataProps: {
7
+ mode: {
8
+ type: StringConstructor;
9
+ };
10
+ index: {
11
+ type: {
12
+ (arrayLength: number): number[];
13
+ (...items: number[]): number[];
14
+ new (arrayLength: number): number[];
15
+ new (...items: number[]): number[];
16
+ isArray(arg: any): arg is any[];
17
+ readonly prototype: any[];
18
+ from<T>(arrayLike: ArrayLike<T>): T[];
19
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
20
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
21
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
22
+ of<T>(...items: T[]): T[];
23
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
24
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
25
+ readonly [Symbol.species]: ArrayConstructor;
26
+ };
27
+ default(): never[];
28
+ };
7
29
  /**
8
30
  * @props { Object<ObjAny>} options={}
9
31
  * 选择数据集合
@@ -1,5 +1,14 @@
1
1
  const name = "forms-items";
2
2
  const dataProps = {
3
+ mode: {
4
+ type: String
5
+ },
6
+ index: {
7
+ type: Array,
8
+ default() {
9
+ return [];
10
+ }
11
+ },
3
12
  /**
4
13
  * @props { Object<ObjAny>} options={}
5
14
  * 选择数据集合
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
24
24
  const emit = __emit;
25
25
  const binds = vue.computed(() => {
26
26
  const binds2 = {};
27
- const no = /* @__PURE__ */ new Set(["modelValue", "children", "listobj"]);
27
+ const no = /* @__PURE__ */ new Set(["modelValue", "children", "index", "listobj"]);
28
28
  for (const key of Object.keys(prs)) {
29
29
  if (!no.has(key)) {
30
30
  const v = props[key];
@@ -35,10 +35,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
35
35
  }
36
36
  return binds2;
37
37
  });
38
- const defaultValue = {};
39
38
  const value = vue.computed({
40
39
  get() {
41
- return prs.modelValue ?? defaultValue;
40
+ return prs.modelValue;
42
41
  },
43
42
  set(value2) {
44
43
  emit("update:modelValue", value2);
@@ -47,6 +46,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
47
46
  function setKey(value2, index2) {
48
47
  return [index2, value2.label, value2.prop, value2.compon].join(",");
49
48
  }
49
+ const onUpform = (...arr) => emit("upform", ...arr);
50
50
  function setStyles(v) {
51
51
  const style = v.style || {};
52
52
  let vst;
@@ -56,12 +56,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
56
56
  vst = style;
57
57
  }
58
58
  const obj = {};
59
- const width = v.rowWidth ?? props.rowWidth ?? form.rowWidth;
59
+ const minWidth = v.minWidth ?? props.rowMinWidth;
60
+ const width = v.width ?? v.rowWidth ?? props.rowWidth ?? form.rowWidth;
60
61
  if (width) {
61
62
  obj.width = width;
62
63
  }
64
+ if (minWidth) {
65
+ obj.minWidth = minWidth;
66
+ }
63
67
  if (v.whole) {
64
68
  obj.display = "block";
69
+ obj.width = "100%";
70
+ }
71
+ if (v.flex) {
72
+ obj.flex = v.flex;
73
+ } else if (!obj.width) {
74
+ obj.flex = 0;
65
75
  }
66
76
  return setObjStyle.setObjStyle(vst, obj);
67
77
  }
@@ -70,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
70
80
  });
71
81
  return (_ctx, _cache) => {
72
82
  return vue.openBlock(), vue.createElementBlock("div", {
73
- class: vue.normalizeClass(vue.unref(cs).z())
83
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).co(vue.unref(prs).mode)])
74
84
  }, [
75
85
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(props).children, (item, index2) => {
76
86
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
@@ -82,12 +92,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
82
92
  key: 0,
83
93
  ref_for: true
84
94
  }, binds.value, {
95
+ index: [...vue.unref(prs).index, index2],
85
96
  listobj: item,
86
97
  optionss: vue.unref(prs).optionss,
87
98
  valueobj: vue.unref(prs).valueobj,
88
99
  modelValue: value.value,
89
100
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
90
- onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
101
+ onUpform
91
102
  }), vue.createSlots({ _: 2 }, [
92
103
  vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
93
104
  return {
@@ -97,16 +108,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
97
108
  ])
98
109
  };
99
110
  })
100
- ]), 1040, ["listobj", "optionss", "valueobj", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.FormsItem), vue.mergeProps({
111
+ ]), 1040, ["index", "listobj", "optionss", "valueobj", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.FormsItem), vue.mergeProps({
101
112
  key: 1,
102
113
  ref_for: true
103
114
  }, binds.value, {
115
+ index: [...vue.unref(prs).index, index2],
104
116
  listobj: item,
105
117
  optionss: vue.unref(prs).optionss,
106
118
  valueobj: vue.unref(prs).valueobj,
107
119
  modelValue: value.value,
108
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
109
- onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
120
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
121
+ onUpform
110
122
  }), vue.createSlots({ _: 2 }, [
111
123
  vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
112
124
  return {
@@ -116,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
116
128
  ])
117
129
  };
118
130
  })
119
- ]), 1040, ["listobj", "optionss", "valueobj", "modelValue"]))
131
+ ]), 1040, ["index", "listobj", "optionss", "valueobj", "modelValue"]))
120
132
  ], 6)), [
121
133
  [vue.vShow, !vue.unref(use.useHide)(item, value.value)]
122
134
  ]);
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  const emit = __emit;
23
23
  const binds = computed(() => {
24
24
  const binds2 = {};
25
- const no = /* @__PURE__ */ new Set(["modelValue", "children", "listobj"]);
25
+ const no = /* @__PURE__ */ new Set(["modelValue", "children", "index", "listobj"]);
26
26
  for (const key of Object.keys(prs)) {
27
27
  if (!no.has(key)) {
28
28
  const v = props[key];
@@ -33,10 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  }
34
34
  return binds2;
35
35
  });
36
- const defaultValue = {};
37
36
  const value = computed({
38
37
  get() {
39
- return prs.modelValue ?? defaultValue;
38
+ return prs.modelValue;
40
39
  },
41
40
  set(value2) {
42
41
  emit("update:modelValue", value2);
@@ -45,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
44
  function setKey(value2, index) {
46
45
  return [index, value2.label, value2.prop, value2.compon].join(",");
47
46
  }
47
+ const onUpform = (...arr) => emit("upform", ...arr);
48
48
  function setStyles(v) {
49
49
  const style = v.style || {};
50
50
  let vst;
@@ -54,12 +54,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  vst = style;
55
55
  }
56
56
  const obj = {};
57
- const width = v.rowWidth ?? props.rowWidth ?? form.rowWidth;
57
+ const minWidth = v.minWidth ?? props.rowMinWidth;
58
+ const width = v.width ?? v.rowWidth ?? props.rowWidth ?? form.rowWidth;
58
59
  if (width) {
59
60
  obj.width = width;
60
61
  }
62
+ if (minWidth) {
63
+ obj.minWidth = minWidth;
64
+ }
61
65
  if (v.whole) {
62
66
  obj.display = "block";
67
+ obj.width = "100%";
68
+ }
69
+ if (v.flex) {
70
+ obj.flex = v.flex;
71
+ } else if (!obj.width) {
72
+ obj.flex = 0;
63
73
  }
64
74
  return setObjStyle(vst, obj);
65
75
  }
@@ -68,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
78
  });
69
79
  return (_ctx, _cache) => {
70
80
  return openBlock(), createElementBlock("div", {
71
- class: normalizeClass(unref(cs).z())
81
+ class: normalizeClass([unref(cs).z(), unref(cs).co(unref(prs).mode)])
72
82
  }, [
73
83
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(props).children, (item, index) => {
74
84
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -80,12 +90,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
90
  key: 0,
81
91
  ref_for: true
82
92
  }, binds.value, {
93
+ index: [...unref(prs).index, index],
83
94
  listobj: item,
84
95
  optionss: unref(prs).optionss,
85
96
  valueobj: unref(prs).valueobj,
86
97
  modelValue: value.value,
87
98
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
88
- onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
99
+ onUpform
89
100
  }), createSlots({ _: 2 }, [
90
101
  renderList(Object.keys(unref(slots)), (k, i) => {
91
102
  return {
@@ -95,16 +106,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
106
  ])
96
107
  };
97
108
  })
98
- ]), 1040, ["listobj", "optionss", "valueobj", "modelValue"])) : (openBlock(), createBlock(unref(FormsItem), mergeProps({
109
+ ]), 1040, ["index", "listobj", "optionss", "valueobj", "modelValue"])) : (openBlock(), createBlock(unref(FormsItem), mergeProps({
99
110
  key: 1,
100
111
  ref_for: true
101
112
  }, binds.value, {
113
+ index: [...unref(prs).index, index],
102
114
  listobj: item,
103
115
  optionss: unref(prs).optionss,
104
116
  valueobj: unref(prs).valueobj,
105
117
  modelValue: value.value,
106
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
107
- onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
118
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event),
119
+ onUpform
108
120
  }), createSlots({ _: 2 }, [
109
121
  renderList(Object.keys(unref(slots)), (k, i) => {
110
122
  return {
@@ -114,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
126
  ])
115
127
  };
116
128
  })
117
- ]), 1040, ["listobj", "optionss", "valueobj", "modelValue"]))
129
+ ]), 1040, ["index", "listobj", "optionss", "valueobj", "modelValue"]))
118
130
  ], 6)), [
119
131
  [vShow, !unref(useHide)(item, value.value)]
120
132
  ]);
@@ -1,2 +1,3 @@
1
1
  @use '../../forms-div/style/index2.scss' as *;
2
2
  @use '../../forms-item/style/index2.scss' as *;
3
+ @use '../index.scss' as *;
@@ -47,8 +47,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
47
47
  style.push("rotateX(180deg)");
48
48
  break;
49
49
  case "both":
50
- style.push("rotateX(180deg)");
51
- style.push("rotateY(180deg)");
50
+ style.push("rotateX(180deg)", "rotateY(180deg)");
52
51
  break;
53
52
  }
54
53
  }
@@ -45,8 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  style.push("rotateX(180deg)");
46
46
  break;
47
47
  case "both":
48
- style.push("rotateX(180deg)");
49
- style.push("rotateY(180deg)");
48
+ style.push("rotateX(180deg)", "rotateY(180deg)");
50
49
  break;
51
50
  }
52
51
  }
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
32
  const width = vue.ref(200);
33
33
  const refInput = vue.ref();
34
34
  const options = util.useStorage(
35
- props.storage || (/* @__PURE__ */ new Date()).getTime() + "",
35
+ props.storage || Date.now() + "",
36
36
  []
37
37
  );
38
38
  const value = vue.ref("");