jky-component-lib 0.0.139 → 0.0.140
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 +2 -13
- package/dist/es/amap/style2.css +13 -2
- package/dist/es/form/items/SelectTableItem.vue.d.ts +8 -2
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-header/PageHeader.vue.js +16 -17
- package/dist/es/page-table/PageTable.vue.d.ts +1 -0
- package/dist/es/page-table/PageTable.vue.js +4 -0
- package/dist/lib/amap/style.css +2 -13
- package/dist/lib/amap/style2.css +13 -2
- package/dist/lib/form/items/SelectTableItem.vue.d.ts +8 -2
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-header/PageHeader.vue.js +16 -17
- package/dist/lib/page-table/PageTable.vue.d.ts +1 -0
- package/dist/lib/page-table/PageTable.vue.js +4 -0
- package/package.json +1 -1
package/dist/es/amap/style.css
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: none !important;
|
|
10
|
-
}
|
|
11
|
-
.amap-copyright {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
/* 轨迹回放组件不需要额外样式 */
|
|
3
|
+
/* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
|
package/dist/es/amap/style2.css
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -43,6 +43,7 @@ declare function __VLS_template(): {
|
|
|
43
43
|
readonly formProps?: Partial<import('..').FormProps> | undefined;
|
|
44
44
|
readonly tableProps?: Partial<import('element-plus').TableProps>;
|
|
45
45
|
readonly paginationProps?: Partial<import('element-plus').PaginationProps> | undefined;
|
|
46
|
+
readonly showPagination?: boolean | undefined;
|
|
46
47
|
readonly toolbarButtonLimit?: number | undefined;
|
|
47
48
|
readonly toolbarButtons?: {
|
|
48
49
|
left?: import('../../page-table').ToolbarButtonConfig[];
|
|
@@ -2909,6 +2910,7 @@ declare function __VLS_template(): {
|
|
|
2909
2910
|
formProps: Partial<import('..').FormProps>;
|
|
2910
2911
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2911
2912
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2913
|
+
showPagination: boolean;
|
|
2912
2914
|
autoSearchDelay: number;
|
|
2913
2915
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
2914
2916
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -2950,6 +2952,7 @@ declare function __VLS_template(): {
|
|
|
2950
2952
|
formProps: Partial<import('..').FormProps>;
|
|
2951
2953
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2952
2954
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2955
|
+
showPagination: boolean;
|
|
2953
2956
|
autoSearchDelay: number;
|
|
2954
2957
|
}> & Omit<Readonly<{
|
|
2955
2958
|
pageNo?: number;
|
|
@@ -2976,7 +2979,7 @@ declare function __VLS_template(): {
|
|
|
2976
2979
|
"onUpdate:pageNo"?: ((value: number) => any) | undefined;
|
|
2977
2980
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
2978
2981
|
"onUpdate:total"?: ((value: number) => any) | undefined;
|
|
2979
|
-
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
2982
|
+
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "showPagination" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
2980
2983
|
refresh: () => Promise<void>;
|
|
2981
2984
|
getFilterData: () => Record<string, any>;
|
|
2982
2985
|
setFilterData: (data: Record<string, any>) => void;
|
|
@@ -3036,6 +3039,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
3036
3039
|
readonly formProps?: Partial<import('..').FormProps> | undefined;
|
|
3037
3040
|
readonly tableProps?: Partial<import('element-plus').TableProps>;
|
|
3038
3041
|
readonly paginationProps?: Partial<import('element-plus').PaginationProps> | undefined;
|
|
3042
|
+
readonly showPagination?: boolean | undefined;
|
|
3039
3043
|
readonly toolbarButtonLimit?: number | undefined;
|
|
3040
3044
|
readonly toolbarButtons?: {
|
|
3041
3045
|
left?: import('../../page-table').ToolbarButtonConfig[];
|
|
@@ -5902,6 +5906,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5902
5906
|
formProps: Partial<import('..').FormProps>;
|
|
5903
5907
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
5904
5908
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
5909
|
+
showPagination: boolean;
|
|
5905
5910
|
autoSearchDelay: number;
|
|
5906
5911
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
5907
5912
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -5943,6 +5948,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5943
5948
|
formProps: Partial<import('..').FormProps>;
|
|
5944
5949
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
5945
5950
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
5951
|
+
showPagination: boolean;
|
|
5946
5952
|
autoSearchDelay: number;
|
|
5947
5953
|
}> & Omit<Readonly<{
|
|
5948
5954
|
pageNo?: number;
|
|
@@ -5969,7 +5975,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5969
5975
|
"onUpdate:pageNo"?: ((value: number) => any) | undefined;
|
|
5970
5976
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
5971
5977
|
"onUpdate:total"?: ((value: number) => any) | undefined;
|
|
5972
|
-
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
5978
|
+
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "showPagination" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
5973
5979
|
refresh: () => Promise<void>;
|
|
5974
5980
|
getFilterData: () => Record<string, any>;
|
|
5975
5981
|
setFilterData: (data: Record<string, any>) => void;
|
package/dist/es/package.json.js
CHANGED
|
@@ -21,11 +21,8 @@ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyl
|
|
|
21
21
|
import { ElIcon, ElDropdown, ElDropdownMenu, ElDropdownItem } from "element-plus";
|
|
22
22
|
import _sfc_main$1 from "./PopoverMenu.vue.js";
|
|
23
23
|
const _hoisted_1 = { class: "jky-page-header__container" };
|
|
24
|
-
const _hoisted_2 =
|
|
25
|
-
const _hoisted_3 =
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "jky-page-header__title"
|
|
28
|
-
};
|
|
24
|
+
const _hoisted_2 = { class: "jky-page-header__left" };
|
|
25
|
+
const _hoisted_3 = ["src", "alt"];
|
|
29
26
|
const _hoisted_4 = { class: "jky-page-header__center" };
|
|
30
27
|
const _hoisted_5 = { class: "jky-page-header__right" };
|
|
31
28
|
const _hoisted_6 = { class: "jky-page-header__status-icons hidden md:flex" };
|
|
@@ -95,18 +92,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
95
92
|
}, [
|
|
96
93
|
createElementVNode("div", _hoisted_1, [
|
|
97
94
|
__props.showPopover && ((_b = (_a = __props.popover) == null ? void 0 : _a.menus) == null ? void 0 : _b.length) ? (openBlock(), createBlock(_sfc_main$1, normalizeProps(mergeProps({ key: 0 }, __props.popover)), null, 16)) : createCommentVNode("", true),
|
|
98
|
-
createElementVNode("div",
|
|
99
|
-
class: "cursor-pointer jky-page-header__left",
|
|
100
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handleClick("logo"))
|
|
101
|
-
}, [
|
|
95
|
+
createElementVNode("div", _hoisted_2, [
|
|
102
96
|
__props.logo ? (openBlock(), createElementBlock("img", {
|
|
103
97
|
key: 0,
|
|
104
98
|
src: __props.logo,
|
|
105
99
|
alt: __props.title || "Logo",
|
|
106
|
-
class: "jky-page-header__logo"
|
|
107
|
-
|
|
100
|
+
class: "cursor-pointer jky-page-header__logo",
|
|
101
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleClick("logo"))
|
|
102
|
+
}, null, 8, _hoisted_3)) : createCommentVNode("", true),
|
|
108
103
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
109
|
-
__props.title ? (openBlock(), createElementBlock("span",
|
|
104
|
+
__props.title ? (openBlock(), createElementBlock("span", {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: "cursor-pointer jky-page-header__title",
|
|
107
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleClick("title"))
|
|
108
|
+
}, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
110
109
|
])
|
|
111
110
|
]),
|
|
112
111
|
createElementVNode("div", _hoisted_4, [
|
|
@@ -176,7 +175,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
176
175
|
size: 20,
|
|
177
176
|
class: "jky-page-header__status-icon"
|
|
178
177
|
}, {
|
|
179
|
-
default: withCtx(() => [..._cache[
|
|
178
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
180
179
|
createElementVNode("svg", {
|
|
181
180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
182
181
|
fill: "none",
|
|
@@ -198,7 +197,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
198
197
|
})) : createCommentVNode("", true),
|
|
199
198
|
createElementVNode("div", {
|
|
200
199
|
class: "cursor-pointer jky-page-header__time hidden md:block",
|
|
201
|
-
onClick: _cache[
|
|
200
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleClick("time"))
|
|
202
201
|
}, [
|
|
203
202
|
renderSlot(_ctx.$slots, "time", {}, () => [
|
|
204
203
|
createElementVNode("span", null, toDisplayString((/* @__PURE__ */ new Date()).toLocaleString("zh-CN")), 1)
|
|
@@ -258,7 +257,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
258
257
|
size: 24,
|
|
259
258
|
class: "jky-page-header__avatar"
|
|
260
259
|
}, {
|
|
261
|
-
default: withCtx(() => [..._cache[
|
|
260
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
262
261
|
createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
|
|
263
262
|
])]),
|
|
264
263
|
_: 1
|
|
@@ -272,8 +271,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
272
271
|
__props.showLogout ? (openBlock(), createElementBlock("div", {
|
|
273
272
|
key: 2,
|
|
274
273
|
class: "jky-page-header__logout h-full flex items-center",
|
|
275
|
-
onClick: _cache[
|
|
276
|
-
}, [..._cache[
|
|
274
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("logout"))
|
|
275
|
+
}, [..._cache[6] || (_cache[6] = [
|
|
277
276
|
createElementVNode("span", { class: "icon-[ri--logout-circle-line] mr-2" }, null, -1),
|
|
278
277
|
createElementVNode("span", null, "退出登录", -1)
|
|
279
278
|
])])) : createCommentVNode("", true)
|
|
@@ -2829,6 +2829,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
2829
2829
|
formProps: Partial<import('../form').FormProps>;
|
|
2830
2830
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2831
2831
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2832
|
+
showPagination: boolean;
|
|
2832
2833
|
autoSearchDelay: number;
|
|
2833
2834
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2834
2835
|
pageTableRef: HTMLDivElement;
|
|
@@ -78,6 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
78
78
|
formProps: { default: () => ({}) },
|
|
79
79
|
tableProps: { default: () => ({}) },
|
|
80
80
|
paginationProps: { default: () => ({}) },
|
|
81
|
+
showPagination: { type: Boolean, default: true },
|
|
81
82
|
toolbarButtonLimit: { default: 0 },
|
|
82
83
|
toolbarButtons: {},
|
|
83
84
|
autoSearchDelay: { default: 500 },
|
|
@@ -181,6 +182,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
181
182
|
});
|
|
182
183
|
const showPagination = computed(() => {
|
|
183
184
|
var _a, _b;
|
|
185
|
+
if (!props.showPagination) {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
184
188
|
return !!((_a = props.dataSource) == null ? void 0 : _a.api) || (((_b = pagination.value) == null ? void 0 : _b.total) || 0) > 0;
|
|
185
189
|
});
|
|
186
190
|
const _showActionColumn = computed(() => {
|
package/dist/lib/amap/style.css
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: none !important;
|
|
10
|
-
}
|
|
11
|
-
.amap-copyright {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
/* 轨迹回放组件不需要额外样式 */
|
|
3
|
+
/* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
|
package/dist/lib/amap/style2.css
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -43,6 +43,7 @@ declare function __VLS_template(): {
|
|
|
43
43
|
readonly formProps?: Partial<import('..').FormProps> | undefined;
|
|
44
44
|
readonly tableProps?: Partial<import('element-plus').TableProps>;
|
|
45
45
|
readonly paginationProps?: Partial<import('element-plus').PaginationProps> | undefined;
|
|
46
|
+
readonly showPagination?: boolean | undefined;
|
|
46
47
|
readonly toolbarButtonLimit?: number | undefined;
|
|
47
48
|
readonly toolbarButtons?: {
|
|
48
49
|
left?: import('../../page-table').ToolbarButtonConfig[];
|
|
@@ -2909,6 +2910,7 @@ declare function __VLS_template(): {
|
|
|
2909
2910
|
formProps: Partial<import('..').FormProps>;
|
|
2910
2911
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2911
2912
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2913
|
+
showPagination: boolean;
|
|
2912
2914
|
autoSearchDelay: number;
|
|
2913
2915
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
2914
2916
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -2950,6 +2952,7 @@ declare function __VLS_template(): {
|
|
|
2950
2952
|
formProps: Partial<import('..').FormProps>;
|
|
2951
2953
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2952
2954
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2955
|
+
showPagination: boolean;
|
|
2953
2956
|
autoSearchDelay: number;
|
|
2954
2957
|
}> & Omit<Readonly<{
|
|
2955
2958
|
pageNo?: number;
|
|
@@ -2976,7 +2979,7 @@ declare function __VLS_template(): {
|
|
|
2976
2979
|
"onUpdate:pageNo"?: ((value: number) => any) | undefined;
|
|
2977
2980
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
2978
2981
|
"onUpdate:total"?: ((value: number) => any) | undefined;
|
|
2979
|
-
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
2982
|
+
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "showPagination" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
2980
2983
|
refresh: () => Promise<void>;
|
|
2981
2984
|
getFilterData: () => Record<string, any>;
|
|
2982
2985
|
setFilterData: (data: Record<string, any>) => void;
|
|
@@ -3036,6 +3039,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
3036
3039
|
readonly formProps?: Partial<import('..').FormProps> | undefined;
|
|
3037
3040
|
readonly tableProps?: Partial<import('element-plus').TableProps>;
|
|
3038
3041
|
readonly paginationProps?: Partial<import('element-plus').PaginationProps> | undefined;
|
|
3042
|
+
readonly showPagination?: boolean | undefined;
|
|
3039
3043
|
readonly toolbarButtonLimit?: number | undefined;
|
|
3040
3044
|
readonly toolbarButtons?: {
|
|
3041
3045
|
left?: import('../../page-table').ToolbarButtonConfig[];
|
|
@@ -5902,6 +5906,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5902
5906
|
formProps: Partial<import('..').FormProps>;
|
|
5903
5907
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
5904
5908
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
5909
|
+
showPagination: boolean;
|
|
5905
5910
|
autoSearchDelay: number;
|
|
5906
5911
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
5907
5912
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -5943,6 +5948,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5943
5948
|
formProps: Partial<import('..').FormProps>;
|
|
5944
5949
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
5945
5950
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
5951
|
+
showPagination: boolean;
|
|
5946
5952
|
autoSearchDelay: number;
|
|
5947
5953
|
}> & Omit<Readonly<{
|
|
5948
5954
|
pageNo?: number;
|
|
@@ -5969,7 +5975,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
5969
5975
|
"onUpdate:pageNo"?: ((value: number) => any) | undefined;
|
|
5970
5976
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
5971
5977
|
"onUpdate:total"?: ((value: number) => any) | undefined;
|
|
5972
|
-
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
5978
|
+
}>, "sort" | "toggleRowSelection" | "clearSelection" | "formRef" | "refresh" | "resetFilter" | "tableRef" | ("title" | "loading" | "border" | "emptyText" | "toolbarButtonLimit" | "withCard" | "filterItems" | "showSearchButton" | "searchText" | "resetText" | "searchIcon" | "resetIcon" | "selection" | "selectionColumn" | "selectedRows" | "stripe" | "formProps" | "tableProps" | "paginationProps" | "showPagination" | "autoSearchDelay") | "getFilterData" | "setFilterData" | "getSelectedRows"> & {
|
|
5973
5979
|
refresh: () => Promise<void>;
|
|
5974
5980
|
getFilterData: () => Record<string, any>;
|
|
5975
5981
|
setFilterData: (data: Record<string, any>) => void;
|
package/dist/lib/package.json.js
CHANGED
|
@@ -23,11 +23,8 @@ const vue = require("vue");
|
|
|
23
23
|
const ElementPlus = require("element-plus");
|
|
24
24
|
const PopoverMenu_vue_vue_type_script_setup_true_lang = require("./PopoverMenu.vue.js");
|
|
25
25
|
const _hoisted_1 = { class: "jky-page-header__container" };
|
|
26
|
-
const _hoisted_2 =
|
|
27
|
-
const _hoisted_3 =
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "jky-page-header__title"
|
|
30
|
-
};
|
|
26
|
+
const _hoisted_2 = { class: "jky-page-header__left" };
|
|
27
|
+
const _hoisted_3 = ["src", "alt"];
|
|
31
28
|
const _hoisted_4 = { class: "jky-page-header__center" };
|
|
32
29
|
const _hoisted_5 = { class: "jky-page-header__right" };
|
|
33
30
|
const _hoisted_6 = { class: "jky-page-header__status-icons hidden md:flex" };
|
|
@@ -97,18 +94,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
97
94
|
}, [
|
|
98
95
|
vue.createElementVNode("div", _hoisted_1, [
|
|
99
96
|
__props.showPopover && ((_b = (_a = __props.popover) == null ? void 0 : _a.menus) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createBlock(PopoverMenu_vue_vue_type_script_setup_true_lang.default, vue.normalizeProps(vue.mergeProps({ key: 0 }, __props.popover)), null, 16)) : vue.createCommentVNode("", true),
|
|
100
|
-
vue.createElementVNode("div",
|
|
101
|
-
class: "cursor-pointer jky-page-header__left",
|
|
102
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handleClick("logo"))
|
|
103
|
-
}, [
|
|
97
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
104
98
|
__props.logo ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
105
99
|
key: 0,
|
|
106
100
|
src: __props.logo,
|
|
107
101
|
alt: __props.title || "Logo",
|
|
108
|
-
class: "jky-page-header__logo"
|
|
109
|
-
|
|
102
|
+
class: "cursor-pointer jky-page-header__logo",
|
|
103
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleClick("logo"))
|
|
104
|
+
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true),
|
|
110
105
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
111
|
-
__props.title ? (vue.openBlock(), vue.createElementBlock("span",
|
|
106
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
107
|
+
key: 0,
|
|
108
|
+
class: "cursor-pointer jky-page-header__title",
|
|
109
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleClick("title"))
|
|
110
|
+
}, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true)
|
|
112
111
|
])
|
|
113
112
|
]),
|
|
114
113
|
vue.createElementVNode("div", _hoisted_4, [
|
|
@@ -178,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
178
177
|
size: 20,
|
|
179
178
|
class: "jky-page-header__status-icon"
|
|
180
179
|
}, {
|
|
181
|
-
default: vue.withCtx(() => [..._cache[
|
|
180
|
+
default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
182
181
|
vue.createElementVNode("svg", {
|
|
183
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
183
|
fill: "none",
|
|
@@ -200,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
200
199
|
})) : vue.createCommentVNode("", true),
|
|
201
200
|
vue.createElementVNode("div", {
|
|
202
201
|
class: "cursor-pointer jky-page-header__time hidden md:block",
|
|
203
|
-
onClick: _cache[
|
|
202
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleClick("time"))
|
|
204
203
|
}, [
|
|
205
204
|
vue.renderSlot(_ctx.$slots, "time", {}, () => [
|
|
206
205
|
vue.createElementVNode("span", null, vue.toDisplayString((/* @__PURE__ */ new Date()).toLocaleString("zh-CN")), 1)
|
|
@@ -260,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
260
259
|
size: 24,
|
|
261
260
|
class: "jky-page-header__avatar"
|
|
262
261
|
}, {
|
|
263
|
-
default: vue.withCtx(() => [..._cache[
|
|
262
|
+
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
264
263
|
vue.createElementVNode("span", { class: "icon-[heroicons--user]" }, null, -1)
|
|
265
264
|
])]),
|
|
266
265
|
_: 1
|
|
@@ -274,8 +273,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
274
273
|
__props.showLogout ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
275
274
|
key: 2,
|
|
276
275
|
class: "jky-page-header__logout h-full flex items-center",
|
|
277
|
-
onClick: _cache[
|
|
278
|
-
}, [..._cache[
|
|
276
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("logout"))
|
|
277
|
+
}, [..._cache[6] || (_cache[6] = [
|
|
279
278
|
vue.createElementVNode("span", { class: "icon-[ri--logout-circle-line] mr-2" }, null, -1),
|
|
280
279
|
vue.createElementVNode("span", null, "退出登录", -1)
|
|
281
280
|
])])) : vue.createCommentVNode("", true)
|
|
@@ -2829,6 +2829,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
2829
2829
|
formProps: Partial<import('../form').FormProps>;
|
|
2830
2830
|
tableProps: Partial<import('element-plus').TableProps>;
|
|
2831
2831
|
paginationProps: Partial<import('element-plus').PaginationProps>;
|
|
2832
|
+
showPagination: boolean;
|
|
2832
2833
|
autoSearchDelay: number;
|
|
2833
2834
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2834
2835
|
pageTableRef: HTMLDivElement;
|
|
@@ -80,6 +80,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
80
80
|
formProps: { default: () => ({}) },
|
|
81
81
|
tableProps: { default: () => ({}) },
|
|
82
82
|
paginationProps: { default: () => ({}) },
|
|
83
|
+
showPagination: { type: Boolean, default: true },
|
|
83
84
|
toolbarButtonLimit: { default: 0 },
|
|
84
85
|
toolbarButtons: {},
|
|
85
86
|
autoSearchDelay: { default: 500 },
|
|
@@ -183,6 +184,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
183
184
|
});
|
|
184
185
|
const showPagination = vue.computed(() => {
|
|
185
186
|
var _a, _b;
|
|
187
|
+
if (!props.showPagination) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
186
190
|
return !!((_a = props.dataSource) == null ? void 0 : _a.api) || (((_b = pagination.value) == null ? void 0 : _b.total) || 0) > 0;
|
|
187
191
|
});
|
|
188
192
|
const _showActionColumn = vue.computed(() => {
|