jky-component-lib 0.0.95 → 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/style.css +5 -12
- package/dist/es/amap/style2.css +12 -5
- package/dist/es/form/Form.vue.js +2 -3
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/PageTable.vue.js +9 -25
- package/dist/es/style.css +4 -0
- package/dist/lib/amap/style.css +5 -12
- package/dist/lib/amap/style2.css +12 -5
- package/dist/lib/form/Form.vue.js +2 -3
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/PageTable.vue.js +8 -24
- package/dist/lib/style.css +4 -0
- package/package.json +1 -1
package/dist/es/amap/style.css
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
.amap-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
2
|
+
/* JkyAMarker 组件样式 - 参考高德官方示例 */
|
|
3
|
+
.amap-icon img,
|
|
4
|
+
.amap-marker-content img {
|
|
5
|
+
width: 25px;
|
|
6
|
+
height: 34px;
|
|
14
7
|
}
|
package/dist/es/amap/style2.css
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
.amap-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
7
14
|
}
|
package/dist/es/form/Form.vue.js
CHANGED
|
@@ -132,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
132
132
|
"onValidate",
|
|
133
133
|
"onSubmit",
|
|
134
134
|
"onReset",
|
|
135
|
-
"className",
|
|
136
135
|
"grid",
|
|
137
136
|
"showCount"
|
|
138
137
|
];
|
|
@@ -141,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
141
140
|
Object.entries(props).filter(([key]) => !JKY_FORM_PROPS.includes(key))
|
|
142
141
|
);
|
|
143
142
|
const _a = attrs, { class: _, style } = _a, restAttrs = __objRest(_a, ["class", "style"]);
|
|
144
|
-
return __spreadValues(__spreadValues({}, formProps), restAttrs);
|
|
143
|
+
return __spreadValues(__spreadValues({ class: props.className || attrs.className || "" }, formProps), restAttrs);
|
|
145
144
|
});
|
|
146
145
|
const formClass = computed(() => {
|
|
147
146
|
return [
|
|
@@ -154,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
154
153
|
if (props.inline && props.grid) {
|
|
155
154
|
classes.push("jky-form--grid");
|
|
156
155
|
}
|
|
157
|
-
return classes;
|
|
156
|
+
return [...classes, props.className || attrs.className || ""];
|
|
158
157
|
});
|
|
159
158
|
const _gridStyle = computed(() => {
|
|
160
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",
|
|
@@ -324,7 +322,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
324
322
|
}, [
|
|
325
323
|
__props.filterItems && __props.filterItems.length > 0 ? (openBlock(), createBlock(unref(ElCard), {
|
|
326
324
|
key: 0,
|
|
327
|
-
class: "mb-
|
|
325
|
+
class: "mb-3 jky-page-table__filter-card"
|
|
328
326
|
}, {
|
|
329
327
|
default: withCtx(() => [
|
|
330
328
|
createVNode(unref(JkyForm), mergeProps({
|
|
@@ -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));
|
package/dist/lib/amap/style.css
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
.amap-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
2
|
+
/* JkyAMarker 组件样式 - 参考高德官方示例 */
|
|
3
|
+
.amap-icon img,
|
|
4
|
+
.amap-marker-content img {
|
|
5
|
+
width: 25px;
|
|
6
|
+
height: 34px;
|
|
14
7
|
}
|
package/dist/lib/amap/style2.css
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
.amap-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
7
14
|
}
|
|
@@ -134,7 +134,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
134
134
|
"onValidate",
|
|
135
135
|
"onSubmit",
|
|
136
136
|
"onReset",
|
|
137
|
-
"className",
|
|
138
137
|
"grid",
|
|
139
138
|
"showCount"
|
|
140
139
|
];
|
|
@@ -143,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
143
142
|
Object.entries(props).filter(([key]) => !JKY_FORM_PROPS.includes(key))
|
|
144
143
|
);
|
|
145
144
|
const _a = attrs, { class: _, style } = _a, restAttrs = __objRest(_a, ["class", "style"]);
|
|
146
|
-
return __spreadValues(__spreadValues({}, formProps), restAttrs);
|
|
145
|
+
return __spreadValues(__spreadValues({ class: props.className || attrs.className || "" }, formProps), restAttrs);
|
|
147
146
|
});
|
|
148
147
|
const formClass = vue.computed(() => {
|
|
149
148
|
return [
|
|
@@ -156,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
156
155
|
if (props.inline && props.grid) {
|
|
157
156
|
classes.push("jky-form--grid");
|
|
158
157
|
}
|
|
159
|
-
return classes;
|
|
158
|
+
return [...classes, props.className || attrs.className || ""];
|
|
160
159
|
});
|
|
161
160
|
const _gridStyle = vue.computed(() => {
|
|
162
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",
|
|
@@ -326,7 +324,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
326
324
|
}, [
|
|
327
325
|
__props.filterItems && __props.filterItems.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCard), {
|
|
328
326
|
key: 0,
|
|
329
|
-
class: "mb-
|
|
327
|
+
class: "mb-3 jky-page-table__filter-card"
|
|
330
328
|
}, {
|
|
331
329
|
default: vue.withCtx(() => [
|
|
332
330
|
vue.createVNode(vue.unref(index.JkyForm), vue.mergeProps({
|
|
@@ -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));
|