mrxy-yk 1.13.1 → 1.13.3
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/element-plus/components/pagination/Pagination.d.ts +2 -0
- package/dist/element-plus/components/pagination/Pagination.vue.setup.js +5 -3
- package/dist/utils/prototype/lib/FileUtil.js +1 -1
- package/dist/utils/storage/StorageCookie.d.ts +3 -2
- package/dist/utils/storage/StorageCookie.js +9 -2
- package/dist/utils/storage/type.d.ts +7 -0
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
pages?: Pages;
|
|
6
6
|
tableHook?: UseTableSearchHooksExample<any, any, any, any, any, any, any>;
|
|
7
7
|
background?: boolean;
|
|
8
|
+
layout?: string;
|
|
8
9
|
};
|
|
9
10
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
11
|
change: (...args: any[]) => void;
|
|
@@ -14,6 +15,7 @@ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, Compone
|
|
|
14
15
|
"onUpdate:pages"?: (...args: any[]) => any;
|
|
15
16
|
}>, {
|
|
16
17
|
background: boolean;
|
|
18
|
+
layout: string;
|
|
17
19
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
20
|
declare const _default: typeof __VLS_export;
|
|
19
21
|
export default _default;
|
|
@@ -10,7 +10,8 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
10
10
|
background: {
|
|
11
11
|
type: Boolean,
|
|
12
12
|
default: false
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
layout: { default: "total, sizes, prev, pager, next, jumper" }
|
|
14
15
|
},
|
|
15
16
|
emits: ["change", "update:pages"],
|
|
16
17
|
setup(__props, { emit: __emit }) {
|
|
@@ -51,7 +52,7 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
51
52
|
total: unref(pages).total,
|
|
52
53
|
background: __props.background,
|
|
53
54
|
size: "small",
|
|
54
|
-
layout:
|
|
55
|
+
layout: props.layout,
|
|
55
56
|
"page-sizes": [
|
|
56
57
|
10,
|
|
57
58
|
15,
|
|
@@ -66,7 +67,8 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
66
67
|
"current-page",
|
|
67
68
|
"page-size",
|
|
68
69
|
"total",
|
|
69
|
-
"background"
|
|
70
|
+
"background",
|
|
71
|
+
"layout"
|
|
70
72
|
])]);
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StorageCookieSetOptions } from './type';
|
|
1
|
+
import { StorageCookieRemoveOptions, StorageCookieSetOptions } from './type';
|
|
2
2
|
export declare class StorageCookie {
|
|
3
3
|
/**
|
|
4
4
|
* 获取cookie
|
|
@@ -19,6 +19,7 @@ export declare class StorageCookie {
|
|
|
19
19
|
/**
|
|
20
20
|
* 删除cookie
|
|
21
21
|
* @param key
|
|
22
|
+
* @param options
|
|
22
23
|
*/
|
|
23
|
-
static remove(key: string): void;
|
|
24
|
+
static remove(key: string, options?: StorageCookieRemoveOptions): void;
|
|
24
25
|
}
|
|
@@ -63,9 +63,16 @@ var StorageCookie = class {
|
|
|
63
63
|
/**
|
|
64
64
|
* 删除cookie
|
|
65
65
|
* @param key
|
|
66
|
+
* @param options
|
|
66
67
|
*/
|
|
67
|
-
static remove(key) {
|
|
68
|
-
this.set(
|
|
68
|
+
static remove(key, options = {}) {
|
|
69
|
+
this.set({
|
|
70
|
+
path: "/",
|
|
71
|
+
value: "",
|
|
72
|
+
...options,
|
|
73
|
+
key,
|
|
74
|
+
expires: -1
|
|
75
|
+
});
|
|
69
76
|
}
|
|
70
77
|
};
|
|
71
78
|
//#endregion
|
package/package.json
CHANGED