@chewel611/naive-ui-plus 0.0.20 → 0.0.22
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/index.js +233 -233
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/es/application/index.d.ts +1 -2
- package/es/application/index.js +4 -4
- package/es/components.d.ts +9 -9
- package/es/components.js +21 -21
- package/es/iframe/index.d.ts +1 -2
- package/es/iframe/index.js +4 -4
- package/es/index.d.ts +5 -1
- package/es/index.js +33 -33
- package/es/languages/PLanguage.vue.js +1 -1
- package/es/languages/index.d.ts +3 -4
- package/es/languages/index.js +4 -5
- package/es/languages/store.d.ts +1 -1
- package/es/languages/store.js +1 -1
- package/es/layout/PLayout.css +1 -1
- package/es/layout/PLayout.vue.js +1 -1
- package/es/layout/PLayout.vue2.js +4 -4
- package/es/layout/content/PTabs.css +1 -1
- package/es/layout/content/PTabs.vue.js +1 -1
- package/es/layout/content/PTabs.vue2.js +3 -3
- package/es/layout/header/PHeader.css +1 -1
- package/es/layout/header/PHeader.vue.js +2 -2
- package/es/layout/header/PHeader.vue2.js +1 -1
- package/es/layout/index.d.ts +2 -1
- package/es/layout/sider/PLogo.css +1 -1
- package/es/layout/sider/PLogo.vue.js +2 -2
- package/es/layout/sider/PLogo.vue2.js +1 -1
- package/es/layout/sider/PMenus.vue.js +5 -5
- package/es/layout/{layout.d.ts → store.d.ts} +2 -26
- package/es/layout/{layout.js → store.js} +1 -1
- package/es/layout/typing.d.ts +25 -0
- package/es/modal/PModal.d.ts +3 -3
- package/es/modal/index.d.ts +5 -5
- package/es/modal/index.js +4 -4
- package/es/modal/typing.d.ts +2 -2
- package/es/oidc/POidc.css +1 -1
- package/es/oidc/POidc.vue.js +2 -2
- package/es/oidc/POidc.vue2.js +9 -9
- package/es/oidc/index.d.ts +3 -3
- package/es/oidc/index.js +3 -3
- package/es/oidc/store.d.ts +7 -11
- package/es/oidc/store.js +7 -7
- package/es/oidc/typing.d.ts +5 -0
- package/es/redirect/index.d.ts +1 -2
- package/es/redirect/index.js +3 -3
- package/es/table/index.d.ts +2 -2
- package/es/table/index.js +4 -4
- package/es/table/typing.d.ts +8 -8
- package/lib/application/index.cjs +1 -1
- package/lib/application/index.d.ts +1 -2
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +9 -9
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.d.ts +1 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/languages/PLanguage.vue.cjs +1 -1
- package/lib/languages/index.cjs +1 -1
- package/lib/languages/index.d.ts +3 -4
- package/lib/languages/store.cjs +1 -1
- package/lib/languages/store.d.ts +1 -1
- package/lib/layout/PLayout.css +1 -1
- package/lib/layout/PLayout.vue.cjs +1 -1
- package/lib/layout/PLayout.vue2.cjs +1 -1
- package/lib/layout/content/PTabs.css +1 -1
- package/lib/layout/content/PTabs.vue.cjs +1 -1
- package/lib/layout/content/PTabs.vue2.cjs +1 -1
- package/lib/layout/header/PHeader.css +1 -1
- package/lib/layout/header/PHeader.vue.cjs +1 -1
- package/lib/layout/header/PHeader.vue2.cjs +1 -1
- package/lib/layout/index.d.ts +2 -1
- package/lib/layout/sider/PLogo.css +1 -1
- package/lib/layout/sider/PLogo.vue.cjs +1 -1
- package/lib/layout/sider/PLogo.vue2.cjs +1 -1
- package/lib/layout/sider/PMenus.vue.cjs +1 -1
- package/lib/layout/{layout.cjs → store.cjs} +1 -1
- package/lib/layout/{layout.d.ts → store.d.ts} +2 -26
- package/lib/layout/typing.d.ts +25 -0
- package/lib/modal/PModal.d.ts +3 -3
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.d.ts +5 -5
- package/lib/modal/typing.d.ts +2 -2
- package/lib/oidc/POidc.css +1 -1
- package/lib/oidc/POidc.vue.cjs +1 -1
- package/lib/oidc/POidc.vue2.cjs +1 -1
- package/lib/oidc/index.cjs +1 -1
- package/lib/oidc/index.d.ts +3 -3
- package/lib/oidc/store.cjs +1 -1
- package/lib/oidc/store.d.ts +7 -11
- package/lib/oidc/typing.d.ts +5 -0
- package/lib/redirect/index.cjs +1 -1
- package/lib/redirect/index.d.ts +1 -2
- package/lib/table/index.cjs +1 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/table/typing.d.ts +8 -8
- package/package.json +1 -1
- package/es/typing.d.ts +0 -6
- package/lib/typing.d.ts +0 -6
package/es/layout/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export { useLayoutStore } from './store';
|
|
2
3
|
export declare const PEmptyLayoutPlugin: {
|
|
3
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
4
5
|
P: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.logo[data-v-
|
|
1
|
+
.logo[data-v-e48aeefa]{display:flex;align-items:center;justify-content:start;padding-left:16px;height:64px;line-height:64px;overflow:hidden;white-space:nowrap}.logo-size[data-v-e48aeefa]{font-size:20px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PLogo.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e48aeefa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as s, createElementBlock as r, createVNode as l, unref as o, normalizeClass as a, withDirectives as c, createElementVNode as n, toDisplayString as i, vShow as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { useLayoutStore as p } from "../store.js";
|
|
3
3
|
import { NAvatar as _ } from "naive-ui";
|
|
4
4
|
const d = { class: "logo" }, N = /* @__PURE__ */ t({
|
|
5
5
|
__name: "PLogo",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k, ref as d, watch as B, onMounted as
|
|
2
|
-
import { NMenu as
|
|
1
|
+
import { defineComponent as k, ref as d, watch as B, onMounted as S, openBlock as y, createBlock as O, unref as v } from "vue";
|
|
2
|
+
import { NMenu as P } from "naive-ui";
|
|
3
3
|
import { useRoute as U, useRouter as b } from "vue-router";
|
|
4
|
-
import {
|
|
4
|
+
import { useLayoutStore as z } from "../store.js";
|
|
5
5
|
const j = /* @__PURE__ */ k({
|
|
6
6
|
__name: "PMenus",
|
|
7
7
|
setup(C) {
|
|
@@ -67,9 +67,9 @@ const j = /* @__PURE__ */ k({
|
|
|
67
67
|
() => {
|
|
68
68
|
p();
|
|
69
69
|
}
|
|
70
|
-
),
|
|
70
|
+
), S(() => {
|
|
71
71
|
w(), p();
|
|
72
|
-
}), (t, n) => (
|
|
72
|
+
}), (t, n) => (y(), O(v(P), {
|
|
73
73
|
class: "h-full",
|
|
74
74
|
inverted: "",
|
|
75
75
|
mode: "vertical",
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
fullPath: string;
|
|
4
|
-
path: string;
|
|
5
|
-
name: string;
|
|
6
|
-
hash: string;
|
|
7
|
-
meta: object;
|
|
8
|
-
params: object;
|
|
9
|
-
query: object;
|
|
10
|
-
};
|
|
11
|
-
export interface PLayoutState {
|
|
12
|
-
title: string;
|
|
13
|
-
logo: string;
|
|
14
|
-
uid: string;
|
|
15
|
-
uname: string;
|
|
16
|
-
avatar: string;
|
|
17
|
-
collapsed: boolean;
|
|
18
|
-
tabs: RouteItem[];
|
|
19
|
-
cacheTabs: boolean;
|
|
20
|
-
settingPages?: {
|
|
21
|
-
route: string;
|
|
22
|
-
title: string;
|
|
23
|
-
}[];
|
|
24
|
-
logout?: () => Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
export declare const usePLayoutStore: import('pinia').StoreDefinition<"p-layout", Pick<{
|
|
1
|
+
import { RouteItem } from './typing';
|
|
2
|
+
export declare const useLayoutStore: import('pinia').StoreDefinition<"p-layout", Pick<{
|
|
27
3
|
state: {
|
|
28
4
|
title: string;
|
|
29
5
|
logo: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
export type RouteItem = Partial<RouteLocationNormalized> & {
|
|
3
|
+
fullPath: string;
|
|
4
|
+
path: string;
|
|
5
|
+
name: string;
|
|
6
|
+
hash: string;
|
|
7
|
+
meta: object;
|
|
8
|
+
params: object;
|
|
9
|
+
query: object;
|
|
10
|
+
};
|
|
11
|
+
export type LayoutState = {
|
|
12
|
+
title: string;
|
|
13
|
+
logo: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
uname: string;
|
|
16
|
+
avatar: string;
|
|
17
|
+
collapsed: boolean;
|
|
18
|
+
tabs: RouteItem[];
|
|
19
|
+
cacheTabs: boolean;
|
|
20
|
+
settingPages?: {
|
|
21
|
+
route: string;
|
|
22
|
+
title: string;
|
|
23
|
+
}[];
|
|
24
|
+
logout?: () => Promise<void>;
|
|
25
|
+
};
|
package/es/modal/PModal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModalProps } from './typing';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -2101,13 +2101,13 @@ declare function __VLS_template(): {
|
|
|
2101
2101
|
rootEl: any;
|
|
2102
2102
|
};
|
|
2103
2103
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
2104
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
2104
|
+
declare const __VLS_component: import('vue').DefineComponent<ModalProps, {
|
|
2105
2105
|
open: () => void;
|
|
2106
2106
|
close: () => void;
|
|
2107
2107
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2108
2108
|
"update:visible": (...args: any[]) => void;
|
|
2109
2109
|
"update:loading": (...args: any[]) => void;
|
|
2110
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
2110
|
+
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
|
2111
2111
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
2112
2112
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
2113
2113
|
}>, {
|
package/es/modal/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export declare const PModalPlugin: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./typing').ModalProps> & Readonly<{
|
|
3
4
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
4
5
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
5
6
|
}>, {
|
|
@@ -2107,7 +2108,7 @@ declare const _default: {
|
|
|
2107
2108
|
C: {};
|
|
2108
2109
|
M: {};
|
|
2109
2110
|
Defaults: {};
|
|
2110
|
-
}, Readonly<import('./typing').
|
|
2111
|
+
}, Readonly<import('./typing').ModalProps> & Readonly<{
|
|
2111
2112
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
2112
2113
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
2113
2114
|
}>, {
|
|
@@ -2122,7 +2123,7 @@ declare const _default: {
|
|
|
2122
2123
|
__isFragment?: never;
|
|
2123
2124
|
__isTeleport?: never;
|
|
2124
2125
|
__isSuspense?: never;
|
|
2125
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./typing').
|
|
2126
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./typing').ModalProps> & Readonly<{
|
|
2126
2127
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
2127
2128
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
2128
2129
|
}>, {
|
|
@@ -2147,4 +2148,3 @@ declare const _default: {
|
|
|
2147
2148
|
}): any;
|
|
2148
2149
|
};
|
|
2149
2150
|
}) & import('vue').Plugin;
|
|
2150
|
-
export default _default;
|
package/es/modal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
const r = o
|
|
1
|
+
import o from "./PModal.vue.js";
|
|
2
|
+
import { withInstall as t } from "../utils/install.js";
|
|
3
|
+
const r = t(o);
|
|
4
4
|
export {
|
|
5
|
-
r as
|
|
5
|
+
r as PModalPlugin
|
|
6
6
|
};
|
package/es/modal/typing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ModalProps = {
|
|
2
2
|
saveBtnText?: string;
|
|
3
3
|
closable?: boolean;
|
|
4
4
|
title?: string;
|
|
@@ -9,7 +9,7 @@ export type PModalProps = {
|
|
|
9
9
|
onSave?: () => Promise<boolean> | boolean;
|
|
10
10
|
onClose?: () => Promise<boolean> | boolean;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type ModalMethods = {
|
|
13
13
|
open: () => void;
|
|
14
14
|
close: () => void;
|
|
15
15
|
};
|
package/es/oidc/POidc.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.view-auth-callback[data-v-
|
|
1
|
+
.view-auth-callback[data-v-9af221fc]{display:flex;flex-direction:column;height:100vh;overflow:auto}.view-auth-callback-content[data-v-9af221fc]{flex:1;padding:32px 12px;display:flex;justify-content:center;align-items:center}.view-auth-callback-spinner[data-v-9af221fc]{display:flex;justify-content:center;align-items:center;height:100px}
|
package/es/oidc/POidc.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./POidc.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9af221fc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
package/es/oidc/POidc.vue2.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as n, onMounted as l, openBlock as s, createElementBlock as i, createElementVNode as
|
|
1
|
+
import { defineComponent as n, onMounted as l, openBlock as s, createElementBlock as i, createElementVNode as t } from "vue";
|
|
2
2
|
import { useRouter as u } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { useOidcStore as m } from "./store.js";
|
|
4
4
|
const p = { class: "view-auth-callback" }, v = /* @__PURE__ */ n({
|
|
5
5
|
__name: "POidc",
|
|
6
6
|
setup(d) {
|
|
7
|
-
const r = u(), { callCallback:
|
|
7
|
+
const r = u(), { callCallback: a, callError: c } = m();
|
|
8
8
|
return l(async () => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
await a();
|
|
11
11
|
} catch (e) {
|
|
12
|
-
console.error("OIDC回调处理失败:", e),
|
|
12
|
+
console.error("OIDC回调处理失败:", e), await c(r, e);
|
|
13
13
|
}
|
|
14
|
-
}), (e,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
}), (e, o) => (s(), i("div", p, [...o[0] || (o[0] = [
|
|
15
|
+
t("div", { class: "view-auth-callback-content" }, [
|
|
16
|
+
t("div", { class: "view-auth-callback-spinner" }, [
|
|
17
|
+
t("span", null, "正在处理登录回调...")
|
|
18
18
|
])
|
|
19
19
|
], -1)
|
|
20
20
|
])]));
|
package/es/oidc/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export { useOidcStore } from './store';
|
|
3
|
+
export declare const POidcPlugin: {
|
|
3
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
5
|
P: {};
|
|
5
6
|
B: {};
|
|
@@ -12,4 +13,3 @@ declare const _default: {
|
|
|
12
13
|
__isTeleport?: never;
|
|
13
14
|
__isSuspense?: never;
|
|
14
15
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/oidc/index.js
CHANGED
package/es/oidc/store.d.ts
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { Router } from 'vue-router';
|
|
2
|
-
export
|
|
3
|
-
error?: (router: Router, error: Error) => void;
|
|
4
|
-
callback?: () => Promise<void>;
|
|
5
|
-
};
|
|
6
|
-
export declare const usePOidcStore: import('pinia').StoreDefinition<"oidc", Pick<{
|
|
2
|
+
export declare const useOidcStore: import('pinia').StoreDefinition<"oidc", Pick<{
|
|
7
3
|
setCallback: (callback: () => Promise<void>) => void;
|
|
8
4
|
callCallback: () => Promise<void>;
|
|
9
|
-
setError: (error: (router: Router) => void) => void;
|
|
10
|
-
callError: (router: Router, error: Error) => void
|
|
5
|
+
setError: (error: (router: Router, error: Error) => Promise<void>) => void;
|
|
6
|
+
callError: (router: Router, error: Error) => Promise<void>;
|
|
11
7
|
}, never>, Pick<{
|
|
12
8
|
setCallback: (callback: () => Promise<void>) => void;
|
|
13
9
|
callCallback: () => Promise<void>;
|
|
14
|
-
setError: (error: (router: Router) => void) => void;
|
|
15
|
-
callError: (router: Router, error: Error) => void
|
|
10
|
+
setError: (error: (router: Router, error: Error) => Promise<void>) => void;
|
|
11
|
+
callError: (router: Router, error: Error) => Promise<void>;
|
|
16
12
|
}, never>, Pick<{
|
|
17
13
|
setCallback: (callback: () => Promise<void>) => void;
|
|
18
14
|
callCallback: () => Promise<void>;
|
|
19
|
-
setError: (error: (router: Router) => void) => void;
|
|
20
|
-
callError: (router: Router, error: Error) => void
|
|
15
|
+
setError: (error: (router: Router, error: Error) => Promise<void>) => void;
|
|
16
|
+
callError: (router: Router, error: Error) => Promise<void>;
|
|
21
17
|
}, "setCallback" | "callCallback" | "setError" | "callError">>;
|
package/es/oidc/store.js
CHANGED
|
@@ -5,20 +5,20 @@ const k = l("oidc", () => {
|
|
|
5
5
|
callback: void 0
|
|
6
6
|
});
|
|
7
7
|
return {
|
|
8
|
-
setCallback: (
|
|
9
|
-
r.callback =
|
|
8
|
+
setCallback: (a) => {
|
|
9
|
+
r.callback = a;
|
|
10
10
|
},
|
|
11
11
|
callCallback: async () => {
|
|
12
12
|
r.callback && await r.callback();
|
|
13
13
|
},
|
|
14
|
-
setError: (
|
|
15
|
-
r.error =
|
|
14
|
+
setError: (a) => {
|
|
15
|
+
r.error = a;
|
|
16
16
|
},
|
|
17
|
-
callError: (
|
|
18
|
-
r.error && r.error(
|
|
17
|
+
callError: async (a, c) => {
|
|
18
|
+
r.error && await r.error(a, c);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
export {
|
|
23
|
-
k as
|
|
23
|
+
k as useOidcStore
|
|
24
24
|
};
|
package/es/redirect/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const PRedirectPlugin: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
3
|
P: {};
|
|
4
4
|
B: {};
|
|
@@ -11,4 +11,3 @@ declare const _default: {
|
|
|
11
11
|
__isTeleport?: never;
|
|
12
12
|
__isSuspense?: never;
|
|
13
13
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
package/es/redirect/index.js
CHANGED
package/es/table/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export declare const PTablePlugin: {
|
|
2
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./typing').DataTableProps> & Readonly<{}>, {
|
|
3
4
|
refreshData: () => Promise<void>;
|
|
4
5
|
getData: <T>() => T[];
|
|
@@ -61,4 +62,3 @@ declare const _default: {
|
|
|
61
62
|
editModal?(_: {}): any;
|
|
62
63
|
};
|
|
63
64
|
}) & import('vue').Plugin;
|
|
64
|
-
export default _default;
|
package/es/table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
const r = o
|
|
1
|
+
import o from "./PTable.vue.js";
|
|
2
|
+
import { withInstall as t } from "../utils/install.js";
|
|
3
|
+
const r = t(o);
|
|
4
4
|
export {
|
|
5
|
-
r as
|
|
5
|
+
r as PTablePlugin
|
|
6
6
|
};
|
package/es/table/typing.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
|
-
export
|
|
2
|
+
export type DataTableColumnActionDefine = {
|
|
3
3
|
name: string;
|
|
4
4
|
key: string;
|
|
5
5
|
icon?: string;
|
|
6
6
|
action: (row: any) => void;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type DataTableColumnDefine = {
|
|
9
9
|
title: string;
|
|
10
10
|
key: string;
|
|
11
11
|
width?: number;
|
|
@@ -13,8 +13,8 @@ export interface DataTableColumnDefine {
|
|
|
13
13
|
ellipsis?: boolean;
|
|
14
14
|
action?: DataTableColumnActionDefine[];
|
|
15
15
|
render?: (data: any, index: number) => VNodeChild;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
16
|
+
};
|
|
17
|
+
export type DataTableProps = {
|
|
18
18
|
idField?: string;
|
|
19
19
|
item?: any;
|
|
20
20
|
columns: DataTableColumnDefine[];
|
|
@@ -31,12 +31,12 @@ export interface DataTableProps {
|
|
|
31
31
|
onCloseModal?: (item?: any) => void;
|
|
32
32
|
onSave?: (id?: string | number, row?: any) => Promise<boolean> | boolean;
|
|
33
33
|
onDelete?: (rows: any[]) => Promise<boolean> | boolean;
|
|
34
|
-
}
|
|
35
|
-
export
|
|
34
|
+
};
|
|
35
|
+
export type DataTableMethods = {
|
|
36
36
|
refreshData: () => Promise<void>;
|
|
37
37
|
getData: <T>() => T[];
|
|
38
38
|
getSelectedRows: <T>() => T[];
|
|
39
39
|
closeModal: () => void;
|
|
40
40
|
resetPage: () => void;
|
|
41
41
|
getSelectedRow: <T>() => T;
|
|
42
|
-
}
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../utils/install.cjs"),e=require("./PApplication.vue.cjs"),i=t.withInstall(e.default);exports.PApplicationPlugin=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const PApplicationPlugin: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
3
|
theme?: any;
|
|
4
4
|
themeOverrides?: any;
|
|
@@ -30,4 +30,3 @@ declare const _default: {
|
|
|
30
30
|
default?(_: {}): any;
|
|
31
31
|
};
|
|
32
32
|
}) & import('vue').Plugin;
|
|
33
|
-
export default _default;
|
package/lib/components.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./table/index.cjs"),i=require("./layout/index.cjs"),n=require("./application/index.cjs"),u=require("./modal/index.cjs"),r=require("./languages/index.cjs"),t=require("./redirect/index.cjs"),l=require("./iframe/index.cjs"),e=require("./error/index.cjs"),o=require("./oidc/index.cjs");exports.PTable=P.PTablePlugin;exports.PEmptyLayout=i.PEmptyLayoutPlugin;exports.PLayout=i.PLayoutPlugin;exports.PApplication=n.PApplicationPlugin;exports.PModal=u.PModalPlugin;exports.PLanguage=r.PLanguagePlugin;exports.PRedirect=t.PRedirectPlugin;exports.PIframe=l.PIframePlugin;exports.P403=e.P403Plugin;exports.P404=e.P404Plugin;exports.P500=e.P500Plugin;exports.POidc=o.POidcPlugin;
|
package/lib/components.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { PLayoutPlugin, PEmptyLayoutPlugin } from './layout';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { P500Plugin, P404Plugin, P403Plugin } from './error';
|
|
9
|
-
export {
|
|
1
|
+
export { PTablePlugin as PTable } from './table';
|
|
2
|
+
export { PLayoutPlugin as PLayout, PEmptyLayoutPlugin as PEmptyLayout, } from './layout';
|
|
3
|
+
export { PApplicationPlugin as PApplication } from './application';
|
|
4
|
+
export { PModalPlugin as PModal } from './modal';
|
|
5
|
+
export { PLanguagePlugin as PLanguage } from './languages';
|
|
6
|
+
export { PRedirectPlugin as PRedirect } from './redirect';
|
|
7
|
+
export { PIframePlugin as PIframe } from './iframe';
|
|
8
|
+
export { P500Plugin as P500, P404Plugin as P404, P403Plugin as P403, } from './error';
|
|
9
|
+
export { POidcPlugin as POidc } from './oidc';
|
package/lib/iframe/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils/install.cjs"),t=require("./PIframe.vue.cjs"),r=e.withInstall(t.default);exports.PIframePlugin=r;
|
package/lib/iframe/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const PIframePlugin: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
3
3
|
frameRef: HTMLIFrameElement;
|
|
4
4
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -13,4 +13,3 @@ declare const _default: {
|
|
|
13
13
|
__isTeleport?: never;
|
|
14
14
|
__isSuspense?: never;
|
|
15
15
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
16
|
-
export default _default;
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./components.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./components.cjs"),u=require("./layout/index.cjs"),P=require("./languages/index.cjs"),s=require("./oidc/index.cjs"),e=require("./error/index.cjs"),l=require("./application/index.cjs"),a=require("./iframe/index.cjs"),c=require("./modal/index.cjs"),d=require("./redirect/index.cjs"),g=require("./table/index.cjs"),q=require("./languages/store.cjs"),$=require("./layout/store.cjs"),x=require("./oidc/store.cjs"),t=(i,r)=>(Object.values(o).forEach(n=>{n.install&&i.use(n)}),r?.(),i),L={install:t};exports.PEmptyLayout=u.PEmptyLayoutPlugin;exports.PLayout=u.PLayoutPlugin;exports.PLanguage=P.PLanguagePlugin;exports.POidc=s.POidcPlugin;exports.P403=e.P403Plugin;exports.P404=e.P404Plugin;exports.P500=e.P500Plugin;exports.PApplication=l.PApplicationPlugin;exports.PIframe=a.PIframePlugin;exports.PModal=c.PModalPlugin;exports.PRedirect=d.PRedirectPlugin;exports.PTable=g.PTablePlugin;exports.useLanguageStore=q.useLanguageStore;exports.useLayoutStore=$.useLayoutStore;exports.useOidcStore=x.useOidcStore;exports.default=L;exports.install=t;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
export * from './components';
|
|
3
|
-
export
|
|
3
|
+
export { useLayoutStore, type LayoutState, type RouteItem } from './layout';
|
|
4
|
+
export { useLanguageStore, type LanguageOption, type LanguageState, } from './languages';
|
|
5
|
+
export { useOidcStore, type OidcState } from './oidc';
|
|
6
|
+
export type { ModalProps, ModalMethods } from './modal';
|
|
7
|
+
export type { DataTableColumnActionDefine, DataTableColumnDefine, DataTableProps, DataTableMethods, } from './table';
|
|
4
8
|
export type { NaivePlusUIResolver } from './utils/resolver';
|
|
5
9
|
export declare const install: (app: App, callback?: () => void) => App<any>;
|
|
6
10
|
declare const _default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("naive-ui"),e=require("vue"),f=require("./store.cjs"),d={key:1},_=e.defineComponent({__name:"PLanguage",setup(w){const r=t=>s(t),{select:s,getLanguages:a,getCurrentLanguage:l,getDefaultLanguage:i,getTranslationApiUrl:c}=f.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("naive-ui"),e=require("vue"),f=require("./store.cjs"),d={key:1},_=e.defineComponent({__name:"PLanguage",setup(w){const r=t=>s(t),{select:s,getLanguages:a,getCurrentLanguage:l,getDefaultLanguage:i,getTranslationApiUrl:c}=f.useLanguageStore(),u=()=>{const t=window.translate;t&&(t.selectLanguageTag.show=!1,t.selectLanguageTag.languages=a().map(n=>n.key).join(","),t.ignore.class.push("ignore-translate-flag"),t.ignore.id.push("ignore-translation"),t.language.setLocal(i()),t.request.api.translate="api/v1/translation",t.request.api.connectTest="api/v1/translation/connect-test",t.request.api.init="api/v1/translation/init",t.request.api.language="api/v1/translation/language",t.request.setHost(c()),t.request.listener.start(),t.listener.start(),t.whole.enableAll(),t.execute())};return e.onMounted(async()=>await e.nextTick(()=>u())),(t,n)=>{const g=o.NIcon,p=o.NButton;return e.unref(a)().length>0?(e.openBlock(),e.createBlock(e.unref(o.NDropdown),{key:0,id:"ignore-translation",placement:"bottom-start",trigger:"hover",class:"flex flex-col justify-center h-full ignore",onSelect:r,options:e.unref(a)()},{default:e.withCtx(()=>[e.createVNode(p,{quaternary:"",type:"info"},{default:e.withCtx(()=>[e.unref(l)()?(e.openBlock(),e.createElementBlock("label",d,e.toDisplayString(e.unref(l)()?.label),1)):(e.openBlock(),e.createBlock(g,{key:0,size:"18"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[e.createElementVNode("path",{d:"M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",fill:"currentColor"}),e.createElementVNode("path",{d:"M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",fill:"currentColor"})],-1)])]),_:1}))]),_:1})]),_:1},8,["options"])):e.createCommentVNode("",!0)}}});exports.default=_;
|
package/lib/languages/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils/install.cjs"),t=require("./PLanguage.vue.cjs"),u=e.withInstall(t.default);exports.PLanguagePlugin=u;
|
package/lib/languages/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export {
|
|
3
|
-
export declare const
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export { useLanguageStore } from './store';
|
|
3
|
+
export declare const PLanguagePlugin: {
|
|
4
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
5
|
P: {};
|
|
6
6
|
B: {};
|
|
@@ -13,4 +13,3 @@ export declare const PLanguageSwitch: {
|
|
|
13
13
|
__isTeleport?: never;
|
|
14
14
|
__isSuspense?: never;
|
|
15
15
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
16
|
-
export default PLanguageSwitch;
|
package/lib/languages/store.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("pinia"),n=require("vue"),p={translationApiUrl:"https://translate.zvo.cn/api",defaultLanguage:"chinese",currentLanguage:"",options:[],selectCallback:e=>{},initLanguage:e=>{}},d=L.defineStore("language",()=>{const e=n.ref(p),u=a=>{a.forEach(t=>{(t.key==="Chinese"||t.key==="chinese")&&(t.key="chinese_simplified")}),e.value.options=[...a]},i=()=>e.value.options,r=a=>{if(e.value.currentLanguage===a)return;const t=e.value.options.find(v=>v.key===a);t&&(e.value.currentLanguage=t.key,e.value.selectCallback(t))},l=()=>{if(e.value.currentLanguage)return e.value.options.find(a=>a.key===e.value.currentLanguage)},s=a=>{e.value.selectCallback=a},o=()=>e.value.translationApiUrl,c=a=>{e.value.translationApiUrl=a},g=a=>{(a==="Chinese"||a==="chinese")&&(a="chinese_simplified"),e.value.defaultLanguage=a},f=()=>e.value.defaultLanguage?e.value.defaultLanguage:"chinese_simplified";return n.onMounted(()=>{e.value.initLanguage(e.value)}),{state:e,select:r,setLanguages:u,getLanguages:i,getCurrentLanguage:l,setSelectCallback:s,setTranslationApiUrl:c,getTranslationApiUrl:o,setDefaultLanguage:g,getDefaultLanguage:f}});exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("pinia"),n=require("vue"),p={translationApiUrl:"https://translate.zvo.cn/api",defaultLanguage:"chinese",currentLanguage:"",options:[],selectCallback:e=>{},initLanguage:e=>{}},d=L.defineStore("language",()=>{const e=n.ref(p),u=a=>{a.forEach(t=>{(t.key==="Chinese"||t.key==="chinese")&&(t.key="chinese_simplified")}),e.value.options=[...a]},i=()=>e.value.options,r=a=>{if(e.value.currentLanguage===a)return;const t=e.value.options.find(v=>v.key===a);t&&(e.value.currentLanguage=t.key,e.value.selectCallback(t))},l=()=>{if(e.value.currentLanguage)return e.value.options.find(a=>a.key===e.value.currentLanguage)},s=a=>{e.value.selectCallback=a},o=()=>e.value.translationApiUrl,c=a=>{e.value.translationApiUrl=a},g=a=>{(a==="Chinese"||a==="chinese")&&(a="chinese_simplified"),e.value.defaultLanguage=a},f=()=>e.value.defaultLanguage?e.value.defaultLanguage:"chinese_simplified";return n.onMounted(()=>{e.value.initLanguage(e.value)}),{state:e,select:r,setLanguages:u,getLanguages:i,getCurrentLanguage:l,setSelectCallback:s,setTranslationApiUrl:c,getTranslationApiUrl:o,setDefaultLanguage:g,getDefaultLanguage:f}});exports.useLanguageStore=d;
|
package/lib/languages/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LanguageOption, LanguageState } from './typing';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useLanguageStore: import('pinia').StoreDefinition<"language", Pick<{
|
|
3
3
|
state: import('vue').Ref<{
|
|
4
4
|
translationApiUrl: string;
|
|
5
5
|
defaultLanguage: string;
|
package/lib/layout/PLayout.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.layout[data-v-
|
|
1
|
+
.layout[data-v-8d20e006]{display:flex;flex-direction:row;flex:auto}.layout-default-background[data-v-8d20e006]{background:#f5f7f9}.layout .layout-sider[data-v-8d20e006]{min-height:100vh;box-shadow:2px 0 8px #1d23290d;position:relative;z-index:13;transition:all .2s ease-in-out}.layout .layout-sider-fix[data-v-8d20e006]{position:fixed;top:0;left:0}.layout .ant-layout[data-v-8d20e006]{overflow:hidden}.layout .layout-right-fix[data-v-8d20e006]{overflow-x:hidden;padding-left:200px;min-height:100vh;transition:all .2s ease-in-out}.layout .layout-content[data-v-8d20e006]{flex:auto;min-height:100vh}.layout .n-layout-header.n-layout-header--absolute-positioned[data-v-8d20e006]{z-index:11}.layout-content-main[data-v-8d20e006]{margin:0 10px 10px;position:relative;padding-top:64px}.layout-content-main-fix[data-v-8d20e006]{padding-top:64px}.main-view-fix[data-v-8d20e006]{padding-top:44px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./PLayout.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./PLayout.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-8d20e006"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("naive-ui"),e=require("vue"),r=require("./sider/PLogo.vue.cjs"),u=require("./header/PHeader.vue.cjs"),s=require("./content/PContent.vue.cjs"),c=require("./content/PTabs.vue.cjs"),i=require("./sider/PMenus.vue.cjs"),d=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("naive-ui"),e=require("vue"),r=require("./sider/PLogo.vue.cjs"),u=require("./header/PHeader.vue.cjs"),s=require("./content/PContent.vue.cjs"),c=require("./content/PTabs.vue.cjs"),i=require("./sider/PMenus.vue.cjs"),d=require("./store.cjs"),_={class:"layout-content-main layout-content-main-fix"},f={class:"main-view main-view-fix"},p=e.defineComponent({__name:"PLayout",setup(N){const o=d.useLayoutStore(),a=e.ref(!1),l=()=>{a.value=!0,e.nextTick(()=>a.value=!1)};return e.provide("reloadPage",l),(v,y)=>{const n=t.NBackTop;return e.openBlock(),e.createBlock(e.unref(t.NLayout),{"has-sider":"",class:"layout",position:"absolute"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.NLayoutSider),{class:"layout-sider",inverted:"","show-trigger":"bar",position:"absolute","collapse-mode":"width",collapsed:e.unref(o).state.collapsed,"native-scrollbar":!1,"collapsed-width":64,onCollapse:e.unref(o).collapse,onExpand:e.unref(o).collapse},{default:e.withCtx(()=>[e.createVNode(e.unref(t.NFlex),{vertical:""},{default:e.withCtx(()=>[e.createVNode(r.default),e.createVNode(i.default)]),_:1})]),_:1},8,["collapsed","onCollapse","onExpand"]),e.createVNode(e.unref(t.NLayout),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.NLayoutHeader),{position:"absolute"},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1}),e.createVNode(e.unref(t.NLayoutContent),{class:"layout-content layout-default-background"},{default:e.withCtx(()=>[e.createElementVNode("div",_,[e.createVNode(c.default),e.createElementVNode("div",f,[e.createVNode(s.default,{loading:a.value},null,8,["loading"])])])]),_:1}),e.createVNode(n,{right:20,class:"z-50"})]),_:1})]),_:1})}}});exports.default=p;
|