@fangzhongya/fang-ui 0.1.27 → 0.1.28

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 (214) 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 +29 -3
  19. package/dist/components/common/use.d.ts +2 -2
  20. package/dist/components/common/use.js +29 -3
  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 +3 -12
  37. package/dist/components/forms/src/setup.d.ts +1 -1
  38. package/dist/components/forms/src/setup.js +4 -13
  39. package/dist/components/forms/style/index2.scss +3 -1
  40. package/dist/components/forms-div/index.css +4 -0
  41. package/dist/components/forms-div/src/index2.cjs +4 -4
  42. package/dist/components/forms-div/src/index2.js +2 -2
  43. package/dist/components/forms-item/index.css +4 -0
  44. package/dist/components/forms-item/src/indexts.d.ts +1 -1
  45. package/dist/components/forms-item/src/label.cjs +15 -28
  46. package/dist/components/forms-item/src/label.js +16 -29
  47. package/dist/components/full-screen/index.css +4 -0
  48. package/dist/components/history/index.css +4 -0
  49. package/dist/components/icon/index.css +4 -0
  50. package/dist/components/icon-picker/index.css +4 -0
  51. package/dist/components/iframe/index.css +4 -0
  52. package/dist/components/images/index.css +4 -0
  53. package/dist/components/index.cjs +2 -0
  54. package/dist/components/index.d.ts +1 -0
  55. package/dist/components/index.js +2 -0
  56. package/dist/components/index.scss +2 -1
  57. package/dist/components/index2.scss +2 -1
  58. package/dist/components/input-array/index.css +4 -0
  59. package/dist/components/input-history/index.css +4 -0
  60. package/dist/components/input-num/index.css +4 -0
  61. package/dist/components/input-select/index.css +4 -0
  62. package/dist/components/inputs/index.css +4 -0
  63. package/dist/components/{global-config → keep-com}/index.css +4 -0
  64. package/dist/components/labels/index.css +4 -0
  65. package/dist/components/list/index.css +4 -0
  66. package/dist/components/list/src/data.cjs +6 -0
  67. package/dist/components/list/src/data.d.ts +6 -0
  68. package/dist/components/list/src/data.js +6 -0
  69. package/dist/components/list/src/index2.cjs +6 -6
  70. package/dist/components/list/src/index2.js +2 -2
  71. package/dist/components/lists/index.css +4 -0
  72. package/dist/components/listsp/index.css +4 -0
  73. package/dist/components/listspd/index.css +4 -0
  74. package/dist/components/menus/index.css +4 -0
  75. package/dist/components/no-data/index.css +4 -0
  76. package/dist/components/page/index.css +10 -6
  77. package/dist/components/paging/index.css +4 -0
  78. package/dist/components/popup/index.css +4 -0
  79. package/dist/components/retract/index.css +4 -0
  80. package/dist/components/right-key/index.css +4 -0
  81. package/dist/components/scss/common.scss +4 -0
  82. package/dist/components/seamless-scroll/index.css +4 -0
  83. package/dist/components/select-scroll/index.css +4 -0
  84. package/dist/components/selector/index.css +4 -0
  85. package/dist/components/selects/index.css +4 -0
  86. package/dist/components/sliders/index.css +4 -0
  87. package/dist/components/switchs/index.css +4 -0
  88. package/dist/components/tables/common/config.cjs +1 -1
  89. package/dist/components/tables/common/config.js +1 -1
  90. package/dist/components/tables/common/pagin.cjs +74 -32
  91. package/dist/components/tables/common/pagin.d.ts +8 -1
  92. package/dist/components/tables/common/pagin.js +74 -32
  93. package/dist/components/tables/index.css +4 -0
  94. package/dist/components/tables/src/column.cjs +22 -20
  95. package/dist/components/tables/src/column.d.ts +3 -0
  96. package/dist/components/tables/src/column.js +14 -12
  97. package/dist/components/tables/src/data.cjs +15 -0
  98. package/dist/components/tables/src/data.d.ts +13 -0
  99. package/dist/components/tables/src/data.js +15 -0
  100. package/dist/components/tables/src/index2.cjs +17 -9
  101. package/dist/components/tables/src/index2.js +11 -3
  102. package/dist/components/tablesp/index.css +4 -0
  103. package/dist/components/tablespd/index.css +4 -0
  104. package/dist/components/tabless/index.css +4 -0
  105. package/dist/components/tablesv/index.css +4 -0
  106. package/dist/components/tablesv/src/column.cjs +116 -112
  107. package/dist/components/tablesv/src/column.d.ts +3 -1
  108. package/dist/components/tablesv/src/column.js +110 -106
  109. package/dist/components/tablesv/src/data.cjs +44 -0
  110. package/dist/components/tablesv/src/data.d.ts +43 -1
  111. package/dist/components/tablesv/src/data.js +44 -0
  112. package/dist/components/tablesv/src/index2.cjs +37 -14
  113. package/dist/components/tablesv/src/index2.js +36 -13
  114. package/dist/components/tablesv/style/index2.scss +3 -1
  115. package/dist/components/tablesvp/index.css +10 -0
  116. package/dist/components/tablesvp/index.scss +8 -0
  117. package/dist/components/tablesvp/src/index2.cjs +15 -5
  118. package/dist/components/tablesvp/src/index2.js +15 -5
  119. package/dist/components/tablesvpd/index.cjs +9 -0
  120. package/dist/components/tablesvpd/index.css +157 -0
  121. package/dist/components/tablesvpd/index.d.ts +4 -0
  122. package/dist/components/tablesvpd/index.js +9 -0
  123. package/dist/components/tablesvpd/index.scss +41 -0
  124. package/dist/components/tablesvpd/src/data.cjs +13 -0
  125. package/dist/components/tablesvpd/src/data.d.ts +18 -0
  126. package/dist/components/tablesvpd/src/data.js +13 -0
  127. package/dist/components/tablesvpd/src/index.cjs +4 -0
  128. package/dist/components/tablesvpd/src/index.js +4 -0
  129. package/dist/components/tablesvpd/src/index2.cjs +107 -0
  130. package/dist/components/tablesvpd/src/index2.js +107 -0
  131. package/dist/components/tablesvpd/style/index2.scss +4 -0
  132. package/dist/components/uploads/index.css +4 -0
  133. package/dist/components/videos/index.css +4 -0
  134. package/dist/components/window/index.css +4 -0
  135. package/dist/css/array.css +4 -0
  136. package/dist/css/audios.css +4 -0
  137. package/dist/css/box-adjust.css +4 -0
  138. package/dist/css/box-local.css +4 -0
  139. package/dist/css/box-mask.css +4 -0
  140. package/dist/css/box-title.css +4 -0
  141. package/dist/css/box.css +4 -0
  142. package/dist/css/buttons.css +4 -0
  143. package/dist/css/cascaders.css +4 -0
  144. package/dist/css/checks.css +4 -0
  145. package/dist/css/dates-divide.css +4 -0
  146. package/dist/css/dates-picker.css +4 -0
  147. package/dist/css/dates.css +4 -0
  148. package/dist/css/dates2.css +4 -0
  149. package/dist/css/dialogs.css +4 -0
  150. package/dist/css/edit-float.css +4 -0
  151. package/dist/css/edit.css +4 -0
  152. package/dist/css/forms-div.css +4 -0
  153. package/dist/css/forms-item.css +4 -0
  154. package/dist/css/forms.css +10 -6
  155. package/dist/css/full-screen.css +4 -0
  156. package/dist/css/history.css +4 -0
  157. package/dist/css/icon-picker.css +4 -0
  158. package/dist/css/icon.css +4 -0
  159. package/dist/css/iframe.css +4 -0
  160. package/dist/css/images.css +4 -0
  161. package/dist/css/index.css +44 -6
  162. package/dist/css/input-array.css +4 -0
  163. package/dist/css/input-history.css +4 -0
  164. package/dist/css/input-num.css +4 -0
  165. package/dist/css/input-select.css +4 -0
  166. package/dist/css/inputs.css +4 -0
  167. package/dist/css/{global-config.css → keep-com.css} +4 -0
  168. package/dist/css/labels.css +4 -0
  169. package/dist/css/list.css +4 -0
  170. package/dist/css/lists.css +4 -0
  171. package/dist/css/listsp.css +4 -0
  172. package/dist/css/listspd.css +4 -0
  173. package/dist/css/menus.css +4 -0
  174. package/dist/css/no-data.css +4 -0
  175. package/dist/css/page.css +10 -6
  176. package/dist/css/paging.css +4 -0
  177. package/dist/css/popup.css +4 -0
  178. package/dist/css/retract.css +4 -0
  179. package/dist/css/right-key.css +4 -0
  180. package/dist/css/seamless-scroll.css +4 -0
  181. package/dist/css/select-scroll.css +4 -0
  182. package/dist/css/selector.css +4 -0
  183. package/dist/css/selects.css +4 -0
  184. package/dist/css/sliders.css +4 -0
  185. package/dist/css/switchs.css +4 -0
  186. package/dist/css/tables.css +4 -0
  187. package/dist/css/tablesp.css +4 -0
  188. package/dist/css/tablespd.css +4 -0
  189. package/dist/css/tabless.css +4 -0
  190. package/dist/css/tablesv.css +4 -0
  191. package/dist/css/tablesvp.css +10 -0
  192. package/dist/css/tablesvpd.css +157 -0
  193. package/dist/css/uploads.css +4 -0
  194. package/dist/css/videos.css +4 -0
  195. package/dist/css/window.css +4 -0
  196. package/dist/expand/{chunk-MC76Q3TQ.cjs → chunk-3HP2ZDNG.cjs} +3 -1
  197. package/dist/expand/{chunk-CV4O5V2F.js → chunk-7C25SBCF.js} +3 -1
  198. package/dist/expand/components.cjs +5 -5
  199. package/dist/expand/components.js +1 -1
  200. package/dist/expand/config.cjs +2 -2
  201. package/dist/expand/config.js +1 -1
  202. package/dist/hooks/compons/index.cjs +44 -0
  203. package/dist/hooks/compons/index.d.ts +7 -0
  204. package/dist/hooks/compons/index.js +44 -0
  205. package/dist/icons/index.json +1 -1
  206. package/dist/index.cjs +24 -22
  207. package/dist/index.css +44 -6
  208. package/dist/index.js +2 -0
  209. package/package.json +12 -12
  210. package/dist/components/common/compons.cjs +0 -76
  211. package/dist/components/common/compons.d.ts +0 -9
  212. package/dist/components/common/compons.js +0 -76
  213. package/dist/components/common/compons.scss +0 -26
  214. package/dist/components/common/compons2.scss +0 -26
@@ -39,6 +39,13 @@ const dataProps = {
39
39
  return {};
40
40
  }
41
41
  },
42
+ /**
43
+ * @props { Boolean } isCompons=true 是否使用默认的配置
44
+ */
45
+ isCompons: {
46
+ type: Boolean,
47
+ default: true
48
+ },
42
49
  /**
43
50
  * @props { Object } compons
44
51
  * 外部组件集合
@@ -54,6 +54,13 @@ export declare const dataProps: {
54
54
  type: ObjectConstructor;
55
55
  default(): {};
56
56
  };
57
+ /**
58
+ * @props { Boolean } isCompons=true 是否使用默认的配置
59
+ */
60
+ isCompons: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
57
64
  /**
58
65
  * @props { Object } compons
59
66
  * 外部组件集合
@@ -37,6 +37,13 @@ const dataProps = {
37
37
  return {};
38
38
  }
39
39
  },
40
+ /**
41
+ * @props { Boolean } isCompons=true 是否使用默认的配置
42
+ */
43
+ isCompons: {
44
+ type: Boolean,
45
+ default: true
46
+ },
40
47
  /**
41
48
  * @props { Object } compons
42
49
  * 外部组件集合
@@ -7,22 +7,13 @@ require("../../../utils/css.cjs");
7
7
  const use = require("../../common/use.cjs");
8
8
  require("../../../utils/index.cjs");
9
9
  const vue = require("vue");
10
- const compons = require("../../common/compons.cjs");
10
+ const index$1 = require("../../../hooks/compons/index.cjs");
11
11
  const index = require("../../forms-items/index.cjs");
12
12
  const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
13
13
  const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
14
14
  const Components = {
15
15
  Items: index.FormsItems
16
16
  };
17
- const Changes = [
18
- "Select",
19
- "Date",
20
- "Array",
21
- "Check",
22
- "Labels",
23
- "Switch",
24
- "Cascader"
25
- ];
26
17
  function setUp(props, emit, cs, refForm, getLocale) {
27
18
  const buts = vue.computed(() => {
28
19
  if (typeof props.buts == "undefined") {
@@ -41,7 +32,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
41
32
  return props.buts || [];
42
33
  }
43
34
  });
44
- compons.useCompons(config.provides.compons, Components, props.compons);
35
+ index$1.useCompons(config.provides.compons, props, Components);
45
36
  vue.provide(config.provides.form, props);
46
37
  const defaultValue = {};
47
38
  const getDataForm = () => {
@@ -124,7 +115,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
124
115
  use.setFormDefaultValue(obj, dataForm.value);
125
116
  let trigger = 1;
126
117
  if (typeof obj.compon == "string") {
127
- if (Changes.includes(lineToLargeHump.lineToLargeHump(obj.compon))) {
118
+ if (config.changes.includes(lineToLargeHump.lineToLargeHump(obj.compon))) {
128
119
  trigger = 2;
129
120
  }
130
121
  }
@@ -1,6 +1,6 @@
1
1
  import { DataProps } from './data';
2
2
  import { UseCssNameReturn } from '../../../hooks/cssname';
3
- import { Ref, CSSProperties, WritableComputedRef, ComputedRef } from 'vue';
3
+ import { CSSProperties, Ref, WritableComputedRef, ComputedRef } from 'vue';
4
4
  type Emit = (...args: any[]) => void;
5
5
  export declare function setUp(props: DataProps, emit: Emit, cs: UseCssNameReturn, refForm: any, getLocale: Function): {
6
6
  dataRules: Ref<ObjAny, ObjAny>;
@@ -1,26 +1,17 @@
1
1
  import { dataHandle } from "./data.js";
2
- import { provides } from "../common/config.js";
2
+ import { provides, changes } from "../common/config.js";
3
3
  import { getRule } from "./util.js";
4
4
  import "../../../utils/css.js";
5
5
  import { setFormDefaultValue, getFormRule } from "../../common/use.js";
6
6
  import "../../../utils/index.js";
7
7
  import { computed, provide, isProxy, ref, watch } from "vue";
8
- import { useCompons } from "../../common/compons.js";
8
+ import { useCompons } from "../../../hooks/compons/index.js";
9
9
  import { FormsItems } from "../../forms-items/index.js";
10
10
  import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
11
11
  import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
12
12
  const Components = {
13
13
  Items: FormsItems
14
14
  };
15
- const Changes = [
16
- "Select",
17
- "Date",
18
- "Array",
19
- "Check",
20
- "Labels",
21
- "Switch",
22
- "Cascader"
23
- ];
24
15
  function setUp(props, emit, cs, refForm, getLocale) {
25
16
  const buts = computed(() => {
26
17
  if (typeof props.buts == "undefined") {
@@ -39,7 +30,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
39
30
  return props.buts || [];
40
31
  }
41
32
  });
42
- useCompons(provides.compons, Components, props.compons);
33
+ useCompons(provides.compons, props, Components);
43
34
  provide(provides.form, props);
44
35
  const defaultValue = {};
45
36
  const getDataForm = () => {
@@ -122,7 +113,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
122
113
  setFormDefaultValue(obj, dataForm.value);
123
114
  let trigger = 1;
124
115
  if (typeof obj.compon == "string") {
125
- if (Changes.includes(lineToLargeHump(obj.compon))) {
116
+ if (changes.includes(lineToLargeHump(obj.compon))) {
126
117
  trigger = 2;
127
118
  }
128
119
  }
@@ -4,6 +4,8 @@
4
4
 
5
5
  @use '../../forms-div/style/index2.scss' as *;
6
6
  @use '../../forms-item/style/index2.scss' as *;
7
- @use '../../common/compons2.scss' as *;
7
+ @use '../../forms-items/style/index2.scss' as *;
8
+
9
+ @use '../../common/compons/index2.scss' as *;
8
10
 
9
11
  @use '../index.scss' as *;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .forms-div {
21
25
  width: 100%;
22
26
  height: 100%;
@@ -7,7 +7,7 @@ const index = require("../../../hooks/cssname/index.cjs");
7
7
  const use = require("../../common/use.cjs");
8
8
  const isEqual = require("@fangzhongya/utils/basic/object/isEqual");
9
9
  const index$1 = require("../../../hooks/props-default/index.cjs");
10
- const compons = require("../../common/compons.cjs");
10
+ const index$2 = require("../../../hooks/compons/index.cjs");
11
11
  const config = require("../../forms/common/config.cjs");
12
12
  const objValue = require("@fangzhongya/utils/basic/object/objValue");
13
13
  const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
@@ -22,7 +22,7 @@ const _sfc_main = vue.defineComponent({
22
22
  const prs = index$1.usePropsDefault(data.name, p, data.dataProps);
23
23
  index$1.viewProps(prs, data.name);
24
24
  const props = prs.listobj;
25
- const compons$1 = compons.useGetCompons(config.provides.compons);
25
+ const compons = index$2.useComponsGet(config.provides.compons);
26
26
  const formvalue = vue.computed(() => {
27
27
  const o = {};
28
28
  if (typeof props.formvalue === "object") {
@@ -174,8 +174,8 @@ const _sfc_main = vue.defineComponent({
174
174
  };
175
175
  if (typeof compon == "string") {
176
176
  const tcom = lineToLargeHump.lineToLargeHump(compon);
177
- if (Object.keys(compons$1).includes(tcom)) {
178
- return vue.h(compons$1[tcom], componObj, slots);
177
+ if (Object.keys(compons).includes(tcom)) {
178
+ return vue.h(compons[tcom], componObj, slots);
179
179
  } else {
180
180
  return vue.h(vue.resolveComponent(compon), componObj, slots);
181
181
  }
@@ -5,7 +5,7 @@ import { useCssName } from "../../../hooks/cssname/index.js";
5
5
  import { getOnObjs } from "../../common/use.js";
6
6
  import { isEqual } from "@fangzhongya/utils/basic/object/isEqual";
7
7
  import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
8
- import { useGetCompons } from "../../common/compons.js";
8
+ import { useComponsGet } from "../../../hooks/compons/index.js";
9
9
  import { provides } from "../../forms/common/config.js";
10
10
  import { setObjValue, getObjValue } from "@fangzhongya/utils/basic/object/objValue";
11
11
  import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
@@ -20,7 +20,7 @@ const _sfc_main = defineComponent({
20
20
  const prs = usePropsDefault(name, p, dataProps);
21
21
  viewProps(prs, name);
22
22
  const props = prs.listobj;
23
- const compons = useGetCompons(provides.compons);
23
+ const compons = useComponsGet(provides.compons);
24
24
  const formvalue = computed(() => {
25
25
  const o = {};
26
26
  if (typeof props.formvalue === "object") {
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .forms-div {
21
25
  width: 100%;
22
26
  height: 100%;
@@ -52,7 +52,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
52
52
  }>, {
53
53
  modelValue: Record<string, any>;
54
54
  listobj: ListObj;
55
- optionss: ObjAny;
56
55
  hideLabel: boolean;
56
+ optionss: ObjAny;
57
57
  }, {}, {}, {}, never, ComponentProvideOptions, true, {}, any>;
58
58
  export default _default;
@@ -2,38 +2,25 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const use = require("../../common/use.cjs");
5
- const isObject = require("@fangzhongya/utils/basic/object/isObject");
6
5
  const config = require("../../forms/common/config.cjs");
7
- const compons = require("../../common/compons.cjs");
6
+ const index = require("../../../hooks/compons/index.cjs");
8
7
  function render(props, emit, slots, form) {
9
- const compons$1 = compons.useGetCompons(config.provides.compons);
10
8
  let label = props.label ?? "";
11
- const index = 0;
12
9
  if (label) {
13
- if (isObject.isObject(label)) {
14
- const obj = props.listobj;
15
- const optionss = props.options || {};
16
- const data = props.valueobj;
17
- label = Object.assign({}, obj, label);
18
- const slot = use.useSetSlot(label, data, slots, index);
19
- if (slot) {
20
- return slot;
21
- }
22
- if (label.compon) {
23
- const column = use.useSetCompon(
24
- label,
25
- data,
26
- optionss,
27
- compons$1,
28
- emit,
29
- index
30
- );
31
- if (column) {
32
- return column;
33
- }
34
- }
35
- label = use.useGetDomValue(label, data, optionss, index);
36
- }
10
+ const index$1 = 0;
11
+ const compons = index.useComponsGet(config.provides.compons);
12
+ const data = props.valueobj;
13
+ const optionss = props.options || {};
14
+ label = use.useGetDomLabel(
15
+ label,
16
+ props,
17
+ data,
18
+ slots,
19
+ optionss,
20
+ compons,
21
+ emit,
22
+ index$1
23
+ );
37
24
  }
38
25
  let colon = form.colon;
39
26
  if (colon) {
@@ -1,37 +1,24 @@
1
1
  import { defineComponent, inject } from "vue";
2
- import { useSetSlot, useSetCompon, useGetDomValue } from "../../common/use.js";
3
- import { isObject } from "@fangzhongya/utils/basic/object/isObject";
2
+ import { useGetDomLabel } from "../../common/use.js";
4
3
  import { provides } from "../../forms/common/config.js";
5
- import { useGetCompons } from "../../common/compons.js";
4
+ import { useComponsGet } from "../../../hooks/compons/index.js";
6
5
  function render(props, emit, slots, form) {
7
- const compons = useGetCompons(provides.compons);
8
6
  let label = props.label ?? "";
9
- const index = 0;
10
7
  if (label) {
11
- if (isObject(label)) {
12
- const obj = props.listobj;
13
- const optionss = props.options || {};
14
- const data = props.valueobj;
15
- label = Object.assign({}, obj, label);
16
- const slot = useSetSlot(label, data, slots, index);
17
- if (slot) {
18
- return slot;
19
- }
20
- if (label.compon) {
21
- const column = useSetCompon(
22
- label,
23
- data,
24
- optionss,
25
- compons,
26
- emit,
27
- index
28
- );
29
- if (column) {
30
- return column;
31
- }
32
- }
33
- label = useGetDomValue(label, data, optionss, index);
34
- }
8
+ const index = 0;
9
+ const compons = useComponsGet(provides.compons);
10
+ const data = props.valueobj;
11
+ const optionss = props.options || {};
12
+ label = useGetDomLabel(
13
+ label,
14
+ props,
15
+ data,
16
+ slots,
17
+ optionss,
18
+ compons,
19
+ emit,
20
+ index
21
+ );
35
22
  }
36
23
  let colon = form.colon;
37
24
  if (colon) {
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .full-screen {
21
25
  width: 100%;
22
26
  height: 100%;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .history {
21
25
  display: flex;
22
26
  }
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .icon {
21
25
  --color: inherit;
22
26
  height: 1em;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .icon-picker {
21
25
  height: 30px;
22
26
  }
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .iframe {
21
25
  width: 100%;
22
26
  height: 100%;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .images-img {
21
25
  width: 100%;
22
26
  height: 100%;
@@ -139,6 +139,7 @@ const index$2P = require("./tablespd/index.cjs");
139
139
  const index$2Q = require("./tabless/index.cjs");
140
140
  const index$2R = require("./tablesv/index.cjs");
141
141
  const index$2S = require("./tablesvp/index.cjs");
142
+ const index$2T = require("./tablesvpd/index.cjs");
142
143
  const index$2 = require("element-plus/es/components/button/index");
143
144
  const index$4 = require("element-plus/es/components/card/index");
144
145
  const index$6 = require("element-plus/es/components/color-picker/index");
@@ -322,6 +323,7 @@ exports.Tablespd = index$2P.Tablespd;
322
323
  exports.Tabless = index$2Q.Tabless;
323
324
  exports.Tablesv = index$2R.Tablesv;
324
325
  exports.Tablesvp = index$2S.Tablesvp;
326
+ exports.Tablesvpd = index$2T.Tablesvpd;
325
327
  Object.keys(index$2).forEach((k) => {
326
328
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
327
329
  enumerable: true,
@@ -136,3 +136,4 @@ export * from './tablespd/index';
136
136
  export * from './tabless/index';
137
137
  export * from './tablesv/index';
138
138
  export * from './tablesvp/index';
139
+ export * from './tablesvpd/index';
@@ -137,6 +137,7 @@ import { Tablespd } from "./tablespd/index.js";
137
137
  import { Tabless } from "./tabless/index.js";
138
138
  import { Tablesv } from "./tablesv/index.js";
139
139
  import { Tablesvp } from "./tablesvp/index.js";
140
+ import { Tablesvpd } from "./tablesvpd/index.js";
140
141
  export * from "element-plus/es/components/button/index";
141
142
  export * from "element-plus/es/components/card/index";
142
143
  export * from "element-plus/es/components/color-picker/index";
@@ -305,6 +306,7 @@ export {
305
306
  Tabless,
306
307
  Tablesv,
307
308
  Tablesvp,
309
+ Tablesvpd,
308
310
  Tabs,
309
311
  Tag,
310
312
  Text,
@@ -121,4 +121,5 @@
121
121
  @use './tablespd/index.scss' as *;
122
122
  @use './tabless/index.scss' as *;
123
123
  @use './tablesv/index.scss' as *;
124
- @use './tablesvp/index.scss' as *;
124
+ @use './tablesvp/index.scss' as *;
125
+ @use './tablesvpd/index.scss' as *;
@@ -121,4 +121,5 @@
121
121
  @use './tablespd/style/index2.scss' as *;
122
122
  @use './tabless/style/index2.scss' as *;
123
123
  @use './tablesv/style/index2.scss' as *;
124
- @use './tablesvp/style/index2.scss' as *;
124
+ @use './tablesvp/style/index2.scss' as *;
125
+ @use './tablesvpd/style/index2.scss' as *;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .input-array {
21
25
  width: 100%;
22
26
  display: inline-flex;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .input-history {
21
25
  display: flex;
22
26
  }
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .input-num-input {
21
25
  height: 100%;
22
26
  width: 100%;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .input-select-select-icon {
21
25
  margin-left: 8px;
22
26
  display: inline-flex;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .inputs-input {
21
25
  height: 100%;
22
26
  }
@@ -15,4 +15,8 @@
15
15
  .com-footer {
16
16
  border-top: 1px solid var(--border);
17
17
  padding: 20px 20px;
18
+ }
19
+
20
+ .com-lable-array {
21
+ line-height: 18px;
18
22
  }
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .checks-check {
21
25
  height: 100%;
22
26
  display: flex;
@@ -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
  .list-div .list-table {
22
26
  width: 100%;
23
27
  height: 100%;
@@ -12,6 +12,12 @@ const dataProps = {
12
12
  return {};
13
13
  }
14
14
  },
15
+ /**
16
+ * @props { Boolean } isCompons 是否使用默认的配置
17
+ */
18
+ isCompons: {
19
+ type: Boolean
20
+ },
15
21
  /**
16
22
  * @props { Object } compons={}
17
23
  * 外部组件集合
@@ -12,6 +12,12 @@ export declare const dataProps: {
12
12
  type: ObjectConstructor;
13
13
  default(): {};
14
14
  };
15
+ /**
16
+ * @props { Boolean } isCompons 是否使用默认的配置
17
+ */
18
+ isCompons: {
19
+ type: BooleanConstructor;
20
+ };
15
21
  /**
16
22
  * @props { Object } compons={}
17
23
  * 外部组件集合
@@ -10,6 +10,12 @@ const dataProps = {
10
10
  return {};
11
11
  }
12
12
  },
13
+ /**
14
+ * @props { Boolean } isCompons 是否使用默认的配置
15
+ */
16
+ isCompons: {
17
+ type: Boolean
18
+ },
13
19
  /**
14
20
  * @props { Object } compons={}
15
21
  * 外部组件集合
@@ -4,8 +4,8 @@ const vue = require("vue");
4
4
  const util = require("./util.cjs");
5
5
  const css = require("../../common/css.cjs");
6
6
  const use = require("../../common/use.cjs");
7
- const compons = require("../../common/compons.cjs");
8
- const index$1 = require("../../../hooks/cssname/index.cjs");
7
+ const index$1 = require("../../../hooks/compons/index.cjs");
8
+ const index$2 = require("../../../hooks/cssname/index.cjs");
9
9
  const tooltip = require("../../tables/common/tooltip.cjs");
10
10
  const index = require("../../../hooks/props-default/index.cjs");
11
11
  const data = require("./data.cjs");
@@ -23,8 +23,8 @@ const _sfc_main = vue.defineComponent({
23
23
  setup(prs, { emit, slots }) {
24
24
  const props = index.usePropsDefault(data.name, prs, data.dataProps);
25
25
  index.viewProps(props, data.name);
26
- const compons$1 = compons.useCompons("list-compons", props.compons);
27
- const cs = index$1.useCssName(data.name);
26
+ const compons = index$1.useCompons(data.name, props);
27
+ const cs = index$2.useCssName(data.name);
28
28
  const refDom = vue.ref();
29
29
  const isfocus = vue.ref(false);
30
30
  const rowObj = vue.shallowRef();
@@ -179,7 +179,7 @@ const _sfc_main = vue.defineComponent({
179
179
  util.setLabel(
180
180
  obj,
181
181
  props,
182
- compons$1,
182
+ compons,
183
183
  emit,
184
184
  slots,
185
185
  isComponSelected,
@@ -235,7 +235,7 @@ const _sfc_main = vue.defineComponent({
235
235
  obj,
236
236
  props.value,
237
237
  props,
238
- compons$1,
238
+ compons,
239
239
  emit,
240
240
  slots,
241
241
  isComponSelected,