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