jky-component-lib 0.0.140 → 0.0.142
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.
- package/dist/es/amap/AClusterMarker/AClusterMarker.vue.d.ts +55 -0
- package/dist/es/amap/AClusterMarker/AClusterMarker.vue.js +202 -0
- package/dist/es/amap/AClusterMarker/AClusterMarker.vue2.js +4 -0
- package/dist/es/amap/AClusterMarker/index.d.ts +4 -0
- package/dist/es/amap/AClusterMarker/index.js +7 -0
- package/dist/es/amap/AMap.vue.d.ts +2 -2
- package/dist/es/amap/AMap.vue.js +3 -1
- package/dist/es/amap/AMapPicker/AMapPicker.vue.js +1 -1
- package/dist/es/amap/AMarker.vue.d.ts +1 -1
- package/dist/es/amap/index.d.ts +5 -1
- package/dist/es/amap/index.js +4 -0
- package/dist/es/amap/style.css +6 -2
- package/dist/es/amap/style3.css +2 -6
- package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.d.ts +0 -1
- package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.js +5 -7
- package/dist/es/code-mirror-editor/style.css +0 -38
- package/dist/es/components.d.ts +1 -0
- package/dist/es/components.js +6 -2
- package/dist/es/draggable/Draggable.vue.d.ts +78 -0
- package/dist/es/draggable/Draggable.vue.js +130 -0
- package/dist/es/draggable/Draggable.vue3.js +5 -0
- package/dist/es/draggable/index.d.ts +4 -0
- package/dist/es/draggable/index.js +8 -0
- package/dist/es/draggable/style.css +16 -0
- package/dist/es/form/items/SelectTableItem.vue.d.ts +6 -0
- package/dist/es/index.js +6 -1
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/ActionColumn.vue.js +4 -3
- package/dist/es/page-table/PageTable.vue.js +6 -1
- package/dist/es/style.css +195 -0
- package/dist/es/styles.css +1 -1
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue.d.ts +55 -0
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue.js +202 -0
- package/dist/lib/amap/AClusterMarker/AClusterMarker.vue2.js +4 -0
- package/dist/lib/amap/AClusterMarker/index.d.ts +4 -0
- package/dist/lib/amap/AClusterMarker/index.js +7 -0
- package/dist/lib/amap/AMap.vue.d.ts +2 -2
- package/dist/lib/amap/AMap.vue.js +3 -1
- package/dist/lib/amap/AMapPicker/AMapPicker.vue.js +1 -1
- package/dist/lib/amap/AMarker.vue.d.ts +1 -1
- package/dist/lib/amap/index.d.ts +5 -1
- package/dist/lib/amap/index.js +4 -0
- package/dist/lib/amap/style.css +6 -2
- package/dist/lib/amap/style3.css +2 -6
- package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.d.ts +0 -1
- package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.js +4 -6
- package/dist/lib/code-mirror-editor/style.css +0 -38
- package/dist/lib/components.d.ts +1 -0
- package/dist/lib/components.js +59 -55
- package/dist/lib/draggable/Draggable.vue.d.ts +78 -0
- package/dist/lib/draggable/Draggable.vue.js +130 -0
- package/dist/lib/draggable/Draggable.vue3.js +5 -0
- package/dist/lib/draggable/index.d.ts +4 -0
- package/dist/lib/draggable/index.js +8 -0
- package/dist/lib/draggable/style.css +16 -0
- package/dist/lib/form/items/SelectTableItem.vue.d.ts +6 -0
- package/dist/lib/index.js +42 -37
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/ActionColumn.vue.js +4 -3
- package/dist/lib/page-table/PageTable.vue.js +6 -1
- package/dist/lib/style.css +195 -0
- package/dist/lib/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
22
|
+
const vue = require("vue");
|
|
23
|
+
const core = require("@vueuse/core");
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
|
+
name: "JkyDraggable"
|
|
26
|
+
}), {
|
|
27
|
+
__name: "Draggable",
|
|
28
|
+
props: {
|
|
29
|
+
disabled: { type: Boolean, default: false },
|
|
30
|
+
initialValue: { default: () => ({ x: 100, y: 100 }) },
|
|
31
|
+
storageKey: { default: "jky-draggable-position" },
|
|
32
|
+
persistPosition: { type: Boolean, default: true },
|
|
33
|
+
boundToViewport: { type: Boolean, default: true },
|
|
34
|
+
viewportMargin: { default: 0 }
|
|
35
|
+
},
|
|
36
|
+
emits: ["start", "move", "end", "change", "click"],
|
|
37
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
const dragRef = vue.ref(null);
|
|
41
|
+
const startPosition = vue.ref(null);
|
|
42
|
+
function getInitialPosition() {
|
|
43
|
+
if (!props.persistPosition) {
|
|
44
|
+
return props.initialValue || { x: 100, y: 100 };
|
|
45
|
+
}
|
|
46
|
+
const saved = localStorage.getItem(props.storageKey);
|
|
47
|
+
if (saved) {
|
|
48
|
+
try {
|
|
49
|
+
return JSON.parse(saved);
|
|
50
|
+
} catch (e) {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return props.initialValue || { x: 100, y: 100 };
|
|
54
|
+
}
|
|
55
|
+
function savePosition(x2, y2) {
|
|
56
|
+
if (!props.persistPosition)
|
|
57
|
+
return;
|
|
58
|
+
localStorage.setItem(props.storageKey, JSON.stringify({ x: x2, y: y2 }));
|
|
59
|
+
}
|
|
60
|
+
const { x, y, style, isDragging } = core.useDraggable(dragRef, {
|
|
61
|
+
initialValue: getInitialPosition(),
|
|
62
|
+
disabled: props.disabled,
|
|
63
|
+
preventDefault: true,
|
|
64
|
+
// stopPropagation: true,
|
|
65
|
+
onStart: () => {
|
|
66
|
+
startPosition.value = { x: x.value, y: y.value };
|
|
67
|
+
emit("start", { x: x.value, y: y.value });
|
|
68
|
+
},
|
|
69
|
+
onMove: () => {
|
|
70
|
+
emit("move", { x: x.value, y: y.value });
|
|
71
|
+
},
|
|
72
|
+
onEnd: (position) => {
|
|
73
|
+
savePosition(x.value, y.value);
|
|
74
|
+
emit("end", { x: x.value, y: y.value });
|
|
75
|
+
if (startPosition.value) {
|
|
76
|
+
const dx = Math.abs(position.x - startPosition.value.x);
|
|
77
|
+
const dy = Math.abs(position.y - startPosition.value.y);
|
|
78
|
+
if (dx < 3 && dy < 3) {
|
|
79
|
+
emit("click", new MouseEvent("click"));
|
|
80
|
+
}
|
|
81
|
+
startPosition.value = null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
vue.watch([x, y], ([newX, newY]) => {
|
|
86
|
+
emit("change", { x: newX, y: newY });
|
|
87
|
+
if (isDragging.value) {
|
|
88
|
+
savePosition(newX, newY);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
vue.watch([x, y], ([newX, newY]) => {
|
|
92
|
+
if (!props.boundToViewport || !dragRef.value)
|
|
93
|
+
return;
|
|
94
|
+
const maxX = window.innerWidth - dragRef.value.offsetWidth - props.viewportMargin;
|
|
95
|
+
const maxY = window.innerHeight - dragRef.value.offsetHeight - props.viewportMargin;
|
|
96
|
+
const clampedX = Math.max(props.viewportMargin, Math.min(newX, maxX));
|
|
97
|
+
const clampedY = Math.max(props.viewportMargin, Math.min(newY, maxY));
|
|
98
|
+
if (clampedX !== newX || clampedY !== newY) {
|
|
99
|
+
x.value = clampedX;
|
|
100
|
+
y.value = clampedY;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
__expose({
|
|
104
|
+
/** 手动保存位置 */
|
|
105
|
+
savePosition: () => savePosition(x.value, y.value),
|
|
106
|
+
/** 重置位置到初始值 */
|
|
107
|
+
resetPosition: () => {
|
|
108
|
+
const initial = props.initialValue || { x: 100, y: 100 };
|
|
109
|
+
x.value = initial.x;
|
|
110
|
+
y.value = initial.y;
|
|
111
|
+
savePosition(initial.x, initial.y);
|
|
112
|
+
},
|
|
113
|
+
/** 获取当前位置 */
|
|
114
|
+
getPosition: () => ({ x: x.value, y: y.value }),
|
|
115
|
+
/** 是否正在拖拽 */
|
|
116
|
+
isDragging: () => isDragging.value
|
|
117
|
+
});
|
|
118
|
+
return (_ctx, _cache) => {
|
|
119
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
120
|
+
ref_key: "dragRef",
|
|
121
|
+
ref: dragRef,
|
|
122
|
+
class: vue.normalizeClass(["jky-draggable fixed z-9999 cursor-move select-none", { "jky-draggable--dragging": vue.unref(isDragging) }]),
|
|
123
|
+
style: vue.normalizeStyle(vue.unref(style))
|
|
124
|
+
}, [
|
|
125
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
126
|
+
], 6);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Draggable_vue_vue_type_script_setup_true_lang = require("./Draggable.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
exports.default = Draggable_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Draggable_vue_vue_type_script_setup_true_lang = require("./Draggable.vue.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const withInstall = require("../utils/with-install.js");
|
|
6
|
+
const JkyDraggable = withInstall.installWithSFC(Draggable_vue_vue_type_script_setup_true_lang.default);
|
|
7
|
+
exports.JkyDraggable = JkyDraggable;
|
|
8
|
+
exports.default = JkyDraggable;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
/* 禁止使用 @apply,所有 TailwindCSS 工具类直接写在 class 中 */
|
|
3
|
+
/* 样式文件仅用于定义组件特定的自定义纯 CSS 样式 */
|
|
4
|
+
/* 禁止使用 @apply,所有 TailwindCSS 工具类直接写在 class 中 */
|
|
5
|
+
/* 样式文件仅用于定义组件特定的自定义纯 CSS 样式 */
|
|
6
|
+
:root {
|
|
7
|
+
--jky-draggable-z-index: 9999;
|
|
8
|
+
}
|
|
9
|
+
.jky-draggable {
|
|
10
|
+
user-select: none;
|
|
11
|
+
-webkit-user-select: none;
|
|
12
|
+
touch-action: none;
|
|
13
|
+
}
|
|
14
|
+
.jky-draggable--dragging {
|
|
15
|
+
cursor: grabbing;
|
|
16
|
+
}
|
|
@@ -18,6 +18,9 @@ declare function __VLS_template(): {
|
|
|
18
18
|
readonly pageSize?: number | undefined;
|
|
19
19
|
readonly total?: number | undefined;
|
|
20
20
|
readonly withCard?: boolean | undefined;
|
|
21
|
+
readonly config?: {
|
|
22
|
+
withCard?: boolean;
|
|
23
|
+
} | undefined;
|
|
21
24
|
readonly title?: string | undefined;
|
|
22
25
|
readonly filterItems?: import('../../page-table').FilterItemConfig[] | undefined;
|
|
23
26
|
readonly form?: Record<string, any> | undefined;
|
|
@@ -3014,6 +3017,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
3014
3017
|
readonly pageSize?: number | undefined;
|
|
3015
3018
|
readonly total?: number | undefined;
|
|
3016
3019
|
readonly withCard?: boolean | undefined;
|
|
3020
|
+
readonly config?: {
|
|
3021
|
+
withCard?: boolean;
|
|
3022
|
+
} | undefined;
|
|
3017
3023
|
readonly title?: string | undefined;
|
|
3018
3024
|
readonly filterItems?: import('../../page-table').FilterItemConfig[] | undefined;
|
|
3019
3025
|
readonly form?: Record<string, any> | undefined;
|
package/dist/lib/index.js
CHANGED
|
@@ -4,26 +4,28 @@ const components = require("./components.js");
|
|
|
4
4
|
const installer$1 = require("./utils/installer.js");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const resolver = require("./resolver.js");
|
|
7
|
+
const index = require("./amap/AClusterMarker/index.js");
|
|
7
8
|
const AMapPicker_vue_vue_type_script_setup_true_lang = require("./amap/AMapPicker/AMapPicker.vue.js");
|
|
8
9
|
const AMarker_vue_vue_type_script_setup_true_lang = require("./amap/AMarker.vue.js");
|
|
9
10
|
;/* empty css */
|
|
10
11
|
const ATrackPlayback_vue_vue_type_script_setup_true_lang = require("./amap/ATrackPlayback.vue.js");
|
|
11
12
|
;/* empty css */
|
|
12
|
-
const index = require("./amap/index.js");
|
|
13
|
-
const index$
|
|
14
|
-
const index$
|
|
15
|
-
const index$
|
|
16
|
-
const index$
|
|
17
|
-
const index$
|
|
18
|
-
const index$
|
|
19
|
-
const index$
|
|
20
|
-
const index$
|
|
21
|
-
const index$
|
|
22
|
-
const index$
|
|
23
|
-
const index$
|
|
24
|
-
const index$
|
|
25
|
-
const index$
|
|
26
|
-
const index$
|
|
13
|
+
const index$1 = require("./amap/index.js");
|
|
14
|
+
const index$2 = require("./form/index.js");
|
|
15
|
+
const index$3 = require("./page-table/index.js");
|
|
16
|
+
const index$4 = require("./add-input/index.js");
|
|
17
|
+
const index$5 = require("./button/index.js");
|
|
18
|
+
const index$6 = require("./button-nav/index.js");
|
|
19
|
+
const index$7 = require("./code-mirror-editor/index.js");
|
|
20
|
+
const index$8 = require("./draggable/index.js");
|
|
21
|
+
const index$9 = require("./menu/index.js");
|
|
22
|
+
const index$a = require("./modal/index.js");
|
|
23
|
+
const index$b = require("./page-header/index.js");
|
|
24
|
+
const index$c = require("./page-layout/index.js");
|
|
25
|
+
const index$d = require("./page-table-v2/index.js");
|
|
26
|
+
const index$e = require("./rich-editor/index.js");
|
|
27
|
+
const index$f = require("./say-hello/index.js");
|
|
28
|
+
const index$g = require("./tabs/index.js");
|
|
27
29
|
const createTabsGuard = require("./tabs/createTabsGuard.js");
|
|
28
30
|
const useTabsStore = require("./tabs/useTabsStore.js");
|
|
29
31
|
const installer = installer$1.createInstaller(components.components);
|
|
@@ -31,31 +33,34 @@ const install = installer.install;
|
|
|
31
33
|
const version = installer.version;
|
|
32
34
|
exports.components = components.components;
|
|
33
35
|
exports.JkyComponentLibResolver = resolver.JkyComponentLibResolver;
|
|
36
|
+
exports.AClusterMarker = index.JkyAClusterMarker;
|
|
34
37
|
exports.AMapPicker = AMapPicker_vue_vue_type_script_setup_true_lang.default;
|
|
35
38
|
exports.AMarker = AMarker_vue_vue_type_script_setup_true_lang.default;
|
|
36
39
|
exports.ATrackPlayback = ATrackPlayback_vue_vue_type_script_setup_true_lang.default;
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
40
|
+
exports.JkyAClusterMarker = index$1.JkyAClusterMarker;
|
|
41
|
+
exports.JkyAMap = index$1.JkyAMap;
|
|
42
|
+
exports.JkyAMapPicker = index$1.JkyAMapPicker;
|
|
43
|
+
exports.JkyAMarker = index$1.JkyAMarker;
|
|
44
|
+
exports.JkyATrackPlayback = index$1.JkyATrackPlayback;
|
|
45
|
+
exports.JkyAMapPickerItem = index$2.JkyAMapPickerItem;
|
|
46
|
+
exports.JkyForm = index$2.JkyForm;
|
|
47
|
+
exports.JkyFormItem = index$2.JkyFormItem;
|
|
48
|
+
exports.JkyActionColumn = index$3.JkyActionColumn;
|
|
49
|
+
exports.JkyPageTable = index$3.JkyPageTable;
|
|
50
|
+
exports.JkyPageTableColumn = index$3.JkyPageTableColumn;
|
|
51
|
+
exports.JkyAddInput = index$4.JkyAddInput;
|
|
52
|
+
exports.JkyButton = index$5.JkyButton;
|
|
53
|
+
exports.JkyButtonNav = index$6.JkyButtonNav;
|
|
54
|
+
exports.JkyCodeMirrorEditor = index$7.JkyCodeMirrorEditor;
|
|
55
|
+
exports.JkyDraggable = index$8.JkyDraggable;
|
|
56
|
+
exports.JkyMenu = index$9.JkyMenu;
|
|
57
|
+
exports.JkyModal = index$a.JkyModal;
|
|
58
|
+
exports.JkyPageHeader = index$b.JkyPageHeader;
|
|
59
|
+
exports.JkyPageLayout = index$c.JkyPageLayout;
|
|
60
|
+
exports.JkyPageTableV2 = index$d.JkyPageTableV2;
|
|
61
|
+
exports.JkyRichEditor = index$e.JkyRichEditor;
|
|
62
|
+
exports.JkySayHello = index$f.JkySayHello;
|
|
63
|
+
exports.JkyTabs = index$g.JkyTabs;
|
|
59
64
|
exports.createTabsGuard = createTabsGuard.createTabsGuard;
|
|
60
65
|
exports.createTabsStore = useTabsStore.createTabsStore;
|
|
61
66
|
exports.default = installer;
|
package/dist/lib/package.json.js
CHANGED
|
@@ -41,7 +41,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
41
41
|
fixed: "right",
|
|
42
42
|
buttonLimit: 3,
|
|
43
43
|
moreButtonText: "更多",
|
|
44
|
-
buttons: []
|
|
44
|
+
buttons: [],
|
|
45
|
+
trigger: "hover"
|
|
45
46
|
}, props.config));
|
|
46
47
|
function isButtonVisible(button) {
|
|
47
48
|
if (button.hidden === void 0)
|
|
@@ -100,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
100
101
|
}), 128)),
|
|
101
102
|
collapsedButtons.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDropdown), {
|
|
102
103
|
key: 0,
|
|
103
|
-
trigger:
|
|
104
|
+
trigger: mergedConfig.value.trigger
|
|
104
105
|
}, {
|
|
105
106
|
dropdown: vue.withCtx(() => [
|
|
106
107
|
vue.createVNode(vue.unref(ElementPlus.ElDropdownMenu), null, {
|
|
@@ -135,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
135
136
|
})
|
|
136
137
|
]),
|
|
137
138
|
_: 1
|
|
138
|
-
})) : vue.createCommentVNode("", true)
|
|
139
|
+
}, 8, ["trigger"])) : vue.createCommentVNode("", true)
|
|
139
140
|
]);
|
|
140
141
|
};
|
|
141
142
|
}
|
|
@@ -55,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
55
55
|
__name: "PageTable",
|
|
56
56
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
57
57
|
withCard: { type: Boolean, default: true },
|
|
58
|
+
config: {},
|
|
58
59
|
title: { default: "" },
|
|
59
60
|
filterItems: { default: () => [] },
|
|
60
61
|
form: {},
|
|
@@ -158,6 +159,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
const sortValue = vue.ref("desc");
|
|
162
|
+
const withCard = vue.computed(() => {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
return (_c = (_b = props.withCard) != null ? _b : (_a = props.config) == null ? void 0 : _a.withCard) != null ? _c : true;
|
|
165
|
+
});
|
|
161
166
|
const defaultRightButtons = vue.computed(() => {
|
|
162
167
|
const sortButton = {
|
|
163
168
|
label: "排序",
|
|
@@ -415,7 +420,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
415
420
|
]),
|
|
416
421
|
_: 1
|
|
417
422
|
})) : vue.createCommentVNode("", true),
|
|
418
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
423
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(withCard.value ? vue.unref(ElementPlus.ElCard) : "div"), { class: "flex-1 min-h-0 jky-page-table__table-card" }, {
|
|
419
424
|
default: vue.withCtx(() => {
|
|
420
425
|
var _a2, _b2, _c2, _d, _e, _f, _g;
|
|
421
426
|
return [
|