@pubinfo/core 2.1.11 → 2.1.13-beta.1
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/AppSetting-BBCop_0D.js +107 -0
- package/dist/{HButton-Dt6qGhhR.js → HButton-pEqyd918.js} +13 -11
- package/dist/HCheckList-cef4jGrw.js +35 -0
- package/dist/HDivider-BSj2DiEY.js +13 -0
- package/dist/HInput-DfpH43DV.js +36 -0
- package/dist/HSlideover-B6gEDfA5.js +3223 -0
- package/dist/HToggle-BTft_PNT.js +32 -0
- package/dist/HTooltip-B8aoK5uN.js +19 -0
- package/dist/PreferencesContent-CuNffqV_.js +703 -0
- package/dist/SettingBreadcrumb-CMn0gojs.js +47 -0
- package/dist/SettingCopyright-DKwdXYr3.js +47 -0
- package/dist/SettingEnableTransition-Bn37z29E.js +70 -0
- package/dist/SettingHome-HttuaN-N.js +33 -0
- package/dist/SettingMenu-CEvBV2Wj.js +113 -0
- package/dist/SettingMode-DpAUEZUv.js +62 -0
- package/dist/SettingNavSearch-Cem0LL54.js +33 -0
- package/dist/SettingOther-DcrlPnMd.js +50 -0
- package/dist/SettingPage-UhL5e6_m.js +24 -0
- package/dist/SettingTabbar-Ct3S8jS2.js +144 -0
- package/dist/SettingThemes-DaRKZ2Q3.js +123 -0
- package/dist/SettingToolbar-Cx_Mz_EP.js +52 -0
- package/dist/SettingTopbar-Ckg-OGSj.js +51 -0
- package/dist/SettingWidthMode-CZ2i-kzC.js +58 -0
- package/dist/_plugin-vue_export-helper-CsLplWgU.js +8 -0
- package/dist/auth-BVTDpkDr.js +4635 -0
- package/dist/{change-organization-hsqeSzDu.js → change-organization-EdR25ifs.js} +51 -48
- package/dist/{change-password-EtccCDRX.js → change-password-D-ZqBAmY.js} +85 -81
- package/dist/chunk-BdsCSvBP.js +20 -0
- package/dist/{components-DFNyaAb9.js → components-CKVAXENc.js} +681 -674
- package/dist/{core-DJIGzMMM.js → core-Dg8YES9i.js} +1003 -938
- package/dist/dist-HLiWAOC7.js +472 -0
- package/dist/{engine-oniguruma-CaNXwGSv.js → engine-oniguruma-DCGL4yXX.js} +58 -56
- package/dist/form-CGzMvzKZ.js +2968 -0
- package/dist/index.js +4989 -4877
- package/dist/json-BFBcpML_.js +3 -0
- package/dist/{modal-Bl5xHbxa.js → modal-ybprgEqf.js} +12543 -9070
- package/dist/not-found-CuHR6H_g.js +44 -0
- package/dist/not-permission-BcQAkzxI.js +41 -0
- package/dist/profile-Bsc6FIbI.js +19533 -0
- package/dist/{question-line-BG__Ycfv.js → question-line-BzrfPWnG.js} +9 -7
- package/dist/reload-BClJy4MY.js +15 -0
- package/dist/{right-BxBlFUwj.js → right-CCqcGubr.js} +15 -13
- package/dist/{tree-select-B8cTcGLa.js → tree-select-gPCwtMia.js} +2906 -2659
- package/dist/useContext-Dlqfap_7.js +11 -0
- package/dist/vitesse-dark-DrB9-RFK.js +4 -0
- package/dist/vitesse-light-CmcnEl2T.js +4 -0
- package/dist/wasm-C92aTsEJ.js +4 -0
- package/dist/watchDiff-DJP3s9bb.js +883 -0
- package/package.json +8 -8
- package/dist/AppSetting-7jlhUzze.js +0 -105
- package/dist/HCheckList-cPBgATmv.js +0 -33
- package/dist/HDivider-BwvBr5OE.js +0 -11
- package/dist/HInput-KJ5nFBpF.js +0 -34
- package/dist/HSlideover-DVQDc9q6.js +0 -3151
- package/dist/HToggle-Ce_2-yhZ.js +0 -30
- package/dist/HTooltip-DjAU-Evn.js +0 -16
- package/dist/PreferencesContent-BAIH81yS.js +0 -701
- package/dist/SettingBreadcrumb-O9-PhAFT.js +0 -45
- package/dist/SettingCopyright-DIKsWTuf.js +0 -45
- package/dist/SettingEnableTransition-61O7W00b.js +0 -68
- package/dist/SettingHome-Sv65TPH8.js +0 -31
- package/dist/SettingMenu-BvwJOUZV.js +0 -111
- package/dist/SettingMode-B8H_eQc8.js +0 -60
- package/dist/SettingNavSearch-BHsmYBA7.js +0 -31
- package/dist/SettingOther-CyyNnaDX.js +0 -48
- package/dist/SettingPage-B82lW41P.js +0 -22
- package/dist/SettingTabbar-Bky2xvH-.js +0 -142
- package/dist/SettingThemes-CkdzS1xt.js +0 -121
- package/dist/SettingToolbar-CD4qns1J.js +0 -50
- package/dist/SettingTopbar-1shjoe3s.js +0 -49
- package/dist/SettingWidthMode-DlG6lXjA.js +0 -56
- package/dist/_plugin-vue_export-helper-sUTDUeGO.js +0 -6
- package/dist/auth-BLGKOyc5.js +0 -4432
- package/dist/chunk-CD4vhpVs.js +0 -18
- package/dist/dist-7OjQvlya.js +0 -468
- package/dist/form-C3VHofnN.js +0 -2768
- package/dist/json-Bu_Zprin.js +0 -2
- package/dist/not-found-BCjngLzt.js +0 -42
- package/dist/not-permission-C26vTMvf.js +0 -39
- package/dist/profile-BVXIFuBG.js +0 -19269
- package/dist/reload-DHx5Vwus.js +0 -12
- package/dist/useContext-DLtu9F7E.js +0 -9
- package/dist/vitesse-dark-CTe40QT_.js +0 -2
- package/dist/vitesse-light-BWXC_WeB.js +0 -2
- package/dist/wasm-2zDVqo-C.js +0 -2
- package/dist/watchDiff-CPZFtaOC.js +0 -655
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import "./modal-ybprgEqf.js";
|
|
2
|
+
import { w as e } from "./auth-BVTDpkDr.js";
|
|
3
|
+
import "./watchDiff-DJP3s9bb.js";
|
|
4
|
+
import { t } from "./_plugin-vue_export-helper-CsLplWgU.js";
|
|
5
|
+
import { n } from "./useContext-Dlqfap_7.js";
|
|
6
|
+
import { t as r } from "./HDivider-BSj2DiEY.js";
|
|
7
|
+
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createStaticVNode as l, createVNode as u, defineComponent as d, isRef as f, markRaw as p, normalizeClass as m, normalizeStyle as h, openBlock as g, renderList as _, toDisplayString as v, toRef as y, unref as b, useModel as x, vModelCheckbox as S, withCtx as C, withDirectives as w } from "vue";
|
|
8
|
+
import { getThemes as T } from "@pubinfo/config/themes";
|
|
9
|
+
//#region ~icons/jam/bookmark-f
|
|
10
|
+
var E = {
|
|
11
|
+
viewBox: "-5 -2 24 24",
|
|
12
|
+
width: "1.2em",
|
|
13
|
+
height: "1.2em"
|
|
14
|
+
};
|
|
15
|
+
function D(e, t) {
|
|
16
|
+
return g(), s("svg", E, [...t[0] ||= [c("path", {
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
|
|
19
|
+
}, null, -1)]]);
|
|
20
|
+
}
|
|
21
|
+
var O = p({
|
|
22
|
+
name: "jam-bookmark-f",
|
|
23
|
+
render: D
|
|
24
|
+
}), k = {
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
width: "1.2em",
|
|
27
|
+
height: "1.2em"
|
|
28
|
+
};
|
|
29
|
+
function A(e, t) {
|
|
30
|
+
return g(), s("svg", k, [...t[0] ||= [c("path", {
|
|
31
|
+
fill: "currentColor",
|
|
32
|
+
"fill-rule": "evenodd",
|
|
33
|
+
d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
|
|
34
|
+
"clip-rule": "evenodd"
|
|
35
|
+
}, null, -1)]]);
|
|
36
|
+
}
|
|
37
|
+
var j = p({
|
|
38
|
+
name: "pajamas-check-circle-filled",
|
|
39
|
+
render: A
|
|
40
|
+
}), M = {
|
|
41
|
+
flex: "",
|
|
42
|
+
"justify-center": "",
|
|
43
|
+
"pb-15px": ""
|
|
44
|
+
}, N = { class: "toggleWrapper" }, P = /* @__PURE__ */ t(/* @__PURE__ */ d({
|
|
45
|
+
name: "DayNightToggle",
|
|
46
|
+
__name: "DayNightToggle",
|
|
47
|
+
props: {
|
|
48
|
+
modelValue: {},
|
|
49
|
+
modelModifiers: {}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:modelValue"],
|
|
52
|
+
setup(e) {
|
|
53
|
+
let t = x(e, "modelValue");
|
|
54
|
+
return (e, n) => (g(), s("div", M, [c("div", N, [w(c("input", {
|
|
55
|
+
id: "dn",
|
|
56
|
+
"onUpdate:modelValue": n[0] ||= (e) => t.value = e,
|
|
57
|
+
type: "checkbox",
|
|
58
|
+
class: "dn"
|
|
59
|
+
}, null, 512), [[S, t.value]]), n[1] ||= l("<label for=\"dn\" class=\"toggle\" data-v-5b2fff8a><span class=\"toggle__handler\" data-v-5b2fff8a><span class=\"crater crater--1\" data-v-5b2fff8a></span><span class=\"crater crater--2\" data-v-5b2fff8a></span><span class=\"crater crater--3\" data-v-5b2fff8a></span></span><span class=\"star star--1\" data-v-5b2fff8a></span><span class=\"star star--2\" data-v-5b2fff8a></span><span class=\"star star--3\" data-v-5b2fff8a></span><span class=\"star star--4\" data-v-5b2fff8a></span><span class=\"star star--5\" data-v-5b2fff8a></span><span class=\"star star--6\" data-v-5b2fff8a></span></label>", 1)])]));
|
|
60
|
+
}
|
|
61
|
+
}), [["__scopeId", "data-v-5b2fff8a"]]), F = { class: "themes" }, I = ["onClick"], L = {
|
|
62
|
+
class: "theme-type",
|
|
63
|
+
flex: "",
|
|
64
|
+
"items-center": ""
|
|
65
|
+
}, R = { class: "theme-point" }, z = { class: "explosion" }, B = /* @__PURE__ */ t(/* @__PURE__ */ d({
|
|
66
|
+
name: "SettingThemes",
|
|
67
|
+
__name: "SettingThemes",
|
|
68
|
+
setup(t) {
|
|
69
|
+
let { isDark: l } = e(), { settingsStore: d } = n(), p = y(d.settings, "app"), x = [
|
|
70
|
+
"--ui-primary",
|
|
71
|
+
"--ui-text",
|
|
72
|
+
"--g-bg",
|
|
73
|
+
"--g-header-bg",
|
|
74
|
+
"--g-main-sidebar-bg",
|
|
75
|
+
"--g-sub-sidebar-bg"
|
|
76
|
+
], S = a(() => {
|
|
77
|
+
let e = T();
|
|
78
|
+
return Object.keys(e).map((t) => {
|
|
79
|
+
let n = e[t];
|
|
80
|
+
return {
|
|
81
|
+
label: t,
|
|
82
|
+
value: n,
|
|
83
|
+
colors: x.map((e) => n[e].startsWith("#") ? n[e] : `rgb(${n[e]})`),
|
|
84
|
+
name: e[t].label
|
|
85
|
+
};
|
|
86
|
+
}).filter((e) => e.value["color-scheme"] === p.value.colorScheme);
|
|
87
|
+
});
|
|
88
|
+
function w(e) {
|
|
89
|
+
let t = e.label;
|
|
90
|
+
l.value ? p.value.darkTheme = t : p.value.lightTheme = t;
|
|
91
|
+
}
|
|
92
|
+
return (e, t) => {
|
|
93
|
+
let n = r;
|
|
94
|
+
return g(), o(n, { title: "颜色主题风格" }, {
|
|
95
|
+
default: C(() => [c("div", null, [u(P, {
|
|
96
|
+
modelValue: b(l),
|
|
97
|
+
"onUpdate:modelValue": t[0] ||= (e) => f(l) ? l.value = e : null
|
|
98
|
+
}, null, 8, ["modelValue"])]), c("div", F, [(g(!0), s(i, null, _(b(S), (e) => (g(), s("div", {
|
|
99
|
+
key: e.label,
|
|
100
|
+
class: m(["theme", { active: b(l) ? b(p).darkTheme === e.label : b(p).lightTheme === e.label }]),
|
|
101
|
+
onClick: (t) => w(e)
|
|
102
|
+
}, [
|
|
103
|
+
c("div", L, [c("span", {
|
|
104
|
+
style: h({ color: e.colors.at(0) }),
|
|
105
|
+
"mr-5px": ""
|
|
106
|
+
}, [u(b(O))], 4), c("span", {
|
|
107
|
+
style: h({ color: e.colors.at(0) }),
|
|
108
|
+
"text-sm": ""
|
|
109
|
+
}, v(e.name || e.label), 5)]),
|
|
110
|
+
c("div", R, [(g(!0), s(i, null, _(e.colors, (e) => (g(), s("div", {
|
|
111
|
+
key: e,
|
|
112
|
+
class: "point",
|
|
113
|
+
style: h({ backgroundColor: e })
|
|
114
|
+
}, null, 4))), 128))]),
|
|
115
|
+
c("div", z, [u(b(j))])
|
|
116
|
+
], 10, I))), 128))])]),
|
|
117
|
+
_: 1
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}), [["__scopeId", "data-v-0ba0f196"]]);
|
|
122
|
+
//#endregion
|
|
123
|
+
export { B as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { n as e } from "./useContext-Dlqfap_7.js";
|
|
2
|
+
import { t } from "./HTooltip-B8aoK5uN.js";
|
|
3
|
+
import { t as n } from "./HDivider-BSj2DiEY.js";
|
|
4
|
+
import { t as r } from "./HToggle-BTft_PNT.js";
|
|
5
|
+
import { t as i } from "./question-line-BzrfPWnG.js";
|
|
6
|
+
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, toRef as p, unref as m, withCtx as h } from "vue";
|
|
7
|
+
//#region src/built-in/layout-component/components/SettingBar/components/SettingToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var g = { class: "setting-item" }, _ = { class: "label" }, v = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "setting-item"
|
|
11
|
+
}, y = { class: "setting-item" }, b = { class: "label" }, x = { class: "setting-item" }, S = { class: "label" }, C = /* @__PURE__ */ d({
|
|
12
|
+
name: "SettingToolbar",
|
|
13
|
+
__name: "SettingToolbar",
|
|
14
|
+
setup(d) {
|
|
15
|
+
let { settingsStore: C } = e(), w = p(C.settings, "toolbar");
|
|
16
|
+
return (e, d) => {
|
|
17
|
+
let p = t, T = r, E = n;
|
|
18
|
+
return f(), a(E, { title: "工具栏" }, {
|
|
19
|
+
default: h(() => [
|
|
20
|
+
c("div", g, [c("div", _, [d[4] ||= l(" 通知中心 ", -1), u(p, { text: "该功能具体业务功能需自行开发,框架仅提供示例模版" }, {
|
|
21
|
+
default: h(() => [u(m(i))]),
|
|
22
|
+
_: 1
|
|
23
|
+
})]), u(T, {
|
|
24
|
+
modelValue: m(w).enableNotification,
|
|
25
|
+
"onUpdate:modelValue": d[0] ||= (e) => m(w).enableNotification = e
|
|
26
|
+
}, null, 8, ["modelValue"])]),
|
|
27
|
+
m(C).mode === "pc" ? (f(), s("div", v, [d[5] ||= c("div", { class: "label" }, " 全屏 ", -1), u(T, {
|
|
28
|
+
modelValue: m(w).enableFullscreen,
|
|
29
|
+
"onUpdate:modelValue": d[1] ||= (e) => m(w).enableFullscreen = e
|
|
30
|
+
}, null, 8, ["modelValue"])])) : o("", !0),
|
|
31
|
+
c("div", y, [c("div", b, [d[6] ||= l(" 页面刷新 ", -1), u(p, { text: "使用框架内提供的刷新功能进行页面刷新" }, {
|
|
32
|
+
default: h(() => [u(m(i))]),
|
|
33
|
+
_: 1
|
|
34
|
+
})]), u(T, {
|
|
35
|
+
modelValue: m(w).enablePageReload,
|
|
36
|
+
"onUpdate:modelValue": d[2] ||= (e) => m(w).enablePageReload = e
|
|
37
|
+
}, null, 8, ["modelValue"])]),
|
|
38
|
+
c("div", x, [c("div", S, [d[7] ||= l(" 颜色主题 ", -1), u(p, { text: "开启后可在明亮/暗黑模式中切换" }, {
|
|
39
|
+
default: h(() => [u(m(i))]),
|
|
40
|
+
_: 1
|
|
41
|
+
})]), u(T, {
|
|
42
|
+
modelValue: m(w).enableColorScheme,
|
|
43
|
+
"onUpdate:modelValue": d[3] ||= (e) => m(w).enableColorScheme = e
|
|
44
|
+
}, null, 8, ["modelValue"])])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { C as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "./modal-ybprgEqf.js";
|
|
2
|
+
import "./tree-select-gPCwtMia.js";
|
|
3
|
+
import "./components-CKVAXENc.js";
|
|
4
|
+
import { n as e } from "./useContext-Dlqfap_7.js";
|
|
5
|
+
import { t } from "./HTooltip-B8aoK5uN.js";
|
|
6
|
+
import { t as n } from "./HDivider-BSj2DiEY.js";
|
|
7
|
+
import { t as r } from "./HCheckList-cef4jGrw.js";
|
|
8
|
+
import { t as i } from "./HToggle-BTft_PNT.js";
|
|
9
|
+
import { t as a } from "./question-line-BzrfPWnG.js";
|
|
10
|
+
import { createBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, toRefs as f, unref as p, withCtx as m } from "vue";
|
|
11
|
+
//#region src/built-in/layout-component/components/SettingBar/components/SettingTopbar.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
var h = { class: "setting-item" }, g = { class: "setting-item" }, _ = { class: "label" }, v = /* @__PURE__ */ u({
|
|
13
|
+
name: "SettingTopbar",
|
|
14
|
+
__name: "SettingTopbar",
|
|
15
|
+
setup(u) {
|
|
16
|
+
let { settingsStore: v } = e(), { topbar: y, tabbar: b } = f(v.settings);
|
|
17
|
+
return (e, u) => {
|
|
18
|
+
let f = r, v = t, x = i, S = n;
|
|
19
|
+
return d(), o(S, { title: "顶栏" }, {
|
|
20
|
+
default: m(() => [s("div", h, [u[2] ||= s("div", { class: "label" }, " 模式 ", -1), l(f, {
|
|
21
|
+
modelValue: p(y).mode,
|
|
22
|
+
"onUpdate:modelValue": u[0] ||= (e) => p(y).mode = e,
|
|
23
|
+
options: [
|
|
24
|
+
{
|
|
25
|
+
label: "静止",
|
|
26
|
+
value: "static"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "固定",
|
|
30
|
+
value: "fixed"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "粘性",
|
|
34
|
+
value: "sticky"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}, null, 8, ["modelValue"])]), s("div", g, [s("div", _, [u[3] ||= c(" 展示切换 ", -1), l(v, { text: "切换标签栏和工具栏的展示顺序" }, {
|
|
38
|
+
default: m(() => [l(p(a))]),
|
|
39
|
+
_: 1
|
|
40
|
+
})]), l(x, {
|
|
41
|
+
modelValue: p(y).switchTabbarAndToolbar,
|
|
42
|
+
"onUpdate:modelValue": u[1] ||= (e) => p(y).switchTabbarAndToolbar = e,
|
|
43
|
+
disabled: !p(b).enable
|
|
44
|
+
}, null, 8, ["modelValue", "disabled"])])]),
|
|
45
|
+
_: 1
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { v as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-CsLplWgU.js";
|
|
2
|
+
import { n as t } from "./useContext-Dlqfap_7.js";
|
|
3
|
+
import { t as n } from "./HTooltip-B8aoK5uN.js";
|
|
4
|
+
import { t as r } from "./HDivider-BSj2DiEY.js";
|
|
5
|
+
import { n as i, t as a } from "./right-CCqcGubr.js";
|
|
6
|
+
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, reactive as h, renderList as g, toRef as _, unref as v, withCtx as y } from "vue";
|
|
7
|
+
//#region src/built-in/layout-component/components/SettingBar/components/SettingWidthMode.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var b = { class: "app-width-mode" }, x = ["onClick"], S = /* @__PURE__ */ e(/* @__PURE__ */ f({
|
|
9
|
+
name: "SettingWidthMode",
|
|
10
|
+
__name: "SettingWidthMode",
|
|
11
|
+
setup(e) {
|
|
12
|
+
let { settingsStore: f } = t(), S = _(f.settings.layout, "widthMode"), C = h([
|
|
13
|
+
{
|
|
14
|
+
describe: "自适应",
|
|
15
|
+
active: "adaption",
|
|
16
|
+
class: "mode-adaption"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
describe: "自适应 (有最小宽度)",
|
|
20
|
+
active: "adaption-min-width",
|
|
21
|
+
class: "mode-adaption-min-width"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
describe: "定宽居中",
|
|
25
|
+
active: "center",
|
|
26
|
+
class: "mode-center"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
describe: "定宽居中 (有最大宽度)",
|
|
30
|
+
active: "center-max-width",
|
|
31
|
+
class: "mode-center-max-width"
|
|
32
|
+
}
|
|
33
|
+
]);
|
|
34
|
+
function w(e) {
|
|
35
|
+
e && (S.value = e);
|
|
36
|
+
}
|
|
37
|
+
return (e, t) => {
|
|
38
|
+
let f = n, h = r;
|
|
39
|
+
return m(), s(h, { title: "页宽模式" }, {
|
|
40
|
+
default: y(() => [u("div", b, [(m(!0), l(o, null, g(v(C), (e) => (m(), s(f, {
|
|
41
|
+
key: e.active,
|
|
42
|
+
text: e.describe,
|
|
43
|
+
placement: "bottom",
|
|
44
|
+
delay: 500
|
|
45
|
+
}, {
|
|
46
|
+
default: y(() => [u("div", {
|
|
47
|
+
class: p(["mode", [e.class, v(S) === e.active ? "active" : ""]]),
|
|
48
|
+
onClick: (t) => w(e.active)
|
|
49
|
+
}, [e.active === "center" ? c("", !0) : (m(), l(o, { key: 0 }, [d(v(i), { class: "left" }), d(v(a), { class: "right" })], 64))], 10, x)]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, 1032, ["text"]))), 128))])]),
|
|
52
|
+
_: 1
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}), [["__scopeId", "data-v-c424e7f2"]]);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { S as default };
|