orion-design 0.1.31 → 0.1.32

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