orion-design 0.1.31 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/README.md +5 -5
  2. package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
  3. package/dist/Throne/hooks/use-throne-context.js +15 -0
  4. package/dist/Throne/hooks/use-throne-context.js.map +1 -0
  5. package/dist/Throne/index.d.ts +1 -1
  6. package/dist/Throne/index.js +14 -30
  7. package/dist/Throne/index.js.map +1 -1
  8. package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
  9. package/dist/components/Button/index.js +36 -41
  10. package/dist/components/Button/index.js.map +1 -1
  11. package/dist/components/Flex/index.js +89 -122
  12. package/dist/components/Flex/index.js.map +1 -1
  13. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
  14. package/dist/components/Form/Form.js +2 -2
  15. package/dist/components/Form/Form.js.map +1 -1
  16. package/dist/components/Form/LovInput/LovInput.js +2 -2
  17. package/dist/components/Form/LovInput/LovInput.js.map +1 -1
  18. package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
  19. package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
  20. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
  21. package/dist/components/Form/LovInput/index.js +4 -4
  22. package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
  23. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
  24. package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
  25. package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
  26. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
  27. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
  28. package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
  29. package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
  30. package/dist/components/Form/MultiTableSelect/index.js +7 -0
  31. package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
  32. package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
  33. package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
  34. package/dist/components/Form/hooks/index.js +69 -127
  35. package/dist/components/Form/hooks/index.js.map +1 -1
  36. package/dist/components/Form/index.d.ts +3 -0
  37. package/dist/components/Form/index.js +790 -829
  38. package/dist/components/Form/index.js.map +1 -1
  39. package/dist/components/Form/utils/index.js +18 -30
  40. package/dist/components/Form/utils/index.js.map +1 -1
  41. package/dist/components/LovTable/LovPagetable.vue.d.ts +510 -6
  42. package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
  43. package/dist/components/LovTable/index.d.ts +489 -5
  44. package/dist/components/LovTable/index.js +104 -179
  45. package/dist/components/LovTable/index.js.map +1 -1
  46. package/dist/components/Modal/index.js +56 -111
  47. package/dist/components/Modal/index.js.map +1 -1
  48. package/dist/components/Modal/types.d.ts +1 -1
  49. package/dist/components/Modal/types.js +3 -4
  50. package/dist/components/Modal/types.js.map +1 -1
  51. package/dist/components/Modal/useModal.js +5 -5
  52. package/dist/components/Modal/useModal.js.map +1 -1
  53. package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +880 -0
  54. package/dist/components/MultiTableSelectPagetable/index.d.ts +462 -0
  55. package/dist/components/MultiTableSelectPagetable/index.js +164 -0
  56. package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
  57. package/dist/components/Pagetable/Pagetable.d.ts +96 -3
  58. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +14 -1
  59. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +14 -1
  60. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
  61. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +14 -1
  62. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +14 -1
  63. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +14 -1
  64. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +14 -1
  65. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +14 -1
  66. package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
  67. package/dist/components/Pagetable/hooks/useCode.js +24 -0
  68. package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
  69. package/dist/components/Pagetable/hooks/useColumns.js +85 -88
  70. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  71. package/dist/components/Pagetable/index.d.ts +159 -2
  72. package/dist/components/Pagetable/index.js +601 -684
  73. package/dist/components/Pagetable/index.js.map +1 -1
  74. package/dist/components/Pagetable/utils/index.js +54 -92
  75. package/dist/components/Pagetable/utils/index.js.map +1 -1
  76. package/dist/components/Querytable/Querytable.d.ts +80 -2
  77. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
  78. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
  79. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
  80. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
  81. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
  82. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
  83. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
  84. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
  85. package/dist/components/Querytable/hooks/useColumns.js +79 -82
  86. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  87. package/dist/components/Querytable/index.d.ts +147 -1
  88. package/dist/components/Querytable/index.js +526 -579
  89. package/dist/components/Querytable/index.js.map +1 -1
  90. package/dist/components/Querytable/utils/index.js +54 -92
  91. package/dist/components/Querytable/utils/index.js.map +1 -1
  92. package/dist/components/RichTextEditor/index.js +74 -100
  93. package/dist/components/RichTextEditor/index.js.map +1 -1
  94. package/dist/components/Tabs/constants.js +2 -2
  95. package/dist/components/Tabs/constants.js.map +1 -1
  96. package/dist/components/Tabs/index.js +358 -603
  97. package/dist/components/Tabs/index.js.map +1 -1
  98. package/dist/components/Tabs/tab-bar.js +6 -6
  99. package/dist/components/Tabs/tab-bar.js.map +1 -1
  100. package/dist/components/Tabs/tab-pane.js +3 -3
  101. package/dist/components/Tabs/tab-pane.js.map +1 -1
  102. package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
  103. package/dist/components/_constants/aria.js +2 -2
  104. package/dist/components/_constants/aria.js.map +1 -1
  105. package/dist/components/_constants/event.js +4 -6
  106. package/dist/components/_constants/event.js.map +1 -1
  107. package/dist/components/_constants/index.js +6 -6
  108. package/dist/components/_hooks/index.js +7 -7
  109. package/dist/components/_hooks/use-namespace/index.js +39 -74
  110. package/dist/components/_hooks/use-namespace/index.js.map +1 -1
  111. package/dist/components/_hooks/use-ordered-children/index.js +19 -29
  112. package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
  113. package/dist/components/_util/arrays.js +5 -9
  114. package/dist/components/_util/arrays.js.map +1 -1
  115. package/dist/components/_util/browser.js +6 -6
  116. package/dist/components/_util/browser.js.map +1 -1
  117. package/dist/components/_util/classNames.js +17 -22
  118. package/dist/components/_util/classNames.js.map +1 -1
  119. package/dist/components/_util/dom/aria.js +39 -74
  120. package/dist/components/_util/dom/aria.js.map +1 -1
  121. package/dist/components/_util/dom/element.js +8 -9
  122. package/dist/components/_util/dom/element.js.map +1 -1
  123. package/dist/components/_util/dom/event.js +7 -14
  124. package/dist/components/_util/dom/event.js.map +1 -1
  125. package/dist/components/_util/dom/index.js +36 -36
  126. package/dist/components/_util/dom/position.js +25 -49
  127. package/dist/components/_util/dom/position.js.map +1 -1
  128. package/dist/components/_util/dom/scroll.js +61 -103
  129. package/dist/components/_util/dom/scroll.js.map +1 -1
  130. package/dist/components/_util/dom/style.js +50 -65
  131. package/dist/components/_util/dom/style.js.map +1 -1
  132. package/dist/components/_util/easings.js +4 -8
  133. package/dist/components/_util/easings.js.map +1 -1
  134. package/dist/components/_util/error.js +11 -12
  135. package/dist/components/_util/error.js.map +1 -1
  136. package/dist/components/_util/functions.js +3 -3
  137. package/dist/components/_util/i18n.js +2 -2
  138. package/dist/components/_util/i18n.js.map +1 -1
  139. package/dist/components/_util/index.js +137 -137
  140. package/dist/components/_util/isValid.js +2 -4
  141. package/dist/components/_util/isValid.js.map +1 -1
  142. package/dist/components/_util/objects.js +14 -18
  143. package/dist/components/_util/objects.js.map +1 -1
  144. package/dist/components/_util/props-util/index.js +20 -46
  145. package/dist/components/_util/props-util/index.js.map +1 -1
  146. package/dist/components/_util/props-util/initDefaultProps.js +10 -18
  147. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
  148. package/dist/components/_util/raf.js +4 -5
  149. package/dist/components/_util/raf.js.map +1 -1
  150. package/dist/components/_util/rand.js +3 -4
  151. package/dist/components/_util/rand.js.map +1 -1
  152. package/dist/components/_util/strings.js +8 -9
  153. package/dist/components/_util/strings.js.map +1 -1
  154. package/dist/components/_util/throttleByRaf.js +10 -16
  155. package/dist/components/_util/throttleByRaf.js.map +1 -1
  156. package/dist/components/_util/type.js +38 -41
  157. package/dist/components/_util/type.js.map +1 -1
  158. package/dist/components/_util/types.js +22 -41
  159. package/dist/components/_util/types.js.map +1 -1
  160. package/dist/components/_util/typescript.js +2 -2
  161. package/dist/components/_util/typescript.js.map +1 -1
  162. package/dist/components/_util/util.js +43 -85
  163. package/dist/components/_util/util.js.map +1 -1
  164. package/dist/components/_util/vue/global-node.js +15 -27
  165. package/dist/components/_util/vue/global-node.js.map +1 -1
  166. package/dist/components/_util/vue/icon.js +25 -29
  167. package/dist/components/_util/vue/icon.js.map +1 -1
  168. package/dist/components/_util/vue/index.js +41 -41
  169. package/dist/components/_util/vue/install.js +18 -35
  170. package/dist/components/_util/vue/install.js.map +1 -1
  171. package/dist/components/_util/vue/props/index.js +6 -6
  172. package/dist/components/_util/vue/props/runtime.js +30 -46
  173. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  174. package/dist/components/_util/vue/refs.js +6 -12
  175. package/dist/components/_util/vue/refs.js.map +1 -1
  176. package/dist/components/_util/vue/size.js +3 -5
  177. package/dist/components/_util/vue/size.js.map +1 -1
  178. package/dist/components/_util/vue/validator.js +4 -5
  179. package/dist/components/_util/vue/validator.js.map +1 -1
  180. package/dist/components/_util/vue/vnode.js +54 -100
  181. package/dist/components/_util/vue/vnode.js.map +1 -1
  182. package/dist/components/_util/vue-types/index.js +220 -231
  183. package/dist/components/_util/vue-types/index.js.map +1 -1
  184. package/dist/components/components.d.ts +2 -0
  185. package/dist/components/components.js +24 -20
  186. package/dist/components/components.js.map +1 -1
  187. package/dist/components/index.js +43 -38
  188. package/dist/components/index.js.map +1 -1
  189. package/dist/components-DP9bnDLm.js +48 -0
  190. package/dist/components-DP9bnDLm.js.map +1 -0
  191. package/dist/error/OrionError.js +4 -8
  192. package/dist/error/OrionError.js.map +1 -1
  193. package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
  194. package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
  195. package/dist/index.css +1 -797
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.js +46 -36
  198. package/dist/index.js.map +1 -1
  199. package/dist/print/LodopFuncs.js +43 -101
  200. package/dist/print/LodopFuncs.js.map +1 -1
  201. package/dist/print/index.js +108 -200
  202. package/dist/print/index.js.map +1 -1
  203. package/dist/request/ErrorHandlerChain.js +14 -17
  204. package/dist/request/ErrorHandlerChain.js.map +1 -1
  205. package/dist/request/RequestFilterChain.js +13 -16
  206. package/dist/request/RequestFilterChain.js.map +1 -1
  207. package/dist/request/ResponseParserChain.js +14 -17
  208. package/dist/request/ResponseParserChain.js.map +1 -1
  209. package/dist/request/disivion/DateSerializer.js +22 -47
  210. package/dist/request/disivion/DateSerializer.js.map +1 -1
  211. package/dist/request/disivion/DivisionErrorHandler.js +25 -40
  212. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
  213. package/dist/request/disivion/DivisionResponseParser.js +10 -16
  214. package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
  215. package/dist/request/disivion/index.js +201 -305
  216. package/dist/request/disivion/index.js.map +1 -1
  217. package/dist/request/error/BizExceptionResponseError.js +5 -11
  218. package/dist/request/error/BizExceptionResponseError.js.map +1 -1
  219. package/dist/request/error/ExceptionResponseError.js +5 -11
  220. package/dist/request/error/ExceptionResponseError.js.map +1 -1
  221. package/dist/request/error/ResponseError.js +4 -9
  222. package/dist/request/error/ResponseError.js.map +1 -1
  223. package/dist/request/error/SessionExceptionResponseError.js +5 -11
  224. package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
  225. package/dist/request/index.js +11 -11
  226. package/dist/utils/DateUtil.js +33 -48
  227. package/dist/utils/DateUtil.js.map +1 -1
  228. package/dist/utils/NumberUtil.js +6 -6
  229. package/dist/utils/NumberUtil.js.map +1 -1
  230. package/dist/utils/cloneDeep.js +2 -2
  231. package/dist/utils/delay.js +3 -3
  232. package/dist/utils/delay.js.map +1 -1
  233. package/dist/utils/functions.js +3 -3
  234. package/dist/utils/index.js +12 -12
  235. package/dist/utils/md5.js +93 -191
  236. package/dist/utils/md5.js.map +1 -1
  237. package/dist/utils/uuid.js +25 -35
  238. package/dist/utils/uuid.js.map +1 -1
  239. package/dist/version/index.js +2 -2
  240. package/dist/version/version.d.ts +1 -1
  241. package/dist/version/version.js +2 -2
  242. package/dist/version/version.js.map +1 -1
  243. package/package.json +1 -1
  244. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
  245. package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  246. package/dist/components-8oZ2kpUC.js +0 -27
  247. package/dist/components-8oZ2kpUC.js.map +0 -1
  248. package/dist/components-B3d9m_tn.js +0 -27
  249. package/dist/components-B3d9m_tn.js.map +0 -1
  250. package/dist/functions-BeMkokbY.js +0 -63
  251. package/dist/functions-BeMkokbY.js.map +0 -1
  252. package/dist/index-BOKLZnqH.js +0 -54
  253. package/dist/index-BOKLZnqH.js.map +0 -1
  254. package/dist/index-D1m0KTpK.js +0 -69
  255. package/dist/index-D1m0KTpK.js.map +0 -1
  256. package/dist/index-DR5ZP7mD.js +0 -160
  257. package/dist/index-DR5ZP7mD.js.map +0 -1
  258. package/dist/index-DkwIULcN.js +0 -200
  259. package/dist/index-DkwIULcN.js.map +0 -1
@@ -1,690 +1,637 @@
1
1
  import "lodash-es";
2
- import { defineComponent, ref, computed, createVNode, createTextVNode, isVNode } from "vue";
3
- import { withInstall } from "../_util/vue/install.js";
4
- import { ElTable, ElTableColumn, ElButton } from "element-plus";
5
- import classNames from "../_util/classNames.js";
6
- import { arrayType, booleanType, stringType, someType, numberType } from "../_util/type.js";
7
- import { number2string, formatDate, getSingleCodeContent, getMultiCodeContent } from "./utils/index.js";
8
- import dayjs from "dayjs";
9
- import { S as Space } from "../../index-BOKLZnqH.js";
10
- import OrionError from "../../error/OrionError.js";
11
- import useColumns from "./hooks/useColumns.js";
12
- import Throne from "../../Throne/index.js";
13
- function _isSlot$1(s) {
14
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
2
+ import { defineComponent as w, ref as ee, computed as te, createVNode as o, createTextVNode as le, isVNode as P } from "vue";
3
+ import { withInstall as ne } from "../_util/vue/install.js";
4
+ import { ElTable as re, ElTableColumn as C, ElButton as oe } from "element-plus";
5
+ import ae from "../_util/classNames.js";
6
+ import { arrayType as se, booleanType as B, stringType as l, someType as a, numberType as ie } from "../_util/type.js";
7
+ import { number2string as ue, formatDate as j, getSingleCodeContent as ce, getMultiCodeContent as de } from "./utils/index.js";
8
+ import pe from "dayjs";
9
+ import { S as me } from "../../index-BbsXWo7C.js";
10
+ import ye from "../../error/OrionError.js";
11
+ import fe from "./hooks/useColumns.js";
12
+ import M from "../Pagetable/hooks/useCode.js";
13
+ function ge(n) {
14
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !P(n);
15
15
  }
16
- const querytableProps = () => ({
17
- data: arrayType(),
18
- showRowNumber: booleanType(true),
19
- selectionMode: booleanType(false),
20
- currentRowMode: booleanType(false),
21
- size: stringType()
22
- });
23
- const Querytable$1 = /* @__PURE__ */ defineComponent({
16
+ const he = () => ({
17
+ data: se(),
18
+ showRowNumber: B(!0),
19
+ selectionMode: B(!1),
20
+ currentRowMode: B(!1),
21
+ size: l(),
22
+ rowClassName: a(),
23
+ rowStyle: a(),
24
+ cellClassName: a(),
25
+ cellStyle: a()
26
+ }), be = /* @__PURE__ */ w({
24
27
  name: "OQuerytable",
25
- inheritAttrs: false,
26
- props: querytableProps(),
28
+ inheritAttrs: !1,
29
+ props: he(),
27
30
  emits: ["selectionChange", "currentRowChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
28
- setup(props, {
29
- slots,
30
- attrs,
31
- emit,
32
- expose
31
+ setup(n, {
32
+ slots: m,
33
+ attrs: h,
34
+ emit: u,
35
+ expose: b
33
36
  }) {
34
- const elTableRef = ref();
35
- const style = computed(() => {
36
- const rowStyle = {};
37
- return rowStyle;
38
- });
39
- const columns = useColumns(slots);
40
- const clearSelection = () => {
41
- elTableRef.value.clearSelection();
42
- };
43
- const getSelectionRows = () => {
44
- return elTableRef.value.getSelectionRows();
45
- };
46
- const toggleRowSelection = (...args) => {
47
- return elTableRef.value.toggleRowSelection(...args);
48
- };
49
- const toggleAllSelection = () => {
50
- return elTableRef.value.toggleAllSelection();
51
- };
52
- const setCurrentRow = (...args) => {
53
- return elTableRef.value.setCurrentRow(...args);
54
- };
55
- const scrollTo = (...args) => {
56
- return elTableRef.value.scrollTo(...args);
57
- };
58
- expose({
59
- clearSelection,
60
- getSelectionRows,
61
- toggleRowSelection,
62
- toggleAllSelection,
63
- setCurrentRow,
64
- scrollTo
65
- });
66
- return () => {
67
- const {
68
- data
69
- } = props;
70
- const {
71
- selectionMode = false
72
- } = props;
73
- const {
74
- showRowNumber = true
75
- } = props;
37
+ const S = ee(), Q = te(() => ({})), v = fe(m);
38
+ return b({
39
+ clearSelection: () => {
40
+ S.value.clearSelection();
41
+ },
42
+ getSelectionRows: () => S.value.getSelectionRows(),
43
+ toggleRowSelection: (...A) => S.value.toggleRowSelection(...A),
44
+ toggleAllSelection: () => S.value.toggleAllSelection(),
45
+ setCurrentRow: (...A) => S.value.setCurrentRow(...A),
46
+ scrollTo: (...A) => S.value.scrollTo(...A)
47
+ }), () => {
76
48
  const {
77
- currentRowMode = false
78
- } = props;
79
- const {
80
- size = "default"
81
- } = props;
82
- const cn = classNames("orion-querytable");
83
- const renderIndexColumn = () => {
84
- return createVNode(ElTableColumn, {
85
- "type": "index",
86
- "label": "No",
87
- "width": 56,
88
- "fixed": "left",
89
- "showOverflowTooltip": true,
90
- "index": (index) => {
91
- return index + 1;
92
- }
93
- }, null);
94
- };
95
- const renderSelectionColumn = () => {
96
- return createVNode(ElTableColumn, {
97
- "type": "selection",
98
- "width": 40,
99
- "fixed": "left"
100
- }, null);
101
- };
102
- const renderStringColumn = (column) => {
49
+ data: A
50
+ } = n, {
51
+ selectionMode: V = !1
52
+ } = n, {
53
+ showRowNumber: _ = !0
54
+ } = n, {
55
+ currentRowMode: L = !1
56
+ } = n, {
57
+ size: $ = "default"
58
+ } = n, {
59
+ rowClassName: k,
60
+ rowStyle: I,
61
+ cellClassName: T,
62
+ cellStyle: N
63
+ } = n, z = ae("orion-querytable"), E = () => o(C, {
64
+ type: "index",
65
+ label: "No",
66
+ width: 56,
67
+ fixed: "left",
68
+ showOverflowTooltip: !0,
69
+ index: (e) => e + 1
70
+ }, null), Y = () => o(C, {
71
+ type: "selection",
72
+ width: 40,
73
+ fixed: "left"
74
+ }, null), F = (e) => {
103
75
  const {
104
- name,
105
- head,
106
- headAlign,
107
- width,
108
- fixed
109
- } = column;
110
- return createVNode(ElTableColumn, {
111
- "label": head,
112
- "headerAlign": headAlign,
113
- "prop": name,
114
- "width": width,
115
- "fixed": fixed,
116
- "showOverflowTooltip": true
76
+ name: t,
77
+ head: r,
78
+ headAlign: s,
79
+ bodyAlign: d,
80
+ width: y,
81
+ fixed: p
82
+ } = e;
83
+ return o(C, {
84
+ label: r,
85
+ headerAlign: s,
86
+ align: d,
87
+ prop: t,
88
+ width: y,
89
+ fixed: p,
90
+ showOverflowTooltip: !0
117
91
  }, null);
118
- };
119
- const renderLinkColumn = (column) => {
92
+ }, H = (e) => {
120
93
  const {
121
- name,
122
- head,
123
- headAlign,
124
- width,
125
- fixed
126
- } = column;
127
- return createVNode(ElTableColumn, {
128
- "label": head,
129
- "headerAlign": headAlign,
130
- "prop": name,
131
- "width": width,
132
- "fixed": fixed,
133
- "showOverflowTooltip": true
94
+ name: t,
95
+ head: r,
96
+ headAlign: s,
97
+ bodyAlign: d,
98
+ width: y,
99
+ fixed: p
100
+ } = e;
101
+ return o(C, {
102
+ label: r,
103
+ headerAlign: s,
104
+ align: d,
105
+ prop: t,
106
+ width: y,
107
+ fixed: p,
108
+ showOverflowTooltip: !0
134
109
  }, {
135
- default: (scope) => {
110
+ default: (f) => {
136
111
  const {
137
- row,
138
- column: column2
139
- } = scope;
140
- return createVNode("span", {
141
- "class": "cell-linkcolumn"
142
- }, [row[column2.property]]);
112
+ row: i,
113
+ column: c
114
+ } = f;
115
+ return o("span", {
116
+ class: "cell-linkcolumn"
117
+ }, [i[c.property]]);
143
118
  }
144
119
  });
145
- };
146
- const renderNumberColumn = (column) => {
147
- const {
148
- name,
149
- head,
150
- headAlign,
151
- width,
152
- fixed
153
- } = column;
120
+ }, G = (e) => {
154
121
  const {
155
- thousandsSeparator = true,
156
- precision = -1,
157
- percentage = false
158
- } = column;
159
- return createVNode(ElTableColumn, {
160
- "label": head,
161
- "headerAlign": headAlign,
162
- "align": "right",
163
- "prop": name,
164
- "width": width,
165
- "fixed": fixed,
166
- "showOverflowTooltip": true
122
+ name: t,
123
+ head: r,
124
+ headAlign: s,
125
+ bodyAlign: d = "right",
126
+ width: y,
127
+ fixed: p
128
+ } = e, {
129
+ thousandsSeparator: f = !0,
130
+ precision: i = -1,
131
+ percentage: c = !1
132
+ } = e;
133
+ return o(C, {
134
+ label: r,
135
+ headerAlign: s,
136
+ align: d,
137
+ prop: t,
138
+ width: y,
139
+ fixed: p,
140
+ showOverflowTooltip: !0
167
141
  }, {
168
- default: (scope) => {
142
+ default: (x) => {
169
143
  const {
170
- row,
171
- column: column2
172
- } = scope;
173
- return createVNode("span", {
174
- "class": "cell-numbercolumn"
175
- }, [number2string(row[column2.property], thousandsSeparator, precision, percentage === true || percentage === "")]);
144
+ row: O,
145
+ column: g
146
+ } = x;
147
+ return o("span", {
148
+ class: "cell-numbercolumn"
149
+ }, [ue(O[g.property], f, i, c === !0 || c === "")]);
176
150
  }
177
151
  });
178
- };
179
- const renderDateColumn = (column) => {
152
+ }, J = (e) => {
180
153
  const {
181
- name,
182
- head,
183
- headAlign,
184
- width,
185
- fixed,
186
- sourceFormat,
187
- format = "YYYYMMDDHHmmss"
188
- } = column;
189
- return createVNode(ElTableColumn, {
190
- "label": head,
191
- "headerAlign": headAlign,
192
- "prop": name,
193
- "width": width,
194
- "fixed": fixed,
195
- "showOverflowTooltip": true
154
+ name: t,
155
+ head: r,
156
+ headAlign: s,
157
+ bodyAlign: d,
158
+ width: y,
159
+ fixed: p,
160
+ sourceFormat: f,
161
+ format: i = "YYYYMMDDHHmmss"
162
+ } = e;
163
+ return o(C, {
164
+ label: r,
165
+ headerAlign: s,
166
+ align: d,
167
+ prop: t,
168
+ width: y,
169
+ fixed: p,
170
+ showOverflowTooltip: !0
196
171
  }, {
197
- default: (scope) => {
172
+ default: (c) => {
198
173
  const {
199
- row,
200
- column: column2
201
- } = scope;
202
- const cellValue = row[column2.property];
203
- if (cellValue instanceof Date || dayjs.isDayjs(cellValue)) {
204
- return createVNode("div", null, [formatDate(cellValue, format)]);
205
- } else {
206
- if (sourceFormat && format) {
207
- return createVNode("div", null, [formatDate(cellValue, sourceFormat, format)]);
208
- } else {
209
- return createVNode("div", null, [cellValue]);
210
- }
211
- }
174
+ row: x,
175
+ column: O
176
+ } = c, g = x[O.property];
177
+ return g instanceof Date || pe.isDayjs(g) ? o("div", null, [j(g, i)]) : f && i ? o("div", null, [j(g, f, i)]) : o("div", null, [g]);
212
178
  }
213
179
  });
214
- };
215
- const renderSingleSelectColumn = (column) => {
216
- const {
217
- name,
218
- head,
219
- headAlign,
220
- width,
221
- fixed
222
- } = column;
180
+ }, K = (e) => {
223
181
  const {
224
- code
225
- } = column;
226
- return createVNode(ElTableColumn, {
227
- "label": head,
228
- "headerAlign": headAlign,
229
- "prop": name,
230
- "width": width,
231
- "fixed": fixed,
232
- "showOverflowTooltip": true
182
+ name: t,
183
+ head: r,
184
+ headAlign: s,
185
+ bodyAlign: d,
186
+ width: y,
187
+ fixed: p
188
+ } = e, {
189
+ code: f
190
+ } = e;
191
+ return o(C, {
192
+ label: r,
193
+ headerAlign: s,
194
+ align: d,
195
+ prop: t,
196
+ width: y,
197
+ fixed: p,
198
+ showOverflowTooltip: !0
233
199
  }, {
234
- default: (scope) => {
200
+ default: (i) => {
235
201
  const {
236
- row,
237
- column: column2
238
- } = scope;
239
- const cellValue = row[column2.property];
240
- let codeName, codeData, codeContent;
241
- if (!code) {
242
- codeContent = null;
243
- } else if (typeof code === "string") {
244
- codeName = code;
245
- codeData = Throne.getCode(codeName);
246
- codeContent = getSingleCodeContent(codeData.value, cellValue);
247
- } else {
248
- codeData = code;
249
- codeContent = getSingleCodeContent(codeData, cellValue);
250
- }
251
- return createVNode("span", {
252
- "class": "cell-singleselect"
253
- }, [codeContent]);
202
+ row: c,
203
+ column: x
204
+ } = i, O = c[x.property];
205
+ let g;
206
+ const D = M(f);
207
+ return D.value ? g = ce(D.value, O) : g = null, o("span", {
208
+ class: "cell-singleselect"
209
+ }, [g]);
254
210
  }
255
211
  });
256
- };
257
- const renderMultiSelectColumn = (column) => {
212
+ }, U = (e) => {
258
213
  const {
259
- name,
260
- head,
261
- headAlign,
262
- width,
263
- fixed
264
- } = column;
265
- const {
266
- code
267
- } = column;
268
- return createVNode(ElTableColumn, {
269
- "label": head,
270
- "headerAlign": headAlign,
271
- "prop": name,
272
- "width": width,
273
- "fixed": fixed,
274
- "showOverflowTooltip": true
214
+ name: t,
215
+ head: r,
216
+ headAlign: s,
217
+ bodyAlign: d,
218
+ width: y,
219
+ fixed: p
220
+ } = e, {
221
+ code: f
222
+ } = e;
223
+ return o(C, {
224
+ label: r,
225
+ headerAlign: s,
226
+ align: d,
227
+ prop: t,
228
+ width: y,
229
+ fixed: p,
230
+ showOverflowTooltip: !0
275
231
  }, {
276
- default: (scope) => {
232
+ default: (i) => {
277
233
  const {
278
- row,
279
- column: column2
280
- } = scope;
281
- const cellValue = row[column2.property];
282
- let codeName, codeData, codeContent;
283
- if (!code) {
284
- codeContent = null;
285
- } else if (typeof code === "string") {
286
- codeName = code;
287
- codeData = Throne.getCode(codeName);
288
- codeContent = getMultiCodeContent(codeData.value, cellValue);
289
- } else {
290
- codeData = code;
291
- codeContent = getMultiCodeContent(codeData, cellValue);
292
- }
293
- return createVNode("span", {
294
- "class": "cell-multiselect"
295
- }, [codeContent]);
234
+ row: c,
235
+ column: x
236
+ } = i, O = c[x.property];
237
+ let g;
238
+ const D = M(f);
239
+ return D.value ? g = de(D.value, O) : g = null, o("span", {
240
+ class: "cell-multiselect"
241
+ }, [g]);
296
242
  }
297
243
  });
298
- };
299
- const renderButtongroupColumn = (column) => {
244
+ }, W = (e) => {
300
245
  const {
301
- name,
302
- head,
303
- headAlign,
304
- width,
305
- fixed
306
- } = column;
307
- return createVNode(ElTableColumn, {
308
- "label": head,
309
- "headerAlign": headAlign,
310
- "prop": name,
311
- "width": width,
312
- "fixed": fixed
246
+ name: t,
247
+ head: r,
248
+ headAlign: s,
249
+ bodyAlign: d,
250
+ width: y,
251
+ fixed: p
252
+ } = e;
253
+ return o(C, {
254
+ label: r,
255
+ headerAlign: s,
256
+ align: d,
257
+ prop: t,
258
+ width: y,
259
+ fixed: p
313
260
  }, {
314
- default: (scope) => {
315
- var _a, _b;
316
- const children = (_b = (_a = column.children) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a, {
317
- rowData: scope.row,
318
- column,
319
- rowIndex: scope.$index
261
+ default: (f) => {
262
+ var c, x;
263
+ const i = (x = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : x.call(c, {
264
+ rowData: f.row,
265
+ column: e,
266
+ rowIndex: f.$index
320
267
  });
321
- return createVNode("div", {
322
- "class": "cell-buttongroup"
323
- }, [createVNode(Space, null, _isSlot$1(children) ? children : {
324
- default: () => [children]
268
+ return o("div", {
269
+ class: "cell-buttongroup"
270
+ }, [o(me, null, ge(i) ? i : {
271
+ default: () => [i]
325
272
  })]);
326
273
  }
327
274
  });
328
- };
329
- const renderColumngroupColumn = (column) => {
330
- const {
331
- head,
332
- headAlign
333
- } = column;
275
+ }, X = (e) => {
334
276
  const {
335
- children
336
- } = column;
337
- return createVNode(ElTableColumn, {
338
- "label": head,
339
- "headerAlign": headAlign
277
+ head: t,
278
+ headAlign: r
279
+ } = e, {
280
+ children: s
281
+ } = e;
282
+ return o(C, {
283
+ label: t,
284
+ headerAlign: r
340
285
  }, {
341
- default: (scope) => {
342
- return renderColumns(children);
343
- }
286
+ default: (d) => q(s)
344
287
  });
345
- };
346
- const renderDiyColumn = (column) => {
288
+ }, Z = (e) => {
347
289
  const {
348
- name,
349
- head,
350
- headAlign,
351
- width,
352
- fixed
353
- } = column;
354
- return createVNode(ElTableColumn, {
355
- "label": head,
356
- "headerAlign": headAlign,
357
- "prop": name,
358
- "width": width,
359
- "fixed": fixed
290
+ name: t,
291
+ head: r,
292
+ headAlign: s,
293
+ width: d,
294
+ fixed: y
295
+ } = e;
296
+ return o(C, {
297
+ label: r,
298
+ headerAlign: s,
299
+ prop: t,
300
+ width: d,
301
+ fixed: y
360
302
  }, {
361
- default: (scope) => {
362
- var _a, _b;
363
- const children = (_b = (_a = column.children) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a, {
364
- rowData: scope.row,
365
- column,
366
- rowIndex: scope.$index
303
+ default: (p) => {
304
+ var i, c;
305
+ const f = (c = (i = e.children) == null ? void 0 : i.default) == null ? void 0 : c.call(i, {
306
+ rowData: p.row,
307
+ column: e,
308
+ rowIndex: p.$index
367
309
  });
368
- return createVNode("div", {
369
- "class": "cell-diy"
370
- }, [children, createTextVNode(" ")]);
371
- }
372
- });
373
- };
374
- const renderColumns = (columns2) => {
375
- return columns2 == null ? void 0 : columns2.map((c) => {
376
- if (c.type === "OQuerytableColumnString") {
377
- return renderStringColumn(c);
378
- } else if (c.type === "OQuerytableColumnLink") {
379
- return renderLinkColumn(c);
380
- } else if (c.type === "OQuerytableColumnNumber") {
381
- return renderNumberColumn(c);
382
- } else if (c.type === "OQuerytableColumnDate") {
383
- return renderDateColumn(c);
384
- } else if (c.type === "OQuerytableColumnSingleselect") {
385
- return renderSingleSelectColumn(c);
386
- } else if (c.type === "OQuerytableColumnMultiselect") {
387
- return renderMultiSelectColumn(c);
388
- } else if (c.type === "OQuerytableColumnButtongroup") {
389
- return renderButtongroupColumn(c);
390
- } else if (c.type === "OQuerytableColumngroup") {
391
- return renderColumngroupColumn(c);
392
- } else if (c.type === "OQuerytableColumnDiy") {
393
- return renderDiyColumn(c);
394
- } else {
395
- throw new OrionError(`OQuerytable不能正确渲染'${c.type}'子组件。`);
310
+ return o("div", {
311
+ class: "cell-diy"
312
+ }, [f, le(" ")]);
396
313
  }
397
314
  });
398
- };
399
- return createVNode("div", {
400
- "class": [cn, attrs.class],
401
- "style": [style.value, attrs.style]
402
- }, [createVNode(ElTable, {
403
- "ref": elTableRef,
404
- "border": true,
405
- "data": data,
406
- "height": "100%",
407
- "style": {
315
+ }, q = (e) => e == null ? void 0 : e.map((t) => {
316
+ if (t.type === "OQuerytableColumnString")
317
+ return F(t);
318
+ if (t.type === "OQuerytableColumnLink")
319
+ return H(t);
320
+ if (t.type === "OQuerytableColumnNumber")
321
+ return G(t);
322
+ if (t.type === "OQuerytableColumnDate")
323
+ return J(t);
324
+ if (t.type === "OQuerytableColumnSingleselect")
325
+ return K(t);
326
+ if (t.type === "OQuerytableColumnMultiselect")
327
+ return U(t);
328
+ if (t.type === "OQuerytableColumnButtongroup")
329
+ return W(t);
330
+ if (t.type === "OQuerytableColumngroup")
331
+ return X(t);
332
+ if (t.type === "OQuerytableColumnDiy")
333
+ return Z(t);
334
+ throw new ye(`OQuerytable不能正确渲染'${t.type}'子组件。`);
335
+ });
336
+ return o("div", {
337
+ class: [z, h.class],
338
+ style: [Q.value, h.style]
339
+ }, [o(re, {
340
+ ref: S,
341
+ border: !0,
342
+ data: A,
343
+ height: "100%",
344
+ style: {
408
345
  width: "100%"
409
346
  },
410
- "onSelection-change": (rows) => emit("selectionChange", rows),
411
- "highlight-current-row": currentRowMode,
412
- "onCurrent-change": (currentRow, oldCurrentRow) => emit("currentRowChange", currentRow, oldCurrentRow),
413
- "onRow-click": (row, column, event) => emit("rowClick", row, {
414
- name: column.property,
415
- head: column.label
416
- }, event),
417
- "onRow-dblclick": (row, column, event) => emit("rowDblclick", row, {
418
- name: column.property,
419
- head: column.label
420
- }, event),
421
- "onCell-click": (row, column, cell, event) => emit("cellClick", row, {
422
- name: column.property,
423
- head: column.label
424
- }, cell, event),
425
- "onCell-dblclick": (row, column, cell, event) => emit("cellDblclick", row, {
426
- name: column.property,
427
- head: column.label
428
- }, cell, event),
429
- "size": size
347
+ "onSelection-change": (e) => u("selectionChange", e),
348
+ "highlight-current-row": L,
349
+ "onCurrent-change": (e, t) => u("currentRowChange", e, t),
350
+ "onRow-click": (e, t, r) => u("rowClick", e, {
351
+ name: t.property,
352
+ head: t.label
353
+ }, r),
354
+ "onRow-dblclick": (e, t, r) => u("rowDblclick", e, {
355
+ name: t.property,
356
+ head: t.label
357
+ }, r),
358
+ "onCell-click": (e, t, r, s) => u("cellClick", e, {
359
+ name: t.property,
360
+ head: t.label
361
+ }, r, s),
362
+ "onCell-dblclick": (e, t, r, s) => u("cellDblclick", e, {
363
+ name: t.property,
364
+ head: t.label
365
+ }, r, s),
366
+ size: $,
367
+ rowClassName: (e) => typeof k == "string" ? k : typeof k == "function" ? k({
368
+ rowData: e.row,
369
+ rowIndex: e.rowIndex
370
+ }) : "row-class-name_not_valid",
371
+ rowStyle: (e) => typeof I == "function" ? I({
372
+ rowData: e.row,
373
+ rowIndex: e.rowIndex
374
+ }) : typeof I == "object" ? I : {},
375
+ cellClassName: (e) => typeof T == "string" ? T : typeof T == "function" ? T({
376
+ rowData: e.row,
377
+ column: {
378
+ name: e.column.property,
379
+ head: e.column.label
380
+ },
381
+ rowIndex: e.rowIndex,
382
+ columnIndex: e.columnIndex
383
+ }) : "cell-class-name_not_valid",
384
+ cellStyle: (e) => typeof N == "function" ? N({
385
+ rowData: e.row,
386
+ column: {
387
+ name: e.column.property,
388
+ head: e.column.label
389
+ },
390
+ rowIndex: e.rowIndex,
391
+ columnIndex: e.columnIndex
392
+ }) : typeof N == "object" ? N : {}
430
393
  }, {
431
- default: () => [showRowNumber && renderIndexColumn(), selectionMode && renderSelectionColumn(), renderColumns(columns.value)]
394
+ default: () => [_ && E(), V && Y(), q(v.value)]
432
395
  })]);
433
396
  };
434
397
  }
435
- });
436
- const querytableColumnIndexProps = () => ({});
437
- const QuerytableColumnIndex = /* @__PURE__ */ defineComponent({
398
+ }), we = () => ({}), Ce = /* @__PURE__ */ w({
438
399
  name: "OQuerytableColumnIndex",
439
- inheritAttrs: false,
440
- props: querytableColumnIndexProps(),
441
- setup(props, {
442
- slots,
443
- attrs,
444
- emit,
445
- expose
400
+ inheritAttrs: !1,
401
+ props: we(),
402
+ setup(n, {
403
+ slots: m,
404
+ attrs: h,
405
+ emit: u,
406
+ expose: b
446
407
  }) {
447
408
  return () => null;
448
409
  }
449
- });
450
- const querytableColumnStringProps = () => ({
451
- head: stringType(),
452
- headAlign: stringType(),
453
- name: stringType(),
454
- width: someType([Boolean, String]),
455
- fixed: someType([Boolean, String])
456
- });
457
- const QuerytableColumnString = /* @__PURE__ */ defineComponent({
410
+ }), xe = () => ({
411
+ head: l(),
412
+ headAlign: l(),
413
+ bodyAlign: l(),
414
+ name: l(),
415
+ width: a([Boolean, String]),
416
+ fixed: a([Boolean, String])
417
+ }), Se = /* @__PURE__ */ w({
458
418
  name: "OQuerytableColumnString",
459
- inheritAttrs: false,
460
- props: querytableColumnStringProps(),
461
- setup(props, {
462
- slots,
463
- attrs,
464
- emit,
465
- expose
419
+ inheritAttrs: !1,
420
+ props: xe(),
421
+ setup(n, {
422
+ slots: m,
423
+ attrs: h,
424
+ emit: u,
425
+ expose: b
466
426
  }) {
467
427
  return () => null;
468
428
  }
469
- });
470
- const querytableColumnLinkProps = () => ({
471
- head: stringType(),
472
- headAlign: stringType(),
473
- name: stringType(),
474
- width: someType([Boolean, String]),
475
- fixed: someType([Boolean, String])
476
- });
477
- const QuerytableColumnLink = /* @__PURE__ */ defineComponent({
429
+ }), Ae = () => ({
430
+ head: l(),
431
+ headAlign: l(),
432
+ bodyAlign: l(),
433
+ name: l(),
434
+ width: a([Boolean, String]),
435
+ fixed: a([Boolean, String])
436
+ }), Oe = /* @__PURE__ */ w({
478
437
  name: "OQuerytableColumnLink",
479
- inheritAttrs: false,
480
- props: querytableColumnLinkProps(),
481
- setup(props, {
482
- slots,
483
- attrs,
484
- emit,
485
- expose
438
+ inheritAttrs: !1,
439
+ props: Ae(),
440
+ setup(n, {
441
+ slots: m,
442
+ attrs: h,
443
+ emit: u,
444
+ expose: b
486
445
  }) {
487
446
  return () => null;
488
447
  }
489
- });
490
- const querytableColumnNumberProps = () => ({
491
- head: stringType(),
492
- headAlign: stringType(),
493
- name: stringType(),
494
- width: someType([Boolean, String]),
495
- fixed: someType([Boolean, String]),
496
- thousandsSeparator: booleanType(true),
497
- precision: numberType(-1),
498
- percentage: booleanType(false)
499
- });
500
- const QuerytableColumnNumber = /* @__PURE__ */ defineComponent({
448
+ }), Qe = () => ({
449
+ head: l(),
450
+ headAlign: l(),
451
+ bodyAlign: l(),
452
+ name: l(),
453
+ width: a([Boolean, String]),
454
+ fixed: a([Boolean, String]),
455
+ thousandsSeparator: B(!0),
456
+ precision: ie(-1),
457
+ percentage: B(!1)
458
+ }), ve = /* @__PURE__ */ w({
501
459
  name: "OQuerytableColumnNumber",
502
- inheritAttrs: false,
503
- props: querytableColumnNumberProps(),
504
- setup(props, {
505
- slots,
506
- attrs,
507
- emit,
508
- expose
460
+ inheritAttrs: !1,
461
+ props: Qe(),
462
+ setup(n, {
463
+ slots: m,
464
+ attrs: h,
465
+ emit: u,
466
+ expose: b
509
467
  }) {
510
468
  return () => null;
511
469
  }
512
- });
513
- const querytableColumnDateProps = () => ({
514
- head: stringType(),
515
- headAlign: stringType(),
516
- name: stringType(),
517
- width: someType([Boolean, String]),
518
- fixed: someType([Boolean, String]),
470
+ }), De = () => ({
471
+ head: l(),
472
+ headAlign: l(),
473
+ bodyAlign: l(),
474
+ name: l(),
475
+ width: a([Boolean, String]),
476
+ fixed: a([Boolean, String]),
519
477
  // Date
520
- format: stringType(),
521
- sourceFormat: stringType()
522
- });
523
- const QuerytableColumnDate = /* @__PURE__ */ defineComponent({
478
+ format: l(),
479
+ sourceFormat: l()
480
+ }), Be = /* @__PURE__ */ w({
524
481
  name: "OQuerytableColumnDate",
525
- inheritAttrs: false,
526
- props: querytableColumnDateProps(),
527
- setup(props, {
528
- slots,
529
- attrs,
530
- emit,
531
- expose
482
+ inheritAttrs: !1,
483
+ props: De(),
484
+ setup(n, {
485
+ slots: m,
486
+ attrs: h,
487
+ emit: u,
488
+ expose: b
532
489
  }) {
533
490
  return () => null;
534
491
  }
535
- });
536
- const querytableColumnSingleselectProps = () => ({
537
- head: stringType(),
538
- headAlign: stringType(),
539
- name: stringType(),
540
- width: someType([Boolean, String]),
541
- fixed: someType([Boolean, String]),
542
- code: someType([String, Array])
543
- });
544
- const QuerytableColumnSingleselect = /* @__PURE__ */ defineComponent({
492
+ }), ke = () => ({
493
+ head: l(),
494
+ headAlign: l(),
495
+ bodyAlign: l(),
496
+ name: l(),
497
+ width: a([Boolean, String]),
498
+ fixed: a([Boolean, String]),
499
+ code: a([String, Array])
500
+ }), Ie = /* @__PURE__ */ w({
545
501
  name: "OQuerytableColumnSingleselect",
546
- inheritAttrs: false,
547
- props: querytableColumnSingleselectProps(),
548
- setup(props, {
549
- slots,
550
- attrs,
551
- emit,
552
- expose
502
+ inheritAttrs: !1,
503
+ props: ke(),
504
+ setup(n, {
505
+ slots: m,
506
+ attrs: h,
507
+ emit: u,
508
+ expose: b
553
509
  }) {
554
510
  return () => null;
555
511
  }
556
- });
557
- const querytableColumnMultiselectProps = () => ({
558
- head: stringType(),
559
- headAlign: stringType(),
560
- name: stringType(),
561
- width: someType([Boolean, String]),
562
- fixed: someType([Boolean, String]),
563
- code: someType([String, Array])
564
- });
565
- const QuerytableColumnMultiselect = /* @__PURE__ */ defineComponent({
512
+ }), Te = () => ({
513
+ head: l(),
514
+ headAlign: l(),
515
+ bodyAlign: l(),
516
+ name: l(),
517
+ width: a([Boolean, String]),
518
+ fixed: a([Boolean, String]),
519
+ code: a([String, Array])
520
+ }), Ne = /* @__PURE__ */ w({
566
521
  name: "OQuerytableColumnMultiselect",
567
- inheritAttrs: false,
568
- props: querytableColumnMultiselectProps(),
569
- setup(props, {
570
- slots,
571
- attrs,
572
- emit,
573
- expose
522
+ inheritAttrs: !1,
523
+ props: Te(),
524
+ setup(n, {
525
+ slots: m,
526
+ attrs: h,
527
+ emit: u,
528
+ expose: b
574
529
  }) {
575
530
  return () => null;
576
531
  }
577
- });
578
- const querytableColumnButtongroupProps = () => ({
579
- head: stringType(),
580
- headAlign: stringType(),
581
- name: stringType(),
582
- width: someType([Boolean, String]),
583
- fixed: someType([Boolean, String])
584
- });
585
- const QuerytableColumnButtongroup = /* @__PURE__ */ defineComponent({
532
+ }), Re = () => ({
533
+ head: l(),
534
+ headAlign: l(),
535
+ bodyAlign: l(),
536
+ name: l(),
537
+ width: a([Boolean, String]),
538
+ fixed: a([Boolean, String])
539
+ }), qe = /* @__PURE__ */ w({
586
540
  name: "OQuerytableColumnButtongroup",
587
- inheritAttrs: false,
588
- props: querytableColumnButtongroupProps(),
541
+ inheritAttrs: !1,
542
+ props: Re(),
589
543
  slots: Object,
590
- setup(props, {
591
- slots,
592
- attrs,
593
- emit,
594
- expose
544
+ setup(n, {
545
+ slots: m,
546
+ attrs: h,
547
+ emit: u,
548
+ expose: b
595
549
  }) {
596
550
  return () => null;
597
551
  }
598
552
  });
599
- function _isSlot(s) {
600
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
553
+ function je(n) {
554
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !P(n);
601
555
  }
602
- const querytableCellButtonProps = () => ({
603
- type: stringType()
604
- });
605
- const QuerytableCellButton = /* @__PURE__ */ defineComponent({
556
+ const Me = () => ({
557
+ type: l()
558
+ }), Pe = /* @__PURE__ */ w({
606
559
  name: "OQuerytableCellButton",
607
- inheritAttrs: false,
608
- props: querytableCellButtonProps(),
560
+ inheritAttrs: !1,
561
+ props: Me(),
609
562
  emits: ["click"],
610
- setup(props, {
611
- slots,
612
- attrs,
613
- emit,
614
- expose
563
+ setup(n, {
564
+ slots: m,
565
+ attrs: h,
566
+ emit: u,
567
+ expose: b
615
568
  }) {
616
- const handleClick = (event) => {
617
- emit("click", event);
569
+ const S = (Q) => {
570
+ u("click", Q);
618
571
  };
619
572
  return () => {
620
- var _a;
573
+ var R;
621
574
  const {
622
- type
623
- } = props;
624
- const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
625
- return createVNode(ElButton, {
626
- "link": true,
627
- "type": type,
628
- "size": "small",
629
- "onClick": handleClick
630
- }, _isSlot(children) ? children : {
631
- default: () => [children]
575
+ type: Q
576
+ } = n, v = (R = m.default) == null ? void 0 : R.call(m);
577
+ return o(oe, {
578
+ link: !0,
579
+ type: Q,
580
+ size: "small",
581
+ onClick: S
582
+ }, je(v) ? v : {
583
+ default: () => [v]
632
584
  });
633
585
  };
634
586
  }
635
- });
636
- const querytableColumngroupProps = () => ({
637
- head: stringType(),
638
- headAlign: stringType()
639
- });
640
- const QuerytableColumngroup = /* @__PURE__ */ defineComponent({
587
+ }), Ve = () => ({
588
+ head: l(),
589
+ headAlign: l()
590
+ }), _e = /* @__PURE__ */ w({
641
591
  name: "OQuerytableColumngroup",
642
- inheritAttrs: false,
643
- props: querytableColumngroupProps(),
644
- setup(props, {
645
- slots,
646
- attrs,
647
- emit,
648
- expose
592
+ inheritAttrs: !1,
593
+ props: Ve(),
594
+ setup(n, {
595
+ slots: m,
596
+ attrs: h,
597
+ emit: u,
598
+ expose: b
649
599
  }) {
650
600
  return () => null;
651
601
  }
652
- });
653
- const querytableColumnDiyProps = () => ({
654
- head: stringType(),
655
- headAlign: stringType(),
656
- name: stringType(),
657
- width: someType([Boolean, String]),
658
- fixed: someType([Boolean, String])
659
- });
660
- const QuerytableColumnDiy = /* @__PURE__ */ defineComponent({
602
+ }), Le = () => ({
603
+ head: l(),
604
+ headAlign: l(),
605
+ name: l(),
606
+ width: a([Boolean, String]),
607
+ fixed: a([Boolean, String])
608
+ }), $e = /* @__PURE__ */ w({
661
609
  name: "OQuerytableColumnDiy",
662
- inheritAttrs: false,
663
- props: querytableColumnDiyProps(),
610
+ inheritAttrs: !1,
611
+ props: Le(),
664
612
  slots: Object,
665
- setup(props, {
666
- slots,
667
- attrs,
668
- emit,
669
- expose
613
+ setup(n, {
614
+ slots: m,
615
+ attrs: h,
616
+ emit: u,
617
+ expose: b
670
618
  }) {
671
619
  return () => null;
672
620
  }
673
- });
674
- const Querytable = withInstall(Querytable$1, {
675
- QuerytableColumnIndex,
676
- QuerytableColumnString,
677
- QuerytableColumnLink,
678
- QuerytableColumnNumber,
679
- QuerytableColumnDate,
680
- QuerytableColumnSingleselect,
681
- QuerytableColumnMultiselect,
682
- QuerytableColumnButtongroup,
683
- QuerytableCellButton,
684
- QuerytableColumngroup,
685
- QuerytableColumnDiy
621
+ }), ot = ne(be, {
622
+ QuerytableColumnIndex: Ce,
623
+ QuerytableColumnString: Se,
624
+ QuerytableColumnLink: Oe,
625
+ QuerytableColumnNumber: ve,
626
+ QuerytableColumnDate: Be,
627
+ QuerytableColumnSingleselect: Ie,
628
+ QuerytableColumnMultiselect: Ne,
629
+ QuerytableColumnButtongroup: qe,
630
+ QuerytableCellButton: Pe,
631
+ QuerytableColumngroup: _e,
632
+ QuerytableColumnDiy: $e
686
633
  });
687
634
  export {
688
- Querytable as default
635
+ ot as default
689
636
  };
690
637
  //# sourceMappingURL=index.js.map