@fangzhongya/fang-ui 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/components/array/index.css +4 -0
  2. package/dist/components/array/src/index2.cjs +5 -5
  3. package/dist/components/array/src/index2.js +2 -2
  4. package/dist/components/audios/index.css +4 -0
  5. package/dist/components/box/index.css +4 -0
  6. package/dist/components/box-adjust/index.css +4 -0
  7. package/dist/components/box-local/index.css +4 -0
  8. package/dist/components/box-mask/index.css +4 -0
  9. package/dist/components/box-title/index.css +4 -0
  10. package/dist/components/buttons/index.css +4 -0
  11. package/dist/components/cascaders/index.css +4 -0
  12. package/dist/components/checks/index.css +4 -0
  13. package/dist/components/common/compons/components.cjs +52 -0
  14. package/dist/components/common/compons/components.d.ts +27 -0
  15. package/dist/components/common/compons/components.js +52 -0
  16. package/dist/components/common/compons/index.scss +23 -0
  17. package/dist/components/common/compons/index2.scss +23 -0
  18. package/dist/components/common/use.cjs +87 -16
  19. package/dist/components/common/use.d.ts +28 -5
  20. package/dist/components/common/use.js +88 -17
  21. package/dist/components/dates/index.css +4 -0
  22. package/dist/components/dates-divide/index.css +4 -0
  23. package/dist/components/dates-picker/index.css +4 -0
  24. package/dist/components/dates2/index.css +4 -0
  25. package/dist/components/dialogs/index.css +4 -0
  26. package/dist/components/edit/index.css +4 -0
  27. package/dist/components/edit-float/index.css +4 -0
  28. package/dist/components/forms/common/config.cjs +11 -1
  29. package/dist/components/forms/common/config.d.ts +1 -0
  30. package/dist/components/forms/common/config.js +11 -1
  31. package/dist/components/forms/index.css +10 -6
  32. package/dist/components/forms/index.scss +2 -1
  33. package/dist/components/forms/src/data.cjs +7 -0
  34. package/dist/components/forms/src/data.d.ts +7 -0
  35. package/dist/components/forms/src/data.js +7 -0
  36. package/dist/components/forms/src/setup.cjs +6 -13
  37. package/dist/components/forms/src/setup.d.ts +1 -1
  38. package/dist/components/forms/src/setup.js +8 -15
  39. package/dist/components/forms/src/util.cjs +1 -2
  40. package/dist/components/forms/src/util.d.ts +1 -1
  41. package/dist/components/forms/src/util.js +1 -2
  42. package/dist/components/forms/style/index2.scss +3 -1
  43. package/dist/components/forms-div/index.css +4 -0
  44. package/dist/components/forms-div/src/index2.cjs +11 -5
  45. package/dist/components/forms-div/src/index2.js +10 -4
  46. package/dist/components/forms-item/index.css +4 -0
  47. package/dist/components/forms-item/src/indexts.d.ts +1 -1
  48. package/dist/components/forms-item/src/label.cjs +16 -29
  49. package/dist/components/forms-item/src/label.js +17 -30
  50. package/dist/components/full-screen/index.css +4 -0
  51. package/dist/components/global-config/index.css +4 -0
  52. package/dist/components/history/index.css +4 -0
  53. package/dist/components/icon/index.css +4 -0
  54. package/dist/components/icon-picker/index.css +4 -0
  55. package/dist/components/iframe/index.css +4 -0
  56. package/dist/components/images/index.css +4 -0
  57. package/dist/components/index.cjs +2 -0
  58. package/dist/components/index.d.ts +1 -0
  59. package/dist/components/index.js +2 -0
  60. package/dist/components/index2.scss +2 -1
  61. package/dist/components/input-array/index.css +4 -0
  62. package/dist/components/input-history/index.css +4 -0
  63. package/dist/components/input-num/index.css +4 -0
  64. package/dist/components/input-select/index.css +4 -0
  65. package/dist/components/inputs/index.css +4 -0
  66. package/dist/components/labels/index.css +4 -0
  67. package/dist/components/list/index.css +4 -0
  68. package/dist/components/list/src/data.cjs +6 -0
  69. package/dist/components/list/src/data.d.ts +6 -0
  70. package/dist/components/list/src/data.js +6 -0
  71. package/dist/components/list/src/index2.cjs +6 -6
  72. package/dist/components/list/src/index2.js +2 -2
  73. package/dist/components/list/src/util.cjs +12 -26
  74. package/dist/components/list/src/util.d.ts +1 -1
  75. package/dist/components/list/src/util.js +13 -27
  76. package/dist/components/lists/index.css +4 -0
  77. package/dist/components/listsp/index.css +4 -0
  78. package/dist/components/listspd/index.css +4 -0
  79. package/dist/components/menus/index.css +4 -0
  80. package/dist/components/no-data/index.css +4 -0
  81. package/dist/components/page/index.css +10 -6
  82. package/dist/components/paging/index.css +4 -0
  83. package/dist/components/popup/index.css +4 -0
  84. package/dist/components/retract/index.css +4 -0
  85. package/dist/components/right-key/index.css +4 -0
  86. package/dist/components/scss/common.scss +4 -0
  87. package/dist/components/seamless-scroll/index.css +4 -0
  88. package/dist/components/select-scroll/index.css +4 -0
  89. package/dist/components/selector/index.css +4 -0
  90. package/dist/components/selects/index.css +4 -0
  91. package/dist/components/sliders/index.css +4 -0
  92. package/dist/components/switchs/index.css +4 -0
  93. package/dist/components/tables/common/config.cjs +1 -1
  94. package/dist/components/tables/common/config.js +1 -1
  95. package/dist/components/tables/common/pagin.cjs +74 -32
  96. package/dist/components/tables/common/pagin.d.ts +10 -1
  97. package/dist/components/tables/common/pagin.js +74 -32
  98. package/dist/components/tables/index.css +4 -0
  99. package/dist/components/tables/src/column.cjs +22 -20
  100. package/dist/components/tables/src/column.d.ts +1 -0
  101. package/dist/components/tables/src/column.js +14 -12
  102. package/dist/components/tables/src/data.cjs +15 -0
  103. package/dist/components/tables/src/data.d.ts +13 -0
  104. package/dist/components/tables/src/data.js +15 -0
  105. package/dist/components/tables/src/index2.cjs +17 -9
  106. package/dist/components/tables/src/index2.js +11 -3
  107. package/dist/components/tablesp/index.css +4 -0
  108. package/dist/components/tablespd/index.css +4 -0
  109. package/dist/components/tabless/index.css +4 -0
  110. package/dist/components/tablesv/index.css +4 -0
  111. package/dist/components/tablesv/src/column.cjs +116 -112
  112. package/dist/components/tablesv/src/column.js +110 -106
  113. package/dist/components/tablesv/src/data.cjs +44 -0
  114. package/dist/components/tablesv/src/data.d.ts +43 -1
  115. package/dist/components/tablesv/src/data.js +44 -0
  116. package/dist/components/tablesv/src/index2.cjs +37 -14
  117. package/dist/components/tablesv/src/index2.js +36 -13
  118. package/dist/components/tablesv/style/index2.scss +3 -1
  119. package/dist/components/tablesvp/index.css +10 -0
  120. package/dist/components/tablesvp/index.scss +8 -0
  121. package/dist/components/tablesvp/src/index2.cjs +15 -5
  122. package/dist/components/tablesvp/src/index2.js +15 -5
  123. package/dist/components/tablesvpd/index.cjs +9 -0
  124. package/dist/components/tablesvpd/index.css +157 -0
  125. package/dist/components/tablesvpd/index.d.ts +4 -0
  126. package/dist/components/tablesvpd/index.js +9 -0
  127. package/dist/components/tablesvpd/index.scss +41 -0
  128. package/dist/components/tablesvpd/src/data.cjs +13 -0
  129. package/dist/components/tablesvpd/src/data.d.ts +18 -0
  130. package/dist/components/tablesvpd/src/data.js +13 -0
  131. package/dist/components/tablesvpd/src/index.cjs +4 -0
  132. package/dist/components/tablesvpd/src/index.js +4 -0
  133. package/dist/components/tablesvpd/src/index2.cjs +107 -0
  134. package/dist/components/tablesvpd/src/index2.js +107 -0
  135. package/dist/components/tablesvpd/style/index2.scss +4 -0
  136. package/dist/components/uploads/index.css +4 -0
  137. package/dist/components/videos/index.css +4 -0
  138. package/dist/components/window/index.css +4 -0
  139. package/dist/css/array.css +4 -0
  140. package/dist/css/audios.css +4 -0
  141. package/dist/css/box-adjust.css +4 -0
  142. package/dist/css/box-local.css +4 -0
  143. package/dist/css/box-mask.css +4 -0
  144. package/dist/css/box-title.css +4 -0
  145. package/dist/css/box.css +4 -0
  146. package/dist/css/buttons.css +4 -0
  147. package/dist/css/cascaders.css +4 -0
  148. package/dist/css/checks.css +4 -0
  149. package/dist/css/dates-divide.css +4 -0
  150. package/dist/css/dates-picker.css +4 -0
  151. package/dist/css/dates.css +4 -0
  152. package/dist/css/dates2.css +4 -0
  153. package/dist/css/dialogs.css +4 -0
  154. package/dist/css/edit-float.css +4 -0
  155. package/dist/css/edit.css +4 -0
  156. package/dist/css/forms-div.css +4 -0
  157. package/dist/css/forms-item.css +4 -0
  158. package/dist/css/forms.css +10 -6
  159. package/dist/css/full-screen.css +4 -0
  160. package/dist/css/global-config.css +4 -0
  161. package/dist/css/history.css +4 -0
  162. package/dist/css/icon-picker.css +4 -0
  163. package/dist/css/icon.css +4 -0
  164. package/dist/css/iframe.css +4 -0
  165. package/dist/css/images.css +4 -0
  166. package/dist/css/index.css +16 -6
  167. package/dist/css/input-array.css +4 -0
  168. package/dist/css/input-history.css +4 -0
  169. package/dist/css/input-num.css +4 -0
  170. package/dist/css/input-select.css +4 -0
  171. package/dist/css/inputs.css +4 -0
  172. package/dist/css/labels.css +4 -0
  173. package/dist/css/list.css +4 -0
  174. package/dist/css/lists.css +4 -0
  175. package/dist/css/listsp.css +4 -0
  176. package/dist/css/listspd.css +4 -0
  177. package/dist/css/menus.css +4 -0
  178. package/dist/css/no-data.css +4 -0
  179. package/dist/css/page.css +10 -6
  180. package/dist/css/paging.css +4 -0
  181. package/dist/css/popup.css +4 -0
  182. package/dist/css/retract.css +4 -0
  183. package/dist/css/right-key.css +4 -0
  184. package/dist/css/seamless-scroll.css +4 -0
  185. package/dist/css/select-scroll.css +4 -0
  186. package/dist/css/selector.css +4 -0
  187. package/dist/css/selects.css +4 -0
  188. package/dist/css/sliders.css +4 -0
  189. package/dist/css/switchs.css +4 -0
  190. package/dist/css/tables.css +4 -0
  191. package/dist/css/tablesp.css +4 -0
  192. package/dist/css/tablespd.css +4 -0
  193. package/dist/css/tabless.css +4 -0
  194. package/dist/css/tablesv.css +4 -0
  195. package/dist/css/tablesvp.css +10 -0
  196. package/dist/css/tablesvpd.css +157 -0
  197. package/dist/css/uploads.css +4 -0
  198. package/dist/css/videos.css +4 -0
  199. package/dist/css/window.css +4 -0
  200. package/dist/expand/{chunk-MC76Q3TQ.cjs → chunk-3HP2ZDNG.cjs} +3 -1
  201. package/dist/expand/{chunk-CV4O5V2F.js → chunk-7C25SBCF.js} +3 -1
  202. package/dist/expand/components.cjs +5 -5
  203. package/dist/expand/components.js +1 -1
  204. package/dist/expand/config.cjs +2 -2
  205. package/dist/expand/config.js +1 -1
  206. package/dist/hooks/compons/index.cjs +44 -0
  207. package/dist/hooks/compons/index.d.ts +7 -0
  208. package/dist/hooks/compons/index.js +44 -0
  209. package/dist/icons/index.json +1 -1
  210. package/dist/index.cjs +24 -22
  211. package/dist/index.css +16 -6
  212. package/dist/index.js +2 -0
  213. package/dist/type.d.ts +4 -0
  214. package/package.json +12 -12
  215. package/dist/components/common/compons.cjs +0 -76
  216. package/dist/components/common/compons.d.ts +0 -9
  217. package/dist/components/common/compons.js +0 -76
  218. package/dist/components/common/compons.scss +0 -26
  219. package/dist/components/common/compons2.scss +0 -26
@@ -0,0 +1,7 @@
1
+ import { Component } from 'vue';
2
+ type Compons = {
3
+ [key: string]: Component;
4
+ };
5
+ export declare function useCompons(key: string | undefined, props: ObjAny, ...arrs: Compons[]): Compons;
6
+ export declare function useComponsGet(key?: string, value?: Compons): Compons;
7
+ export {};
@@ -0,0 +1,44 @@
1
+ import { provide, inject } from "vue";
2
+ import { components } from "../../components/common/compons/components.js";
3
+ import "../../utils/index.js";
4
+ import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
5
+ function getCompons(...arrs) {
6
+ const coms = {};
7
+ arrs.forEach((obj) => {
8
+ Object.keys(obj).forEach((key) => {
9
+ const tkey = lineToLargeHump(key);
10
+ coms[tkey] = obj[key];
11
+ });
12
+ });
13
+ return coms;
14
+ }
15
+ const comkey = "com";
16
+ const comKeyValue = "-compons";
17
+ let weakRef;
18
+ function useCompons(key = comkey, props, ...arrs) {
19
+ const is = props.isCompons;
20
+ if (is) {
21
+ weakRef = components;
22
+ }
23
+ const compons = props.compons || {};
24
+ const tfcom = getCompons(compons, ...arrs);
25
+ if (Object.keys(tfcom).length > 0) {
26
+ provide(key + comKeyValue, tfcom);
27
+ }
28
+ return tfcom;
29
+ }
30
+ function useComponsGet(key = comkey, value = {}) {
31
+ const coms = inject(key + comKeyValue, value);
32
+ if (weakRef) {
33
+ return {
34
+ ...weakRef,
35
+ ...coms
36
+ };
37
+ } else {
38
+ return coms;
39
+ }
40
+ }
41
+ export {
42
+ useCompons,
43
+ useComponsGet
44
+ };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1763043663479,
4
+ "lastModified": 1763520174611,
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> "
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index$30 = require("./components/index.cjs");
4
- const index$31 = require("./directives/index.cjs");
5
- const index$32 = require("./icons/index.cjs");
3
+ const index$31 = require("./components/index.cjs");
4
+ const index$32 = require("./directives/index.cjs");
5
+ const index$33 = require("./icons/index.cjs");
6
6
  const index$1 = require("./components/draggable/index.cjs");
7
7
  const index$3 = require("element-plus/es/components/button/index");
8
8
  const index$2 = require("./components/button/index.cjs");
@@ -186,27 +186,28 @@ const index$2Q = require("./components/tablespd/index.cjs");
186
186
  const index$2R = require("./components/tabless/index.cjs");
187
187
  const index$2S = require("./components/tablesv/index.cjs");
188
188
  const index$2T = require("./components/tablesvp/index.cjs");
189
- const index$2U = require("./directives/adjust/index.cjs");
190
- const index$2V = require("./directives/drag/index.cjs");
191
- const index$2W = require("./directives/expose/index.cjs");
192
- const index$2X = require("./directives/inserted/index.cjs");
193
- const index$2Y = require("./directives/locus/index.cjs");
194
- const index$2Z = require("./directives/scroll/index.cjs");
195
- const index$2_ = require("./directives/sortable/index.cjs");
196
- const index$2$ = require("./directives/stick/index.cjs");
189
+ const index$2U = require("./components/tablesvpd/index.cjs");
190
+ const index$2V = require("./directives/adjust/index.cjs");
191
+ const index$2W = require("./directives/drag/index.cjs");
192
+ const index$2X = require("./directives/expose/index.cjs");
193
+ const index$2Y = require("./directives/inserted/index.cjs");
194
+ const index$2Z = require("./directives/locus/index.cjs");
195
+ const index$2_ = require("./directives/scroll/index.cjs");
196
+ const index$2$ = require("./directives/sortable/index.cjs");
197
+ const index$30 = require("./directives/stick/index.cjs");
197
198
  const index = {
198
199
  install: function(app) {
199
- const com = index$30;
200
+ const com = index$31;
200
201
  Object.keys(com).forEach((key) => {
201
202
  if (com[key].install) {
202
203
  com[key].install(app);
203
204
  }
204
205
  });
205
- const dire = index$31;
206
+ const dire = index$32;
206
207
  Object.keys(dire).forEach((key) => {
207
208
  app.directive(key, dire[key]);
208
209
  });
209
- index$32.default(app);
210
+ index$33.default(app);
210
211
  }
211
212
  };
212
213
  exports.Draggable = index$1.Draggable;
@@ -351,14 +352,15 @@ exports.Tablespd = index$2Q.Tablespd;
351
352
  exports.Tabless = index$2R.Tabless;
352
353
  exports.Tablesv = index$2S.Tablesv;
353
354
  exports.Tablesvp = index$2T.Tablesvp;
354
- exports.Adjust = index$2U.default;
355
- exports.Drag = index$2V.default;
356
- exports.Expose = index$2W.default;
357
- exports.Inserted = index$2X.default;
358
- exports.Locus = index$2Y.default;
359
- exports.Scroll = index$2Z.default;
360
- exports.Sortable = index$2_.default;
361
- exports.Stick = index$2$.default;
355
+ exports.Tablesvpd = index$2U.Tablesvpd;
356
+ exports.Adjust = index$2V.default;
357
+ exports.Drag = index$2W.default;
358
+ exports.Expose = index$2X.default;
359
+ exports.Inserted = index$2Y.default;
360
+ exports.Locus = index$2Z.default;
361
+ exports.Scroll = index$2_.default;
362
+ exports.Sortable = index$2$.default;
363
+ exports.Stick = index$30.default;
362
364
  exports.default = index;
363
365
  Object.keys(index$3).forEach((k) => {
364
366
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/index.css CHANGED
@@ -18,6 +18,10 @@
18
18
  padding: 20px 20px;
19
19
  }
20
20
 
21
+ .com-lable-array {
22
+ line-height: 18px;
23
+ }
24
+
21
25
  .forms-div {
22
26
  width: 100%;
23
27
  height: 100%;
@@ -106,12 +110,6 @@
106
110
  font-size: 0;
107
111
  }
108
112
 
109
- .dates .dates-date {
110
- height: 100%;
111
- width: 100%;
112
- box-sizing: border-box;
113
- }
114
-
115
113
  .selects-select {
116
114
  height: 100%;
117
115
  min-width: 60px;
@@ -121,6 +119,12 @@
121
119
  height: 100%;
122
120
  }
123
121
 
122
+ .dates .dates-date {
123
+ height: 100%;
124
+ width: 100%;
125
+ box-sizing: border-box;
126
+ }
127
+
124
128
  .inputs-input {
125
129
  height: 100%;
126
130
  }
@@ -1857,6 +1861,12 @@
1857
1861
  .tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1858
1862
  display: none;
1859
1863
  }
1864
+ .tablesvp-main.is-scroll .v-scroll-add {
1865
+ text-align: center;
1866
+ padding: 10px;
1867
+ color: #999;
1868
+ background-color: #eee;
1869
+ }
1860
1870
  .tablesvp-paginat {
1861
1871
  overflow: hidden;
1862
1872
  }
package/dist/index.js CHANGED
@@ -185,6 +185,7 @@ import { Tablespd } from "./components/tablespd/index.js";
185
185
  import { Tabless } from "./components/tabless/index.js";
186
186
  import { Tablesv } from "./components/tablesv/index.js";
187
187
  import { Tablesvp } from "./components/tablesvp/index.js";
188
+ import { Tablesvpd } from "./components/tablesvpd/index.js";
188
189
  import { default as default2 } from "./directives/adjust/index.js";
189
190
  import { default as default3 } from "./directives/drag/index.js";
190
191
  import { default as default4 } from "./directives/expose/index.js";
@@ -339,6 +340,7 @@ export {
339
340
  Tabless,
340
341
  Tablesv,
341
342
  Tablesvp,
343
+ Tablesvpd,
342
344
  Tabs,
343
345
  Tag,
344
346
  Text,
package/dist/type.d.ts CHANGED
@@ -67,6 +67,10 @@ type ListObj = {
67
67
  * 展示字段名称
68
68
  */
69
69
  label?: string | ListObj;
70
+ /**
71
+ * 展示字段名称的文本,用来校验提示,输入框提示
72
+ */
73
+ labelText?: string;
70
74
  hideLabel?: boolean;
71
75
  /**
72
76
  * 表单取值字段名称
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.27",
4
+ "version": "0.1.29",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "fangui": "bin/fang-ui.js"
25
25
  },
26
26
  "dependencies": {
27
- "@fangzhongya/utils": "0.0.47"
27
+ "@fangzhongya/utils": "0.0.48"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fangzhongya/create": "0.2.41",
@@ -34,9 +34,9 @@
34
34
  "@vue/shared": "3.5.24",
35
35
  "axios": "^1.13.2",
36
36
  "d3-timer": "3.0.1",
37
- "element-plus": "^2.11.7",
37
+ "element-plus": "^2.11.8",
38
38
  "fast-glob": "^3.3.3",
39
- "sass": "^1.94.0",
39
+ "sass": "^1.94.1",
40
40
  "sortablejs": "1.15.6",
41
41
  "ts-node": "^10.9.2",
42
42
  "tsup": "^8.5.1",
@@ -46,18 +46,18 @@
46
46
  "unplugin-vue-components": "30.0.0",
47
47
  "vite": "^6.3.5",
48
48
  "vitepress": "1.6.4",
49
- "vitest": "^4.0.8",
49
+ "vitest": "^4.0.10",
50
50
  "vue": "^3.5.24",
51
- "vue-tsc": "^3.1.3",
52
- "vxe-table": "4.17.14",
51
+ "vue-tsc": "^3.1.4",
52
+ "vxe-table": "4.6.20",
53
53
  "@fang-ui/components": "0.0.1-0",
54
- "@fang-ui/theme": "0.0.1-0",
55
- "@fang-ui/icons": "0.0.1-0",
56
- "@fang-ui/types": "0.0.1-0",
57
54
  "@fang-ui/directives": "0.0.1-0",
58
55
  "@fang-ui/hooks": "0.0.1-0",
59
- "@fang-ui/utils": "0.0.1-0",
60
- "@fang-ui/locale": "0.0.1-0"
56
+ "@fang-ui/icons": "0.0.1-0",
57
+ "@fang-ui/locale": "0.0.1-0",
58
+ "@fang-ui/theme": "0.0.1-0",
59
+ "@fang-ui/types": "0.0.1-0",
60
+ "@fang-ui/utils": "0.0.1-0"
61
61
  },
62
62
  "main": "./dist/index.cjs",
63
63
  "module": "./dist/index.js",
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("vue");
4
- require("../../utils/index.cjs");
5
- const index$m = require("../array/index.cjs");
6
- const index$l = require("../checks/index.cjs");
7
- const index$j = require("../dates/index.cjs");
8
- const index$k = require("../selects/index.cjs");
9
- const index$i = require("../inputs/index.cjs");
10
- const index$h = require("../labels/index.cjs");
11
- const index$g = require("../switchs/index.cjs");
12
- const index$f = require("../buttons/index.cjs");
13
- const index$e = require("../dates-divide/index.cjs");
14
- const index$d = require("../dates-picker/index.cjs");
15
- const index$c = require("../edit-float/index.cjs");
16
- const index$b = require("../edit/index.cjs");
17
- const index$a = require("../history/index.cjs");
18
- const index$9 = require("../images/index.cjs");
19
- const index$8 = require("../input-array/index.cjs");
20
- const index$7 = require("../input-history/index.cjs");
21
- const index$6 = require("../input-select/index.cjs");
22
- const index$5 = require("../select-scroll/index.cjs");
23
- const index$4 = require("../selector/index.cjs");
24
- const index$3 = require("../cascaders/index.cjs");
25
- const index$2 = require("../input-num/index.cjs");
26
- const index$1 = require("../texts/index.cjs");
27
- const index = require("../uploads/index.cjs");
28
- const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
29
- const components = {
30
- Array: index$m.Array,
31
- Check: index$l.Checks,
32
- Select: index$k.Selects,
33
- Date: index$j.Dates,
34
- Input: index$i.Inputs,
35
- Labels: index$h.Labels,
36
- Switch: index$g.Switchs,
37
- Buttons: index$f.Buttons,
38
- DateDivide: index$e.DatesDivide,
39
- DatePicker: index$d.DatesPicker,
40
- EditFloat: index$c.EditFloat,
41
- Edit: index$b.Edit,
42
- History: index$a.History,
43
- Images: index$9.Images,
44
- InputArray: index$8.InputArray,
45
- InputHistory: index$7.InputHistory,
46
- InputSelect: index$6.InputSelect,
47
- SelectScroll: index$5.SelectScroll,
48
- Selector: index$4.Selector,
49
- Cascader: index$3.Cascaders,
50
- InputNum: index$2.InputNum,
51
- Text: index$1.Texts,
52
- Upload: index.Uploads
53
- };
54
- function getCompons(...arrs) {
55
- const coms = { ...components };
56
- arrs.forEach((obj) => {
57
- Object.keys(obj).forEach((key) => {
58
- const tkey = lineToLargeHump.lineToLargeHump(key);
59
- coms[tkey] = obj[key];
60
- });
61
- });
62
- return coms;
63
- }
64
- const comKey = "com-compons";
65
- function useCompons(key, ...arrs) {
66
- const tfcom = getCompons(...arrs);
67
- vue.provide(key || comKey, tfcom);
68
- return tfcom;
69
- }
70
- function useGetCompons(key, value = {}) {
71
- return vue.inject(key || comKey, value);
72
- }
73
- exports.components = components;
74
- exports.getCompons = getCompons;
75
- exports.useCompons = useCompons;
76
- exports.useGetCompons = useGetCompons;
@@ -1,9 +0,0 @@
1
- import { Component } from 'vue';
2
- type Compons = {
3
- [key: string]: Component;
4
- };
5
- export declare const components: Compons;
6
- export declare function getCompons(...arrs: Compons[]): Compons;
7
- export declare function useCompons(key: string, ...arrs: Compons[]): Compons;
8
- export declare function useGetCompons(key: string, value?: Compons): Compons;
9
- export {};
@@ -1,76 +0,0 @@
1
- import { provide, inject } from "vue";
2
- import "../../utils/index.js";
3
- import { Array } from "../array/index.js";
4
- import { Checks } from "../checks/index.js";
5
- import { Dates } from "../dates/index.js";
6
- import { Selects } from "../selects/index.js";
7
- import { Inputs } from "../inputs/index.js";
8
- import { Labels } from "../labels/index.js";
9
- import { Switchs } from "../switchs/index.js";
10
- import { Buttons } from "../buttons/index.js";
11
- import { DatesDivide } from "../dates-divide/index.js";
12
- import { DatesPicker } from "../dates-picker/index.js";
13
- import { EditFloat } from "../edit-float/index.js";
14
- import { Edit } from "../edit/index.js";
15
- import { History } from "../history/index.js";
16
- import { Images } from "../images/index.js";
17
- import { InputArray } from "../input-array/index.js";
18
- import { InputHistory } from "../input-history/index.js";
19
- import { InputSelect } from "../input-select/index.js";
20
- import { SelectScroll } from "../select-scroll/index.js";
21
- import { Selector } from "../selector/index.js";
22
- import { Cascaders } from "../cascaders/index.js";
23
- import { InputNum } from "../input-num/index.js";
24
- import { Texts } from "../texts/index.js";
25
- import { Uploads } from "../uploads/index.js";
26
- import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
27
- const components = {
28
- Array,
29
- Check: Checks,
30
- Select: Selects,
31
- Date: Dates,
32
- Input: Inputs,
33
- Labels,
34
- Switch: Switchs,
35
- Buttons,
36
- DateDivide: DatesDivide,
37
- DatePicker: DatesPicker,
38
- EditFloat,
39
- Edit,
40
- History,
41
- Images,
42
- InputArray,
43
- InputHistory,
44
- InputSelect,
45
- SelectScroll,
46
- Selector,
47
- Cascader: Cascaders,
48
- InputNum,
49
- Text: Texts,
50
- Upload: Uploads
51
- };
52
- function getCompons(...arrs) {
53
- const coms = { ...components };
54
- arrs.forEach((obj) => {
55
- Object.keys(obj).forEach((key) => {
56
- const tkey = lineToLargeHump(key);
57
- coms[tkey] = obj[key];
58
- });
59
- });
60
- return coms;
61
- }
62
- const comKey = "com-compons";
63
- function useCompons(key, ...arrs) {
64
- const tfcom = getCompons(...arrs);
65
- provide(key || comKey, tfcom);
66
- return tfcom;
67
- }
68
- function useGetCompons(key, value = {}) {
69
- return inject(key || comKey, value);
70
- }
71
- export {
72
- components,
73
- getCompons,
74
- useCompons,
75
- useGetCompons
76
- };
@@ -1,26 +0,0 @@
1
- @use '../array/index.scss' as *;
2
- @use '../checks/index.scss' as *;
3
- @use '../dates/index.scss' as *;
4
- @use '../selects/index.scss' as *;
5
- @use '../inputs/index.scss' as *;
6
- @use '../labels/index.scss' as *;
7
- @use '../switchs/index.scss' as *;
8
-
9
- @use '../buttons/index.scss' as *;
10
- @use '../dates-divide/index.scss' as *;
11
- @use '../dates-picker/index.scss' as *;
12
- @use '../edit-float/index.scss' as *;
13
- @use '../edit/index.scss' as *;
14
- @use '../history/index.scss' as *;
15
- @use '../images/index.scss' as *;
16
- @use '../input-array/index.scss' as *;
17
- @use '../input-history/index.scss' as *;
18
- @use '../input-select/index.scss' as *;
19
- @use '../select-scroll/index.scss' as *;
20
- @use '../selector/index.scss' as *;
21
-
22
- @use '../cascaders/index.scss' as *;
23
- @use '../input-num/index.scss' as *;
24
- @use '../texts/index.scss' as *;
25
-
26
- @use '../uploads/index.scss' as *;
@@ -1,26 +0,0 @@
1
- @use '../array/style/index2.scss' as *;
2
- @use '../checks/style/index2.scss' as *;
3
- @use '../dates/style/index2.scss' as *;
4
- @use '../selects/style/index2.scss' as *;
5
- @use '../inputs/style/index2.scss' as *;
6
- @use '../labels/style/index2.scss' as *;
7
- @use '../switchs/style/index2.scss' as *;
8
-
9
- @use '../buttons/style/index2.scss' as *;
10
- @use '../dates-divide/style/index2.scss' as *;
11
- @use '../dates-picker/style/index2.scss' as *;
12
- @use '../edit-float/style/index2.scss' as *;
13
- @use '../edit/style/index2.scss' as *;
14
- @use '../history/style/index2.scss' as *;
15
- @use '../images/style/index2.scss' as *;
16
- @use '../input-array/style/index2.scss' as *;
17
- @use '../input-history/style/index2.scss' as *;
18
- @use '../input-select/style/index2.scss' as *;
19
- @use '../select-scroll/style/index2.scss' as *;
20
- @use '../selector/style/index2.scss' as *;
21
-
22
- @use '../cascaders/style/index2.scss' as *;
23
- @use '../input-num/style/index2.scss' as *;
24
- @use '../texts/style/index2.scss' as *;
25
-
26
- @use '../uploads/style/index2.scss' as *;