@chewel611/naive-ui-plus 0.0.19 → 0.0.21
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/LICENSE +21 -0
- package/dist/index.js +804 -676
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/es/application/PApplication.vue.js +16 -16
- package/es/application/index.d.ts +1 -2
- package/es/application/index.js +4 -4
- package/es/components.d.ts +9 -5
- package/es/components.js +20 -9
- package/es/error/P403.css +1 -0
- package/es/error/P403.d.ts +2 -0
- package/es/error/P403.vue.js +19 -0
- package/es/error/P404.css +1 -0
- package/es/error/P404.d.ts +2 -0
- package/es/error/P404.vue.js +19 -0
- package/es/error/P500.css +1 -0
- package/es/error/P500.d.ts +2 -0
- package/es/error/P500.vue.js +19 -0
- package/es/error/index.d.ts +39 -0
- package/es/error/index.js +10 -0
- package/es/iframe/PIframe.css +1 -0
- package/es/iframe/PIframe.d.ts +4 -0
- package/es/iframe/PIframe.vue.js +7 -0
- package/es/iframe/PIframe.vue2.js +46 -0
- package/es/iframe/index.d.ts +15 -0
- package/es/iframe/index.js +6 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +34 -21
- package/es/languages/PLanguage.vue.js +28 -28
- 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/PEmptyLayout.d.ts +2 -0
- package/es/layout/PEmptyLayout.vue.js +11 -0
- package/es/layout/PLayout.css +1 -1
- package/es/layout/PLayout.vue.js +1 -1
- package/es/layout/PLayout.vue2.js +6 -6
- package/es/layout/content/PContent.vue.js +10 -10
- package/es/layout/content/PTabs.css +1 -1
- package/es/layout/content/PTabs.vue.js +2 -2
- package/es/layout/content/PTabs.vue2.js +60 -57
- package/es/layout/header/PHeader.css +1 -1
- package/es/layout/header/PHeader.vue.js +2 -2
- package/es/layout/header/PHeader.vue2.js +10 -17
- package/es/layout/index.d.ts +16 -3
- package/es/layout/index.js +6 -4
- package/es/layout/sider/PLogo.css +1 -1
- package/es/layout/sider/PLogo.vue.js +2 -2
- package/es/layout/sider/PLogo.vue2.js +5 -5
- package/es/layout/sider/PMenus.vue.js +5 -5
- package/es/layout/{layout.d.ts → store.d.ts} +236 -251
- package/es/layout/{layout.js → store.js} +1 -1
- package/es/layout/typing.d.ts +25 -0
- package/es/modal/PModal.d.ts +87 -59
- package/es/modal/PModal.vue.js +37 -38
- package/es/modal/index.d.ts +47 -33
- package/es/modal/index.js +4 -4
- package/es/modal/typing.d.ts +2 -2
- package/es/oidc/POidc.css +1 -0
- package/es/oidc/POidc.d.ts +2 -0
- package/es/oidc/POidc.vue.js +7 -0
- package/es/oidc/POidc.vue2.js +25 -0
- package/es/oidc/index.d.ts +15 -0
- package/es/oidc/index.js +6 -0
- package/es/oidc/store.d.ts +17 -0
- package/es/oidc/store.js +24 -0
- package/es/oidc/typing.d.ts +5 -0
- package/es/redirect/PRedirect.d.ts +2 -0
- package/es/redirect/PRedirect.vue.js +19 -0
- package/es/redirect/PRedirect.vue2.js +4 -0
- package/es/redirect/index.d.ts +13 -0
- package/es/redirect/index.js +6 -0
- package/es/table/PTable.vue.js +114 -121
- 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/PApplication.vue.cjs +1 -1
- 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 -5
- package/lib/error/P403.css +1 -0
- package/lib/error/P403.d.ts +2 -0
- package/lib/error/P403.vue.cjs +1 -0
- package/lib/error/P404.css +1 -0
- package/lib/error/P404.d.ts +2 -0
- package/lib/error/P404.vue.cjs +1 -0
- package/lib/error/P500.css +1 -0
- package/lib/error/P500.d.ts +2 -0
- package/lib/error/P500.vue.cjs +1 -0
- package/lib/error/index.cjs +1 -0
- package/lib/error/index.d.ts +39 -0
- package/lib/iframe/PIframe.css +1 -0
- package/lib/iframe/PIframe.d.ts +4 -0
- package/lib/iframe/PIframe.vue.cjs +1 -0
- package/lib/iframe/PIframe.vue2.cjs +1 -0
- package/lib/iframe/index.cjs +1 -0
- package/lib/iframe/index.d.ts +15 -0
- 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/PEmptyLayout.d.ts +2 -0
- package/lib/layout/PEmptyLayout.vue.cjs +1 -0
- 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/PContent.vue.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.cjs +1 -1
- package/lib/layout/index.d.ts +16 -3
- 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} +236 -251
- package/lib/layout/typing.d.ts +25 -0
- package/lib/modal/PModal.d.ts +87 -59
- package/lib/modal/PModal.vue.cjs +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.d.ts +47 -33
- package/lib/modal/typing.d.ts +2 -2
- package/lib/oidc/POidc.css +1 -0
- package/lib/oidc/POidc.d.ts +2 -0
- package/lib/oidc/POidc.vue.cjs +1 -0
- package/lib/oidc/POidc.vue2.cjs +1 -0
- package/lib/oidc/index.cjs +1 -0
- package/lib/oidc/index.d.ts +15 -0
- package/lib/oidc/store.cjs +1 -0
- package/lib/oidc/store.d.ts +17 -0
- package/lib/oidc/typing.d.ts +5 -0
- package/lib/redirect/PRedirect.d.ts +2 -0
- package/lib/redirect/PRedirect.vue.cjs +1 -0
- package/lib/redirect/PRedirect.vue2.cjs +1 -0
- package/lib/redirect/index.cjs +1 -0
- package/lib/redirect/index.d.ts +13 -0
- package/lib/table/PTable.vue.cjs +1 -1
- 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 +21 -24
- package/es/typing.d.ts +0 -5
- package/lib/typing.d.ts +0 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useMessage as z, useDialog as L, NIcon as d, NBreadcrumb as M, NBreadcrumbItem as x, NDropdown as k, NTooltip as I, NDivider as V, NAvatar as A } from "naive-ui";
|
|
2
|
-
import { defineComponent as U, inject as j, computed as b, ref as q,
|
|
2
|
+
import { defineComponent as U, inject as j, computed as b, ref as q, openBlock as a, createElementBlock as g, createElementVNode as n, unref as e, createBlock as c, withCtx as i, createVNode as r, Fragment as N, renderList as H, resolveDynamicComponent as S, createCommentVNode as h, toDisplayString as _, withModifiers as $ } from "vue";
|
|
3
3
|
import G from "../../languages/PLanguage.vue.js";
|
|
4
4
|
import { MenuUnfoldOutlined as J, MenuFoldOutlined as K, ReloadOutlined as Q, FullscreenOutlined as W, FullscreenExitOutlined as X } from "@vicons/antd";
|
|
5
5
|
import { useRouter as Y, useRoute as Z } from "vue-router";
|
|
6
|
-
import {
|
|
6
|
+
import { useLayoutStore as ee } from "../store.js";
|
|
7
7
|
const te = { class: "layout-header" }, oe = { class: "layout-header-left" }, le = { class: "link-text" }, ne = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "link-text"
|
|
@@ -36,13 +36,7 @@ const te = { class: "layout-header" }, oe = { class: "layout-header-left" }, le
|
|
|
36
36
|
});
|
|
37
37
|
}), l;
|
|
38
38
|
}), w = (l) => {
|
|
39
|
-
|
|
40
|
-
case "logout":
|
|
41
|
-
T();
|
|
42
|
-
break;
|
|
43
|
-
default:
|
|
44
|
-
f.push({ name: l });
|
|
45
|
-
}
|
|
39
|
+
l === "logout" ? T() : f.push({ name: l });
|
|
46
40
|
}, T = () => {
|
|
47
41
|
C.info({
|
|
48
42
|
title: "提示",
|
|
@@ -118,18 +112,18 @@ const te = { class: "layout-header" }, oe = { class: "layout-header-left" }, le
|
|
|
118
112
|
}, {
|
|
119
113
|
default: i(() => [
|
|
120
114
|
n("span", le, [
|
|
121
|
-
o.icon ? (a(), c(S(o.icon), { key: 0 })) :
|
|
122
|
-
n("span", null,
|
|
115
|
+
o.icon ? (a(), c(S(o.icon), { key: 0 })) : h("", !0),
|
|
116
|
+
n("span", null, _(o.label), 1)
|
|
123
117
|
])
|
|
124
118
|
]),
|
|
125
119
|
_: 2
|
|
126
120
|
}, 1032, ["options"])) : (a(), g("span", ne, [
|
|
127
|
-
o.icon ? (a(), c(S(o.icon), { key: 0 })) :
|
|
128
|
-
n("span", null,
|
|
121
|
+
o.icon ? (a(), c(S(o.icon), { key: 0 })) : h("", !0),
|
|
122
|
+
n("span", null, _(o.label), 1)
|
|
129
123
|
]))
|
|
130
124
|
]),
|
|
131
125
|
_: 2
|
|
132
|
-
}, 1024)) :
|
|
126
|
+
}, 1024)) : h("", !0)
|
|
133
127
|
], 64))), 128))
|
|
134
128
|
]),
|
|
135
129
|
_: 1
|
|
@@ -155,8 +149,7 @@ const te = { class: "layout-header" }, oe = { class: "layout-header-left" }, le
|
|
|
155
149
|
default: i(() => [
|
|
156
150
|
t[2] || (t[2] = n("span", null, "全屏", -1))
|
|
157
151
|
]),
|
|
158
|
-
_: 1
|
|
159
|
-
__: [2]
|
|
152
|
+
_: 1
|
|
160
153
|
})
|
|
161
154
|
]),
|
|
162
155
|
n("div", ie, [
|
|
@@ -167,7 +160,7 @@ const te = { class: "layout-header" }, oe = { class: "layout-header-left" }, le
|
|
|
167
160
|
}, {
|
|
168
161
|
default: i(() => [
|
|
169
162
|
n("div", ce, [
|
|
170
|
-
n("span", null,
|
|
163
|
+
n("span", null, _(e(s).state.uname), 1),
|
|
171
164
|
r(D, { vertical: "" }),
|
|
172
165
|
r(R, {
|
|
173
166
|
round: "",
|
package/es/layout/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export type * from './typing';
|
|
2
|
+
export { useLayoutStore } from './store';
|
|
3
|
+
export declare const PEmptyLayoutPlugin: {
|
|
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
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
+
__isFragment?: never;
|
|
13
|
+
__isTeleport?: never;
|
|
14
|
+
__isSuspense?: never;
|
|
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 declare const PLayoutPlugin: {
|
|
3
17
|
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
18
|
P: {};
|
|
5
19
|
B: {};
|
|
@@ -12,4 +26,3 @@ declare const _default: {
|
|
|
12
26
|
__isTeleport?: never;
|
|
13
27
|
__isSuspense?: never;
|
|
14
28
|
} & 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/layout/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import o from "./PLayout.vue.js";
|
|
2
|
+
import m from "./PEmptyLayout.vue.js";
|
|
3
|
+
import { withInstall as t } from "../utils/install.js";
|
|
4
|
+
const u = t(m), y = t(o);
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
u as PEmptyLayoutPlugin,
|
|
7
|
+
y as PLayoutPlugin
|
|
6
8
|
};
|
|
@@ -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,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
2
|
-
import {
|
|
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 { 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",
|
|
6
6
|
setup(u) {
|
|
7
7
|
const e = p();
|
|
8
|
-
return (f, g) => (
|
|
8
|
+
return (f, g) => (s(), r("div", d, [
|
|
9
9
|
l(o(_), {
|
|
10
10
|
color: "var(--color-logo)",
|
|
11
11
|
size: 32,
|
|
12
12
|
src: o(e).state.logo,
|
|
13
|
-
class:
|
|
13
|
+
class: a({ "mr-2": !o(e).state.collapsed })
|
|
14
14
|
}, null, 8, ["src", "class"]),
|
|
15
|
-
|
|
15
|
+
c(n("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, i(o(e).state.title), 513), [
|
|
16
16
|
[m, !o(e).state.collapsed]
|
|
17
17
|
])
|
|
18
18
|
]));
|
|
@@ -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) => (y(),
|
|
72
|
+
}), (t, n) => (y(), O(v(P), {
|
|
73
73
|
class: "h-full",
|
|
74
74
|
inverted: "",
|
|
75
75
|
mode: "vertical",
|