jky-component-lib 0.0.100 → 0.0.104

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.
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./PageTableV2.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
+ const PageTableV2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6a04e384"]]);
5
+ export {
6
+ PageTableV2 as default
7
+ };
@@ -0,0 +1,321 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ var __async = (__this, __arguments, generator) => {
33
+ return new Promise((resolve, reject) => {
34
+ var fulfilled = (value) => {
35
+ try {
36
+ step(generator.next(value));
37
+ } catch (e) {
38
+ reject(e);
39
+ }
40
+ };
41
+ var rejected = (value) => {
42
+ try {
43
+ step(generator.throw(value));
44
+ } catch (e) {
45
+ reject(e);
46
+ }
47
+ };
48
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
49
+ step((generator = generator.apply(__this, __arguments)).next());
50
+ });
51
+ };
52
+ import { defineComponent, ref, watch, computed, onMounted, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, unref, withCtx, createVNode, mergeProps, createCommentVNode, resolveDynamicComponent, withDirectives } from "vue";
53
+ import { useFullscreen } from "@vueuse/core";
54
+ import { ElCard, ElTableV2 } from "element-plus";
55
+ import { JkyForm } from "../form/index.js";
56
+ import _sfc_main$1 from "../page-table/Toolbar.vue.js";
57
+ /* empty css */
58
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
59
+ name: "JkyPageTableV2"
60
+ }), {
61
+ __name: "PageTableV2",
62
+ props: {
63
+ title: { default: "" },
64
+ withCard: { type: Boolean, default: true },
65
+ filterItems: { default: () => [] },
66
+ form: {},
67
+ showSearchButton: { type: Boolean, default: true },
68
+ searchText: { default: "查询" },
69
+ resetText: { default: "重置" },
70
+ dataSource: {},
71
+ width: {},
72
+ height: {},
73
+ columns: {},
74
+ tableProps: { default: () => ({}) },
75
+ formProps: { default: () => ({}) },
76
+ toolbarButtons: {},
77
+ toolbarButtonLimit: { default: 0 },
78
+ class: {},
79
+ loading: { type: Boolean, default: false },
80
+ emptyText: { default: "暂无数据" },
81
+ autoSearchDelay: { default: 500 }
82
+ },
83
+ emits: ["search", "reset", "pageChange", "refresh", "rowClick", "rowDblclick", "cellClick", "selectionChange", "update:form"],
84
+ setup(__props, { expose: __expose, emit: __emit }) {
85
+ const props = __props;
86
+ const emit = __emit;
87
+ const form = ref(props.form || {});
88
+ watch(() => props.form, (newVal) => {
89
+ if (newVal) {
90
+ form.value = newVal;
91
+ }
92
+ }, { deep: true });
93
+ watch(
94
+ () => form.value,
95
+ (newVal) => {
96
+ emit("update:form", newVal);
97
+ },
98
+ { deep: true }
99
+ );
100
+ const internalData = ref([]);
101
+ const tableRef = ref(null);
102
+ const formRef = ref(null);
103
+ const isLoading = ref(props.loading);
104
+ let debounceTimer = null;
105
+ function _debouncedLoadData() {
106
+ if (debounceTimer)
107
+ clearTimeout(debounceTimer);
108
+ if (props.autoSearchDelay === 0)
109
+ return;
110
+ debounceTimer = setTimeout(() => {
111
+ loadData();
112
+ }, props.autoSearchDelay);
113
+ }
114
+ const pageTableV2Ref = ref(null);
115
+ const { isFullscreen: _isFullscreen, toggle: toggleFullscreen } = useFullscreen(pageTableV2Ref);
116
+ function handleRefresh() {
117
+ var _a;
118
+ if ((_a = props.dataSource) == null ? void 0 : _a.api) {
119
+ loadData();
120
+ } else {
121
+ emit("refresh");
122
+ }
123
+ }
124
+ const defaultRightButtons = computed(() => {
125
+ const refreshButton = {
126
+ label: "刷新",
127
+ icon: "icon-[mdi--refresh]",
128
+ class: "ml-3",
129
+ onClick: handleRefresh
130
+ };
131
+ const fullscreenButton = {
132
+ label: _isFullscreen.value ? "退出全屏" : "全屏",
133
+ icon: _isFullscreen.value ? "icon-[mdi--fullscreen-exit]" : "icon-[mdi--fullscreen]",
134
+ class: "ml-3",
135
+ onClick: () => toggleFullscreen()
136
+ };
137
+ return [refreshButton, fullscreenButton];
138
+ });
139
+ const selectedCount = computed(() => {
140
+ var _a, _b;
141
+ return ((_b = (_a = tableRef.value) == null ? void 0 : _a.getSelectedRows) == null ? void 0 : _b.call(_a).length) || 0;
142
+ });
143
+ function buildApiParams() {
144
+ var _a, _b;
145
+ if ((_a = props.dataSource) == null ? void 0 : _a.getApiParams) {
146
+ return props.dataSource.getApiParams(form.value);
147
+ }
148
+ if ((_b = props.dataSource) == null ? void 0 : _b.apiParams) {
149
+ return __spreadValues(__spreadValues({}, form.value), props.dataSource.apiParams);
150
+ }
151
+ return __spreadValues({}, form.value);
152
+ }
153
+ function loadData() {
154
+ return __async(this, null, function* () {
155
+ var _a;
156
+ if (!((_a = props.dataSource) == null ? void 0 : _a.api)) {
157
+ console.warn("PageTableV2: 没有配置 dataSource.api");
158
+ return;
159
+ }
160
+ isLoading.value = true;
161
+ try {
162
+ const apiParams = buildApiParams();
163
+ const result = yield props.dataSource.api(apiParams);
164
+ if (Array.isArray(result)) {
165
+ internalData.value = result;
166
+ } else {
167
+ internalData.value = [];
168
+ }
169
+ } catch (error) {
170
+ console.error("PageTableV2: 加载数据失败:", error);
171
+ internalData.value = [];
172
+ } finally {
173
+ isLoading.value = false;
174
+ }
175
+ });
176
+ }
177
+ function handleSearch() {
178
+ var _a;
179
+ emit("search", __spreadValues({}, form.value));
180
+ if ((_a = props.dataSource) == null ? void 0 : _a.api) {
181
+ loadData();
182
+ }
183
+ }
184
+ function handleReset() {
185
+ var _a, _b, _c;
186
+ emit("reset");
187
+ form.value = {};
188
+ if (formRef.value) {
189
+ (_b = (_a = formRef.value) == null ? void 0 : _a.form) == null ? void 0 : _b.resetFields();
190
+ }
191
+ if ((_c = props.dataSource) == null ? void 0 : _c.api) {
192
+ loadData();
193
+ }
194
+ }
195
+ function handleRowClick(row, event) {
196
+ emit("rowClick", row, event);
197
+ }
198
+ function handleRowDblclick(row, event) {
199
+ emit("rowDblclick", row, event);
200
+ }
201
+ function handleCellClick(row, column, event) {
202
+ emit("cellClick", row, column, event);
203
+ }
204
+ __expose({
205
+ refresh: loadData,
206
+ getFilterData: () => __spreadValues({}, form.value),
207
+ setFilterData: (data) => {
208
+ form.value = __spreadValues({}, data);
209
+ },
210
+ resetFilter: handleReset,
211
+ getSelectedRows: () => {
212
+ var _a;
213
+ return ((_a = tableRef.value) == null ? void 0 : _a.getSelectedRows()) || [];
214
+ },
215
+ clearSelection: () => {
216
+ var _a;
217
+ (_a = tableRef.value) == null ? void 0 : _a.clearSelection();
218
+ },
219
+ tableRef,
220
+ formRef
221
+ });
222
+ onMounted(() => {
223
+ var _a;
224
+ if ((_a = props.dataSource) == null ? void 0 : _a.api) {
225
+ loadData();
226
+ }
227
+ });
228
+ watch(
229
+ () => form.value,
230
+ () => {
231
+ var _a;
232
+ if (!props.showSearchButton && ((_a = props.dataSource) == null ? void 0 : _a.api)) {
233
+ _debouncedLoadData();
234
+ }
235
+ },
236
+ { deep: true }
237
+ );
238
+ const processedColumns = computed(() => {
239
+ return props.columns.map((column) => {
240
+ const _a = column, { cellRenderer, hidden, dataKey } = _a, rest = __objRest(_a, ["cellRenderer", "hidden", "dataKey"]);
241
+ return __spreadProps(__spreadValues({}, rest), {
242
+ hidden,
243
+ cellRenderer: cellRenderer || (dataKey ? ({ rowData }) => rowData[dataKey] : void 0)
244
+ });
245
+ });
246
+ });
247
+ return (_ctx, _cache) => {
248
+ const _directive_loading = resolveDirective("loading");
249
+ return openBlock(), createElementBlock("div", {
250
+ ref_key: "pageTableV2Ref",
251
+ ref: pageTableV2Ref,
252
+ class: normalizeClass(["bg-transparent flex flex-col jky-page-table-v2", [props.class]])
253
+ }, [
254
+ __props.filterItems && __props.filterItems.length > 0 ? (openBlock(), createBlock(unref(ElCard), {
255
+ key: 0,
256
+ class: "mb-3 flex-none jky-page-table-v2__filter-card"
257
+ }, {
258
+ default: withCtx(() => [
259
+ createVNode(unref(JkyForm), mergeProps({
260
+ ref_key: "formRef",
261
+ ref: formRef
262
+ }, __spreadValues({ inline: true, grid: true }, __props.formProps), {
263
+ modelValue: form.value,
264
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value = $event),
265
+ "show-footer": true,
266
+ items: __props.filterItems,
267
+ disabled: isLoading.value,
268
+ "submit-text": "搜索",
269
+ "cancel-text": "重置",
270
+ onReset: handleReset,
271
+ onSubmit: handleSearch
272
+ }), null, 16, ["modelValue", "items", "disabled"])
273
+ ]),
274
+ _: 1
275
+ })) : createCommentVNode("", true),
276
+ (openBlock(), createBlock(resolveDynamicComponent(props.withCard ? unref(ElCard) : "div"), { class: "flex-1 min-h-0 jky-page-table-v2__table-card" }, {
277
+ default: withCtx(() => {
278
+ var _a, _b, _c;
279
+ return [
280
+ createVNode(_sfc_main$1, {
281
+ "left-buttons": ((_a = props.toolbarButtons) == null ? void 0 : _a.left) || [],
282
+ "batch-buttons": ((_b = props.toolbarButtons) == null ? void 0 : _b.batch) || [],
283
+ "right-buttons": ((_c = props.toolbarButtons) == null ? void 0 : _c.right) || [],
284
+ "default-buttons": defaultRightButtons.value,
285
+ "selected-count": selectedCount.value,
286
+ "toolbar-button-limit": __props.toolbarButtonLimit,
287
+ payload: {
288
+ pageNo: 1,
289
+ pageSize: 10,
290
+ total: 0,
291
+ tableData: internalData.value,
292
+ selectedRows: [],
293
+ filterData: __spreadValues({}, form.value)
294
+ }
295
+ }, null, 8, ["left-buttons", "batch-buttons", "right-buttons", "default-buttons", "selected-count", "toolbar-button-limit", "payload"]),
296
+ withDirectives(createVNode(unref(ElTableV2), mergeProps({
297
+ ref_key: "tableRef",
298
+ ref: tableRef,
299
+ data: internalData.value,
300
+ columns: processedColumns.value,
301
+ width: props.width,
302
+ height: props.height,
303
+ "empty-text": __props.emptyText
304
+ }, __props.tableProps, {
305
+ onRowClick: handleRowClick,
306
+ onRowDblClick: handleRowDblclick,
307
+ onCellClick: handleCellClick
308
+ }), null, 16, ["data", "columns", "width", "height", "empty-text"]), [
309
+ [_directive_loading, isLoading.value]
310
+ ])
311
+ ];
312
+ }),
313
+ _: 1
314
+ }))
315
+ ], 2);
316
+ };
317
+ }
318
+ }));
319
+ export {
320
+ _sfc_main as default
321
+ };
@@ -0,0 +1,4 @@
1
+ import { InstallWithSFC } from '../utils/types';
2
+ import { default as PageTableV2 } from './PageTableV2.vue';
3
+ export declare const JkyPageTableV2: InstallWithSFC<typeof PageTableV2>;
4
+ export default JkyPageTableV2;
@@ -0,0 +1,7 @@
1
+ import { installWithSFC } from "../utils/with-install.js";
2
+ import PageTableV2 from "./PageTableV2.vue.js";
3
+ const JkyPageTableV2 = installWithSFC(PageTableV2);
4
+ export {
5
+ JkyPageTableV2,
6
+ JkyPageTableV2 as default
7
+ };
@@ -0,0 +1,13 @@
1
+ /* PageTableV2 组件样式 */
2
+ .jky-page-table-v2[data-v-6a04e384] {
3
+ /* 基础样式 */
4
+ }
5
+ .jky-page-table-v2__filter-card[data-v-6a04e384] {
6
+ /* 筛选项卡片样式 */
7
+ }
8
+ .jky-page-table-v2__table-card[data-v-6a04e384] {
9
+ /* 表格卡片样式 */
10
+ }
11
+ .jky-page-table-v2-toolbar[data-v-6a04e384] {
12
+ /* 工具栏样式 */
13
+ }
package/dist/es/style.css CHANGED
@@ -2915,10 +2915,18 @@
2915
2915
  color: var(--el-color-primary);
2916
2916
  }
2917
2917
 
2918
+ .hover\:text-blue-700:hover {
2919
+ color: var(--color-blue-700);
2920
+ }
2921
+
2918
2922
  .hover\:text-blue-900:hover {
2919
2923
  color: var(--color-blue-900);
2920
2924
  }
2921
2925
 
2926
+ .hover\:text-red-700:hover {
2927
+ color: var(--color-red-700);
2928
+ }
2929
+
2922
2930
  .hover\:text-red-900:hover {
2923
2931
  color: var(--color-red-900);
2924
2932
  }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const _export_sfc = (sfc, props) => {
4
+ const target = sfc.__vccOpts || sfc;
5
+ for (const [key, val] of props) {
6
+ target[key] = val;
7
+ }
8
+ return target;
9
+ };
10
+ exports.default = _export_sfc;
@@ -10,6 +10,7 @@ export * from './modal';
10
10
  export * from './page-header';
11
11
  export * from './page-layout';
12
12
  export * from './page-table';
13
+ export * from './page-table-v2';
13
14
  export * from './rich-editor';
14
15
  export * from './say-hello';
15
16
  export * from './tabs';
@@ -11,11 +11,12 @@ const index$8 = require("./modal/index.js");
11
11
  const index$9 = require("./page-header/index.js");
12
12
  const index$a = require("./page-layout/index.js");
13
13
  const index$1 = require("./page-table/index.js");
14
- const index$b = require("./rich-editor/index.js");
15
- const index$c = require("./say-hello/index.js");
16
- const index$d = require("./tabs/index.js");
14
+ const index$b = require("./page-table-v2/index.js");
15
+ const index$c = require("./rich-editor/index.js");
16
+ const index$d = require("./say-hello/index.js");
17
+ const index$e = require("./tabs/index.js");
17
18
  const components = [
18
- index$c.JkySayHello,
19
+ index$d.JkySayHello,
19
20
  index$3.JkyButton,
20
21
  index$4.JkyButtonNav,
21
22
  index$9.JkyPageHeader,
@@ -23,10 +24,11 @@ const components = [
23
24
  index$6.JkyForm,
24
25
  index$5.JkyCodeMirrorEditor,
25
26
  index$2.JkyAddInput,
26
- index$b.JkyRichEditor,
27
+ index$c.JkyRichEditor,
27
28
  index$1.JkyPageTable,
29
+ index$b.JkyPageTableV2,
28
30
  index$a.JkyPageLayout,
29
- index$d.JkyTabs,
31
+ index$e.JkyTabs,
30
32
  index$8.JkyModal,
31
33
  index.JkyAMap
32
34
  ];
@@ -45,7 +47,8 @@ exports.JkyPageLayout = index$a.JkyPageLayout;
45
47
  exports.JkyActionColumn = index$1.JkyActionColumn;
46
48
  exports.JkyPageTable = index$1.JkyPageTable;
47
49
  exports.JkyPageTableColumn = index$1.JkyPageTableColumn;
48
- exports.JkyRichEditor = index$b.JkyRichEditor;
49
- exports.JkySayHello = index$c.JkySayHello;
50
- exports.JkyTabs = index$d.JkyTabs;
50
+ exports.JkyPageTableV2 = index$b.JkyPageTableV2;
51
+ exports.JkyRichEditor = index$c.JkyRichEditor;
52
+ exports.JkySayHello = index$d.JkySayHello;
53
+ exports.JkyTabs = index$e.JkyTabs;
51
54
  exports.components = components;
package/dist/lib/index.js CHANGED
@@ -19,9 +19,10 @@ const index$7 = require("./menu/index.js");
19
19
  const index$8 = require("./modal/index.js");
20
20
  const index$9 = require("./page-header/index.js");
21
21
  const index$a = require("./page-layout/index.js");
22
- const index$b = require("./rich-editor/index.js");
23
- const index$c = require("./say-hello/index.js");
24
- const index$d = require("./tabs/index.js");
22
+ const index$b = require("./page-table-v2/index.js");
23
+ const index$c = require("./rich-editor/index.js");
24
+ const index$d = require("./say-hello/index.js");
25
+ const index$e = require("./tabs/index.js");
25
26
  const createTabsGuard = require("./tabs/createTabsGuard.js");
26
27
  const useTabsStore = require("./tabs/useTabsStore.js");
27
28
  const installer = installer$1.createInstaller(components.components);
@@ -46,9 +47,10 @@ exports.JkyMenu = index$7.JkyMenu;
46
47
  exports.JkyModal = index$8.JkyModal;
47
48
  exports.JkyPageHeader = index$9.JkyPageHeader;
48
49
  exports.JkyPageLayout = index$a.JkyPageLayout;
49
- exports.JkyRichEditor = index$b.JkyRichEditor;
50
- exports.JkySayHello = index$c.JkySayHello;
51
- exports.JkyTabs = index$d.JkyTabs;
50
+ exports.JkyPageTableV2 = index$b.JkyPageTableV2;
51
+ exports.JkyRichEditor = index$c.JkyRichEditor;
52
+ exports.JkySayHello = index$d.JkySayHello;
53
+ exports.JkyTabs = index$e.JkyTabs;
52
54
  exports.createTabsGuard = createTabsGuard.createTabsGuard;
53
55
  exports.createTabsStore = useTabsStore.createTabsStore;
54
56
  exports.default = installer;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.100";
3
+ const version = "0.0.104";
4
4
  exports.version = version;
@@ -132,7 +132,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
132
132
  }
133
133
  return menuData.value;
134
134
  });
135
+ const showSideMenu = vue.computed(() => {
136
+ var _a, _b;
137
+ return (_b = (_a = props.showSideMenu) != null ? _a : attrs.showSideMenu) != null ? _b : attrs["show-side-menu"];
138
+ });
139
+ const showTopMenu = vue.computed(() => {
140
+ var _a, _b;
141
+ return (_b = (_a = props.showTopMenu) != null ? _a : attrs.showTopMenu) != null ? _b : attrs["show-top-menu"];
142
+ });
135
143
  const displayedSideMenu = vue.computed(() => {
144
+ if (!showSideMenu.value) {
145
+ return [];
146
+ }
147
+ if (!showTopMenu.value) {
148
+ return menuData.value;
149
+ }
136
150
  if (menuData.value.length === 0) {
137
151
  return [];
138
152
  }
@@ -155,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
155
169
  return [];
156
170
  });
157
171
  const computedAsideWidth = vue.computed(() => {
158
- if (props.showSideMenu && displayedSideMenu.value.length > 0) {
172
+ if (showSideMenu.value && displayedSideMenu.value.length > 0) {
159
173
  return props.asideWidth;
160
174
  }
161
175
  return "0";
@@ -191,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
191
205
  return vue.openBlock(), vue.createElementBlock("div", {
192
206
  class: vue.normalizeClass(["jky-page-layout flex h-full w-full flex-col overflow-hidden gap-3", props.className])
193
207
  }, [
194
- props.showTopMenu && menuData.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
208
+ showTopMenu.value && menuData.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
195
209
  key: 0,
196
210
  class: "jky-page-layout__top-menu shrink-0 overflow-hidden p-0",
197
211
  style: { "--el-card-padding": 0 }
@@ -218,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
218
232
  style: vue.normalizeStyle({ "--el-aside-width": computedAsideWidth.value })
219
233
  }, {
220
234
  default: vue.withCtx(() => [
221
- props.showSideMenu && displayedSideMenu.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
235
+ showSideMenu.value && displayedSideMenu.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
222
236
  key: 0,
223
237
  class: "h-full",
224
238
  style: vue.normalizeStyle({ "--el-card-padding": props.cardPadding })
@@ -102,7 +102,7 @@ declare function __VLS_template(): {
102
102
  };
103
103
  $forceUpdate: () => void;
104
104
  $nextTick: typeof nextTick;
105
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
105
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
106
106
  } & Readonly<{
107
107
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
108
108
  labelWidth: string | number;
@@ -201,7 +201,7 @@ declare function __VLS_template(): {
201
201
  };
202
202
  $forceUpdate: () => void;
203
203
  $nextTick: typeof nextTick;
204
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
204
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
205
205
  } & Readonly<{
206
206
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
207
207
  labelWidth: string | number;
@@ -328,7 +328,7 @@ declare function __VLS_template(): {
328
328
  };
329
329
  $forceUpdate: () => void;
330
330
  $nextTick: typeof nextTick;
331
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
331
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
332
332
  } & Readonly<{
333
333
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
334
334
  labelWidth: string | number;
@@ -448,7 +448,7 @@ declare function __VLS_template(): {
448
448
  };
449
449
  $forceUpdate: () => void;
450
450
  $nextTick: typeof nextTick;
451
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
451
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
452
452
  } & Readonly<{
453
453
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
454
454
  labelWidth: string | number;
@@ -547,7 +547,7 @@ declare function __VLS_template(): {
547
547
  };
548
548
  $forceUpdate: () => void;
549
549
  $nextTick: typeof nextTick;
550
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
550
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
551
551
  } & Readonly<{
552
552
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
553
553
  labelWidth: string | number;
@@ -2866,7 +2866,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2866
2866
  };
2867
2867
  $forceUpdate: () => void;
2868
2868
  $nextTick: typeof nextTick;
2869
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2869
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2870
2870
  } & Readonly<{
2871
2871
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2872
2872
  labelWidth: string | number;
@@ -2965,7 +2965,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
2965
2965
  };
2966
2966
  $forceUpdate: () => void;
2967
2967
  $nextTick: typeof nextTick;
2968
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2968
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
2969
2969
  } & Readonly<{
2970
2970
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
2971
2971
  labelWidth: string | number;
@@ -3092,7 +3092,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3092
3092
  };
3093
3093
  $forceUpdate: () => void;
3094
3094
  $nextTick: typeof nextTick;
3095
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3095
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3096
3096
  } & Readonly<{
3097
3097
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3098
3098
  labelWidth: string | number;
@@ -3212,7 +3212,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3212
3212
  };
3213
3213
  $forceUpdate: () => void;
3214
3214
  $nextTick: typeof nextTick;
3215
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3215
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3216
3216
  } & Readonly<{
3217
3217
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3218
3218
  labelWidth: string | number;
@@ -3311,7 +3311,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
3311
3311
  };
3312
3312
  $forceUpdate: () => void;
3313
3313
  $nextTick: typeof nextTick;
3314
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3314
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.JkyForm, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
3315
3315
  } & Readonly<{
3316
3316
  scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
3317
3317
  labelWidth: string | number;
@@ -372,11 +372,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
372
372
  return vue.openBlock(), vue.createElementBlock("div", {
373
373
  ref_key: "pageTableRef",
374
374
  ref: pageTableRef,
375
- class: vue.normalizeClass(["bg-transparent jky-page-table", [props.class]])
375
+ class: vue.normalizeClass(["bg-transparent flex flex-col jky-page-table", [props.class]])
376
376
  }, [
377
377
  __props.filterItems && __props.filterItems.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
378
378
  key: 0,
379
- class: "mb-3 jky-page-table__filter-card"
379
+ class: "mb-3 flex-none jky-page-table__filter-card"
380
380
  }, {
381
381
  default: vue.withCtx(() => [
382
382
  vue.createVNode(vue.unref(index.JkyForm), vue.mergeProps({
@@ -396,7 +396,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
396
396
  ]),
397
397
  _: 1
398
398
  })) : vue.createCommentVNode("", true),
399
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.withCard ? vue.unref(ElementPlus.ElCard) : "div"), { class: "jky-page-table__table-card min-h-0" }, {
399
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.withCard ? vue.unref(ElementPlus.ElCard) : "div"), { class: "flex-1 min-h-0 jky-page-table__table-card" }, {
400
400
  default: vue.withCtx(() => {
401
401
  var _a2, _b2, _c2, _d, _e, _f, _g;
402
402
  return [
@@ -479,7 +479,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
479
479
  })),
480
480
  showPagination.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(((_a = pagination.value) == null ? void 0 : _a.withCard) ? vue.unref(ElementPlus.ElCard) : "div"), {
481
481
  key: 1,
482
- class: vue.normalizeClass(["flex flex-end bg-white justify-center mt-4 p-2 z-30 sticky bottom-0 jky-page-table__pagination", [((_b = pagination.value) == null ? void 0 : _b.class) || ""]]),
482
+ class: vue.normalizeClass(["flex flex-none flex-end bg-white justify-center mt-4 p-2 z-30 sticky bottom-0 jky-page-table__pagination", [((_b = pagination.value) == null ? void 0 : _b.class) || ""]]),
483
483
  style: vue.normalizeStyle({
484
484
  "--jky-page-table_pagination-position": ((_c = pagination.value) == null ? void 0 : _c.position) || "flex-end"
485
485
  })