aibox-custom-component-packages 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +836 -0
  2. package/es/ApplicationTypeTag.mjs +58 -0
  3. package/es/AuthSection.mjs +199 -0
  4. package/es/AutoShowTooltip.mjs +90 -0
  5. package/es/AvailableRangePreview.mjs +1 -1
  6. package/es/AvailableRangeSetting.mjs +16 -11
  7. package/es/CodeView.mjs +7 -0
  8. package/es/CommonTagsList.mjs +5 -5
  9. package/es/CreateMcpForm.mjs +385 -0
  10. package/es/CustomSidebar.mjs +717 -0
  11. package/es/CustomTitle.mjs +7 -0
  12. package/es/CustomToggle.mjs +224 -0
  13. package/es/DialogContainer.mjs +21 -21
  14. package/es/DocSyncSelect.mjs +2661 -0
  15. package/es/FileDisplay.mjs +4 -0
  16. package/es/FilePreview.mjs +179 -0
  17. package/es/FileUploader.mjs +263 -9
  18. package/es/Logo.mjs +72 -0
  19. package/es/McpFormDialog.mjs +8 -0
  20. package/es/McpParamsSet.mjs +630 -0
  21. package/es/MdEditor.mjs +201 -0
  22. package/es/PageContainer.mjs +582 -11
  23. package/es/ParameterTable.mjs +2290 -0
  24. package/es/PublishRecord.mjs +59 -58
  25. package/es/RadioGroup.mjs +119 -0
  26. package/es/SourcePublish.mjs +96 -94
  27. package/es/Table.mjs +2 -2
  28. package/es/assets/AddOrEditSupplierDialog.css +1 -0
  29. package/es/assets/AiboxTable.css +1 -0
  30. package/es/assets/ApplicationTypeTag.css +1 -0
  31. package/es/assets/AuthSection.css +1 -0
  32. package/es/assets/AutoShowTooltip.css +1 -0
  33. package/es/assets/CommonTagsList.css +1 -1
  34. package/es/assets/CreateMcpForm.css +1 -0
  35. package/es/assets/CustomSidebar.css +1 -0
  36. package/es/assets/CustomToggle.css +1 -0
  37. package/es/assets/DocSyncSelect.css +1 -0
  38. package/es/assets/FilePreview.css +1 -0
  39. package/es/assets/FileUploader.css +1 -0
  40. package/es/assets/Logo.css +1 -0
  41. package/es/assets/McpParamsSet.css +1 -0
  42. package/es/assets/MdEditor.css +1 -0
  43. package/es/assets/PageContainer.css +1 -0
  44. package/es/assets/ParameterTable.css +1 -0
  45. package/es/assets/PublishRecord.css +1 -1
  46. package/es/assets/RadioGroup.css +1 -0
  47. package/es/assets/SourcePublish.css +1 -1
  48. package/es/assets/index.css +1 -1
  49. package/es/assets/index2.css +1 -1
  50. package/es/assets/index3.css +1 -0
  51. package/es/assets/index4.css +1 -0
  52. package/es/assets/index5.css +1 -0
  53. package/es/assets/layout.css +1 -0
  54. package/es/assets/legacy.css +1 -0
  55. package/es/assets/usePreview.css +1 -0
  56. package/es/chunks/{BackBar.Cv1wxUcM.js → AiboxTable.CF4T_OCu.js} +123 -123
  57. package/es/chunks/{BackBar.DJV4JaUM.js → AiboxTable.DUGBBVXh.js} +123 -123
  58. package/es/chunks/{config.BU21Gda2.js → config.DPkdwjwD.js} +1 -1
  59. package/es/chunks/{config.BzCGum_W.js → config.Dklrsn-B.js} +1 -1
  60. package/es/chunks/{config.BPp4hMBq.js → config.RrNwuFkQ.js} +2 -2
  61. package/es/chunks/{config.DTMcCH58.js → config.gNZ_rT87.js} +2 -2
  62. package/es/chunks/{enums.CfSBDD6u.js → enums.Dvec-maC.js} +11 -32
  63. package/es/chunks/enums.WrpwbF4w.js +14 -0
  64. package/es/chunks/field-types.CPnMOjle.js +13 -0
  65. package/es/chunks/files.cduUqjHX.js +16 -0
  66. package/es/chunks/i18n.DDMVloiU.js +443 -0
  67. package/es/chunks/{i18n.DmqkiK-h.js → i18n.k9Q_HVMs.js} +25 -26
  68. package/es/chunks/index.BDd6hHiU.js +172 -0
  69. package/es/chunks/index.BT1khSY9.js +111 -0
  70. package/es/chunks/{index.DB0ayMv8.js → index.CDvh263l.js} +3 -3
  71. package/es/chunks/{index.aMb6IVQD.js → index.CF_YHLP5.js} +19 -19
  72. package/es/chunks/index.CSjjAi3w.js +396 -0
  73. package/es/chunks/index.CdEBk4F_.js +134 -0
  74. package/es/chunks/index.DdD1VsH1.js +396 -0
  75. package/es/chunks/index.Dx-mCS4E.js +1298 -0
  76. package/es/chunks/layout.BREUWPEJ.js +26 -0
  77. package/es/chunks/layout.CygCXa6s.js +26 -0
  78. package/es/chunks/{publish.BCb7nCo9.js → publish.DlD0o09n.js} +1 -1
  79. package/es/chunks/request.24c3shPx.js +5 -0
  80. package/es/chunks/usePreview.B5lboHeg.js +153 -0
  81. package/es/chunks/usePreview.BHvXwaNi.js +157 -0
  82. package/es/index.mjs +404 -307
  83. package/lib/AddOrEditSupplierDialog.js +1 -0
  84. package/lib/ApplicationTypeTag.js +1 -0
  85. package/lib/AuthSection.js +1 -0
  86. package/lib/AutoShowTooltip.js +1 -0
  87. package/lib/AvailableRangePreview.js +1 -1
  88. package/lib/AvailableRangeSetting.js +1 -1
  89. package/lib/CodeView.js +1 -0
  90. package/lib/CommonTagsList.js +1 -1
  91. package/lib/CreateMcpForm.js +1 -0
  92. package/lib/CustomSidebar.js +1 -0
  93. package/lib/CustomTitle.js +1 -0
  94. package/lib/CustomToggle.js +1 -0
  95. package/lib/DialogContainer.js +1 -1
  96. package/lib/DocSyncSelect.js +2 -0
  97. package/lib/FileDisplay.js +1 -0
  98. package/lib/FilePreview.js +1 -0
  99. package/lib/FileUploader.js +1 -1
  100. package/lib/Logo.js +1 -0
  101. package/lib/McpFormDialog.js +1 -0
  102. package/lib/McpParamsSet.js +1 -0
  103. package/lib/MdEditor.js +1 -0
  104. package/lib/PageContainer.js +1 -1
  105. package/lib/ParameterTable.js +1 -0
  106. package/lib/PublishRecord.js +4 -4
  107. package/lib/RadioGroup.js +1 -0
  108. package/lib/SourcePublish.js +1 -1
  109. package/lib/Table.js +1 -1
  110. package/lib/assets/AddOrEditSupplierDialog.css +1 -0
  111. package/lib/assets/AiboxTable.css +1 -0
  112. package/lib/assets/ApplicationTypeTag.css +1 -0
  113. package/lib/assets/AuthSection.css +1 -0
  114. package/lib/assets/AutoShowTooltip.css +1 -0
  115. package/lib/assets/CommonTagsList.css +1 -1
  116. package/lib/assets/CreateMcpForm.css +1 -0
  117. package/lib/assets/CustomSidebar.css +1 -0
  118. package/lib/assets/CustomToggle.css +1 -0
  119. package/lib/assets/DocSyncSelect.css +1 -0
  120. package/lib/assets/FilePreview.css +1 -0
  121. package/lib/assets/FileUploader.css +1 -0
  122. package/lib/assets/Logo.css +1 -0
  123. package/lib/assets/McpParamsSet.css +1 -0
  124. package/lib/assets/MdEditor.css +1 -0
  125. package/lib/assets/PageContainer.css +1 -0
  126. package/lib/assets/ParameterTable.css +1 -0
  127. package/lib/assets/PublishRecord.css +1 -1
  128. package/lib/assets/RadioGroup.css +1 -0
  129. package/lib/assets/SourcePublish.css +1 -1
  130. package/lib/assets/index.css +1 -1
  131. package/lib/assets/index2.css +1 -1
  132. package/lib/assets/index3.css +1 -0
  133. package/lib/assets/index4.css +1 -0
  134. package/lib/assets/index5.css +1 -0
  135. package/lib/assets/layout.css +1 -0
  136. package/lib/assets/legacy.css +1 -0
  137. package/lib/assets/usePreview.css +1 -0
  138. package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
  139. package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
  140. package/lib/chunks/{config.B0XKkp1w.js → config.1oaIKLGn.js} +1 -1
  141. package/lib/chunks/{config.BCAuBVxV.js → config.BF7MO0O5.js} +1 -1
  142. package/lib/chunks/enums.DnuzPZCR.js +1 -0
  143. package/lib/chunks/enums.DpU2er5r.js +1 -0
  144. package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
  145. package/lib/chunks/files.B3-8UC0v.js +1 -0
  146. package/lib/chunks/i18n.DgOp_D7R.js +1 -0
  147. package/lib/chunks/index.BNivYbtq.js +1 -0
  148. package/lib/chunks/{index.Bk-RwmaH.js → index.B_keI1Aq.js} +1 -1
  149. package/lib/chunks/{index.BsN4urmi.js → index.Bc71XWQn.js} +1 -1
  150. package/lib/chunks/index.C7aZx6RG.js +6 -0
  151. package/lib/chunks/index.CH7XdMru.js +1 -0
  152. package/lib/chunks/index.CJFk1R2u.js +59 -0
  153. package/lib/chunks/index.CaidDlAx.js +1 -0
  154. package/lib/chunks/index.DGWHQFdx.js +6 -0
  155. package/lib/chunks/layout.DbBSbLgm.js +1 -0
  156. package/lib/chunks/layout.sgE9JoNq.js +1 -0
  157. package/lib/chunks/publish.3TrK3fZf.js +1 -0
  158. package/lib/chunks/request.D8T4MgGX.js +1 -0
  159. package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
  160. package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
  161. package/lib/index.js +2 -4
  162. package/package.json +3 -3
  163. package/es/ExampleComponent.mjs +0 -35
  164. package/es/assets/BackBar.css +0 -1
  165. package/es/assets/ExampleComponent.css +0 -1
  166. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  167. package/es/chunks/config.8htFF04x.js +0 -325
  168. package/es/chunks/config.CFWGjEdA.js +0 -49
  169. package/es/chunks/config.CfWAdyUH.js +0 -325
  170. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  171. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  172. package/es/chunks/index.ml5i7aB5.js +0 -257
  173. package/es/chunks/index.s-YxIOfq.js +0 -301
  174. package/es/chunks/publish.D6friivo.js +0 -50
  175. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  176. package/es/i18n.mjs +0 -17
  177. package/lib/ExampleComponent.js +0 -1
  178. package/lib/assets/BackBar.css +0 -1
  179. package/lib/assets/ExampleComponent.css +0 -1
  180. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  181. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  182. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  183. package/lib/chunks/config.C1w4hgfw.js +0 -1
  184. package/lib/chunks/config.ClERt2RF.js +0 -1
  185. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  186. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  187. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  188. package/lib/chunks/index.BNqTEn3K.js +0 -1
  189. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  190. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  191. package/lib/i18n.js +0 -1
@@ -1,13 +1,584 @@
1
- const t = {
2
- ACTION: "action"
3
- }, o = {
4
- TABLE: "table",
5
- CARD_INFINITE: "card-infinite"
6
- }, T = {
7
- BOTTOM: "bottom"
8
- };
1
+ import { w as ke } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as y, useSlots as Ce, computed as D, watch as O, onMounted as Se, createElementBlock as m, openBlock as r, createCommentVNode as h, createElementVNode as x, renderSlot as z, createVNode as v, unref as o, withCtx as d, createBlock as g, resolveDynamicComponent as xe, toDisplayString as V, normalizeClass as ee, mergeProps as te, toHandlers as Ee, createSlots as ae, normalizeStyle as Pe, Fragment as j, renderList as N, withModifiers as U, createTextVNode as le, normalizeProps as ze, guardReactiveProps as Ie } from "vue";
3
+ import { C as ne } from "./chunks/layout.CygCXa6s.js";
4
+ import { SearchBar as Ae, IconEmpty as Re } from "color-star-custom-components";
5
+ import { IconZuo as De, IconMore as Oe, IconZuoCopy as Ne, IconYou as Te, Loading as Be } from "color-message-aibox-vue";
6
+ import { M as A, C as H, D as Ve } from "./chunks/field-types.CPnMOjle.js";
7
+ import { emitsMap as c, paginationConfig as $, pageParams as R, operationConfigMap as oe } from "color-star-custom-methods";
8
+ import { ElIcon as F, ElAutoResizer as je, ElTable as $e, ElTableColumn as Y, ElButton as Fe, ElDropdown as Me, ElDropdownMenu as Ke, ElDropdownItem as Le, ElScrollbar as We, ElPagination as qe } from "element-plus";
9
+ import { useRouter as Ue } from "vue-router";
10
+ import { _ as He } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
11
+ import './assets/PageContainer.css';const Ye = { class: "page-container flex flex-col overflow-hidden h-full" }, Ze = { class: "text-1f2329 pd-l-4" }, Ge = { class: "action-buttons flex items-center" }, Je = { class: "flex items-center w-full" }, Qe = { class: "flex-1" }, Xe = {
12
+ key: 0,
13
+ class: "flex items-center justify-center w-full"
14
+ }, _e = {
15
+ key: 1,
16
+ class: "card-list"
17
+ }, et = {
18
+ key: 2,
19
+ class: "loading-indicator flex items-center justify-center pd-t-20 pd-b-20"
20
+ }, tt = {
21
+ key: 3,
22
+ class: "pagination-section pd-t-16 flex justify-center"
23
+ }, at = /* @__PURE__ */ Object.assign({
24
+ name: "PageContainer"
25
+ }, {
26
+ __name: "layout",
27
+ props: {
28
+ // 面包屑导航配置
29
+ breadcrumb: {
30
+ type: Object,
31
+ default: () => ({
32
+ show: !1,
33
+ text: ""
34
+ // icon: IconZuo,
35
+ })
36
+ },
37
+ // 页面标题
38
+ title: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ // 搜索字段配置
43
+ searchFields: {
44
+ type: Array,
45
+ default: () => []
46
+ },
47
+ // 搜索模型
48
+ modelValue: {
49
+ type: Object,
50
+ default: () => ({})
51
+ },
52
+ // 表格列配置
53
+ columns: {
54
+ type: Array,
55
+ default: () => []
56
+ },
57
+ // 表格数据
58
+ tableData: {
59
+ type: Array,
60
+ default: () => []
61
+ },
62
+ // 表格其他属性
63
+ tableProps: {
64
+ type: Object,
65
+ default: () => ({
66
+ stripe: !0,
67
+ border: !1
68
+ })
69
+ },
70
+ // 树表格配置
71
+ treeProps: {
72
+ type: Object,
73
+ default: () => ({})
74
+ },
75
+ // 表格事件
76
+ tableEvents: {
77
+ type: Object,
78
+ default: () => ({})
79
+ },
80
+ // 是否显示分页
81
+ showPagination: {
82
+ type: Boolean,
83
+ default: !0
84
+ },
85
+ // 分页配置
86
+ pagination: {
87
+ type: Object,
88
+ default: () => ({
89
+ page: R.pageNum,
90
+ size: R.pageSize,
91
+ total: 0,
92
+ pageSizes: $.pageSizes,
93
+ layout: $.layout
94
+ })
95
+ },
96
+ // 自定义插槽名称列表
97
+ customSlots: {
98
+ type: Array,
99
+ default: () => []
100
+ },
101
+ // 数据接口函数
102
+ api: {
103
+ type: Function,
104
+ default: null
105
+ },
106
+ // 是否自动加载数据
107
+ autoLoad: {
108
+ type: Boolean,
109
+ default: !0
110
+ },
111
+ // 接口自定义参数
112
+ apiParams: {
113
+ type: Object,
114
+ default: () => ({})
115
+ },
116
+ // 查询 跟 表格 是否 断开
117
+ isSeparate: {
118
+ type: Boolean,
119
+ default: !1
120
+ },
121
+ minWidth: {
122
+ type: Number,
123
+ default: 290
124
+ },
125
+ // 显示模式:MODES.TABLE(表格) | MODES.CARD_INFINITE(无限滚动卡片)
126
+ mode: {
127
+ type: String,
128
+ default: A.TABLE,
129
+ validator: (l) => Object.values(A).includes(l)
130
+ },
131
+ // 是否显示复选框
132
+ showSelection: {
133
+ type: Boolean,
134
+ default: !1
135
+ },
136
+ // 选中的行数据
137
+ selection: {
138
+ type: Array,
139
+ default: () => []
140
+ },
141
+ // 是否有展开
142
+ hasExpand: {
143
+ type: Boolean,
144
+ default: !1
145
+ },
146
+ // 请求参数处理回调
147
+ requestParamsCallback: {
148
+ type: Function,
149
+ default: null
150
+ }
151
+ },
152
+ emits: [
153
+ c.search,
154
+ c.reset,
155
+ c.actionClick,
156
+ c.paginationChange,
157
+ c.sizeChange,
158
+ c.dataLoaded,
159
+ c.dataError,
160
+ c.updateModelValue,
161
+ "selection-change",
162
+ "expand-change"
163
+ ],
164
+ setup(l, { expose: re, emit: ie }) {
165
+ const se = Ue(), n = l, w = ie, ue = y(null), M = y(null), de = y(null), fe = Ce(), K = y(!1), k = y([]), C = y({
166
+ page: R.pageNum,
167
+ size: R.pageSize,
168
+ total: 0,
169
+ pageSizes: $.pageSizes,
170
+ layout: $.layout
171
+ }), b = y({ ...n.modelValue }), E = y(!1), I = y(!0), L = y([...n.selection]), S = y([...n.tableProps?.expandRowKeys || []]), T = D(
172
+ () => n.api ? k.value : n.tableData
173
+ ), p = D(
174
+ () => n.api ? C.value : n.pagination
175
+ ), W = D(
176
+ () => n.api ? K.value || E.value : n.tableProps.loading || E.value || !1
177
+ ), B = D(() => n.mode === A.CARD_INFINITE), Z = D(() => n.columns?.map((e) => {
178
+ if (e.type === H.ACTION && (Array.isArray(e.actions) || typeof e.actions == "function"))
179
+ return {
180
+ ...e,
181
+ align: "center",
182
+ fixed: "right"
183
+ };
184
+ const { width: t, ...u } = e;
185
+ return {
186
+ ...u,
187
+ minWidth: t
188
+ };
189
+ })), ce = (e) => {
190
+ e === Ve.BOTTOM && (!B.value || !I.value || W.value || P({}, !0));
191
+ }, pe = (e, t) => e.id || e.bnid || e.key || `item-${t}`, me = () => {
192
+ se.back();
193
+ }, ve = (e) => {
194
+ const t = e[n.tableProps?.rowKey];
195
+ S.value.includes(t) ? S.value = S.value.filter(
196
+ (u) => u !== t
197
+ ) : S.value.push(t);
198
+ }, ge = (e, t) => t.formatter ? t.formatter(e[t.prop], e, t) : e[t.prop], ye = (e) => fe[e] !== void 0, q = (e, t) => typeof e.actions == "function" ? e.actions(t) || [] : e.actions || [], he = (e) => e.length < 3 ? e : e.slice(0, 1), G = (e) => e.length < 3 ? [] : e.slice(1), P = (e = {}, t = !1) => {
199
+ if (!n.api) return;
200
+ if (t) {
201
+ if (!I.value || E.value) return;
202
+ E.value = !0;
203
+ } else
204
+ K.value = !0, B.value && (I.value = !0, E.value = !1);
205
+ let u = {};
206
+ typeof n.requestParamsCallback == "function" && (u = n.requestParamsCallback(
207
+ b.value,
208
+ n.apiParams
209
+ ));
210
+ const a = {
211
+ ...e,
212
+ // 搜索参数等
213
+ ...n.apiParams,
214
+ ...b.value,
215
+ ...u
216
+ };
217
+ n.showPagination && (t ? a.page = p.value.page + 1 : a.page = p.value.page, a.size = p.value.size), console.log("requestParams", a?.publishStatus), n.api(a).then((f) => {
218
+ const i = f?.data?.memberSo?.data || f?.data?.data || f?.data || [];
219
+ if (console.log("newData", i), t) {
220
+ if (!i || i.length === 0) {
221
+ I.value = !1;
222
+ return;
223
+ }
224
+ k.value = [...k.value, ...i], C.value.page = a.page, C.value.total = f?.data?.memberSo?.total || f?.data?.total || k.value.length, i.length < p.value.size && (I.value = !1);
225
+ } else
226
+ k.value = i, C.value.total = f?.data?.memberSo?.total || f?.data?.total || 0;
227
+ w(c.dataLoaded, {
228
+ data: k.value,
229
+ pagination: C.value,
230
+ params: a,
231
+ response: f?.data,
232
+ isLoadMore: t
233
+ });
234
+ }).catch((f) => {
235
+ t ? I.value = !1 : (k.value = [], C.value.total = 0), w(c.dataError, f);
236
+ }).finally(() => {
237
+ t ? E.value = !1 : K.value = !1;
238
+ });
239
+ }, J = () => {
240
+ n.mode === A.CARD_INFINITE && (k.value = []);
241
+ }, Q = () => {
242
+ n.api ? (J(), C.value.page = R.pageNum, P()) : w(c.search, b.value);
243
+ }, X = () => {
244
+ const e = {};
245
+ Object.keys(b.value).forEach((t) => {
246
+ e[t] = void 0;
247
+ }), b.value = e, n.api ? (J(), C.value.page = R.pageNum, P()) : w(c.reset);
248
+ }, _ = (e, t, u) => {
249
+ w(c.actionClick, { action: e, row: t, index: u });
250
+ }, be = (e) => {
251
+ L.value = e, w("selection-change", e);
252
+ }, we = (e, t) => {
253
+ switch (e) {
254
+ case oe.search:
255
+ Q();
256
+ break;
257
+ case oe.reset:
258
+ X();
259
+ break;
260
+ }
261
+ };
262
+ return O(
263
+ () => n.modelValue,
264
+ (e) => {
265
+ b.value = { ...e };
266
+ },
267
+ { deep: !0, immediate: !0 }
268
+ ), O(
269
+ () => n.selection,
270
+ (e) => {
271
+ L.value = [...e];
272
+ },
273
+ { deep: !0, immediate: !0 }
274
+ ), O(
275
+ () => n.tableProps?.expandRowKeys,
276
+ (e) => {
277
+ e && (S.value = [...e]);
278
+ },
279
+ { deep: !0, immediate: !0 }
280
+ ), O(
281
+ () => S.value,
282
+ (e) => {
283
+ w("expand-change", e);
284
+ },
285
+ { deep: !0 }
286
+ ), O(
287
+ () => b.value,
288
+ (e) => {
289
+ w(c.updateModelValue, { ...e });
290
+ },
291
+ { deep: !0 }
292
+ ), Se(() => {
293
+ n.autoLoad && n.api && P();
294
+ }), re({
295
+ loadData: P,
296
+ handleSearch: Q,
297
+ handleReset: X,
298
+ // 复选框相关方法
299
+ clearSelection: () => M.value?.clearSelection?.(),
300
+ toggleAllSelection: () => M.value?.toggleAllSelection?.(),
301
+ getSelectionRows: () => L.value
302
+ // SearchBar相关方法
303
+ // validate: () => searchFormRef.value?.validate?.(),
304
+ // getFormData: () =>
305
+ // searchFormRef.value?.getFormData?.() || internalSearchModel.value,
306
+ // resetFields: () => {
307
+ // if (searchFormRef.value?.resetFields) {
308
+ // searchFormRef.value.resetFields()
309
+ // } else {
310
+ // handleReset()
311
+ // }
312
+ // },
313
+ }), (e, t) => (r(), m("div", Ye, [
314
+ l.breadcrumb.show ? (r(), m("div", {
315
+ key: 0,
316
+ class: "flex items-center fz-14 pd-b-20 pointer",
317
+ onClick: me
318
+ }, [
319
+ v(o(F), { size: 16 }, {
320
+ default: d(() => [
321
+ (r(), g(xe(l.breadcrumb.icon || o(De))))
322
+ ]),
323
+ _: 1
324
+ }),
325
+ x("span", Ze, V(l.breadcrumb.text), 1)
326
+ ])) : h("", !0),
327
+ l.searchFields?.length ? (r(), m("div", {
328
+ key: 1,
329
+ class: ee({
330
+ "search-section pd-b-16 mg-b-16": !l.isSeparate,
331
+ "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16": l.isSeparate
332
+ })
333
+ }, [
334
+ v(ne, { title: "查询" }),
335
+ v(o(Ae), {
336
+ ref_key: "searchFormRef",
337
+ ref: ue,
338
+ items: l.searchFields,
339
+ "filter-mode": !1,
340
+ minWidth: l.minWidth,
341
+ hideExpandButton: !1,
342
+ fixedWidth: !0,
343
+ maxHeight: 32,
344
+ modelValue: b.value,
345
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => b.value = u),
346
+ onOperation: we
347
+ }, null, 8, ["items", "minWidth", "modelValue"])
348
+ ], 2)) : h("", !0),
349
+ x("div", {
350
+ class: ee(["data-section flex-1 overflow-hidden flex flex-col", {
351
+ "bg-fff radius-4 pd-l-16 pd-r-16 pd-t-16 pd-b-16 mg-t-16": l.isSeparate
352
+ }])
353
+ }, [
354
+ l.title ? z(e.$slots, "title", { key: 0 }, () => [
355
+ v(ne, { title: l.title }, {
356
+ default: d(() => [
357
+ z(e.$slots, "title-actions", {}, void 0, !0)
358
+ ]),
359
+ _: 3
360
+ }, 8, ["title"])
361
+ ], !0) : h("", !0),
362
+ l.mode === o(A).TABLE ? (r(), g(o(je), {
363
+ key: 1,
364
+ class: "flex-1 overflow-hidden"
365
+ }, {
366
+ default: d(({ width: u }) => [
367
+ v(o($e), te({
368
+ ref_key: "tableRef",
369
+ ref: M,
370
+ data: T.value,
371
+ columns: Z.value,
372
+ "tree-props": l.treeProps,
373
+ "show-overflow-tooltip": !0,
374
+ "row-key": l.treeProps.value || l.tableProps?.rowKey
375
+ }, {
376
+ loading: W.value,
377
+ expandRowKeys: S.value,
378
+ ...l.tableProps
379
+ }, Ee(l.tableEvents), {
380
+ class: "w-full h-full admin-dashboard-table",
381
+ border: "",
382
+ onSelectionChange: be
383
+ }), ae({
384
+ default: d(() => [
385
+ l.showSelection ? (r(), g(o(Y), {
386
+ key: 0,
387
+ type: "selection",
388
+ width: "55",
389
+ fixed: "left"
390
+ })) : h("", !0),
391
+ l.hasExpand ? (r(), g(o(Y), {
392
+ key: 1,
393
+ width: "1",
394
+ type: "expand",
395
+ fixed: "left"
396
+ }, {
397
+ default: d((a) => [
398
+ x("div", {
399
+ class: "sticky-left",
400
+ style: Pe({ width: u + "px" })
401
+ }, [
402
+ z(e.$slots, "expand", {
403
+ row: a.row
404
+ }, void 0, !0)
405
+ ], 4)
406
+ ]),
407
+ _: 2
408
+ }, 1024)) : h("", !0),
409
+ (r(!0), m(j, null, N(Z.value, (a, f) => (r(), g(o(Y), te({
410
+ key: a.prop
411
+ }, { ref_for: !0 }, a, {
412
+ "show-overflow-tooltip": a.type === o(H).ACTION ? !1 : a?.showOverflowTooltip
413
+ }), ae({ _: 2 }, [
414
+ a.type === o(H).ACTION ? {
415
+ name: "default",
416
+ fn: d((i) => [
417
+ x("div", Ge, [
418
+ (r(!0), m(j, null, N(he(
419
+ q(a, i.row)
420
+ ), (s) => (r(), g(o(Fe), {
421
+ key: s.key || s.label,
422
+ type: s.type || "primary",
423
+ size: s.size || "small",
424
+ disabled: s.disabled,
425
+ loading: s.loading,
426
+ text: s.text,
427
+ link: s.link,
428
+ icon: s.icon,
429
+ onClick: U((nt) => _(s, i.row, i.$index), ["stop"]),
430
+ style: { "margin-left": "0" }
431
+ }, {
432
+ default: d(() => [
433
+ le(V(s.label), 1)
434
+ ]),
435
+ _: 2
436
+ }, 1032, ["type", "size", "disabled", "loading", "text", "link", "icon", "onClick"]))), 128)),
437
+ G(q(a, i.row)).length > 0 ? (r(), g(o(Me), {
438
+ key: 0,
439
+ onCommand: (s) => _(s, i.row, i.$index),
440
+ onClick: t[1] || (t[1] = U(() => {
441
+ }, ["stop"])),
442
+ trigger: "click"
443
+ }, {
444
+ dropdown: d(() => [
445
+ v(o(Ke), null, {
446
+ default: d(() => [
447
+ (r(!0), m(j, null, N(G(
448
+ q(a, i.row)
449
+ ), (s) => (r(), g(o(Le), {
450
+ key: s.key || s.label,
451
+ command: s,
452
+ disabled: s.disabled
453
+ }, {
454
+ default: d(() => [
455
+ le(V(s.label), 1)
456
+ ]),
457
+ _: 2
458
+ }, 1032, ["command", "disabled"]))), 128))
459
+ ]),
460
+ _: 2
461
+ }, 1024)
462
+ ]),
463
+ default: d(() => [
464
+ v(o(F), null, {
465
+ default: d(() => [
466
+ v(o(Oe))
467
+ ]),
468
+ _: 1
469
+ })
470
+ ]),
471
+ _: 2
472
+ }, 1032, ["onCommand"])) : h("", !0)
473
+ ])
474
+ ]),
475
+ key: "0"
476
+ } : ye(a.prop) ? {
477
+ name: "default",
478
+ fn: d((i) => [
479
+ x("div", Je, [
480
+ f === 0 && l.hasExpand ? (r(), g(o(F), {
481
+ key: 0,
482
+ class: "mg-r-10",
483
+ onClick: U((s) => ve(i.row), ["stop"])
484
+ }, {
485
+ default: d(() => [
486
+ S.value.includes(
487
+ i.row?.[l.tableProps?.rowKey]
488
+ ) ? (r(), g(o(Ne), { key: 0 })) : (r(), g(o(Te), { key: 1 }))
489
+ ]),
490
+ _: 2
491
+ }, 1032, ["onClick"])) : h("", !0),
492
+ x("div", Qe, [
493
+ z(e.$slots, a.prop, {
494
+ row: i.row,
495
+ index: i.$index,
496
+ column: a
497
+ }, void 0, !0)
498
+ ])
499
+ ])
500
+ ]),
501
+ key: "1"
502
+ } : {
503
+ name: "default",
504
+ fn: d((i) => [
505
+ x("span", null, V(ge(i.row, a)), 1)
506
+ ]),
507
+ key: "2"
508
+ }
509
+ ]), 1040, ["show-overflow-tooltip"]))), 128))
510
+ ]),
511
+ _: 2
512
+ }, [
513
+ N(l.customSlots, (a) => ({
514
+ name: a,
515
+ fn: d((f) => [
516
+ z(e.$slots, a, ze(Ie(f)), void 0, !0)
517
+ ])
518
+ }))
519
+ ]), 1040, ["data", "columns", "tree-props", "row-key"])
520
+ ]),
521
+ _: 3
522
+ })) : l.mode === o(A).CARD_INFINITE ? (r(), g(o(We), {
523
+ key: 2,
524
+ ref_key: "scrollbarRef",
525
+ ref: de,
526
+ class: "card-container flex-1",
527
+ onEndReached: ce
528
+ }, {
529
+ default: d(() => [
530
+ T.value.length === 0 ? (r(), m("div", Xe, [
531
+ v(o(Re))
532
+ ])) : (r(), m("div", _e, [
533
+ (r(!0), m(j, null, N(T.value, (u, a) => (r(), m("div", {
534
+ key: pe(u, a),
535
+ class: "card-item"
536
+ }, [
537
+ z(e.$slots, "card", {
538
+ item: u,
539
+ index: a,
540
+ data: T.value,
541
+ loading: W.value
542
+ }, void 0, !0)
543
+ ]))), 128))
544
+ ])),
545
+ B.value && E.value ? (r(), m("div", et, [
546
+ v(o(F), {
547
+ class: "is-loading",
548
+ color: "var(--primary-color-1)"
549
+ }, {
550
+ default: d(() => [
551
+ v(o(Be))
552
+ ]),
553
+ _: 1
554
+ }),
555
+ t[4] || (t[4] = x("span", { class: "fz-14 text-3271fe pd-l-8" }, "加载中...", -1))
556
+ ])) : h("", !0)
557
+ ]),
558
+ _: 3
559
+ }, 512)) : h("", !0),
560
+ l.showPagination && !B.value && p.value?.total ? (r(), m("div", tt, [
561
+ v(o(qe), {
562
+ "current-page": p.value.page,
563
+ "onUpdate:currentPage": t[2] || (t[2] = (u) => p.value.page = u),
564
+ "page-size": p.value.size,
565
+ "onUpdate:pageSize": t[3] || (t[3] = (u) => p.value.size = u),
566
+ "page-sizes": p.value.pageSizes,
567
+ total: p.value.total,
568
+ layout: p.value.layout,
569
+ onSizeChange: P,
570
+ onCurrentChange: P
571
+ }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
572
+ ])) : h("", !0)
573
+ ], 2),
574
+ z(e.$slots, "default", {}, void 0, !0)
575
+ ]));
576
+ }
577
+ }), lt = /* @__PURE__ */ He(at, [["__scopeId", "data-v-a804a996"]]), vt = ke(lt);
9
578
  export {
10
- t as COLUMN_TYPES,
11
- T as DIRECTION,
12
- o as MODES
579
+ H as COLUMN_TYPES,
580
+ Ve as DIRECTION,
581
+ A as MODES,
582
+ vt as PageContainer,
583
+ vt as default
13
584
  };