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,812 +1,729 @@
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, ElPagination, ElTableColumn, ElButton } from "element-plus";
5
- import classNames from "../_util/classNames.js";
6
- import { arrayType, objectType, 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 S, ref as ie, computed as $, createVNode as a, createTextVNode as se, isVNode as U } from "vue";
3
+ import { withInstall as ue } from "../_util/vue/install.js";
4
+ import { ElTable as ce, ElPagination as pe, ElTableColumn as A, ElButton as de } from "element-plus";
5
+ import ge from "../_util/classNames.js";
6
+ import { arrayType as me, objectType as L, booleanType as T, stringType as l, someType as r, numberType as fe } from "../_util/type.js";
7
+ import { number2string as he, formatDate as Y, getSingleCodeContent as be, getMultiCodeContent as we } from "./utils/index.js";
8
+ import ye from "dayjs";
9
+ import { S as Ce } from "../../index-BbsXWo7C.js";
10
+ import F from "../../error/OrionError.js";
11
+ import Se from "./hooks/useColumns.js";
12
+ import H from "./hooks/useCode.js";
13
+ function xe(n) {
14
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !U(n);
15
15
  }
16
- const pagetableProps = () => ({
17
- data: arrayType(),
18
- tailData: objectType(),
19
- pagination: objectType(),
20
- showRowNumber: booleanType(true),
21
- selectionMode: booleanType(false),
22
- currentRowMode: booleanType(false),
23
- size: stringType()
24
- });
25
- const Pagetable$1 = /* @__PURE__ */ defineComponent({
16
+ const Ae = () => ({
17
+ data: me(),
18
+ tailData: L(),
19
+ pagination: L(),
20
+ paginationTeleported: T(!0),
21
+ showRowNumber: T(!0),
22
+ selectionMode: T(!1),
23
+ currentRowMode: T(!1),
24
+ size: l(),
25
+ rowClassName: r(),
26
+ rowStyle: r(),
27
+ cellClassName: r(),
28
+ cellStyle: r()
29
+ }), Pe = /* @__PURE__ */ S({
26
30
  name: "OPagetable",
27
- inheritAttrs: false,
28
- props: pagetableProps(),
29
- emits: ["selectionChange", "currentRowChange", "update:pagination", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
30
- setup(props, {
31
- slots,
32
- attrs,
33
- emit,
34
- expose
31
+ inheritAttrs: !1,
32
+ props: Ae(),
33
+ emits: ["selectionChange", "currentRowChange", "update:pagination", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
34
+ setup(n, {
35
+ slots: f,
36
+ attrs: y,
37
+ emit: u,
38
+ expose: C
35
39
  }) {
36
- const elTableRef = ref();
37
- const style = computed(() => {
38
- const rowStyle = {};
39
- return rowStyle;
40
- });
41
- const columns = useColumns(slots);
42
- const leafColumns4ShowSummary = computed(() => {
43
- let r = [];
44
- if (props.showRowNumber) {
45
- r.push({
46
- type: "__showRowNumber__"
47
- });
48
- }
49
- if (props.selectionMode) {
50
- r.push({
51
- type: "__selectionMode__"
52
- });
53
- }
54
- function flat(columns2) {
55
- if (!columns2) {
56
- return;
57
- }
58
- for (let i = 0; i < columns2.length; i++) {
59
- const c = columns2[i];
60
- if (c.type === "OPagetableColumngroup") {
61
- flat(c.children);
62
- } else {
63
- r.push({
64
- ...c
40
+ const v = ie(), k = $(() => ({})), B = Se(f), R = $(() => {
41
+ let d = [];
42
+ n.showRowNumber && d.push({
43
+ type: "__showRowNumber__"
44
+ }), n.selectionMode && d.push({
45
+ type: "__selectionMode__"
46
+ });
47
+ function O(g) {
48
+ if (g)
49
+ for (let x = 0; x < g.length; x++) {
50
+ const N = g[x];
51
+ N.type === "OPagetableColumngroup" ? O(N.children) : d.push({
52
+ ...N
65
53
  });
66
54
  }
67
- }
68
55
  }
69
- flat(columns.value);
70
- return r;
71
- });
72
- const showSummary = computed(() => {
73
- function existTail(columns2) {
74
- if (!columns2) {
75
- return false;
56
+ return O(B.value), d;
57
+ }), q = $(() => {
58
+ function d(O) {
59
+ if (!O)
60
+ return !1;
61
+ for (let g = 0; g < O.length; g++) {
62
+ const x = O[g];
63
+ if (x.type === "OPagetableColumngroup") {
64
+ if (d(x.children))
65
+ return !0;
66
+ } else if (x.tail === "" || x.tail === !0 || x.tail)
67
+ return !0;
76
68
  }
77
- for (let i = 0; i < columns2.length; i++) {
78
- const c = columns2[i];
79
- if (c.type === "OPagetableColumngroup") {
80
- if (existTail(c.children)) {
81
- return true;
82
- }
83
- } else {
84
- if (c.tail === "" || c.tail === true || c.tail) {
85
- return true;
86
- }
87
- }
88
- }
89
- return false;
69
+ return !1;
90
70
  }
91
- return existTail(columns.value);
92
- });
93
- const clearSelection = () => {
94
- elTableRef.value.clearSelection();
95
- };
96
- const getSelectionRows = () => {
97
- return elTableRef.value.getSelectionRows();
98
- };
99
- const toggleRowSelection = (...args) => {
100
- return elTableRef.value.toggleRowSelection(...args);
101
- };
102
- const toggleAllSelection = () => {
103
- return elTableRef.value.toggleAllSelection();
104
- };
105
- const setCurrentRow = (...args) => {
106
- return elTableRef.value.setCurrentRow(...args);
107
- };
108
- const scrollTo = (...args) => {
109
- return elTableRef.value.scrollTo(...args);
110
- };
111
- expose({
112
- clearSelection,
113
- getSelectionRows,
114
- toggleRowSelection,
115
- toggleAllSelection,
116
- setCurrentRow,
117
- scrollTo
71
+ return d(B.value);
118
72
  });
119
- return () => {
120
- const {
121
- data
122
- } = props;
123
- const {
124
- selectionMode = false
125
- } = props;
73
+ return C({
74
+ clearSelection: () => {
75
+ v.value.clearSelection();
76
+ },
77
+ getSelectionRows: () => v.value.getSelectionRows(),
78
+ toggleRowSelection: (...d) => v.value.toggleRowSelection(...d),
79
+ toggleAllSelection: () => v.value.toggleAllSelection(),
80
+ setCurrentRow: (...d) => v.value.setCurrentRow(...d),
81
+ scrollTo: (...d) => v.value.scrollTo(...d)
82
+ }), () => {
126
83
  const {
127
- pagination
128
- } = props;
129
- const {
130
- showRowNumber = true
131
- } = props;
132
- const {
133
- currentRowMode = false
134
- } = props;
135
- const {
136
- size = "default"
137
- } = props;
138
- const getSummaries = (param) => {
139
- const tailData = computed(() => props.tailData);
140
- return leafColumns4ShowSummary.value.map((c) => {
141
- if (c.type === "__showRowNumber__") {
84
+ data: d
85
+ } = n, {
86
+ selectionMode: O = !1
87
+ } = n, {
88
+ pagination: g,
89
+ paginationTeleported: x
90
+ } = n, {
91
+ showRowNumber: N = !0
92
+ } = n, {
93
+ currentRowMode: G = !1
94
+ } = n, {
95
+ size: V = "default"
96
+ } = n, {
97
+ rowClassName: I,
98
+ rowStyle: M,
99
+ cellClassName: j,
100
+ cellStyle: z
101
+ } = n, J = (e) => {
102
+ const t = $(() => n.tailData);
103
+ return R.value.map((o) => {
104
+ if (o.type === "__showRowNumber__")
142
105
  return "Σ";
143
- }
144
- if (c.type === "__selectionMode__") {
106
+ if (o.type === "__selectionMode__" || !t.value)
145
107
  return;
146
- }
147
- if (!tailData.value) {
148
- return;
149
- }
150
- const columnName = c.name;
151
- const columnTail = c.tail;
152
- if (columnTail == null) {
153
- return;
154
- }
155
- if (columnTail === false) {
156
- return;
157
- }
158
- if (columnTail === "" || columnTail === true) {
159
- if (tailData.value[columnName] != null) {
160
- return tailData.value[columnName];
108
+ const i = o.name, s = o.tail;
109
+ if (s != null && s !== !1)
110
+ if (s === "" || s === !0) {
111
+ if (t.value[i] != null)
112
+ return t.value[i];
113
+ } else {
114
+ if (typeof s == "string")
115
+ return s.replace("{}", t.value[i]);
116
+ throw new F(`列[${i}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof s}]类型。`);
161
117
  }
162
- } else if (typeof columnTail === "string") {
163
- return columnTail.replace("{}", tailData.value[columnName]);
164
- } else {
165
- throw new OrionError(`列[${columnName}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof columnTail}]类型。`);
166
- }
167
- return;
168
118
  });
169
- };
170
- const cn = classNames("orion-pagetbale");
171
- const renderIndexColumn = () => {
172
- return createVNode(ElTableColumn, {
173
- "type": "index",
174
- "label": "No",
175
- "width": 56,
176
- "fixed": "left",
177
- "showOverflowTooltip": true,
178
- "index": (index) => {
179
- return (pagination.currentPage - 1) * pagination.pageSize + index + 1;
180
- }
181
- }, null);
182
- };
183
- const renderSelectionColumn = () => {
184
- return createVNode(ElTableColumn, {
185
- "type": "selection",
186
- "width": 40,
187
- "fixed": "left"
188
- }, null);
189
- };
190
- const renderStringColumn = (column) => {
119
+ }, K = ge("orion-pagetbale"), Q = () => a(A, {
120
+ type: "index",
121
+ label: "No",
122
+ width: 56,
123
+ fixed: "left",
124
+ showOverflowTooltip: !0,
125
+ index: (e) => (g.currentPage - 1) * g.pageSize + e + 1
126
+ }, null), W = () => a(A, {
127
+ type: "selection",
128
+ width: 40,
129
+ fixed: "left"
130
+ }, null), X = (e) => {
191
131
  const {
192
- name,
193
- head,
194
- headAlign,
195
- width,
196
- fixed
197
- } = column;
198
- return createVNode(ElTableColumn, {
199
- "label": head,
200
- "headerAlign": headAlign,
201
- "prop": name,
202
- "width": width,
203
- "fixed": fixed,
204
- "showOverflowTooltip": true
132
+ name: t,
133
+ head: o,
134
+ headAlign: i,
135
+ bodyAlign: s,
136
+ width: h,
137
+ fixed: m
138
+ } = e;
139
+ return a(A, {
140
+ label: o,
141
+ headerAlign: i,
142
+ align: s,
143
+ prop: t,
144
+ width: h,
145
+ fixed: m,
146
+ showOverflowTooltip: !0
205
147
  }, null);
206
- };
207
- const renderLinkColumn = (column) => {
148
+ }, Z = (e) => {
208
149
  const {
209
- name,
210
- head,
211
- headAlign,
212
- width,
213
- fixed
214
- } = column;
215
- return createVNode(ElTableColumn, {
216
- "label": head,
217
- "headerAlign": headAlign,
218
- "prop": name,
219
- "width": width,
220
- "fixed": fixed,
221
- "showOverflowTooltip": true
150
+ name: t,
151
+ head: o,
152
+ headAlign: i,
153
+ bodyAlign: s,
154
+ width: h,
155
+ fixed: m
156
+ } = e;
157
+ return a(A, {
158
+ label: o,
159
+ headerAlign: i,
160
+ align: s,
161
+ prop: t,
162
+ width: h,
163
+ fixed: m,
164
+ showOverflowTooltip: !0
222
165
  }, {
223
- default: (scope) => {
166
+ default: (b) => {
224
167
  const {
225
- row,
226
- column: column2
227
- } = scope;
228
- return createVNode("span", {
229
- "class": "cell-linkcolumn"
230
- }, [row[column2.property]]);
168
+ row: c,
169
+ column: p
170
+ } = b;
171
+ return a("span", {
172
+ class: "cell-linkcolumn"
173
+ }, [c[p.property]]);
231
174
  }
232
175
  });
233
- };
234
- const renderNumberColumn = (column) => {
235
- const {
236
- name,
237
- head,
238
- headAlign,
239
- width,
240
- fixed
241
- } = column;
176
+ }, ee = (e) => {
242
177
  const {
243
- thousandsSeparator = true,
244
- precision = -1,
245
- percentage = false
246
- } = column;
247
- return createVNode(ElTableColumn, {
248
- "label": head,
249
- "headerAlign": headAlign,
250
- "align": "right",
251
- "prop": name,
252
- "width": width,
253
- "fixed": fixed,
254
- "showOverflowTooltip": true
178
+ name: t,
179
+ head: o,
180
+ headAlign: i,
181
+ bodyAlign: s = "right",
182
+ width: h,
183
+ fixed: m
184
+ } = e, {
185
+ thousandsSeparator: b = !0,
186
+ precision: c = -1,
187
+ percentage: p = !1
188
+ } = e;
189
+ return a(A, {
190
+ label: o,
191
+ headerAlign: i,
192
+ align: s,
193
+ prop: t,
194
+ width: h,
195
+ fixed: m,
196
+ showOverflowTooltip: !0
255
197
  }, {
256
- default: (scope) => {
198
+ default: (P) => {
257
199
  const {
258
- row,
259
- column: column2
260
- } = scope;
261
- return createVNode("span", {
262
- "class": "cell-numbercolumn"
263
- }, [number2string(row[column2.property], thousandsSeparator, precision, percentage === true || percentage === "")]);
200
+ row: D,
201
+ column: w
202
+ } = P;
203
+ return a("span", {
204
+ class: "cell-numbercolumn"
205
+ }, [he(D[w.property], b, c, p === !0 || p === "")]);
264
206
  }
265
207
  });
266
- };
267
- const renderDateColumn = (column) => {
208
+ }, te = (e) => {
268
209
  const {
269
- name,
270
- head,
271
- headAlign,
272
- width,
273
- fixed,
274
- sourceFormat,
275
- format = "YYYYMMDDHHmmss"
276
- } = column;
277
- return createVNode(ElTableColumn, {
278
- "label": head,
279
- "headerAlign": headAlign,
280
- "prop": name,
281
- "width": width,
282
- "fixed": fixed,
283
- "showOverflowTooltip": true
210
+ name: t,
211
+ head: o,
212
+ headAlign: i,
213
+ bodyAlign: s,
214
+ width: h,
215
+ fixed: m,
216
+ sourceFormat: b,
217
+ format: c = "YYYYMMDDHHmmss"
218
+ } = e;
219
+ return a(A, {
220
+ label: o,
221
+ headerAlign: i,
222
+ align: s,
223
+ prop: t,
224
+ width: h,
225
+ fixed: m,
226
+ showOverflowTooltip: !0
284
227
  }, {
285
- default: (scope) => {
228
+ default: (p) => {
286
229
  const {
287
- row,
288
- column: column2
289
- } = scope;
290
- const cellValue = row[column2.property];
291
- if (cellValue instanceof Date || dayjs.isDayjs(cellValue)) {
292
- return createVNode("div", null, [formatDate(cellValue, format)]);
293
- } else {
294
- if (sourceFormat && format) {
295
- return createVNode("div", null, [formatDate(cellValue, sourceFormat, format)]);
296
- } else {
297
- return createVNode("div", null, [cellValue]);
298
- }
299
- }
230
+ row: P,
231
+ column: D
232
+ } = p, w = P[D.property];
233
+ return w instanceof Date || ye.isDayjs(w) ? a("div", null, [Y(w, c)]) : b && c ? a("div", null, [Y(w, b, c)]) : a("div", null, [w]);
300
234
  }
301
235
  });
302
- };
303
- const renderSingleSelectColumn = (column) => {
236
+ }, le = (e) => {
304
237
  const {
305
- name,
306
- head,
307
- headAlign,
308
- width,
309
- fixed
310
- } = column;
311
- const {
312
- code
313
- } = column;
314
- return createVNode(ElTableColumn, {
315
- "label": head,
316
- "headerAlign": headAlign,
317
- "prop": name,
318
- "width": width,
319
- "fixed": fixed,
320
- "showOverflowTooltip": true
238
+ name: t,
239
+ head: o,
240
+ headAlign: i,
241
+ bodyAlign: s,
242
+ width: h,
243
+ fixed: m
244
+ } = e, {
245
+ code: b
246
+ } = e;
247
+ return a(A, {
248
+ label: o,
249
+ headerAlign: i,
250
+ align: s,
251
+ prop: t,
252
+ width: h,
253
+ fixed: m,
254
+ showOverflowTooltip: !0
321
255
  }, {
322
- default: (scope) => {
256
+ default: (c) => {
323
257
  const {
324
- row,
325
- column: column2
326
- } = scope;
327
- const cellValue = row[column2.property];
328
- let codeName, codeData, codeContent;
329
- if (!code) {
330
- codeContent = null;
331
- } else if (typeof code === "string") {
332
- codeName = code;
333
- codeData = Throne.getCode(codeName);
334
- codeContent = getSingleCodeContent(codeData.value, cellValue);
335
- } else {
336
- codeData = code;
337
- codeContent = getSingleCodeContent(codeData, cellValue);
338
- }
339
- return createVNode("span", {
340
- "class": "cell-singleselect"
341
- }, [codeContent]);
258
+ row: p,
259
+ column: P
260
+ } = c, D = p[P.property];
261
+ let w;
262
+ const _ = H(b);
263
+ return _.value ? w = be(_.value, D) : w = null, a("span", {
264
+ class: "cell-singleselect"
265
+ }, [w]);
342
266
  }
343
267
  });
344
- };
345
- const renderMultiSelectColumn = (column) => {
268
+ }, ne = (e) => {
346
269
  const {
347
- name,
348
- head,
349
- headAlign,
350
- width,
351
- fixed
352
- } = column;
353
- const {
354
- code
355
- } = column;
356
- return createVNode(ElTableColumn, {
357
- "label": head,
358
- "headerAlign": headAlign,
359
- "prop": name,
360
- "width": width,
361
- "fixed": fixed,
362
- "showOverflowTooltip": true
270
+ name: t,
271
+ head: o,
272
+ headAlign: i,
273
+ bodyAlign: s,
274
+ width: h,
275
+ fixed: m
276
+ } = e, {
277
+ code: b
278
+ } = e;
279
+ return a(A, {
280
+ label: o,
281
+ headerAlign: i,
282
+ align: s,
283
+ prop: t,
284
+ width: h,
285
+ fixed: m,
286
+ showOverflowTooltip: !0
363
287
  }, {
364
- default: (scope) => {
288
+ default: (c) => {
365
289
  const {
366
- row,
367
- column: column2
368
- } = scope;
369
- const cellValue = row[column2.property];
370
- let codeName, codeData, codeContent;
371
- if (!code) {
372
- codeContent = null;
373
- } else if (typeof code === "string") {
374
- codeName = code;
375
- codeData = Throne.getCode(codeName);
376
- codeContent = getMultiCodeContent(codeData.value, cellValue);
377
- } else {
378
- codeData = code;
379
- codeContent = getMultiCodeContent(codeData, cellValue);
380
- }
381
- return createVNode("span", {
382
- "class": "cell-multiselect"
383
- }, [codeContent]);
290
+ row: p,
291
+ column: P
292
+ } = c, D = p[P.property];
293
+ let w;
294
+ const _ = H(b);
295
+ return _.value ? w = we(_.value, D) : w = null, a("span", {
296
+ class: "cell-multiselect"
297
+ }, [w]);
384
298
  }
385
299
  });
386
- };
387
- const renderButtongroupColumn = (column) => {
300
+ }, oe = (e) => {
388
301
  const {
389
- name,
390
- head,
391
- headAlign,
392
- width,
393
- fixed
394
- } = column;
395
- return createVNode(ElTableColumn, {
396
- "label": head,
397
- "headerAlign": headAlign,
398
- "prop": name,
399
- "width": width,
400
- "fixed": fixed
302
+ name: t,
303
+ head: o,
304
+ headAlign: i,
305
+ bodyAlign: s,
306
+ width: h,
307
+ fixed: m
308
+ } = e;
309
+ return a(A, {
310
+ label: o,
311
+ headerAlign: i,
312
+ align: s,
313
+ prop: t,
314
+ width: h,
315
+ fixed: m
401
316
  }, {
402
- default: (scope) => {
403
- var _a, _b;
404
- const children = (_b = (_a = column.children) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a, {
405
- rowData: scope.row,
406
- column,
407
- rowIndex: scope.$index
317
+ default: (b) => {
318
+ var p, P;
319
+ const c = (P = (p = e.children) == null ? void 0 : p.default) == null ? void 0 : P.call(p, {
320
+ rowData: b.row,
321
+ column: e,
322
+ rowIndex: b.$index
408
323
  });
409
- return createVNode("div", {
410
- "class": "cell-buttongroup"
411
- }, [createVNode(Space, null, _isSlot$1(children) ? children : {
412
- default: () => [children]
324
+ return a("div", {
325
+ class: "cell-buttongroup"
326
+ }, [a(Ce, null, xe(c) ? c : {
327
+ default: () => [c]
413
328
  })]);
414
329
  }
415
330
  });
416
- };
417
- const renderColumngroupColumn = (column) => {
418
- const {
419
- head,
420
- headAlign
421
- } = column;
331
+ }, re = (e) => {
422
332
  const {
423
- children
424
- } = column;
425
- return createVNode(ElTableColumn, {
426
- "label": head,
427
- "headerAlign": headAlign
333
+ head: t,
334
+ headAlign: o
335
+ } = e, {
336
+ children: i
337
+ } = e;
338
+ return a(A, {
339
+ label: t,
340
+ headerAlign: o
428
341
  }, {
429
- default: (scope) => {
430
- return renderColumns(children);
431
- }
342
+ default: (s) => E(i)
432
343
  });
433
- };
434
- const renderDiyColumn = (column) => {
344
+ }, ae = (e) => {
435
345
  const {
436
- name,
437
- head,
438
- headAlign,
439
- width,
440
- fixed
441
- } = column;
442
- return createVNode(ElTableColumn, {
443
- "label": head,
444
- "headerAlign": headAlign,
445
- "prop": name,
446
- "width": width,
447
- "fixed": fixed
346
+ name: t,
347
+ head: o,
348
+ headAlign: i,
349
+ width: s,
350
+ fixed: h
351
+ } = e;
352
+ return a(A, {
353
+ label: o,
354
+ headerAlign: i,
355
+ prop: t,
356
+ width: s,
357
+ fixed: h
448
358
  }, {
449
- default: (scope) => {
450
- var _a, _b;
451
- const children = (_b = (_a = column.children) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a, {
452
- rowData: scope.row,
453
- column,
454
- rowIndex: scope.$index
359
+ default: (m) => {
360
+ var c, p;
361
+ const b = (p = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : p.call(c, {
362
+ rowData: m.row,
363
+ column: e,
364
+ rowIndex: m.$index
455
365
  });
456
- return createVNode("div", {
457
- "class": "cell-diy"
458
- }, [children, createTextVNode(" ")]);
459
- }
460
- });
461
- };
462
- const renderColumns = (columns2) => {
463
- return columns2 == null ? void 0 : columns2.map((c) => {
464
- if (c.type === "OPagetableColumnString") {
465
- return renderStringColumn(c);
466
- } else if (c.type === "OPagetableColumnLink") {
467
- return renderLinkColumn(c);
468
- } else if (c.type === "OPagetableColumnNumber") {
469
- return renderNumberColumn(c);
470
- } else if (c.type === "OPagetableColumnDate") {
471
- return renderDateColumn(c);
472
- } else if (c.type === "OPagetableColumnSingleselect") {
473
- return renderSingleSelectColumn(c);
474
- } else if (c.type === "OPagetableColumnMultiselect") {
475
- return renderMultiSelectColumn(c);
476
- } else if (c.type === "OPagetableColumnButtongroup") {
477
- return renderButtongroupColumn(c);
478
- } else if (c.type === "OPagetableColumngroup") {
479
- return renderColumngroupColumn(c);
480
- } else if (c.type === "OPagetableColumnDiy") {
481
- return renderDiyColumn(c);
482
- } else {
483
- throw new OrionError(`OPagetable不能正确渲染'${c.type.name}'子组件。`);
366
+ return a("div", {
367
+ class: "cell-diy"
368
+ }, [b, se(" ")]);
484
369
  }
485
370
  });
486
- };
487
- return createVNode("div", {
488
- "class": [cn, attrs.class],
489
- "style": [style.value, attrs.style]
490
- }, [createVNode("div", {
491
- "class": "pagetable-wrapper"
492
- }, [createVNode(ElTable, {
493
- "showSummary": showSummary.value,
494
- "summaryMethod": getSummaries,
495
- "border": true,
496
- "ref": elTableRef,
497
- "data": data,
498
- "height": "100%",
499
- "style": {
371
+ }, E = (e) => e == null ? void 0 : e.map((t) => {
372
+ if (t.type === "OPagetableColumnString")
373
+ return X(t);
374
+ if (t.type === "OPagetableColumnLink")
375
+ return Z(t);
376
+ if (t.type === "OPagetableColumnNumber")
377
+ return ee(t);
378
+ if (t.type === "OPagetableColumnDate")
379
+ return te(t);
380
+ if (t.type === "OPagetableColumnSingleselect")
381
+ return le(t);
382
+ if (t.type === "OPagetableColumnMultiselect")
383
+ return ne(t);
384
+ if (t.type === "OPagetableColumnButtongroup")
385
+ return oe(t);
386
+ if (t.type === "OPagetableColumngroup")
387
+ return re(t);
388
+ if (t.type === "OPagetableColumnDiy")
389
+ return ae(t);
390
+ throw new F(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
391
+ });
392
+ return a("div", {
393
+ class: [K, y.class],
394
+ style: [k.value, y.style]
395
+ }, [a("div", {
396
+ class: "pagetable-wrapper"
397
+ }, [a(ce, {
398
+ showSummary: q.value,
399
+ summaryMethod: J,
400
+ border: !0,
401
+ ref: v,
402
+ data: d,
403
+ height: "100%",
404
+ style: {
500
405
  width: "100%"
501
406
  },
502
- "onSelection-change": (rows) => emit("selectionChange", rows),
503
- "highlight-current-row": currentRowMode,
504
- "onCurrent-change": (currentRow, oldCurrentRow) => emit("currentRowChange", currentRow, oldCurrentRow),
505
- "onRow-click": (row, column, event) => emit("rowClick", row, {
506
- name: column.property,
507
- head: column.label
508
- }, event),
509
- "onRow-dblclick": (row, column, event) => emit("rowDblclick", row, {
510
- name: column.property,
511
- head: column.label
512
- }, event),
513
- "onCell-click": (row, column, cell, event) => emit("cellClick", row, {
514
- name: column.property,
515
- head: column.label
516
- }, cell, event),
517
- "onCell-dblclick": (row, column, cell, event) => emit("cellDblclick", row, {
518
- name: column.property,
519
- head: column.label
520
- }, cell, event),
521
- "size": size
407
+ "onSelection-change": (e) => u("selectionChange", e),
408
+ "highlight-current-row": G,
409
+ "onCurrent-change": (e, t) => u("currentRowChange", e, t),
410
+ "onRow-click": (e, t, o) => u("rowClick", e, {
411
+ name: t.property,
412
+ head: t.label
413
+ }, o),
414
+ "onRow-dblclick": (e, t, o) => u("rowDblclick", e, {
415
+ name: t.property,
416
+ head: t.label
417
+ }, o),
418
+ "onCell-click": (e, t, o, i) => u("cellClick", e, {
419
+ name: t.property,
420
+ head: t.label
421
+ }, o, i),
422
+ "onCell-dblclick": (e, t, o, i) => u("cellDblclick", e, {
423
+ name: t.property,
424
+ head: t.label
425
+ }, o, i),
426
+ onSelect: (e, t) => u("select", e, t),
427
+ "onSelect-all": (e) => u("select-all", e),
428
+ size: V,
429
+ rowClassName: (e) => typeof I == "string" ? I : typeof I == "function" ? I({
430
+ rowData: e.row,
431
+ rowIndex: e.rowIndex
432
+ }) : "row-class-name_not_valid",
433
+ rowStyle: (e) => typeof M == "function" ? M({
434
+ rowData: e.row,
435
+ rowIndex: e.rowIndex
436
+ }) : typeof M == "object" ? M : {},
437
+ cellClassName: (e) => typeof j == "string" ? j : typeof j == "function" ? j({
438
+ rowData: e.row,
439
+ column: {
440
+ name: e.column.property,
441
+ head: e.column.label
442
+ },
443
+ rowIndex: e.rowIndex,
444
+ columnIndex: e.columnIndex
445
+ }) : "cell-class-name_not_valid",
446
+ cellStyle: (e) => typeof z == "function" ? z({
447
+ rowData: e.row,
448
+ column: {
449
+ name: e.column.property,
450
+ head: e.column.label
451
+ },
452
+ rowIndex: e.rowIndex,
453
+ columnIndex: e.columnIndex
454
+ }) : typeof z == "object" ? z : {}
522
455
  }, {
523
- default: () => [showRowNumber && renderIndexColumn(), selectionMode && renderSelectionColumn(), renderColumns(columns.value)]
524
- })]), createVNode("div", {
525
- "class": "pagination-wrapper"
526
- }, [createVNode(ElPagination, {
527
- "currentPage": pagination.currentPage,
456
+ default: () => [N && Q(), O && W(), E(B.value)]
457
+ })]), a("div", {
458
+ class: "pagination-wrapper"
459
+ }, [a(pe, {
460
+ currentPage: g.currentPage,
528
461
  "onUpdate:current-page": (e) => {
529
- emit("update:pagination", {
530
- ...pagination,
462
+ u("update:pagination", {
463
+ ...g,
531
464
  currentPage: e
532
465
  });
533
466
  },
534
- "pageSize": pagination.pageSize,
535
- "pageSizes": pagination.pageSizes,
467
+ pageSize: g.pageSize,
468
+ pageSizes: g.pageSizes,
536
469
  "onUpdate:page-size": (e) => {
537
- emit("update:pagination", {
538
- ...pagination,
470
+ u("update:pagination", {
471
+ ...g,
539
472
  pageSize: e
540
473
  });
541
474
  },
542
- "total": pagination.total,
543
- "layout": "total, ->, sizes, prev, pager, next, jumper",
544
- "size": size,
545
- "teleported": false
475
+ total: g.total,
476
+ layout: "total, ->, sizes, prev, pager, next, jumper",
477
+ size: V,
478
+ teleported: x
546
479
  }, null)])]);
547
480
  };
548
481
  }
549
- });
550
- const pagetableColumnIndexProps = () => ({});
551
- const PagetableColumnIndex = /* @__PURE__ */ defineComponent({
482
+ }), ve = () => ({}), Oe = /* @__PURE__ */ S({
552
483
  name: "OPagetableColumnIndex",
553
- inheritAttrs: false,
554
- props: pagetableColumnIndexProps(),
555
- setup(props, {
556
- slots,
557
- attrs,
558
- emit,
559
- expose
484
+ inheritAttrs: !1,
485
+ props: ve(),
486
+ setup(n, {
487
+ slots: f,
488
+ attrs: y,
489
+ emit: u,
490
+ expose: C
560
491
  }) {
561
492
  return () => null;
562
493
  }
563
- });
564
- const pagetableColumnStringProps = () => ({
565
- head: stringType(),
566
- headAlign: stringType(),
567
- name: stringType(),
568
- width: someType([Boolean, String]),
569
- fixed: someType([Boolean, String]),
570
- tail: someType([Boolean, String])
571
- });
572
- const PagetableColumnString = /* @__PURE__ */ defineComponent({
494
+ }), Be = () => ({
495
+ head: l(),
496
+ headAlign: l(),
497
+ bodyAlign: l(),
498
+ name: l(),
499
+ width: r([Boolean, String]),
500
+ fixed: r([Boolean, String]),
501
+ tail: r([Boolean, String])
502
+ }), De = /* @__PURE__ */ S({
573
503
  name: "OPagetableColumnString",
574
- inheritAttrs: false,
575
- props: pagetableColumnStringProps(),
576
- setup(props, {
577
- slots,
578
- attrs,
579
- emit,
580
- expose
504
+ inheritAttrs: !1,
505
+ props: Be(),
506
+ setup(n, {
507
+ slots: f,
508
+ attrs: y,
509
+ emit: u,
510
+ expose: C
581
511
  }) {
582
512
  return () => null;
583
513
  }
584
- });
585
- const pagetableColumnLinkProps = () => ({
586
- head: stringType(),
587
- headAlign: stringType(),
588
- name: stringType(),
589
- width: someType([Boolean, String]),
590
- fixed: someType([Boolean, String]),
591
- tail: someType([Boolean, String])
592
- });
593
- const PagetableColumnLink = /* @__PURE__ */ defineComponent({
514
+ }), Te = () => ({
515
+ head: l(),
516
+ headAlign: l(),
517
+ bodyAlign: l(),
518
+ name: l(),
519
+ width: r([Boolean, String]),
520
+ fixed: r([Boolean, String]),
521
+ tail: r([Boolean, String])
522
+ }), ke = /* @__PURE__ */ S({
594
523
  name: "OPagetableColumnLink",
595
- inheritAttrs: false,
596
- props: pagetableColumnLinkProps(),
597
- setup(props, {
598
- slots,
599
- attrs,
600
- emit,
601
- expose
524
+ inheritAttrs: !1,
525
+ props: Te(),
526
+ setup(n, {
527
+ slots: f,
528
+ attrs: y,
529
+ emit: u,
530
+ expose: C
602
531
  }) {
603
532
  return () => null;
604
533
  }
605
- });
606
- const pagetableColumnNumberProps = () => ({
607
- head: stringType(),
608
- headAlign: stringType(),
609
- name: stringType(),
610
- width: someType([Boolean, String]),
611
- fixed: someType([Boolean, String]),
612
- tail: someType([Boolean, String]),
613
- thousandsSeparator: booleanType(true),
614
- precision: numberType(-1),
615
- percentage: booleanType(false)
616
- });
617
- const PagetableColumnNumber = /* @__PURE__ */ defineComponent({
534
+ }), Ne = () => ({
535
+ head: l(),
536
+ headAlign: l(),
537
+ bodyAlign: l(),
538
+ name: l(),
539
+ width: r([Boolean, String]),
540
+ fixed: r([Boolean, String]),
541
+ tail: r([Boolean, String]),
542
+ thousandsSeparator: T(!0),
543
+ precision: fe(-1),
544
+ percentage: T(!1)
545
+ }), _e = /* @__PURE__ */ S({
618
546
  name: "OPagetableColumnNumber",
619
- inheritAttrs: false,
620
- props: pagetableColumnNumberProps(),
621
- setup(props, {
622
- slots,
623
- attrs,
624
- emit,
625
- expose
547
+ inheritAttrs: !1,
548
+ props: Ne(),
549
+ setup(n, {
550
+ slots: f,
551
+ attrs: y,
552
+ emit: u,
553
+ expose: C
626
554
  }) {
627
555
  return () => null;
628
556
  }
629
- });
630
- const pagetableColumnDateProps = () => ({
631
- head: stringType(),
632
- headAlign: stringType(),
633
- name: stringType(),
634
- width: someType([Boolean, String]),
635
- fixed: someType([Boolean, String]),
636
- tail: someType([Boolean, String]),
557
+ }), Re = () => ({
558
+ head: l(),
559
+ headAlign: l(),
560
+ bodyAlign: l(),
561
+ name: l(),
562
+ width: r([Boolean, String]),
563
+ fixed: r([Boolean, String]),
564
+ tail: r([Boolean, String]),
637
565
  // Date
638
- format: stringType(),
639
- sourceFormat: stringType()
640
- });
641
- const PagetableColumnDate = /* @__PURE__ */ defineComponent({
566
+ format: l(),
567
+ sourceFormat: l()
568
+ }), Ie = /* @__PURE__ */ S({
642
569
  name: "OPagetableColumnDate",
643
- inheritAttrs: false,
644
- props: pagetableColumnDateProps(),
645
- setup(props, {
646
- slots,
647
- attrs,
648
- emit,
649
- expose
570
+ inheritAttrs: !1,
571
+ props: Re(),
572
+ setup(n, {
573
+ slots: f,
574
+ attrs: y,
575
+ emit: u,
576
+ expose: C
650
577
  }) {
651
578
  return () => null;
652
579
  }
653
- });
654
- const pagetableColumnSingleselectProps = () => ({
655
- head: stringType(),
656
- headAlign: stringType(),
657
- name: stringType(),
658
- width: someType([Boolean, String]),
659
- fixed: someType([Boolean, String]),
660
- tail: someType([Boolean, String]),
661
- code: someType([String, Array])
662
- });
663
- const PagetableColumnSingleselect = /* @__PURE__ */ defineComponent({
580
+ }), Me = () => ({
581
+ head: l(),
582
+ headAlign: l(),
583
+ bodyAlign: l(),
584
+ name: l(),
585
+ width: r([Boolean, String]),
586
+ fixed: r([Boolean, String]),
587
+ tail: r([Boolean, String]),
588
+ code: r([String, Array])
589
+ }), je = /* @__PURE__ */ S({
664
590
  name: "OPagetableColumnSingleselect",
665
- inheritAttrs: false,
666
- props: pagetableColumnSingleselectProps(),
667
- setup(props, {
668
- slots,
669
- attrs,
670
- emit,
671
- expose
591
+ inheritAttrs: !1,
592
+ props: Me(),
593
+ setup(n, {
594
+ slots: f,
595
+ attrs: y,
596
+ emit: u,
597
+ expose: C
672
598
  }) {
673
599
  return () => null;
674
600
  }
675
- });
676
- const pagetableColumnMultiselectProps = () => ({
677
- head: stringType(),
678
- headAlign: stringType(),
679
- name: stringType(),
680
- width: someType([Boolean, String]),
681
- fixed: someType([Boolean, String]),
682
- tail: someType([Boolean, String]),
683
- code: someType([String, Array])
684
- });
685
- const PagetableColumnMultiselect = /* @__PURE__ */ defineComponent({
601
+ }), ze = () => ({
602
+ head: l(),
603
+ headAlign: l(),
604
+ bodyAlign: l(),
605
+ name: l(),
606
+ width: r([Boolean, String]),
607
+ fixed: r([Boolean, String]),
608
+ tail: r([Boolean, String]),
609
+ code: r([String, Array])
610
+ }), $e = /* @__PURE__ */ S({
686
611
  name: "OPagetableColumnMultiselect",
687
- inheritAttrs: false,
688
- props: pagetableColumnMultiselectProps(),
689
- setup(props, {
690
- slots,
691
- attrs,
692
- emit,
693
- expose
612
+ inheritAttrs: !1,
613
+ props: ze(),
614
+ setup(n, {
615
+ slots: f,
616
+ attrs: y,
617
+ emit: u,
618
+ expose: C
694
619
  }) {
695
620
  return () => null;
696
621
  }
697
- });
698
- const pagetableColumnButtongroupProps = () => ({
699
- head: stringType(),
700
- headAlign: stringType(),
701
- name: stringType(),
702
- width: someType([Boolean, String]),
703
- fixed: someType([Boolean, String]),
704
- tail: someType([Boolean, String])
705
- });
706
- const PagetableColumnButtongroup = /* @__PURE__ */ defineComponent({
622
+ }), Ve = () => ({
623
+ head: l(),
624
+ headAlign: l(),
625
+ bodyAlign: l(),
626
+ name: l(),
627
+ width: r([Boolean, String]),
628
+ fixed: r([Boolean, String]),
629
+ tail: r([Boolean, String])
630
+ }), Ee = /* @__PURE__ */ S({
707
631
  name: "OPagetableColumnButtongroup",
708
- inheritAttrs: false,
709
- props: pagetableColumnButtongroupProps(),
632
+ inheritAttrs: !1,
633
+ props: Ve(),
710
634
  slots: Object,
711
- setup(props, {
712
- slots,
713
- attrs,
714
- emit,
715
- expose
635
+ setup(n, {
636
+ slots: f,
637
+ attrs: y,
638
+ emit: u,
639
+ expose: C
716
640
  }) {
717
641
  return () => null;
718
642
  }
719
643
  });
720
- function _isSlot(s) {
721
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
644
+ function Le(n) {
645
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !U(n);
722
646
  }
723
- const pagetableCellButtonProps = () => ({
724
- type: stringType()
725
- });
726
- const PagetableCellButton = /* @__PURE__ */ defineComponent({
647
+ const Ye = () => ({
648
+ type: l()
649
+ }), Fe = /* @__PURE__ */ S({
727
650
  name: "OPagetableCellButton",
728
- inheritAttrs: false,
729
- props: pagetableCellButtonProps(),
651
+ inheritAttrs: !1,
652
+ props: Ye(),
730
653
  emits: ["click"],
731
- setup(props, {
732
- slots,
733
- attrs,
734
- emit,
735
- expose
654
+ setup(n, {
655
+ slots: f,
656
+ attrs: y,
657
+ emit: u,
658
+ expose: C
736
659
  }) {
737
- const handleClick = (event) => {
738
- emit("click", event);
660
+ const v = (k) => {
661
+ u("click", k);
739
662
  };
740
663
  return () => {
741
- var _a;
664
+ var R;
742
665
  const {
743
- type
744
- } = props;
745
- const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
746
- return createVNode(ElButton, {
747
- "link": true,
748
- "type": type,
749
- "size": "small",
750
- "onClick": handleClick
751
- }, _isSlot(children) ? children : {
752
- default: () => [children]
666
+ type: k
667
+ } = n, B = (R = f.default) == null ? void 0 : R.call(f);
668
+ return a(de, {
669
+ link: !0,
670
+ type: k,
671
+ size: "small",
672
+ onClick: v
673
+ }, Le(B) ? B : {
674
+ default: () => [B]
753
675
  });
754
676
  };
755
677
  }
756
- });
757
- const pagetableColumngroupProps = () => ({
758
- head: stringType(),
759
- headAlign: stringType()
760
- });
761
- const PagetableColumngroup = /* @__PURE__ */ defineComponent({
678
+ }), He = () => ({
679
+ head: l(),
680
+ headAlign: l()
681
+ }), Ue = /* @__PURE__ */ S({
762
682
  name: "OPagetableColumngroup",
763
- inheritAttrs: false,
764
- props: pagetableColumngroupProps(),
765
- setup(props, {
766
- slots,
767
- attrs,
768
- emit,
769
- expose
683
+ inheritAttrs: !1,
684
+ props: He(),
685
+ setup(n, {
686
+ slots: f,
687
+ attrs: y,
688
+ emit: u,
689
+ expose: C
770
690
  }) {
771
691
  return () => null;
772
692
  }
773
- });
774
- const pagetableColumnDiyProps = () => ({
775
- head: stringType(),
776
- headAlign: stringType(),
777
- name: stringType(),
778
- width: someType([Boolean, String]),
779
- fixed: someType([Boolean, String]),
780
- tail: someType([Boolean, String])
781
- });
782
- const PagetableColumnDiy = /* @__PURE__ */ defineComponent({
693
+ }), qe = () => ({
694
+ head: l(),
695
+ headAlign: l(),
696
+ name: l(),
697
+ width: r([Boolean, String]),
698
+ fixed: r([Boolean, String]),
699
+ tail: r([Boolean, String])
700
+ }), Ge = /* @__PURE__ */ S({
783
701
  name: "OPagetableColumnDiy",
784
- inheritAttrs: false,
785
- props: pagetableColumnDiyProps(),
702
+ inheritAttrs: !1,
703
+ props: qe(),
786
704
  slots: Object,
787
- setup(props, {
788
- slots,
789
- attrs,
790
- emit,
791
- expose
705
+ setup(n, {
706
+ slots: f,
707
+ attrs: y,
708
+ emit: u,
709
+ expose: C
792
710
  }) {
793
711
  return () => null;
794
712
  }
795
- });
796
- const Pagetable = withInstall(Pagetable$1, {
797
- PagetableColumnIndex,
798
- PagetableColumnString,
799
- PagetableColumnLink,
800
- PagetableColumnNumber,
801
- PagetableColumnDate,
802
- PagetableColumnSingleselect,
803
- PagetableColumnMultiselect,
804
- PagetableColumnButtongroup,
805
- PagetableCellButton,
806
- PagetableColumngroup,
807
- PagetableColumnDiy
713
+ }), dt = ue(Pe, {
714
+ PagetableColumnIndex: Oe,
715
+ PagetableColumnString: De,
716
+ PagetableColumnLink: ke,
717
+ PagetableColumnNumber: _e,
718
+ PagetableColumnDate: Ie,
719
+ PagetableColumnSingleselect: je,
720
+ PagetableColumnMultiselect: $e,
721
+ PagetableColumnButtongroup: Ee,
722
+ PagetableCellButton: Fe,
723
+ PagetableColumngroup: Ue,
724
+ PagetableColumnDiy: Ge
808
725
  });
809
726
  export {
810
- Pagetable as default
727
+ dt as default
811
728
  };
812
729
  //# sourceMappingURL=index.js.map