@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
@@ -1,7 +1,7 @@
1
1
  import { h } from "vue";
2
2
  import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../common/use.js";
3
3
  import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
4
- import { useGetCompons } from "../../common/compons.js";
4
+ import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  import { provides } from "../../tables/common/config.js";
6
6
  import { setMinWidth } from "../../tables/common/util.js";
7
7
  import "../../../utils/index.js";
@@ -9,106 +9,6 @@ import { VxeColumn } from "vxe-table/es/column";
9
9
  import { Radio } from "../../radio/index.js";
10
10
  import { Checkbox } from "../../checkbox/index.js";
11
11
  import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
12
- function setBox(props, obj, emit, propss, slots, index) {
13
- if (props.type == "radio") {
14
- return h(
15
- VxeColumn,
16
- {
17
- ...props,
18
- className: obj.class,
19
- minWidth: setMinWidth(obj, propss)
20
- },
21
- {
22
- radio: (scope) => {
23
- return h(
24
- "span",
25
- {
26
- class: "fv-custom-radio " + props.align + " " + (scope.disabled ? "is-disabled" : ""),
27
- onClick(event) {
28
- emit("list-events", "radio", scope);
29
- }
30
- },
31
- [
32
- h(
33
- Radio,
34
- {
35
- modelValue: scope.checked,
36
- value: true,
37
- label: true,
38
- disabled: scope.disabled
39
- },
40
- {
41
- default() {
42
- return "";
43
- }
44
- }
45
- ),
46
- h("span", {
47
- class: "fv-custom-radio-mask"
48
- })
49
- ]
50
- );
51
- }
52
- }
53
- );
54
- } else {
55
- return h(
56
- VxeColumn,
57
- {
58
- ...props,
59
- className: obj.class,
60
- minWidth: setMinWidth(obj, propss)
61
- },
62
- {
63
- header: (scope) => {
64
- return h(
65
- "span",
66
- {
67
- class: "fv-custom-checkbox",
68
- onClick(event) {
69
- emit("list-events", "checkbox-all", scope);
70
- }
71
- },
72
- [
73
- h(
74
- Checkbox,
75
- {
76
- indeterminate: scope.indeterminate,
77
- modelValue: scope.checked
78
- },
79
- obj.label
80
- ),
81
- h("span", {
82
- class: "fv-custom-checkbox-mask"
83
- })
84
- ]
85
- );
86
- },
87
- checkbox: (scope) => {
88
- return h(
89
- "span",
90
- {
91
- class: "fv-custom-checkbox " + (scope.disabled ? "is-disabled" : ""),
92
- onClick(event) {
93
- emit("list-events", "checkbox", scope);
94
- }
95
- },
96
- [
97
- h(Checkbox, {
98
- indeterminate: scope.indeterminate,
99
- modelValue: scope.checked,
100
- disabled: scope.disabled
101
- }),
102
- h("span", {
103
- class: "fv-custom-checkbox-mask"
104
- })
105
- ]
106
- );
107
- }
108
- }
109
- );
110
- }
111
- }
112
12
  const noProps = ["children", "class", "minWidth"];
113
13
  function setProps(obj, props) {
114
14
  const table = props.table;
@@ -124,13 +24,14 @@ function setProps(obj, props) {
124
24
  const ckey = lineToSmallHump(key);
125
25
  if (!noProps.includes(ckey)) {
126
26
  if (obj[key] !== "") {
127
- robj[key] = obj[key];
128
27
  if (key == "label") {
129
28
  robj["title"] = obj[key];
130
29
  } else if (ckey == "showOverflowTooltip") {
131
30
  if (obj[key]) {
132
31
  robj["show-overflow"] = "tooltip";
133
32
  }
33
+ } else if (key == "sortable") {
34
+ robj[key] = obj[key] ? true : void 0;
134
35
  } else if (key == "prop") {
135
36
  robj["field"] = obj[key];
136
37
  } else if (key == "fixed") {
@@ -160,6 +61,8 @@ function setProps(obj, props) {
160
61
  } else if (obj[key] == "index") {
161
62
  robj[key] = "seq";
162
63
  }
64
+ } else {
65
+ robj[key] = obj[key];
163
66
  }
164
67
  }
165
68
  }
@@ -167,7 +70,7 @@ function setProps(obj, props) {
167
70
  return robj;
168
71
  }
169
72
  function setSslot(obj, scope, emit, slots, props, index) {
170
- const slot = useSetSlot(obj, scope.row, slots, index);
73
+ const slot = useSetSlot(obj, scope.row, slots, index, scope);
171
74
  if (slot) {
172
75
  return slot;
173
76
  }
@@ -179,9 +82,10 @@ function setSslot(obj, scope, emit, slots, props, index) {
179
82
  obj,
180
83
  scope.row,
181
84
  optionss,
182
- useGetCompons(provides.compons),
85
+ useComponsGet(provides.compons),
183
86
  emit,
184
- index
87
+ index,
88
+ scope
185
89
  );
186
90
  if (column) {
187
91
  return column;
@@ -230,7 +134,7 @@ function setHeader(obj, scope, slots, emit, props, index) {
230
134
  scope.row,
231
135
  slots,
232
136
  optionss,
233
- useGetCompons(provides.compons),
137
+ useComponsGet(provides.compons),
234
138
  emit,
235
139
  index
236
140
  );
@@ -264,6 +168,106 @@ function getDom(obj, emit, propss, slots, index) {
264
168
  function columnRender(obj, emit, props, slots, index) {
265
169
  return getDom(obj, emit, props, slots, index);
266
170
  }
171
+ function setBox(props, obj, emit, propss, slots, index) {
172
+ if (props.type == "radio") {
173
+ return h(
174
+ VxeColumn,
175
+ {
176
+ ...props,
177
+ className: obj.class,
178
+ minWidth: setMinWidth(obj, propss)
179
+ },
180
+ {
181
+ radio: (scope) => {
182
+ return h(
183
+ "span",
184
+ {
185
+ class: "fv-custom-radio " + props.align + " " + (scope.disabled ? "is-disabled" : ""),
186
+ onClick(event) {
187
+ emit("list-events", "radio", scope);
188
+ }
189
+ },
190
+ [
191
+ h(
192
+ Radio,
193
+ {
194
+ modelValue: scope.checked,
195
+ value: true,
196
+ label: true,
197
+ disabled: scope.disabled
198
+ },
199
+ {
200
+ default() {
201
+ return "";
202
+ }
203
+ }
204
+ ),
205
+ h("span", {
206
+ class: "fv-custom-radio-mask"
207
+ })
208
+ ]
209
+ );
210
+ }
211
+ }
212
+ );
213
+ } else {
214
+ return h(
215
+ VxeColumn,
216
+ {
217
+ ...props,
218
+ className: obj.class,
219
+ minWidth: setMinWidth(obj, propss)
220
+ },
221
+ {
222
+ header: (scope) => {
223
+ return h(
224
+ "span",
225
+ {
226
+ class: "fv-custom-checkbox",
227
+ onClick(event) {
228
+ emit("list-events", "checkbox-all", scope);
229
+ }
230
+ },
231
+ [
232
+ h(
233
+ Checkbox,
234
+ {
235
+ indeterminate: scope.indeterminate,
236
+ modelValue: scope.checked
237
+ },
238
+ obj.label
239
+ ),
240
+ h("span", {
241
+ class: "fv-custom-checkbox-mask"
242
+ })
243
+ ]
244
+ );
245
+ },
246
+ checkbox: (scope) => {
247
+ return h(
248
+ "span",
249
+ {
250
+ class: "fv-custom-checkbox " + (scope.disabled ? "is-disabled" : ""),
251
+ onClick(event) {
252
+ emit("list-events", "checkbox", scope);
253
+ }
254
+ },
255
+ [
256
+ h(Checkbox, {
257
+ indeterminate: scope.indeterminate,
258
+ modelValue: scope.checked,
259
+ disabled: scope.disabled
260
+ }),
261
+ h("span", {
262
+ class: "fv-custom-checkbox-mask"
263
+ })
264
+ ]
265
+ );
266
+ }
267
+ }
268
+ );
269
+ }
270
+ }
267
271
  export {
268
272
  columnRender,
269
273
  setHeader,
@@ -11,12 +11,29 @@ const dataProps = {
11
11
  return {};
12
12
  }
13
13
  },
14
+ /**
15
+ * @props { String, Number } height='auto' 高度
16
+ */
14
17
  height: {
15
18
  type: [String, Number],
16
19
  default() {
17
20
  return "auto";
18
21
  }
19
22
  },
23
+ /**
24
+ * @props { String, Number } maxHeight
25
+ * 最大高度 设置了最大高度 height 值将无效化
26
+ */
27
+ maxHeight: {
28
+ type: String
29
+ },
30
+ /**
31
+ * @props { String, Number } minHeight
32
+ * 最小高度
33
+ */
34
+ minHeight: {
35
+ type: String
36
+ },
20
37
  /**
21
38
  * 加载中
22
39
  */
@@ -56,6 +73,9 @@ const dataProps = {
56
73
  return [];
57
74
  }
58
75
  },
76
+ rowKey: {
77
+ type: String
78
+ },
59
79
  /**
60
80
  * 行高度
61
81
  */
@@ -77,6 +97,12 @@ const dataProps = {
77
97
  return {};
78
98
  }
79
99
  },
100
+ /**
101
+ * @props { Boolean } isCompons 是否使用默认的配置
102
+ */
103
+ isCompons: {
104
+ type: Boolean
105
+ },
80
106
  /**
81
107
  * @props { Object } compons 外部组件集合
82
108
  */
@@ -85,6 +111,22 @@ const dataProps = {
85
111
  default() {
86
112
  return {};
87
113
  }
114
+ },
115
+ /**
116
+ * @props { String } interval='6px'
117
+ * 查询模式的上下间距
118
+ */
119
+ interval: {
120
+ type: String,
121
+ default: "8px"
122
+ },
123
+ /**
124
+ * @props { String } intervalHorizon
125
+ * 查询模式的左右间距
126
+ */
127
+ intervalHorizon: {
128
+ type: String,
129
+ default: "12px"
88
130
  }
89
131
  };
90
132
  const dataEmits = [
@@ -93,6 +135,8 @@ const dataEmits = [
93
135
  "scope-click",
94
136
  "selection-list",
95
137
  "list-events",
138
+ "row-click",
139
+ "cell-click",
96
140
  "selection-change"
97
141
  ];
98
142
  const dataExpose = {};
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, Component } from 'vue';
2
2
  export type DefaultSort = {
3
3
  prop: string;
4
- order: 'ascending' | 'descending';
4
+ order: string;
5
5
  };
6
6
  /**
7
7
  * @title FTable 表格
@@ -21,10 +21,27 @@ export declare const dataProps: {
21
21
  type: () => DefaultSort;
22
22
  default(): {};
23
23
  };
24
+ /**
25
+ * @props { String, Number } height='auto' 高度
26
+ */
24
27
  height: {
25
28
  type: (StringConstructor | NumberConstructor)[];
26
29
  default(): string;
27
30
  };
31
+ /**
32
+ * @props { String, Number } maxHeight
33
+ * 最大高度 设置了最大高度 height 值将无效化
34
+ */
35
+ maxHeight: {
36
+ type: StringConstructor;
37
+ };
38
+ /**
39
+ * @props { String, Number } minHeight
40
+ * 最小高度
41
+ */
42
+ minHeight: {
43
+ type: StringConstructor;
44
+ };
28
45
  /**
29
46
  * 加载中
30
47
  */
@@ -89,6 +106,9 @@ export declare const dataProps: {
89
106
  };
90
107
  default(): never[];
91
108
  };
109
+ rowKey: {
110
+ type: StringConstructor;
111
+ };
92
112
  /**
93
113
  * 行高度
94
114
  */
@@ -106,6 +126,12 @@ export declare const dataProps: {
106
126
  type: ObjectConstructor;
107
127
  default(): {};
108
128
  };
129
+ /**
130
+ * @props { Boolean } isCompons 是否使用默认的配置
131
+ */
132
+ isCompons: {
133
+ type: BooleanConstructor;
134
+ };
109
135
  /**
110
136
  * @props { Object } compons 外部组件集合
111
137
  */
@@ -115,6 +141,22 @@ export declare const dataProps: {
115
141
  };
116
142
  default(): {};
117
143
  };
144
+ /**
145
+ * @props { String } interval='6px'
146
+ * 查询模式的上下间距
147
+ */
148
+ interval: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
152
+ /**
153
+ * @props { String } intervalHorizon
154
+ * 查询模式的左右间距
155
+ */
156
+ intervalHorizon: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
118
160
  };
119
161
  export type DataProps = ExtractPropTypes<typeof dataProps>;
120
162
  /**
@@ -9,12 +9,29 @@ const dataProps = {
9
9
  return {};
10
10
  }
11
11
  },
12
+ /**
13
+ * @props { String, Number } height='auto' 高度
14
+ */
12
15
  height: {
13
16
  type: [String, Number],
14
17
  default() {
15
18
  return "auto";
16
19
  }
17
20
  },
21
+ /**
22
+ * @props { String, Number } maxHeight
23
+ * 最大高度 设置了最大高度 height 值将无效化
24
+ */
25
+ maxHeight: {
26
+ type: String
27
+ },
28
+ /**
29
+ * @props { String, Number } minHeight
30
+ * 最小高度
31
+ */
32
+ minHeight: {
33
+ type: String
34
+ },
18
35
  /**
19
36
  * 加载中
20
37
  */
@@ -54,6 +71,9 @@ const dataProps = {
54
71
  return [];
55
72
  }
56
73
  },
74
+ rowKey: {
75
+ type: String
76
+ },
57
77
  /**
58
78
  * 行高度
59
79
  */
@@ -75,6 +95,12 @@ const dataProps = {
75
95
  return {};
76
96
  }
77
97
  },
98
+ /**
99
+ * @props { Boolean } isCompons 是否使用默认的配置
100
+ */
101
+ isCompons: {
102
+ type: Boolean
103
+ },
78
104
  /**
79
105
  * @props { Object } compons 外部组件集合
80
106
  */
@@ -83,6 +109,22 @@ const dataProps = {
83
109
  default() {
84
110
  return {};
85
111
  }
112
+ },
113
+ /**
114
+ * @props { String } interval='6px'
115
+ * 查询模式的上下间距
116
+ */
117
+ interval: {
118
+ type: String,
119
+ default: "8px"
120
+ },
121
+ /**
122
+ * @props { String } intervalHorizon
123
+ * 查询模式的左右间距
124
+ */
125
+ intervalHorizon: {
126
+ type: String,
127
+ default: "12px"
86
128
  }
87
129
  };
88
130
  const dataEmits = [
@@ -91,6 +133,8 @@ const dataEmits = [
91
133
  "scope-click",
92
134
  "selection-list",
93
135
  "list-events",
136
+ "row-click",
137
+ "cell-click",
94
138
  "selection-change"
95
139
  ];
96
140
  const dataExpose = {};
@@ -2,16 +2,18 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const table = require("vxe-table/es/table");
5
+ require("../../loading/index.cjs");
5
6
  const data = require("./data.cjs");
6
7
  const config = require("../../tables/common/config.cjs");
7
8
  require("./columns.cjs");
8
- const index$3 = require("../../no-data/index.cjs");
9
+ const index$4 = require("../../no-data/index.cjs");
9
10
  const use = require("../../common/use.cjs");
10
11
  const index$1 = require("../../../hooks/inherit/index.cjs");
11
12
  const index = require("../../../hooks/cssname/index.cjs");
12
- const compons = require("../../common/compons.cjs");
13
+ const index$3 = require("../../../hooks/compons/index.cjs");
13
14
  const index$2 = require("../../../hooks/props-default/index.cjs");
14
15
  const columns_vue_vue_type_script_lang = require("./columns2.cjs");
16
+ const index$5 = require("element-plus/es/components/loading/index");
15
17
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
18
  __name: "index",
17
19
  props: index$2.getProps(data.dataProps),
@@ -23,9 +25,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
25
  const prs = __props;
24
26
  const props = index$2.usePropsDefault(data.name, prs, data.dataProps);
25
27
  index$2.viewProps(props, data.name);
26
- compons.useCompons(config.provides.compons, props.compons);
28
+ index$3.useCompons(config.provides.compons, props);
27
29
  const tableRef = vue.ref();
28
30
  const emit = __emit;
31
+ console.log("props.maxHeight", props.maxHeight);
29
32
  const rowObj = vue.ref();
30
33
  const isfocus = vue.ref(false);
31
34
  function onClick() {
@@ -80,7 +83,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
80
83
  nocustomize: attrs.assem.__B("nocustomize"),
81
84
  row: {
82
85
  isCurrent: setHover(),
83
- isHover: setHover()
86
+ isHover: setHover(),
87
+ keyField: props.rowKey
84
88
  },
85
89
  column: {
86
90
  minWidth: attrs.assem.minWidth,
@@ -95,10 +99,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
95
99
  },
96
100
  seq: {},
97
101
  checkbox: {
98
- trigger: attrs.assem.noRowSelect ? "cell" : "row"
102
+ trigger: attrs.assem.isRowSelect ? "row" : "cell"
99
103
  },
100
104
  radio: {
101
- trigger: attrs.assem.noRowSelect ? "cell" : "row"
105
+ trigger: attrs.assem.isRowSelect ? "row" : "cell"
102
106
  }
103
107
  });
104
108
  const rowStyle = vue.computed(() => {
@@ -166,9 +170,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
166
170
  }
167
171
  function onCellClick(scope) {
168
172
  rowObj.value = scope.row;
173
+ emit("cell-click", scope.row, scope.row, scope);
169
174
  }
170
175
  function toggleRowSelection(row) {
171
- tableRef.value.toggleRowSelection(row);
172
176
  }
173
177
  function clearSelection() {
174
178
  tableRef.value.clearCheckboxRow();
@@ -176,6 +180,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
176
180
  function clearRadioRow() {
177
181
  tableRef.value.clearRadioRow();
178
182
  }
183
+ function getSelections() {
184
+ }
185
+ function clearSort() {
186
+ tableRef.value.clearSort();
187
+ }
188
+ function setCurrentRow(row) {
189
+ tableRef.value.setRadioRow(row);
190
+ }
191
+ function clearCurrentRow() {
192
+ tableRef.value.clearRadioRow();
193
+ tableRef.value.clearCurrentRow();
194
+ }
179
195
  vue.onMounted(() => {
180
196
  if (window) {
181
197
  window.addEventListener("click", () => {
@@ -186,19 +202,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
186
202
  __expose({
187
203
  ...data.dataExpose,
188
204
  clearSelection,
189
- clearRadioRow
205
+ clearRadioRow,
206
+ clearSort,
207
+ setCurrentRow,
208
+ clearCurrentRow,
209
+ getSelections,
210
+ toggleRowSelection
190
211
  });
191
212
  return (_ctx, _cache) => {
192
213
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
193
214
  class: vue.unref(cs).z()
194
215
  }, vue.unref(attrs).root), [
195
- vue.createVNode(vue.unref(table.VxeTable), vue.mergeProps(vue.unref(attrs).assem, {
216
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(table.VxeTable), vue.mergeProps(vue.unref(attrs).assem, {
217
+ size: size.value,
196
218
  ref_key: "tableRef",
197
219
  ref: tableRef,
198
- height: vue.unref(props).height == "auto" ? "" : vue.unref(props).height,
199
220
  class: [vue.unref(cs).z("table"), vue.unref(cs).is("absolute", vue.unref(props).adaptive)],
200
- size: size.value,
201
- loading: vue.unref(props).loading,
221
+ height: vue.unref(props).maxHeight ? void 0 : vue.unref(props).height,
222
+ "max-height": vue.unref(props).maxHeight,
202
223
  "column-config": config$1.value.column,
203
224
  "row-style": rowStyle.value,
204
225
  "row-config": config$1.value.row,
@@ -215,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
215
236
  }), {
216
237
  empty: vue.withCtx(() => [
217
238
  vue.renderSlot(_ctx.$slots, "no-data", {}, () => [
218
- vue.createVNode(vue.unref(index$3.NoData))
239
+ vue.createVNode(vue.unref(index$4.NoData))
219
240
  ])
220
241
  ]),
221
242
  default: vue.withCtx(() => [
@@ -241,7 +262,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
241
262
  ]), 1032, ["table", "vxeconfig", "value", "list", "options"])
242
263
  ]),
243
264
  _: 3
244
- }, 16, ["height", "class", "size", "loading", "column-config", "row-style", "row-config", "seq-config", "sort-config", "checkbox-config", "radio-config", "data"])
265
+ }, 16, ["size", "class", "height", "max-height", "column-config", "row-style", "row-config", "seq-config", "sort-config", "checkbox-config", "radio-config", "data"])), [
266
+ [vue.unref(index$5.vLoading), vue.unref(props).loading]
267
+ ])
245
268
  ], 16);
246
269
  };
247
270
  }