jky-component-lib 0.0.96 → 0.0.97
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/AMarker.vue.d.ts +0 -1
- package/dist/es/amap/AMarker.vue.js +7 -56
- package/dist/es/form/Form.vue.js +2 -4
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/PageTable.vue.js +8 -24
- package/dist/es/style.css +4 -0
- package/dist/lib/amap/AMarker.vue.d.ts +0 -1
- package/dist/lib/amap/AMarker.vue.js +7 -56
- package/dist/lib/form/Form.vue.js +2 -4
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/PageTable.vue.js +7 -23
- package/dist/lib/style.css +4 -0
- package/package.json +1 -1
|
@@ -28,7 +28,6 @@ declare const __VLS_component: import('vue').DefineComponent<AMapMarkerProps, {
|
|
|
28
28
|
draggable: boolean;
|
|
29
29
|
visible: boolean;
|
|
30
30
|
updateMode: "incremental" | "full";
|
|
31
|
-
cluster: boolean;
|
|
32
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
33
|
export default _default;
|
|
@@ -31,16 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
31
31
|
icon: {},
|
|
32
32
|
offset: {},
|
|
33
33
|
visible: { type: Boolean, default: true },
|
|
34
|
-
updateMode: { default: "full" }
|
|
35
|
-
cluster: { type: Boolean, default: false },
|
|
36
|
-
clusterOptions: {}
|
|
34
|
+
updateMode: { default: "full" }
|
|
37
35
|
},
|
|
38
36
|
emits: ["click", "dragend", "mouseover", "mouseout"],
|
|
39
37
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40
38
|
const props = __props;
|
|
41
39
|
const emit = __emit;
|
|
42
40
|
const markers = ref([]);
|
|
43
|
-
const clusterManager = ref(null);
|
|
44
41
|
const amapContext = inject("amapContext", null);
|
|
45
42
|
const mapInstance = (amapContext == null ? void 0 : amapContext.getMapInstance()) || null;
|
|
46
43
|
const contentCleanupFns = /* @__PURE__ */ new WeakMap();
|
|
@@ -50,22 +47,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
50
47
|
render(vnode, container);
|
|
51
48
|
return container.firstElementChild || container;
|
|
52
49
|
}
|
|
53
|
-
function createClusterManager() {
|
|
54
|
-
const AMap = window.AMap;
|
|
55
|
-
if (!AMap || !mapInstance)
|
|
56
|
-
return;
|
|
57
|
-
if (clusterManager.value) {
|
|
58
|
-
clusterManager.value.clearMarkers();
|
|
59
|
-
clusterManager.value = null;
|
|
60
|
-
}
|
|
61
|
-
const options = {
|
|
62
|
-
map: mapInstance
|
|
63
|
-
};
|
|
64
|
-
if (props.clusterOptions) {
|
|
65
|
-
Object.assign(options, props.clusterOptions);
|
|
66
|
-
}
|
|
67
|
-
clusterManager.value = new AMap.MarkerCluster(options);
|
|
68
|
-
}
|
|
69
50
|
function createMarker(data) {
|
|
70
51
|
const AMap = window.AMap;
|
|
71
52
|
if (!AMap || !mapInstance) {
|
|
@@ -145,11 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
145
126
|
cleanupFn();
|
|
146
127
|
contentCleanupFns.delete(marker);
|
|
147
128
|
}
|
|
148
|
-
|
|
149
|
-
clusterManager.value.removeMarker(marker);
|
|
150
|
-
} else {
|
|
151
|
-
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
152
|
-
}
|
|
129
|
+
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
153
130
|
}
|
|
154
131
|
});
|
|
155
132
|
const markersToAdd = newMarkers.filter((data) => {
|
|
@@ -161,11 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
161
138
|
const marker = createMarker(data);
|
|
162
139
|
if (marker) {
|
|
163
140
|
newMarkersList.push(marker);
|
|
164
|
-
|
|
165
|
-
clusterManager.value.addMarker(marker);
|
|
166
|
-
} else {
|
|
167
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
168
|
-
}
|
|
141
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
169
142
|
}
|
|
170
143
|
});
|
|
171
144
|
markers.value.push(...newMarkersList);
|
|
@@ -175,19 +148,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
175
148
|
if (!mapInstance)
|
|
176
149
|
return;
|
|
177
150
|
removeMarkers();
|
|
178
|
-
if (props.cluster && !clusterManager.value) {
|
|
179
|
-
createClusterManager();
|
|
180
|
-
}
|
|
181
151
|
if (newMarkers && newMarkers.length > 0) {
|
|
182
152
|
newMarkers.forEach((data) => {
|
|
183
153
|
const marker = createMarker(data);
|
|
184
154
|
if (marker) {
|
|
185
155
|
markers.value.push(marker);
|
|
186
|
-
|
|
187
|
-
clusterManager.value.addMarker(marker);
|
|
188
|
-
} else {
|
|
189
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
190
|
-
}
|
|
156
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
191
157
|
}
|
|
192
158
|
});
|
|
193
159
|
}
|
|
@@ -195,9 +161,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
195
161
|
function addMarkers() {
|
|
196
162
|
if (!mapInstance)
|
|
197
163
|
return;
|
|
198
|
-
if (props.cluster && !clusterManager.value) {
|
|
199
|
-
createClusterManager();
|
|
200
|
-
}
|
|
201
164
|
if (props.markers && props.markers.length > 0) {
|
|
202
165
|
if (props.updateMode === "full") {
|
|
203
166
|
fullUpdate(props.markers);
|
|
@@ -215,16 +178,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
215
178
|
const marker = createMarker(singleMarker);
|
|
216
179
|
if (marker) {
|
|
217
180
|
markers.value.push(marker);
|
|
218
|
-
|
|
219
|
-
clusterManager.value.addMarker(marker);
|
|
220
|
-
} else {
|
|
221
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
222
|
-
}
|
|
181
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
223
182
|
}
|
|
224
183
|
}
|
|
225
184
|
}
|
|
226
185
|
function removeMarkers() {
|
|
227
|
-
if (markers.value.length === 0)
|
|
186
|
+
if (!mapInstance || markers.value.length === 0)
|
|
228
187
|
return;
|
|
229
188
|
markers.value.forEach((marker) => {
|
|
230
189
|
const cleanupFn = contentCleanupFns.get(marker);
|
|
@@ -232,17 +191,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
232
191
|
cleanupFn();
|
|
233
192
|
contentCleanupFns.delete(marker);
|
|
234
193
|
}
|
|
235
|
-
|
|
236
|
-
clusterManager.value.removeMarker(marker);
|
|
237
|
-
} else if (mapInstance) {
|
|
238
|
-
mapInstance.remove(marker);
|
|
239
|
-
}
|
|
194
|
+
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
240
195
|
});
|
|
241
196
|
markers.value = [];
|
|
242
|
-
if (props.cluster && clusterManager.value) {
|
|
243
|
-
clusterManager.value.clearMarkers();
|
|
244
|
-
clusterManager.value = null;
|
|
245
|
-
}
|
|
246
197
|
}
|
|
247
198
|
__expose({
|
|
248
199
|
getMarkers: () => markers.value,
|
package/dist/es/form/Form.vue.js
CHANGED
|
@@ -72,7 +72,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
72
72
|
responsive: { type: Boolean, default: true },
|
|
73
73
|
grid: { type: [Boolean, Object], default: false },
|
|
74
74
|
className: {},
|
|
75
|
-
formClass: {},
|
|
76
75
|
readonly: { type: Boolean },
|
|
77
76
|
disabled: { type: Boolean },
|
|
78
77
|
watchDeep: { type: Boolean, default: true },
|
|
@@ -133,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
133
132
|
"onValidate",
|
|
134
133
|
"onSubmit",
|
|
135
134
|
"onReset",
|
|
136
|
-
"className",
|
|
137
135
|
"grid",
|
|
138
136
|
"showCount"
|
|
139
137
|
];
|
|
@@ -142,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
142
140
|
Object.entries(props).filter(([key]) => !JKY_FORM_PROPS.includes(key))
|
|
143
141
|
);
|
|
144
142
|
const _a = attrs, { class: _, style } = _a, restAttrs = __objRest(_a, ["class", "style"]);
|
|
145
|
-
return __spreadValues(__spreadValues({}, formProps), restAttrs);
|
|
143
|
+
return __spreadValues(__spreadValues({ class: props.className || attrs.className || "" }, formProps), restAttrs);
|
|
146
144
|
});
|
|
147
145
|
const formClass = computed(() => {
|
|
148
146
|
return [
|
|
@@ -155,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
155
153
|
if (props.inline && props.grid) {
|
|
156
154
|
classes.push("jky-form--grid");
|
|
157
155
|
}
|
|
158
|
-
return [...classes, props.
|
|
156
|
+
return [...classes, props.className || attrs.className || ""];
|
|
159
157
|
});
|
|
160
158
|
const _gridStyle = computed(() => {
|
|
161
159
|
if (!props.inline || !props.grid || typeof props.grid === "boolean") {
|
package/dist/es/package.json.js
CHANGED
|
@@ -37,13 +37,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { defineComponent, ref, watch, useModel, computed, onMounted,
|
|
40
|
+
import { defineComponent, ref, watch, useModel, computed, onMounted, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, unref, withCtx, createVNode, mergeProps, createCommentVNode, resolveDynamicComponent, withDirectives, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, mergeModels } from "vue";
|
|
41
41
|
import { useFullscreen } from "@vueuse/core";
|
|
42
42
|
import { ElCard, ElTable, ElTableColumn, ElScrollbar, ElPagination } from "element-plus";
|
|
43
43
|
import { JkyForm } from "../form/index.js";
|
|
44
44
|
import _sfc_main$1 from "./Toolbar.vue.js";
|
|
45
45
|
/* empty css */
|
|
46
|
-
const _hoisted_1 = { class: "jky-page-table__filter-actions" };
|
|
47
46
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
48
47
|
name: "JkyPageTable"
|
|
49
48
|
}), {
|
|
@@ -315,7 +314,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
315
314
|
);
|
|
316
315
|
return (_ctx, _cache) => {
|
|
317
316
|
var _a, _b, _c;
|
|
318
|
-
const _component_ElButton = resolveComponent("ElButton");
|
|
319
317
|
const _directive_loading = resolveDirective("loading");
|
|
320
318
|
return openBlock(), createElementBlock("div", {
|
|
321
319
|
ref_key: "pageTableRef",
|
|
@@ -333,28 +331,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
333
331
|
}, __spreadValues({ inline: true }, __props.formProps), {
|
|
334
332
|
modelValue: form.value,
|
|
335
333
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value = $event),
|
|
336
|
-
"show-footer":
|
|
334
|
+
"show-footer": true,
|
|
337
335
|
items: __props.filterItems,
|
|
338
|
-
disabled: isLoading.value
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
onClick: handleSearch
|
|
345
|
-
}, {
|
|
346
|
-
default: withCtx(() => [
|
|
347
|
-
createTextVNode(toDisplayString(__props.searchText), 1)
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
}, 8, ["loading"]),
|
|
351
|
-
createVNode(_component_ElButton, { onClick: handleReset }, {
|
|
352
|
-
default: withCtx(() => [
|
|
353
|
-
createTextVNode(toDisplayString(__props.resetText), 1)
|
|
354
|
-
]),
|
|
355
|
-
_: 1
|
|
356
|
-
})
|
|
357
|
-
])
|
|
336
|
+
disabled: isLoading.value,
|
|
337
|
+
"submit-text": "搜索",
|
|
338
|
+
"cancel-text": "重置",
|
|
339
|
+
onReset: handleReset,
|
|
340
|
+
onSubmit: handleSearch
|
|
341
|
+
}), null, 16, ["modelValue", "items", "disabled"])
|
|
358
342
|
]),
|
|
359
343
|
_: 1
|
|
360
344
|
})) : createCommentVNode("", true),
|
package/dist/es/style.css
CHANGED
|
@@ -1789,6 +1789,10 @@
|
|
|
1789
1789
|
column-gap: calc(var(--spacing) * 2);
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
+
.gap-x-3 {
|
|
1793
|
+
column-gap: calc(var(--spacing) * 3);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1792
1796
|
:where(.space-x-4 > :not(:last-child)) {
|
|
1793
1797
|
--tw-space-x-reverse: 0;
|
|
1794
1798
|
margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
|
|
@@ -28,7 +28,6 @@ declare const __VLS_component: import('vue').DefineComponent<AMapMarkerProps, {
|
|
|
28
28
|
draggable: boolean;
|
|
29
29
|
visible: boolean;
|
|
30
30
|
updateMode: "incremental" | "full";
|
|
31
|
-
cluster: boolean;
|
|
32
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
33
|
export default _default;
|
|
@@ -33,16 +33,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
33
33
|
icon: {},
|
|
34
34
|
offset: {},
|
|
35
35
|
visible: { type: Boolean, default: true },
|
|
36
|
-
updateMode: { default: "full" }
|
|
37
|
-
cluster: { type: Boolean, default: false },
|
|
38
|
-
clusterOptions: {}
|
|
36
|
+
updateMode: { default: "full" }
|
|
39
37
|
},
|
|
40
38
|
emits: ["click", "dragend", "mouseover", "mouseout"],
|
|
41
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
42
40
|
const props = __props;
|
|
43
41
|
const emit = __emit;
|
|
44
42
|
const markers = vue.ref([]);
|
|
45
|
-
const clusterManager = vue.ref(null);
|
|
46
43
|
const amapContext = vue.inject("amapContext", null);
|
|
47
44
|
const mapInstance = (amapContext == null ? void 0 : amapContext.getMapInstance()) || null;
|
|
48
45
|
const contentCleanupFns = /* @__PURE__ */ new WeakMap();
|
|
@@ -52,22 +49,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
52
49
|
vue.render(vnode, container);
|
|
53
50
|
return container.firstElementChild || container;
|
|
54
51
|
}
|
|
55
|
-
function createClusterManager() {
|
|
56
|
-
const AMap = window.AMap;
|
|
57
|
-
if (!AMap || !mapInstance)
|
|
58
|
-
return;
|
|
59
|
-
if (clusterManager.value) {
|
|
60
|
-
clusterManager.value.clearMarkers();
|
|
61
|
-
clusterManager.value = null;
|
|
62
|
-
}
|
|
63
|
-
const options = {
|
|
64
|
-
map: mapInstance
|
|
65
|
-
};
|
|
66
|
-
if (props.clusterOptions) {
|
|
67
|
-
Object.assign(options, props.clusterOptions);
|
|
68
|
-
}
|
|
69
|
-
clusterManager.value = new AMap.MarkerCluster(options);
|
|
70
|
-
}
|
|
71
52
|
function createMarker(data) {
|
|
72
53
|
const AMap = window.AMap;
|
|
73
54
|
if (!AMap || !mapInstance) {
|
|
@@ -147,11 +128,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
147
128
|
cleanupFn();
|
|
148
129
|
contentCleanupFns.delete(marker);
|
|
149
130
|
}
|
|
150
|
-
|
|
151
|
-
clusterManager.value.removeMarker(marker);
|
|
152
|
-
} else {
|
|
153
|
-
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
154
|
-
}
|
|
131
|
+
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
155
132
|
}
|
|
156
133
|
});
|
|
157
134
|
const markersToAdd = newMarkers.filter((data) => {
|
|
@@ -163,11 +140,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
163
140
|
const marker = createMarker(data);
|
|
164
141
|
if (marker) {
|
|
165
142
|
newMarkersList.push(marker);
|
|
166
|
-
|
|
167
|
-
clusterManager.value.addMarker(marker);
|
|
168
|
-
} else {
|
|
169
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
170
|
-
}
|
|
143
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
171
144
|
}
|
|
172
145
|
});
|
|
173
146
|
markers.value.push(...newMarkersList);
|
|
@@ -177,19 +150,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
177
150
|
if (!mapInstance)
|
|
178
151
|
return;
|
|
179
152
|
removeMarkers();
|
|
180
|
-
if (props.cluster && !clusterManager.value) {
|
|
181
|
-
createClusterManager();
|
|
182
|
-
}
|
|
183
153
|
if (newMarkers && newMarkers.length > 0) {
|
|
184
154
|
newMarkers.forEach((data) => {
|
|
185
155
|
const marker = createMarker(data);
|
|
186
156
|
if (marker) {
|
|
187
157
|
markers.value.push(marker);
|
|
188
|
-
|
|
189
|
-
clusterManager.value.addMarker(marker);
|
|
190
|
-
} else {
|
|
191
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
192
|
-
}
|
|
158
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
193
159
|
}
|
|
194
160
|
});
|
|
195
161
|
}
|
|
@@ -197,9 +163,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
197
163
|
function addMarkers() {
|
|
198
164
|
if (!mapInstance)
|
|
199
165
|
return;
|
|
200
|
-
if (props.cluster && !clusterManager.value) {
|
|
201
|
-
createClusterManager();
|
|
202
|
-
}
|
|
203
166
|
if (props.markers && props.markers.length > 0) {
|
|
204
167
|
if (props.updateMode === "full") {
|
|
205
168
|
fullUpdate(props.markers);
|
|
@@ -217,16 +180,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
217
180
|
const marker = createMarker(singleMarker);
|
|
218
181
|
if (marker) {
|
|
219
182
|
markers.value.push(marker);
|
|
220
|
-
|
|
221
|
-
clusterManager.value.addMarker(marker);
|
|
222
|
-
} else {
|
|
223
|
-
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
224
|
-
}
|
|
183
|
+
mapInstance == null ? void 0 : mapInstance.add(marker);
|
|
225
184
|
}
|
|
226
185
|
}
|
|
227
186
|
}
|
|
228
187
|
function removeMarkers() {
|
|
229
|
-
if (markers.value.length === 0)
|
|
188
|
+
if (!mapInstance || markers.value.length === 0)
|
|
230
189
|
return;
|
|
231
190
|
markers.value.forEach((marker) => {
|
|
232
191
|
const cleanupFn = contentCleanupFns.get(marker);
|
|
@@ -234,17 +193,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
234
193
|
cleanupFn();
|
|
235
194
|
contentCleanupFns.delete(marker);
|
|
236
195
|
}
|
|
237
|
-
|
|
238
|
-
clusterManager.value.removeMarker(marker);
|
|
239
|
-
} else if (mapInstance) {
|
|
240
|
-
mapInstance.remove(marker);
|
|
241
|
-
}
|
|
196
|
+
mapInstance == null ? void 0 : mapInstance.remove(marker);
|
|
242
197
|
});
|
|
243
198
|
markers.value = [];
|
|
244
|
-
if (props.cluster && clusterManager.value) {
|
|
245
|
-
clusterManager.value.clearMarkers();
|
|
246
|
-
clusterManager.value = null;
|
|
247
|
-
}
|
|
248
199
|
}
|
|
249
200
|
__expose({
|
|
250
201
|
getMarkers: () => markers.value,
|
|
@@ -74,7 +74,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
74
74
|
responsive: { type: Boolean, default: true },
|
|
75
75
|
grid: { type: [Boolean, Object], default: false },
|
|
76
76
|
className: {},
|
|
77
|
-
formClass: {},
|
|
78
77
|
readonly: { type: Boolean },
|
|
79
78
|
disabled: { type: Boolean },
|
|
80
79
|
watchDeep: { type: Boolean, default: true },
|
|
@@ -135,7 +134,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
135
134
|
"onValidate",
|
|
136
135
|
"onSubmit",
|
|
137
136
|
"onReset",
|
|
138
|
-
"className",
|
|
139
137
|
"grid",
|
|
140
138
|
"showCount"
|
|
141
139
|
];
|
|
@@ -144,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
144
142
|
Object.entries(props).filter(([key]) => !JKY_FORM_PROPS.includes(key))
|
|
145
143
|
);
|
|
146
144
|
const _a = attrs, { class: _, style } = _a, restAttrs = __objRest(_a, ["class", "style"]);
|
|
147
|
-
return __spreadValues(__spreadValues({}, formProps), restAttrs);
|
|
145
|
+
return __spreadValues(__spreadValues({ class: props.className || attrs.className || "" }, formProps), restAttrs);
|
|
148
146
|
});
|
|
149
147
|
const formClass = vue.computed(() => {
|
|
150
148
|
return [
|
|
@@ -157,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
157
155
|
if (props.inline && props.grid) {
|
|
158
156
|
classes.push("jky-form--grid");
|
|
159
157
|
}
|
|
160
|
-
return [...classes, props.
|
|
158
|
+
return [...classes, props.className || attrs.className || ""];
|
|
161
159
|
});
|
|
162
160
|
const _gridStyle = vue.computed(() => {
|
|
163
161
|
if (!props.inline || !props.grid || typeof props.grid === "boolean") {
|
package/dist/lib/package.json.js
CHANGED
|
@@ -45,7 +45,6 @@ const ElementPlus = require("element-plus");
|
|
|
45
45
|
const index = require("../form/index.js");
|
|
46
46
|
const Toolbar_vue_vue_type_script_setup_true_lang = require("./Toolbar.vue.js");
|
|
47
47
|
;/* empty css */
|
|
48
|
-
const _hoisted_1 = { class: "jky-page-table__filter-actions" };
|
|
49
48
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
50
49
|
name: "JkyPageTable"
|
|
51
50
|
}), {
|
|
@@ -317,7 +316,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
317
316
|
);
|
|
318
317
|
return (_ctx, _cache) => {
|
|
319
318
|
var _a, _b, _c;
|
|
320
|
-
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
321
319
|
const _directive_loading = vue.resolveDirective("loading");
|
|
322
320
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
323
321
|
ref_key: "pageTableRef",
|
|
@@ -335,28 +333,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
335
333
|
}, __spreadValues({ inline: true }, __props.formProps), {
|
|
336
334
|
modelValue: form.value,
|
|
337
335
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value = $event),
|
|
338
|
-
"show-footer":
|
|
336
|
+
"show-footer": true,
|
|
339
337
|
items: __props.filterItems,
|
|
340
|
-
disabled: isLoading.value
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
onClick: handleSearch
|
|
347
|
-
}, {
|
|
348
|
-
default: vue.withCtx(() => [
|
|
349
|
-
vue.createTextVNode(vue.toDisplayString(__props.searchText), 1)
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}, 8, ["loading"]),
|
|
353
|
-
vue.createVNode(_component_ElButton, { onClick: handleReset }, {
|
|
354
|
-
default: vue.withCtx(() => [
|
|
355
|
-
vue.createTextVNode(vue.toDisplayString(__props.resetText), 1)
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
})
|
|
359
|
-
])
|
|
338
|
+
disabled: isLoading.value,
|
|
339
|
+
"submit-text": "搜索",
|
|
340
|
+
"cancel-text": "重置",
|
|
341
|
+
onReset: handleReset,
|
|
342
|
+
onSubmit: handleSearch
|
|
343
|
+
}), null, 16, ["modelValue", "items", "disabled"])
|
|
360
344
|
]),
|
|
361
345
|
_: 1
|
|
362
346
|
})) : vue.createCommentVNode("", true),
|
package/dist/lib/style.css
CHANGED
|
@@ -1789,6 +1789,10 @@
|
|
|
1789
1789
|
column-gap: calc(var(--spacing) * 2);
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
+
.gap-x-3 {
|
|
1793
|
+
column-gap: calc(var(--spacing) * 3);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1792
1796
|
:where(.space-x-4 > :not(:last-child)) {
|
|
1793
1797
|
--tw-space-x-reverse: 0;
|
|
1794
1798
|
margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
|