@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.
Files changed (153) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +804 -676
  3. package/dist/index.umd.cjs +1 -1
  4. package/dist/style.css +1 -1
  5. package/es/application/PApplication.vue.js +16 -16
  6. package/es/application/index.d.ts +1 -2
  7. package/es/application/index.js +4 -4
  8. package/es/components.d.ts +9 -5
  9. package/es/components.js +20 -9
  10. package/es/error/P403.css +1 -0
  11. package/es/error/P403.d.ts +2 -0
  12. package/es/error/P403.vue.js +19 -0
  13. package/es/error/P404.css +1 -0
  14. package/es/error/P404.d.ts +2 -0
  15. package/es/error/P404.vue.js +19 -0
  16. package/es/error/P500.css +1 -0
  17. package/es/error/P500.d.ts +2 -0
  18. package/es/error/P500.vue.js +19 -0
  19. package/es/error/index.d.ts +39 -0
  20. package/es/error/index.js +10 -0
  21. package/es/iframe/PIframe.css +1 -0
  22. package/es/iframe/PIframe.d.ts +4 -0
  23. package/es/iframe/PIframe.vue.js +7 -0
  24. package/es/iframe/PIframe.vue2.js +46 -0
  25. package/es/iframe/index.d.ts +15 -0
  26. package/es/iframe/index.js +6 -0
  27. package/es/index.d.ts +5 -1
  28. package/es/index.js +34 -21
  29. package/es/languages/PLanguage.vue.js +28 -28
  30. package/es/languages/index.d.ts +3 -4
  31. package/es/languages/index.js +4 -5
  32. package/es/languages/store.d.ts +1 -1
  33. package/es/languages/store.js +1 -1
  34. package/es/layout/PEmptyLayout.d.ts +2 -0
  35. package/es/layout/PEmptyLayout.vue.js +11 -0
  36. package/es/layout/PLayout.css +1 -1
  37. package/es/layout/PLayout.vue.js +1 -1
  38. package/es/layout/PLayout.vue2.js +6 -6
  39. package/es/layout/content/PContent.vue.js +10 -10
  40. package/es/layout/content/PTabs.css +1 -1
  41. package/es/layout/content/PTabs.vue.js +2 -2
  42. package/es/layout/content/PTabs.vue2.js +60 -57
  43. package/es/layout/header/PHeader.css +1 -1
  44. package/es/layout/header/PHeader.vue.js +2 -2
  45. package/es/layout/header/PHeader.vue2.js +10 -17
  46. package/es/layout/index.d.ts +16 -3
  47. package/es/layout/index.js +6 -4
  48. package/es/layout/sider/PLogo.css +1 -1
  49. package/es/layout/sider/PLogo.vue.js +2 -2
  50. package/es/layout/sider/PLogo.vue2.js +5 -5
  51. package/es/layout/sider/PMenus.vue.js +5 -5
  52. package/es/layout/{layout.d.ts → store.d.ts} +236 -251
  53. package/es/layout/{layout.js → store.js} +1 -1
  54. package/es/layout/typing.d.ts +25 -0
  55. package/es/modal/PModal.d.ts +87 -59
  56. package/es/modal/PModal.vue.js +37 -38
  57. package/es/modal/index.d.ts +47 -33
  58. package/es/modal/index.js +4 -4
  59. package/es/modal/typing.d.ts +2 -2
  60. package/es/oidc/POidc.css +1 -0
  61. package/es/oidc/POidc.d.ts +2 -0
  62. package/es/oidc/POidc.vue.js +7 -0
  63. package/es/oidc/POidc.vue2.js +25 -0
  64. package/es/oidc/index.d.ts +15 -0
  65. package/es/oidc/index.js +6 -0
  66. package/es/oidc/store.d.ts +17 -0
  67. package/es/oidc/store.js +24 -0
  68. package/es/oidc/typing.d.ts +5 -0
  69. package/es/redirect/PRedirect.d.ts +2 -0
  70. package/es/redirect/PRedirect.vue.js +19 -0
  71. package/es/redirect/PRedirect.vue2.js +4 -0
  72. package/es/redirect/index.d.ts +13 -0
  73. package/es/redirect/index.js +6 -0
  74. package/es/table/PTable.vue.js +114 -121
  75. package/es/table/index.d.ts +2 -2
  76. package/es/table/index.js +4 -4
  77. package/es/table/typing.d.ts +8 -8
  78. package/lib/application/PApplication.vue.cjs +1 -1
  79. package/lib/application/index.cjs +1 -1
  80. package/lib/application/index.d.ts +1 -2
  81. package/lib/components.cjs +1 -1
  82. package/lib/components.d.ts +9 -5
  83. package/lib/error/P403.css +1 -0
  84. package/lib/error/P403.d.ts +2 -0
  85. package/lib/error/P403.vue.cjs +1 -0
  86. package/lib/error/P404.css +1 -0
  87. package/lib/error/P404.d.ts +2 -0
  88. package/lib/error/P404.vue.cjs +1 -0
  89. package/lib/error/P500.css +1 -0
  90. package/lib/error/P500.d.ts +2 -0
  91. package/lib/error/P500.vue.cjs +1 -0
  92. package/lib/error/index.cjs +1 -0
  93. package/lib/error/index.d.ts +39 -0
  94. package/lib/iframe/PIframe.css +1 -0
  95. package/lib/iframe/PIframe.d.ts +4 -0
  96. package/lib/iframe/PIframe.vue.cjs +1 -0
  97. package/lib/iframe/PIframe.vue2.cjs +1 -0
  98. package/lib/iframe/index.cjs +1 -0
  99. package/lib/iframe/index.d.ts +15 -0
  100. package/lib/index.cjs +1 -1
  101. package/lib/index.d.ts +5 -1
  102. package/lib/languages/PLanguage.vue.cjs +1 -1
  103. package/lib/languages/index.cjs +1 -1
  104. package/lib/languages/index.d.ts +3 -4
  105. package/lib/languages/store.cjs +1 -1
  106. package/lib/languages/store.d.ts +1 -1
  107. package/lib/layout/PEmptyLayout.d.ts +2 -0
  108. package/lib/layout/PEmptyLayout.vue.cjs +1 -0
  109. package/lib/layout/PLayout.css +1 -1
  110. package/lib/layout/PLayout.vue.cjs +1 -1
  111. package/lib/layout/PLayout.vue2.cjs +1 -1
  112. package/lib/layout/content/PContent.vue.cjs +1 -1
  113. package/lib/layout/content/PTabs.css +1 -1
  114. package/lib/layout/content/PTabs.vue.cjs +1 -1
  115. package/lib/layout/content/PTabs.vue2.cjs +1 -1
  116. package/lib/layout/header/PHeader.css +1 -1
  117. package/lib/layout/header/PHeader.vue.cjs +1 -1
  118. package/lib/layout/header/PHeader.vue2.cjs +1 -1
  119. package/lib/layout/index.cjs +1 -1
  120. package/lib/layout/index.d.ts +16 -3
  121. package/lib/layout/sider/PLogo.css +1 -1
  122. package/lib/layout/sider/PLogo.vue.cjs +1 -1
  123. package/lib/layout/sider/PLogo.vue2.cjs +1 -1
  124. package/lib/layout/sider/PMenus.vue.cjs +1 -1
  125. package/lib/layout/{layout.cjs → store.cjs} +1 -1
  126. package/lib/layout/{layout.d.ts → store.d.ts} +236 -251
  127. package/lib/layout/typing.d.ts +25 -0
  128. package/lib/modal/PModal.d.ts +87 -59
  129. package/lib/modal/PModal.vue.cjs +1 -1
  130. package/lib/modal/index.cjs +1 -1
  131. package/lib/modal/index.d.ts +47 -33
  132. package/lib/modal/typing.d.ts +2 -2
  133. package/lib/oidc/POidc.css +1 -0
  134. package/lib/oidc/POidc.d.ts +2 -0
  135. package/lib/oidc/POidc.vue.cjs +1 -0
  136. package/lib/oidc/POidc.vue2.cjs +1 -0
  137. package/lib/oidc/index.cjs +1 -0
  138. package/lib/oidc/index.d.ts +15 -0
  139. package/lib/oidc/store.cjs +1 -0
  140. package/lib/oidc/store.d.ts +17 -0
  141. package/lib/oidc/typing.d.ts +5 -0
  142. package/lib/redirect/PRedirect.d.ts +2 -0
  143. package/lib/redirect/PRedirect.vue.cjs +1 -0
  144. package/lib/redirect/PRedirect.vue2.cjs +1 -0
  145. package/lib/redirect/index.cjs +1 -0
  146. package/lib/redirect/index.d.ts +13 -0
  147. package/lib/table/PTable.vue.cjs +1 -1
  148. package/lib/table/index.cjs +1 -1
  149. package/lib/table/index.d.ts +2 -2
  150. package/lib/table/typing.d.ts +8 -8
  151. package/package.json +21 -24
  152. package/es/typing.d.ts +0 -5
  153. 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, createElementBlock as g, openBlock as a, createElementVNode as n, createVNode as r, unref as e, createBlock as c, withCtx as i, Fragment as N, renderList as H, createCommentVNode as _, resolveDynamicComponent as S, toDisplayString as h, withModifiers as $ } from "vue";
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 { usePLayoutStore as ee } from "../layout.js";
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
- switch (l) {
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 })) : _("", !0),
122
- n("span", null, h(o.label), 1)
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 })) : _("", !0),
128
- n("span", null, h(o.label), 1)
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)) : _("", !0)
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, h(e(s).state.uname), 1),
163
+ n("span", null, _(e(s).state.uname), 1),
171
164
  r(D, { vertical: "" }),
172
165
  r(R, {
173
166
  round: "",
@@ -1,5 +1,19 @@
1
- export { usePLayoutStore } from './layout';
2
- declare const _default: {
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;
@@ -1,6 +1,8 @@
1
- import t from "./PLayout.vue.js";
2
- import { withInstall as o } from "../utils/install.js";
3
- const i = o(t);
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
- i as default
6
+ u as PEmptyLayoutPlugin,
7
+ y as PLayoutPlugin
6
8
  };
@@ -1 +1 @@
1
- .logo[data-v-c9496d2e]{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-c9496d2e]{font-size:20px}
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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9496d2e"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e48aeefa"]]);
5
5
  export {
6
- _ as default
6
+ f as default
7
7
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as t, createElementBlock as s, openBlock as r, createVNode as l, withDirectives as a, unref as o, normalizeClass as c, createElementVNode as n, toDisplayString as i, vShow as m } from "vue";
2
- import { usePLayoutStore as p } from "../layout.js";
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) => (r(), s("div", d, [
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: c({ "mr-2": !o(e).state.collapsed })
13
+ class: a({ "mr-2": !o(e).state.collapsed })
14
14
  }, null, 8, ["src", "class"]),
15
- a(n("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, i(o(e).state.title), 513), [
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 P, createBlock as S, openBlock as y, unref as v } from "vue";
2
- import { NMenu as O } from "naive-ui";
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 { usePLayoutStore as z } from "../layout.js";
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
- ), P(() => {
70
+ ), S(() => {
71
71
  w(), p();
72
- }), (t, n) => (y(), S(v(O), {
72
+ }), (t, n) => (y(), O(v(P), {
73
73
  class: "h-full",
74
74
  inverted: "",
75
75
  mode: "vertical",