@fangzhongya/fang-ui 0.1.47 → 0.1.49

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 (115) hide show
  1. package/dist/components/common/compons/components.cjs +15 -15
  2. package/dist/components/common/compons/components.js +15 -15
  3. package/dist/components/date-picker/style/element.scss +1 -1
  4. package/dist/components/dates-picker/src/util.cjs +4 -55
  5. package/dist/components/dates-picker/src/util.js +4 -55
  6. package/dist/components/double/src/index2.cjs +39 -36
  7. package/dist/components/double/src/index2.js +39 -36
  8. package/dist/components/forms-div/src/index2.cjs +3 -5
  9. package/dist/components/forms-div/src/index2.js +3 -5
  10. package/dist/components/index.cjs +72 -88
  11. package/dist/components/index.d.ts +0 -8
  12. package/dist/components/index.js +0 -16
  13. package/dist/components/list/src/index2.cjs +2 -3
  14. package/dist/components/list/src/index2.js +2 -3
  15. package/dist/components/list/src/util.cjs +14 -10
  16. package/dist/components/list/src/util.d.ts +2 -7
  17. package/dist/components/list/src/util.js +6 -2
  18. package/dist/expand/{chunk-PBGPF77Y.cjs → chunk-A7IW6WRD.cjs} +0 -8
  19. package/dist/expand/{chunk-S57QISTZ.js → chunk-L4FI5HCY.js} +0 -8
  20. package/dist/expand/components.cjs +5 -5
  21. package/dist/expand/components.js +1 -1
  22. package/dist/expand/config.cjs +2 -2
  23. package/dist/expand/config.js +1 -1
  24. package/dist/hooks/compons/index.cjs +1 -1
  25. package/dist/hooks/compons/index.d.ts +1 -1
  26. package/dist/hooks/compons/index.js +1 -1
  27. package/dist/hooks/compons/load.d.ts +1 -0
  28. package/dist/hooks/event-aliass/index.cjs +1 -1
  29. package/dist/hooks/event-aliass/index.js +1 -1
  30. package/dist/icons/index.json +1 -1
  31. package/dist/index.cjs +94 -110
  32. package/dist/index.js +0 -16
  33. package/package.json +5 -5
  34. package/dist/components/choice-select/index.cjs +0 -8
  35. package/dist/components/choice-select/index.d.ts +0 -5
  36. package/dist/components/choice-select/index.js +0 -8
  37. package/dist/components/choice-select/src/data.cjs +0 -26
  38. package/dist/components/choice-select/src/data.d.ts +0 -34
  39. package/dist/components/choice-select/src/data.js +0 -26
  40. package/dist/components/choice-select/src/index.cjs +0 -4
  41. package/dist/components/choice-select/src/index.js +0 -4
  42. package/dist/components/choice-select/src/index2.cjs +0 -30
  43. package/dist/components/choice-select/src/index2.js +0 -30
  44. package/dist/components/company-select/index.cjs +0 -8
  45. package/dist/components/company-select/index.d.ts +0 -5
  46. package/dist/components/company-select/index.js +0 -8
  47. package/dist/components/company-select/src/data.cjs +0 -76
  48. package/dist/components/company-select/src/data.d.ts +0 -109
  49. package/dist/components/company-select/src/data.js +0 -76
  50. package/dist/components/company-select/src/index.cjs +0 -4
  51. package/dist/components/company-select/src/index.js +0 -4
  52. package/dist/components/company-select/src/index2.cjs +0 -201
  53. package/dist/components/company-select/src/index2.js +0 -201
  54. package/dist/components/department-select/index.cjs +0 -8
  55. package/dist/components/department-select/index.d.ts +0 -5
  56. package/dist/components/department-select/index.js +0 -8
  57. package/dist/components/department-select/src/data.cjs +0 -88
  58. package/dist/components/department-select/src/data.d.ts +0 -128
  59. package/dist/components/department-select/src/data.js +0 -88
  60. package/dist/components/department-select/src/index.cjs +0 -4
  61. package/dist/components/department-select/src/index.js +0 -4
  62. package/dist/components/department-select/src/index2.cjs +0 -60
  63. package/dist/components/department-select/src/index2.js +0 -60
  64. package/dist/components/role-select/index.cjs +0 -8
  65. package/dist/components/role-select/index.d.ts +0 -5
  66. package/dist/components/role-select/index.js +0 -8
  67. package/dist/components/role-select/src/data.cjs +0 -79
  68. package/dist/components/role-select/src/data.d.ts +0 -107
  69. package/dist/components/role-select/src/data.js +0 -79
  70. package/dist/components/role-select/src/index.cjs +0 -4
  71. package/dist/components/role-select/src/index.js +0 -4
  72. package/dist/components/role-select/src/index2.cjs +0 -215
  73. package/dist/components/role-select/src/index2.js +0 -215
  74. package/dist/components/select-dialog/index.cjs +0 -8
  75. package/dist/components/select-dialog/index.d.ts +0 -5
  76. package/dist/components/select-dialog/index.js +0 -8
  77. package/dist/components/select-dialog/src/data.cjs +0 -92
  78. package/dist/components/select-dialog/src/data.d.ts +0 -131
  79. package/dist/components/select-dialog/src/data.js +0 -92
  80. package/dist/components/select-dialog/src/index.cjs +0 -4
  81. package/dist/components/select-dialog/src/index.js +0 -4
  82. package/dist/components/select-dialog/src/index2.cjs +0 -226
  83. package/dist/components/select-dialog/src/index2.js +0 -226
  84. package/dist/components/select-popover/index.cjs +0 -8
  85. package/dist/components/select-popover/index.d.ts +0 -5
  86. package/dist/components/select-popover/index.js +0 -8
  87. package/dist/components/select-popover/src/data.cjs +0 -38
  88. package/dist/components/select-popover/src/data.d.ts +0 -41
  89. package/dist/components/select-popover/src/data.js +0 -38
  90. package/dist/components/select-popover/src/index.cjs +0 -4
  91. package/dist/components/select-popover/src/index.js +0 -4
  92. package/dist/components/select-popover/src/index2.cjs +0 -177
  93. package/dist/components/select-popover/src/index2.js +0 -177
  94. package/dist/components/tree-select-box/index.cjs +0 -8
  95. package/dist/components/tree-select-box/index.d.ts +0 -5
  96. package/dist/components/tree-select-box/index.js +0 -8
  97. package/dist/components/tree-select-box/src/data.cjs +0 -100
  98. package/dist/components/tree-select-box/src/data.d.ts +0 -143
  99. package/dist/components/tree-select-box/src/data.js +0 -100
  100. package/dist/components/tree-select-box/src/index.cjs +0 -4
  101. package/dist/components/tree-select-box/src/index.js +0 -4
  102. package/dist/components/tree-select-box/src/index2.cjs +0 -255
  103. package/dist/components/tree-select-box/src/index2.js +0 -255
  104. package/dist/components/user-select/index.cjs +0 -8
  105. package/dist/components/user-select/index.d.ts +0 -5
  106. package/dist/components/user-select/index.js +0 -8
  107. package/dist/components/user-select/src/data.cjs +0 -99
  108. package/dist/components/user-select/src/data.d.ts +0 -144
  109. package/dist/components/user-select/src/data.js +0 -99
  110. package/dist/components/user-select/src/index.cjs +0 -4
  111. package/dist/components/user-select/src/index.js +0 -4
  112. package/dist/components/user-select/src/index2.cjs +0 -381
  113. package/dist/components/user-select/src/index2.js +0 -381
  114. /package/dist/components/{alert → texts}/index.css +0 -0
  115. /package/dist/css/{alert.css → texts.css} +0 -0
@@ -96,50 +96,42 @@ const index$28 = require("./audios/index.cjs");
96
96
  const index$29 = require("./images/index.cjs");
97
97
  const index$2a = require("./videos/index.cjs");
98
98
  const index$2b = require("./retract/index.cjs");
99
- const index$2c = require("./choice-select/index.cjs");
100
- const index$2d = require("./company-select/index.cjs");
101
- const index$2e = require("./department-select/index.cjs");
102
- const index$2f = require("./role-select/index.cjs");
103
- const index$2g = require("./select-dialog/index.cjs");
104
- const index$2h = require("./select-popover/index.cjs");
105
- const index$2i = require("./tree-select-box/index.cjs");
106
- const index$2j = require("./user-select/index.cjs");
107
- const index$2k = require("./buttons/index.cjs");
108
- const index$2l = require("./cascaders/index.cjs");
109
- const index$2m = require("./checks/index.cjs");
110
- const index$2n = require("./dates-divide/index.cjs");
111
- const index$2o = require("./dates-picker/index.cjs");
112
- const index$2p = require("./dates/index.cjs");
113
- const index$2q = require("./dates2/index.cjs");
114
- const index$2r = require("./double/index.cjs");
115
- const index$2s = require("./edit-float/index.cjs");
116
- const index$2t = require("./edit/index.cjs");
117
- const index$2u = require("./history/index.cjs");
118
- const index$2v = require("./input-array/index.cjs");
119
- const index$2w = require("./input-history/index.cjs");
120
- const index$2x = require("./input-num/index.cjs");
121
- const index$2y = require("./input-select/index.cjs");
122
- const index$2z = require("./inputs/index.cjs");
123
- const index$2A = require("./labels/index.cjs");
124
- const index$2B = require("./select-scroll/index.cjs");
125
- const index$2C = require("./selector/index.cjs");
126
- const index$2D = require("./selects/index.cjs");
127
- const index$2E = require("./sliders/index.cjs");
128
- const index$2F = require("./switchs/index.cjs");
129
- const index$2G = require("./texts/index.cjs");
130
- const index$2H = require("./uploads/index.cjs");
131
- const index$2I = require("./list/index.cjs");
132
- const index$2J = require("./lists/index.cjs");
133
- const index$2K = require("./listsp/index.cjs");
134
- const index$2L = require("./listspd/index.cjs");
135
- const index$2M = require("./paging/index.cjs");
136
- const index$2N = require("./tables/index.cjs");
137
- const index$2O = require("./tablesp/index.cjs");
138
- const index$2P = require("./tablespd/index.cjs");
139
- const index$2Q = require("./tabless/index.cjs");
140
- const index$2R = require("./tablesv/index.cjs");
141
- const index$2S = require("./tablesvp/index.cjs");
142
- const index$2T = require("./tablesvpd/index.cjs");
99
+ const index$2c = require("./buttons/index.cjs");
100
+ const index$2d = require("./cascaders/index.cjs");
101
+ const index$2e = require("./checks/index.cjs");
102
+ const index$2f = require("./dates-divide/index.cjs");
103
+ const index$2g = require("./dates-picker/index.cjs");
104
+ const index$2h = require("./dates/index.cjs");
105
+ const index$2i = require("./dates2/index.cjs");
106
+ const index$2j = require("./double/index.cjs");
107
+ const index$2k = require("./edit-float/index.cjs");
108
+ const index$2l = require("./edit/index.cjs");
109
+ const index$2m = require("./history/index.cjs");
110
+ const index$2n = require("./input-array/index.cjs");
111
+ const index$2o = require("./input-history/index.cjs");
112
+ const index$2p = require("./input-num/index.cjs");
113
+ const index$2q = require("./input-select/index.cjs");
114
+ const index$2r = require("./inputs/index.cjs");
115
+ const index$2s = require("./labels/index.cjs");
116
+ const index$2t = require("./select-scroll/index.cjs");
117
+ const index$2u = require("./selector/index.cjs");
118
+ const index$2v = require("./selects/index.cjs");
119
+ const index$2w = require("./sliders/index.cjs");
120
+ const index$2x = require("./switchs/index.cjs");
121
+ const index$2y = require("./texts/index.cjs");
122
+ const index$2z = require("./uploads/index.cjs");
123
+ const index$2A = require("./list/index.cjs");
124
+ const index$2B = require("./lists/index.cjs");
125
+ const index$2C = require("./listsp/index.cjs");
126
+ const index$2D = require("./listspd/index.cjs");
127
+ const index$2E = require("./paging/index.cjs");
128
+ const index$2F = require("./tables/index.cjs");
129
+ const index$2G = require("./tablesp/index.cjs");
130
+ const index$2H = require("./tablespd/index.cjs");
131
+ const index$2I = require("./tabless/index.cjs");
132
+ const index$2J = require("./tablesv/index.cjs");
133
+ const index$2K = require("./tablesvp/index.cjs");
134
+ const index$2L = require("./tablesvpd/index.cjs");
143
135
  const index$2 = require("element-plus/es/components/button/index");
144
136
  const index$4 = require("element-plus/es/components/card/index");
145
137
  const index$6 = require("element-plus/es/components/color-picker/index");
@@ -280,50 +272,42 @@ exports.Audios = index$28.Audios;
280
272
  exports.Images = index$29.Images;
281
273
  exports.Videos = index$2a.Videos;
282
274
  exports.Retract = index$2b.Retract;
283
- exports.ChoiceSelect = index$2c.ChoiceSelect;
284
- exports.CompanySelect = index$2d.CompanySelect;
285
- exports.DepartmentSelect = index$2e.DepartmentSelect;
286
- exports.RoleSelect = index$2f.RoleSelect;
287
- exports.SelectDialog = index$2g.SelectDialog;
288
- exports.SelectPopover = index$2h.SelectPopover;
289
- exports.TreeSelectBox = index$2i.TreeSelectBox;
290
- exports.UserSelect = index$2j.UserSelect;
291
- exports.Buttons = index$2k.Buttons;
292
- exports.Cascaders = index$2l.Cascaders;
293
- exports.Checks = index$2m.Checks;
294
- exports.DatesDivide = index$2n.DatesDivide;
295
- exports.DatesPicker = index$2o.DatesPicker;
296
- exports.Dates = index$2p.Dates;
297
- exports.Dates2 = index$2q.Dates2;
298
- exports.Double = index$2r.Double;
299
- exports.EditFloat = index$2s.EditFloat;
300
- exports.Edit = index$2t.Edit;
301
- exports.History = index$2u.History;
302
- exports.InputArray = index$2v.InputArray;
303
- exports.InputHistory = index$2w.InputHistory;
304
- exports.InputNum = index$2x.InputNum;
305
- exports.InputSelect = index$2y.InputSelect;
306
- exports.Inputs = index$2z.Inputs;
307
- exports.Labels = index$2A.Labels;
308
- exports.SelectScroll = index$2B.SelectScroll;
309
- exports.Selector = index$2C.Selector;
310
- exports.Selects = index$2D.Selects;
311
- exports.Sliders = index$2E.Sliders;
312
- exports.Switchs = index$2F.Switchs;
313
- exports.Texts = index$2G.Texts;
314
- exports.Uploads = index$2H.Uploads;
315
- exports.List = index$2I.List;
316
- exports.Lists = index$2J.Lists;
317
- exports.Listsp = index$2K.Listsp;
318
- exports.Listspd = index$2L.Listspd;
319
- exports.Paging = index$2M.Paging;
320
- exports.Tables = index$2N.Tables;
321
- exports.Tablesp = index$2O.Tablesp;
322
- exports.Tablespd = index$2P.Tablespd;
323
- exports.Tabless = index$2Q.Tabless;
324
- exports.Tablesv = index$2R.Tablesv;
325
- exports.Tablesvp = index$2S.Tablesvp;
326
- exports.Tablesvpd = index$2T.Tablesvpd;
275
+ exports.Buttons = index$2c.Buttons;
276
+ exports.Cascaders = index$2d.Cascaders;
277
+ exports.Checks = index$2e.Checks;
278
+ exports.DatesDivide = index$2f.DatesDivide;
279
+ exports.DatesPicker = index$2g.DatesPicker;
280
+ exports.Dates = index$2h.Dates;
281
+ exports.Dates2 = index$2i.Dates2;
282
+ exports.Double = index$2j.Double;
283
+ exports.EditFloat = index$2k.EditFloat;
284
+ exports.Edit = index$2l.Edit;
285
+ exports.History = index$2m.History;
286
+ exports.InputArray = index$2n.InputArray;
287
+ exports.InputHistory = index$2o.InputHistory;
288
+ exports.InputNum = index$2p.InputNum;
289
+ exports.InputSelect = index$2q.InputSelect;
290
+ exports.Inputs = index$2r.Inputs;
291
+ exports.Labels = index$2s.Labels;
292
+ exports.SelectScroll = index$2t.SelectScroll;
293
+ exports.Selector = index$2u.Selector;
294
+ exports.Selects = index$2v.Selects;
295
+ exports.Sliders = index$2w.Sliders;
296
+ exports.Switchs = index$2x.Switchs;
297
+ exports.Texts = index$2y.Texts;
298
+ exports.Uploads = index$2z.Uploads;
299
+ exports.List = index$2A.List;
300
+ exports.Lists = index$2B.Lists;
301
+ exports.Listsp = index$2C.Listsp;
302
+ exports.Listspd = index$2D.Listspd;
303
+ exports.Paging = index$2E.Paging;
304
+ exports.Tables = index$2F.Tables;
305
+ exports.Tablesp = index$2G.Tablesp;
306
+ exports.Tablespd = index$2H.Tablespd;
307
+ exports.Tabless = index$2I.Tabless;
308
+ exports.Tablesv = index$2J.Tablesv;
309
+ exports.Tablesvp = index$2K.Tablesvp;
310
+ exports.Tablesvpd = index$2L.Tablesvpd;
327
311
  Object.keys(index$2).forEach((k) => {
328
312
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
329
313
  enumerable: true,
@@ -93,14 +93,6 @@ export * from './audios/index';
93
93
  export * from './images/index';
94
94
  export * from './videos/index';
95
95
  export * from './retract/index';
96
- export * from './choice-select/index';
97
- export * from './company-select/index';
98
- export * from './department-select/index';
99
- export * from './role-select/index';
100
- export * from './select-dialog/index';
101
- export * from './select-popover/index';
102
- export * from './tree-select-box/index';
103
- export * from './user-select/index';
104
96
  export * from './buttons/index';
105
97
  export * from './cascaders/index';
106
98
  export * from './checks/index';
@@ -94,14 +94,6 @@ import { Audios } from "./audios/index.js";
94
94
  import { Images } from "./images/index.js";
95
95
  import { Videos } from "./videos/index.js";
96
96
  import { Retract } from "./retract/index.js";
97
- import { ChoiceSelect } from "./choice-select/index.js";
98
- import { CompanySelect } from "./company-select/index.js";
99
- import { DepartmentSelect } from "./department-select/index.js";
100
- import { RoleSelect } from "./role-select/index.js";
101
- import { SelectDialog } from "./select-dialog/index.js";
102
- import { SelectPopover } from "./select-popover/index.js";
103
- import { TreeSelectBox } from "./tree-select-box/index.js";
104
- import { UserSelect } from "./user-select/index.js";
105
97
  import { Buttons } from "./buttons/index.js";
106
98
  import { Cascaders } from "./cascaders/index.js";
107
99
  import { Checks } from "./checks/index.js";
@@ -204,11 +196,9 @@ export {
204
196
  CheckboxButton,
205
197
  CheckboxGroup,
206
198
  Checks,
207
- ChoiceSelect,
208
199
  Collapse,
209
200
  CollapseItem,
210
201
  ColorPicker,
211
- CompanySelect,
212
202
  ConfigProvider,
213
203
  DatePicker,
214
204
  DatePickerPanel,
@@ -216,7 +206,6 @@ export {
216
206
  Dates2,
217
207
  DatesDivide,
218
208
  DatesPicker,
219
- DepartmentSelect,
220
209
  Dialog,
221
210
  Dialogs,
222
211
  Divider,
@@ -280,12 +269,9 @@ export {
280
269
  RadioGroup,
281
270
  Retract,
282
271
  RightKey,
283
- RoleSelect,
284
272
  Scrollbar,
285
273
  SeamlessScroll,
286
274
  Select,
287
- SelectDialog,
288
- SelectPopover,
289
275
  SelectScroll,
290
276
  Selector,
291
277
  Selects,
@@ -317,10 +303,8 @@ export {
317
303
  Transfer,
318
304
  Tree,
319
305
  TreeSelect,
320
- TreeSelectBox,
321
306
  Upload,
322
307
  Uploads,
323
- UserSelect,
324
308
  Videos,
325
309
  Window
326
310
  };
@@ -32,7 +32,7 @@ const _sfc_main = vue.defineComponent({
32
32
  props: index.getProps(data.dataProps),
33
33
  setup(prs, { emit, slots }) {
34
34
  const props = index.usePropsDefault(data.name, prs, data.dataProps);
35
- const compons = index$1.useCompons(data.name, props);
35
+ index$1.useCompons(data.name, props);
36
36
  const cs = index$2.useCssName(data.name);
37
37
  const refDom = vue.ref();
38
38
  const isfocus = vue.ref(false);
@@ -209,7 +209,7 @@ const _sfc_main = vue.defineComponent({
209
209
  width: obj.labelWidth || props.labelWidth
210
210
  }
211
211
  },
212
- [util.setLabel(obj, props, compons, emit, slots, index2)]
212
+ [util.setLabel(obj, props, emit, slots, index2)]
213
213
  )
214
214
  ]
215
215
  );
@@ -267,7 +267,6 @@ const _sfc_main = vue.defineComponent({
267
267
  obj,
268
268
  props.value,
269
269
  props,
270
- compons,
271
270
  emit,
272
271
  slots,
273
272
  isComponSelected,
@@ -30,7 +30,7 @@ const _sfc_main = defineComponent({
30
30
  props: getProps(dataProps),
31
31
  setup(prs, { emit, slots }) {
32
32
  const props = usePropsDefault(name, prs, dataProps);
33
- const compons = useCompons(name, props);
33
+ useCompons(name, props);
34
34
  const cs = useCssName(name);
35
35
  const refDom = ref();
36
36
  const isfocus = ref(false);
@@ -207,7 +207,7 @@ const _sfc_main = defineComponent({
207
207
  width: obj.labelWidth || props.labelWidth
208
208
  }
209
209
  },
210
- [setLabel(obj, props, compons, emit, slots, index)]
210
+ [setLabel(obj, props, emit, slots, index)]
211
211
  )
212
212
  ]
213
213
  );
@@ -265,7 +265,6 @@ const _sfc_main = defineComponent({
265
265
  obj,
266
266
  props.value,
267
267
  props,
268
- compons,
269
268
  emit,
270
269
  slots,
271
270
  isComponSelected,
@@ -2,29 +2,32 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("vue");
4
4
  const use = require("../../common/use.cjs");
5
+ const index = require("../../../hooks/compons/index.cjs");
6
+ const data = require("./data.cjs");
5
7
  const util = require("../../tables/common/util.cjs");
6
- const setClass = (item, data, index) => {
7
- const v = data[item.state ?? item.prop];
8
+ const setClass = (item, data2, index2) => {
9
+ const v = data2[item.state ?? item.prop];
8
10
  if (item.setcss) {
9
- return item.setcss(item, data, v, index);
11
+ return item.setcss(item, data2, v, index2);
10
12
  }
11
13
  return v;
12
14
  };
13
- function setSslot(obj, data, props, compons, emit, slots, isComponSelected, index) {
15
+ function setSslot(obj, data$1, props, emit, slots, isComponSelected, index$1) {
14
16
  const optionss = props.options || {};
15
- const slot = use.useSetSlot(obj, data, slots, optionss, emit, index);
17
+ const slot = use.useSetSlot(obj, data$1, slots, optionss, emit, index$1);
16
18
  if (slot) {
17
19
  return slot;
18
20
  }
19
21
  if (obj.compon) {
20
22
  if (isComponSelected(obj)) {
23
+ const compons = index.useComponsGet(data.name);
21
24
  const column = use.useSetCompon(
22
25
  obj,
23
- data,
26
+ data$1,
24
27
  optionss,
25
28
  compons,
26
29
  emit,
27
- index,
30
+ index$1,
28
31
  {
29
32
  options: optionss,
30
33
  config: props
@@ -35,7 +38,7 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
35
38
  }
36
39
  }
37
40
  }
38
- const domValue = use.useGetDomValue(obj, data, optionss, index);
41
+ const domValue = use.useGetDomValue(obj, data$1, optionss, index$1);
39
42
  return setDomValue(domValue, props);
40
43
  }
41
44
  function setDomValue(domValue, table) {
@@ -44,9 +47,10 @@ function setDomValue(domValue, table) {
44
47
  (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? ""
45
48
  );
46
49
  }
47
- function setLabel(obj, props, compons, emit, slots, index) {
50
+ function setLabel(obj, props, emit, slots, index$1) {
48
51
  let label = obj.label ?? "";
49
52
  if (label) {
53
+ const compons = index.useComponsGet(data.name);
50
54
  label = use.useGetDomLabel(
51
55
  obj,
52
56
  props.value,
@@ -54,7 +58,7 @@ function setLabel(obj, props, compons, emit, slots, index) {
54
58
  props.optionss,
55
59
  compons,
56
60
  emit,
57
- index || 0
61
+ index$1 || 0
58
62
  );
59
63
  }
60
64
  let colon = props.colon;
@@ -1,7 +1,3 @@
1
- import { Component } from 'vue';
2
- type Compons = {
3
- [key: string]: Component;
4
- };
5
1
  /**
6
2
  * 设置类名或CSS样式
7
3
  * @param item - 列表对象,包含状态、属性和CSS设置方法等信息
@@ -22,7 +18,7 @@ export declare const setClass: (item: ListObj, data: ObjStr, index: number) => a
22
18
  * @param index - 可选的索引值
23
19
  * @returns 返回设置后的插槽、组件或DOM值
24
20
  */
25
- export declare function setSslot(obj: ListObj, data: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: Function, index?: number): any;
21
+ export declare function setSslot(obj: ListObj, data: ObjAny, props: ObjAny, emit: Function, slots: ObjAny, isComponSelected: Function, index?: number): any;
26
22
  /**
27
23
  * 设置标签文本内容,支持插槽和国际化处理
28
24
  * @param obj - 对象配置,包含label属性等
@@ -33,5 +29,4 @@ export declare function setSslot(obj: ListObj, data: ObjAny, props: ObjAny, comp
33
29
  * @param index - 索引值,可选参数
34
30
  * @returns 处理后的标签内容,可能包含冒号后缀
35
31
  */
36
- export declare function setLabel(obj: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, index?: number): any;
37
- export {};
32
+ export declare function setLabel(obj: ObjAny, props: ObjAny, emit: Function, slots: ObjAny, index?: number): any;
@@ -1,5 +1,7 @@
1
1
  import "vue";
2
2
  import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel, useLabelAdditional } from "../../common/use.js";
3
+ import { useComponsGet } from "../../../hooks/compons/index.js";
4
+ import { name } from "./data.js";
3
5
  import { setEmptyDisplay } from "../../tables/common/util.js";
4
6
  const setClass = (item, data, index) => {
5
7
  const v = data[item.state ?? item.prop];
@@ -8,7 +10,7 @@ const setClass = (item, data, index) => {
8
10
  }
9
11
  return v;
10
12
  };
11
- function setSslot(obj, data, props, compons, emit, slots, isComponSelected, index) {
13
+ function setSslot(obj, data, props, emit, slots, isComponSelected, index) {
12
14
  const optionss = props.options || {};
13
15
  const slot = useSetSlot(obj, data, slots, optionss, emit, index);
14
16
  if (slot) {
@@ -16,6 +18,7 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
16
18
  }
17
19
  if (obj.compon) {
18
20
  if (isComponSelected(obj)) {
21
+ const compons = useComponsGet(name);
19
22
  const column = useSetCompon(
20
23
  obj,
21
24
  data,
@@ -42,9 +45,10 @@ function setDomValue(domValue, table) {
42
45
  (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? ""
43
46
  );
44
47
  }
45
- function setLabel(obj, props, compons, emit, slots, index) {
48
+ function setLabel(obj, props, emit, slots, index) {
46
49
  let label = obj.label ?? "";
47
50
  if (label) {
51
+ const compons = useComponsGet(name);
48
52
  label = useGetDomLabel(
49
53
  obj,
50
54
  props.value,
@@ -96,14 +96,6 @@ var config_default = {
96
96
  "images",
97
97
  "videos",
98
98
  "retract",
99
- "choice-select",
100
- "company-select",
101
- "department-select",
102
- "role-select",
103
- "select-dialog",
104
- "select-popover",
105
- "tree-select-box",
106
- "user-select",
107
99
  "buttons",
108
100
  "cascaders",
109
101
  "checks",
@@ -96,14 +96,6 @@ var config_default = {
96
96
  "images",
97
97
  "videos",
98
98
  "retract",
99
- "choice-select",
100
- "company-select",
101
- "department-select",
102
- "role-select",
103
- "select-dialog",
104
- "select-popover",
105
- "tree-select-box",
106
- "user-select",
107
99
  "buttons",
108
100
  "cascaders",
109
101
  "checks",
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPBGPF77Ycjs = require('./chunk-PBGPF77Y.cjs');
3
+ var _chunkA7IW6WRDcjs = require('./chunk-A7IW6WRD.cjs');
4
4
 
5
5
  // expand/components.ts
6
6
  var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
@@ -35,11 +35,11 @@ function getFrom(mc, type, conf) {
35
35
  const p = config.prefix ? config.prefix + "-" : "";
36
36
  const filename = p ? mc.replace(new RegExp("^" + p), "") : mc;
37
37
  if (type == 1) {
38
- if (_chunkPBGPF77Ycjs.config_default.components.includes(filename)) {
38
+ if (_chunkA7IW6WRDcjs.config_default.components.includes(filename)) {
39
39
  const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
40
40
  const from = `${config.name}/components/${filename}/index`;
41
41
  let sideEffects;
42
- if (_chunkPBGPF77Ycjs.config_default.sideEffects.includes(filename)) {
42
+ if (_chunkA7IW6WRDcjs.config_default.sideEffects.includes(filename)) {
43
43
  if (conf.css) {
44
44
  sideEffects = `${config.name}/components/${filename}/style/index${conf.css || 2}.scss`;
45
45
  } else {
@@ -55,14 +55,14 @@ function getFrom(mc, type, conf) {
55
55
  return;
56
56
  }
57
57
  } else {
58
- if (_chunkPBGPF77Ycjs.config_default.directives.includes(filename)) {
58
+ if (_chunkA7IW6WRDcjs.config_default.directives.includes(filename)) {
59
59
  const name = "default";
60
60
  const from = `${config.name}/directives/${filename}/index`;
61
61
  return {
62
62
  name,
63
63
  from
64
64
  };
65
- } else if (_chunkPBGPF77Ycjs.config_default.directives.includes("v-" + filename)) {
65
+ } else if (_chunkA7IW6WRDcjs.config_default.directives.includes("v-" + filename)) {
66
66
  const name = "default";
67
67
  const from = `${config.name}/directives/${"v-" + filename}/index`;
68
68
  return {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_default
3
- } from "./chunk-S57QISTZ.js";
3
+ } from "./chunk-L4FI5HCY.js";
4
4
 
5
5
  // expand/components.ts
6
6
  import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPBGPF77Ycjs = require('./chunk-PBGPF77Y.cjs');
3
+ var _chunkA7IW6WRDcjs = require('./chunk-A7IW6WRD.cjs');
4
4
 
5
5
 
6
- exports.default = _chunkPBGPF77Ycjs.config_default;
6
+ exports.default = _chunkA7IW6WRDcjs.config_default;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_default
3
- } from "./chunk-S57QISTZ.js";
3
+ } from "./chunk-L4FI5HCY.js";
4
4
  export {
5
5
  config_default as default
6
6
  };
@@ -16,7 +16,7 @@ function getCompons(...arrs) {
16
16
  const comkey = "com";
17
17
  const comKeyValue = "-compons";
18
18
  let weakRef;
19
- function useCompons(key = comkey, props, ...arrs) {
19
+ async function useCompons(key = comkey, props, ...arrs) {
20
20
  const is = props.isCompons;
21
21
  const compons = props.compons || {};
22
22
  const tfcom = getCompons(compons, ...arrs);
@@ -9,7 +9,7 @@ type Compons = {
9
9
  * @param arrs - 可变参数数组,包含需要合并的组件配置
10
10
  * @returns 返回合并后的组件对象
11
11
  */
12
- export declare function useCompons(key: string | undefined, props: ObjAny, ...arrs: Compons[]): Compons;
12
+ export declare function useCompons(key: string | undefined, props: ObjAny, ...arrs: Compons[]): Promise<Compons>;
13
13
  /**
14
14
  * 获取组件配置信息的自定义Hook函数
15
15
  * @param key - 用于注入依赖的键名,默认值为comkey常量
@@ -14,7 +14,7 @@ function getCompons(...arrs) {
14
14
  const comkey = "com";
15
15
  const comKeyValue = "-compons";
16
16
  let weakRef;
17
- function useCompons(key = comkey, props, ...arrs) {
17
+ async function useCompons(key = comkey, props, ...arrs) {
18
18
  const is = props.isCompons;
19
19
  const compons = props.compons || {};
20
20
  const tfcom = getCompons(compons, ...arrs);
@@ -0,0 +1 @@
1
+ export declare function loadModule(is?: boolean): Promise<{}>;
@@ -55,7 +55,7 @@ function eventAlias(key, callback, obj, $event) {
55
55
  if (s && $event) {
56
56
  let ns = splitUpper.splitUpper(s);
57
57
  if (s.includes(".")) {
58
- ns = s.split(".").filter((o) => Boolean(o));
58
+ ns = s.split(".").filter(Boolean);
59
59
  }
60
60
  if (ns.includes("passive")) {
61
61
  ns = ns.filter((k) => {
@@ -53,7 +53,7 @@ function eventAlias(key, callback, obj, $event) {
53
53
  if (s && $event) {
54
54
  let ns = splitUpper(s);
55
55
  if (s.includes(".")) {
56
- ns = s.split(".").filter((o) => Boolean(o));
56
+ ns = s.split(".").filter(Boolean);
57
57
  }
58
58
  if (ns.includes("passive")) {
59
59
  ns = ns.filter((k) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1764841467770,
4
+ "lastModified": 1764859571621,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "