@pubinfo-nightly/module-rbac 2026.2.24 → 2026.2.26
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/breadcrumb_setting-DTR6CPZQ.js +108 -0
- package/dist/index.js +14 -14
- package/dist/json-asset-03f0a035.json +1 -0
- package/dist/json-asset-0ee63e7f.json +1 -0
- package/dist/json-asset-10eef4fe.json +1 -0
- package/dist/json-asset-13f452f1.json +1 -0
- package/dist/json-asset-14b7b290.json +1 -0
- package/dist/json-asset-15b8cef1.json +1 -0
- package/dist/json-asset-15f77960.json +1 -0
- package/dist/json-asset-1ae9b726.json +1 -0
- package/dist/json-asset-1b02359f.json +1 -0
- package/dist/json-asset-1ef286cd.json +1 -0
- package/dist/json-asset-23cfd18c.json +1 -0
- package/dist/json-asset-265a0a5d.json +1 -0
- package/dist/json-asset-28d57c49.json +1 -0
- package/dist/json-asset-2b54ed10.json +1 -0
- package/dist/json-asset-2bb6f642.json +1 -0
- package/dist/json-asset-2cdc07bd.json +1 -0
- package/dist/json-asset-31c58607.json +1 -0
- package/dist/json-asset-32884f23.json +1 -0
- package/dist/json-asset-32fca43a.json +1 -0
- package/dist/json-asset-3a75445b.json +1 -0
- package/dist/json-asset-3f27d67c.json +1 -0
- package/dist/json-asset-4189453f.json +1 -0
- package/dist/json-asset-4702b37c.json +1 -0
- package/dist/json-asset-520a5c68.json +1 -0
- package/dist/json-asset-56bea508.json +1 -0
- package/dist/json-asset-57c732a3.json +1 -0
- package/dist/json-asset-5be4a28f.json +1 -0
- package/dist/json-asset-5e6d7cfa.json +1 -0
- package/dist/json-asset-64e176c9.json +1 -0
- package/dist/json-asset-6583dca6.json +1 -0
- package/dist/json-asset-66c640c6.json +1 -0
- package/dist/json-asset-68393156.json +1 -0
- package/dist/json-asset-688465aa.json +1 -0
- package/dist/json-asset-6bf334f4.json +1 -0
- package/dist/json-asset-7b4f72ce.json +1 -0
- package/dist/json-asset-837ec087.json +1 -0
- package/dist/json-asset-838ac1ba.json +1 -0
- package/dist/json-asset-8465c2cf.json +1 -0
- package/dist/json-asset-9e9f04a4.json +1 -0
- package/dist/json-asset-a13964cb.json +1 -0
- package/dist/json-asset-ab93a057.json +1 -0
- package/dist/json-asset-abe308fc.json +1 -0
- package/dist/json-asset-b24f2cd3.json +1 -0
- package/dist/json-asset-bf00eaed.json +1 -0
- package/dist/json-asset-cb22efd7.json +1 -0
- package/dist/json-asset-cb953f20.json +1 -0
- package/dist/json-asset-cc209e34.json +1 -0
- package/dist/json-asset-cfdffceb.json +1 -0
- package/dist/json-asset-d33c0299.json +1 -0
- package/dist/json-asset-d430c8ca.json +1 -0
- package/dist/json-asset-d8cfa560.json +1 -0
- package/dist/json-asset-da91beb6.json +1 -0
- package/dist/json-asset-e2bdf85c.json +1 -0
- package/dist/json-asset-e34ad826.json +1 -0
- package/dist/json-asset-e80720aa.json +1 -0
- package/dist/json-asset-e894bc92.json +1 -0
- package/dist/json-asset-f28020f2.json +1 -0
- package/dist/json-asset-f71ebbf4.json +1 -0
- package/dist/json-asset-fb1f4917.json +1 -0
- package/dist/json-asset-ff2e97c4.json +1 -0
- package/dist/menu_setting-C2GciMXz.js +155 -0
- package/dist/other_setting-oVuhA70c.js +213 -0
- package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
- package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
- package/dist/toolbar_setting-znESrYgi.js +140 -0
- package/dist/watermark_setting-DYirSIAn.js +191 -0
- package/package.json +3 -3
- package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
- package/dist/menu_setting-ChueWHs4.js +0 -155
- package/dist/other_setting-BEV_UK0g.js +0 -213
- package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
- package/dist/tabbar_setting-kbuTvrLB.js +0 -139
- package/dist/toolbar_setting-BG-k2UFc.js +0 -140
- package/dist/watermark_setting-Cl2EtPAa.js +0 -191
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
|
|
2
|
+
import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
|
|
3
|
+
import "./animation_item-DBOz2rcX.js";
|
|
4
|
+
import "./HCheckList-ODQHidN8.js";
|
|
5
|
+
import { t as setItem_default } from "./setItem-Vkcwkj-O.js";
|
|
6
|
+
import { PubinfoIcon } from "pubinfo-nightly";
|
|
7
|
+
import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
8
|
+
import { message } from "ant-design-vue";
|
|
9
|
+
import { Button, Collapse, CollapsePanel, Input as Input$1 } from "ant-design-vue/es";
|
|
10
|
+
import './other_setting.css';var enableCopyright_default$1 = new URL("json-asset-66c640c6.json", import.meta.url).href, enableHotkeys_default$1 = new URL("json-asset-f71ebbf4.json", import.meta.url).href, switchTabbarAndToolbar_default$1 = new URL("json-asset-838ac1ba.json", import.meta.url).href, enableCopyright_default = new URL("json-asset-ab93a057.json", import.meta.url).href, enableHotkeys_default = new URL("json-asset-da91beb6.json", import.meta.url).href, switchTabbarAndToolbar_default = new URL("json-asset-e894bc92.json", import.meta.url).href, _hoisted_1 = {
|
|
11
|
+
"w-full": "",
|
|
12
|
+
"h-full": "",
|
|
13
|
+
"p-10px": ""
|
|
14
|
+
}, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "w-16px h-16px bg-[#fff] rounded-16px flex items-center justify-center" }, _hoisted_4 = { class: "flex flex-row items-center" }, _hoisted_5 = { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, _hoisted_6 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "grid grid-cols-3 gap-[20px] px-30px w-full max-w-1300px"
|
|
17
|
+
}, _hoisted_7 = { key: 1 }, _hoisted_8 = { class: "grid-col-span-2 pt-40px" }, _hoisted_9 = { class: "flex items-center mb-20px w-560px" }, _hoisted_10 = { class: "flex items-center mb-20px w-560px" }, _hoisted_11 = { class: "flex items-center mb-20px w-560px" }, _hoisted_12 = { class: "flex items-center mb-20px w-560px" }, _hoisted_13 = { class: "flex items-center flex-row-reverse w-560px" }, other_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
18
|
+
name: "OtherSetting",
|
|
19
|
+
__name: "index",
|
|
20
|
+
setup(e) {
|
|
21
|
+
let a = useSettingsStore(), c = ref([
|
|
22
|
+
"0",
|
|
23
|
+
"1",
|
|
24
|
+
"2"
|
|
25
|
+
]), u = reactive([
|
|
26
|
+
{
|
|
27
|
+
tabName: "底部版权",
|
|
28
|
+
tabIcon: "icon_copyright",
|
|
29
|
+
list: [{
|
|
30
|
+
name: "是否启用",
|
|
31
|
+
type: "switch",
|
|
32
|
+
descripe: "",
|
|
33
|
+
parentName: "copyright",
|
|
34
|
+
childName: "enable",
|
|
35
|
+
open: a.globalSettings.copyright.enable,
|
|
36
|
+
activeStyle: "",
|
|
37
|
+
lightData: enableCopyright_default,
|
|
38
|
+
darkData: enableCopyright_default$1
|
|
39
|
+
}]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
tabName: "页面",
|
|
43
|
+
tabIcon: "icon_mainpage",
|
|
44
|
+
list: [{
|
|
45
|
+
name: "是否启用快捷键",
|
|
46
|
+
type: "switch",
|
|
47
|
+
descripe: "",
|
|
48
|
+
parentName: "mainPage",
|
|
49
|
+
childName: "enableHotkeys",
|
|
50
|
+
open: a.globalSettings.mainPage.enableHotkeys,
|
|
51
|
+
activeStyle: "",
|
|
52
|
+
lightData: enableHotkeys_default,
|
|
53
|
+
darkData: enableHotkeys_default$1
|
|
54
|
+
}]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
tabName: "顶栏",
|
|
58
|
+
tabIcon: "icon_topbar",
|
|
59
|
+
list: [{
|
|
60
|
+
name: "展示切换",
|
|
61
|
+
type: "switch",
|
|
62
|
+
descripe: "切换标签栏和工具栏的展示顺序",
|
|
63
|
+
parentName: "topbar",
|
|
64
|
+
childName: "switchTabbarAndToolbar",
|
|
65
|
+
open: a.globalSettings.topbar.switchTabbarAndToolbar,
|
|
66
|
+
activeStyle: "",
|
|
67
|
+
lightData: switchTabbarAndToolbar_default,
|
|
68
|
+
darkData: switchTabbarAndToolbar_default$1
|
|
69
|
+
}]
|
|
70
|
+
}
|
|
71
|
+
]);
|
|
72
|
+
function d(e, t, n) {
|
|
73
|
+
if (a.globalSettings[e] && a.globalSettings[e][t] !== void 0) {
|
|
74
|
+
a.globalSettings[e][t] = n;
|
|
75
|
+
let r = {};
|
|
76
|
+
r[e] = {}, r[e][t] = n, f(JSON.stringify(r));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function f(e) {
|
|
80
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
|
|
81
|
+
e.success && message.success("设置成功");
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
let p = ref({
|
|
85
|
+
dates: a.globalSettings.copyright.dates,
|
|
86
|
+
company: a.globalSettings.copyright.company,
|
|
87
|
+
website: a.globalSettings.copyright.website,
|
|
88
|
+
beian: a.globalSettings.copyright.beian
|
|
89
|
+
});
|
|
90
|
+
function m() {
|
|
91
|
+
let e = JSON.stringify({ copyright: {
|
|
92
|
+
dates: p.value.dates,
|
|
93
|
+
company: p.value.company,
|
|
94
|
+
website: p.value.website,
|
|
95
|
+
beian: p.value.beian
|
|
96
|
+
} });
|
|
97
|
+
a.globalSettings.copyright.dates = p.value.dates, a.globalSettings.copyright.company = p.value.company, a.globalSettings.copyright.website = p.value.website, a.globalSettings.copyright.beian = p.value.beian, f(e);
|
|
98
|
+
}
|
|
99
|
+
function h() {
|
|
100
|
+
p.value = {
|
|
101
|
+
dates: a.globalSettings.copyright.dates,
|
|
102
|
+
company: a.globalSettings.copyright.company,
|
|
103
|
+
website: a.globalSettings.copyright.website,
|
|
104
|
+
beian: a.globalSettings.copyright.beian
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return (e, t) => {
|
|
108
|
+
let n = PubinfoIcon, a = Input$1, o = Button, s = CollapsePanel, l = Collapse;
|
|
109
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createVNode(l, {
|
|
110
|
+
"active-key": unref(c),
|
|
111
|
+
"onUpdate:activeKey": t[4] ||= (e) => isRef(c) ? c.value = e : null,
|
|
112
|
+
bordered: !1,
|
|
113
|
+
ghost: !0,
|
|
114
|
+
"expand-icon-position": "end"
|
|
115
|
+
}, {
|
|
116
|
+
expandIcon: withCtx((e) => [createElementVNode("div", _hoisted_3, [createVNode(n, {
|
|
117
|
+
name: "icon_jt",
|
|
118
|
+
class: "text-base",
|
|
119
|
+
rotate: e?.isActive ? 0 : 180,
|
|
120
|
+
size: 16,
|
|
121
|
+
onClick: (t) => console.log("pros", e)
|
|
122
|
+
}, null, 8, ["rotate", "onClick"])])]),
|
|
123
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(u), (e, i) => (openBlock(), createBlock(s, {
|
|
124
|
+
key: i,
|
|
125
|
+
style: { "margin-bottom": "10px" }
|
|
126
|
+
}, {
|
|
127
|
+
header: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(n, {
|
|
128
|
+
name: e.tabIcon,
|
|
129
|
+
class: "text-base mr-[6px]",
|
|
130
|
+
size: 22
|
|
131
|
+
}, null, 8, ["name"]), createElementVNode("span", _hoisted_5, toDisplayString(e.tabName), 1)])]),
|
|
132
|
+
default: withCtx(() => [e.tabName === "底部版权" ? (openBlock(), createElementBlock("div", _hoisted_7, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.list, (e) => (openBlock(), createElementBlock("div", {
|
|
133
|
+
key: e.name,
|
|
134
|
+
class: "grid grid-cols-3 gap-[20px] px-30px w-full max-w-1300px"
|
|
135
|
+
}, [(openBlock(), createBlock(setItem_default, {
|
|
136
|
+
key: e.name,
|
|
137
|
+
aspect: "[9/6]",
|
|
138
|
+
name: e.name,
|
|
139
|
+
descripe: e.descripe,
|
|
140
|
+
open: e.open,
|
|
141
|
+
type: e.type,
|
|
142
|
+
"light-animation-data": e.lightData,
|
|
143
|
+
"dark-animation-data": e.darkData,
|
|
144
|
+
onChange: (t) => d(e.parentName, e.childName, t)
|
|
145
|
+
}, null, 8, [
|
|
146
|
+
"name",
|
|
147
|
+
"descripe",
|
|
148
|
+
"open",
|
|
149
|
+
"type",
|
|
150
|
+
"light-animation-data",
|
|
151
|
+
"dark-animation-data",
|
|
152
|
+
"onChange"
|
|
153
|
+
])), createElementVNode("div", _hoisted_8, [
|
|
154
|
+
createElementVNode("div", _hoisted_9, [t[5] ||= createElementVNode("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "日期", -1), createVNode(a, {
|
|
155
|
+
value: unref(p).dates,
|
|
156
|
+
"onUpdate:value": t[0] ||= (e) => unref(p).dates = e,
|
|
157
|
+
class: "flex-1"
|
|
158
|
+
}, null, 8, ["value"])]),
|
|
159
|
+
createElementVNode("div", _hoisted_10, [t[6] ||= createElementVNode("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "公司", -1), createVNode(a, {
|
|
160
|
+
value: unref(p).company,
|
|
161
|
+
"onUpdate:value": t[1] ||= (e) => unref(p).company = e,
|
|
162
|
+
class: "flex-1"
|
|
163
|
+
}, null, 8, ["value"])]),
|
|
164
|
+
createElementVNode("div", _hoisted_11, [t[7] ||= createElementVNode("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "网址", -1), createVNode(a, {
|
|
165
|
+
value: unref(p).website,
|
|
166
|
+
"onUpdate:value": t[2] ||= (e) => unref(p).website = e,
|
|
167
|
+
class: "flex-1"
|
|
168
|
+
}, null, 8, ["value"])]),
|
|
169
|
+
createElementVNode("div", _hoisted_12, [t[8] ||= createElementVNode("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "备案", -1), createVNode(a, {
|
|
170
|
+
value: unref(p).beian,
|
|
171
|
+
"onUpdate:value": t[3] ||= (e) => unref(p).beian = e,
|
|
172
|
+
class: "flex-1"
|
|
173
|
+
}, null, 8, ["value"])]),
|
|
174
|
+
createElementVNode("div", _hoisted_13, [createVNode(o, {
|
|
175
|
+
style: { "margin-left": "10px" },
|
|
176
|
+
onClick: h
|
|
177
|
+
}, {
|
|
178
|
+
default: withCtx(() => [...t[9] ||= [createTextVNode(" 重置 ", -1)]]),
|
|
179
|
+
_: 1
|
|
180
|
+
}), createVNode(o, {
|
|
181
|
+
type: "primary",
|
|
182
|
+
onClick: m
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx(() => [...t[10] ||= [createTextVNode(" 确定 ", -1)]]),
|
|
185
|
+
_: 1
|
|
186
|
+
})])
|
|
187
|
+
])]))), 128))])) : (openBlock(), createElementBlock("div", _hoisted_6, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.list, (e) => (openBlock(), createBlock(setItem_default, {
|
|
188
|
+
key: e.name,
|
|
189
|
+
aspect: "[9/6]",
|
|
190
|
+
name: e.name,
|
|
191
|
+
descripe: e.descripe,
|
|
192
|
+
open: e.open,
|
|
193
|
+
type: e.type,
|
|
194
|
+
"light-animation-data": e.lightData,
|
|
195
|
+
"dark-animation-data": e.darkData,
|
|
196
|
+
onChange: (t) => d(e.parentName, e.childName, t)
|
|
197
|
+
}, null, 8, [
|
|
198
|
+
"name",
|
|
199
|
+
"descripe",
|
|
200
|
+
"open",
|
|
201
|
+
"type",
|
|
202
|
+
"light-animation-data",
|
|
203
|
+
"dark-animation-data",
|
|
204
|
+
"onChange"
|
|
205
|
+
]))), 128))]))]),
|
|
206
|
+
_: 2
|
|
207
|
+
}, 1024))), 128))]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["active-key"])])]);
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}), [["__scopeId", "data-v-1286401b"]]);
|
|
213
|
+
export { other_setting_default as default };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
|
|
2
|
+
import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
|
|
3
|
+
import { t as animation_item_default } from "./animation_item-DBOz2rcX.js";
|
|
4
|
+
import { PubinfoIcon } from "pubinfo-nightly";
|
|
5
|
+
import { Fragment, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, normalizeClass, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, toRefs, unref } from "vue";
|
|
6
|
+
import { message } from "ant-design-vue";
|
|
7
|
+
import { Switch } from "ant-design-vue/es";
|
|
8
|
+
import './page_animation_setting.css';var fadeinout_default$1 = new URL("json-asset-cfdffceb.json", import.meta.url).href, tobottom_default$1 = new URL("json-asset-5e6d7cfa.json", import.meta.url).href, toleft_default$1 = new URL("json-asset-4189453f.json", import.meta.url).href, toright_default$1 = new URL("json-asset-ff2e97c4.json", import.meta.url).href, totop_default$1 = new URL("json-asset-68393156.json", import.meta.url).href, fadeinout_default = new URL("json-asset-265a0a5d.json", import.meta.url).href, tobottom_default = new URL("json-asset-837ec087.json", import.meta.url).href, toleft_default = new URL("json-asset-1b02359f.json", import.meta.url).href, toright_default = new URL("json-asset-3a75445b.json", import.meta.url).href, totop_default = new URL("json-asset-e80720aa.json", import.meta.url).href, _hoisted_1 = {
|
|
9
|
+
"w-full": "",
|
|
10
|
+
"h-full": "",
|
|
11
|
+
"p-10px": ""
|
|
12
|
+
}, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]" }, _hoisted_4 = { class: "mt-[15px] flex-1 flex flex-col" }, _hoisted_5 = { class: "flex flex-row items-center" }, _hoisted_6 = { class: "mt-[15px] flex-1 flex flex-row" }, _hoisted_7 = {
|
|
13
|
+
class: "flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
14
|
+
aspect: "[3/2]"
|
|
15
|
+
}, _hoisted_8 = [
|
|
16
|
+
"onClick",
|
|
17
|
+
"onMouseenter",
|
|
18
|
+
"onMouseleave"
|
|
19
|
+
], _hoisted_9 = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, _hoisted_10 = { class: "flex-1 mt-[20px] w-[75%] rounded-[8px] jb py-[10px] flex justify-center" }, page_animation_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
20
|
+
name: "PageAnimationSetting",
|
|
21
|
+
__name: "index",
|
|
22
|
+
setup(e) {
|
|
23
|
+
let r = useSettingsStore(), { enableTransition: i, transitionMode: a } = toRefs(r.globalSettings.mainPage), o = ref([]), s = reactive([
|
|
24
|
+
{
|
|
25
|
+
descripe: "淡入淡出",
|
|
26
|
+
active: "fade",
|
|
27
|
+
class: "mode-fade",
|
|
28
|
+
lightData: fadeinout_default,
|
|
29
|
+
darkData: fadeinout_default$1
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
descripe: "向左滑动",
|
|
33
|
+
active: "slide-left",
|
|
34
|
+
class: "mode-slide-left",
|
|
35
|
+
lightData: toleft_default,
|
|
36
|
+
darkData: toleft_default$1
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
descripe: "向右滑动",
|
|
40
|
+
active: "slide-right",
|
|
41
|
+
class: "mode-slide-right",
|
|
42
|
+
lightData: toright_default,
|
|
43
|
+
darkData: toright_default$1
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
descripe: "向上滑动",
|
|
47
|
+
active: "slide-top",
|
|
48
|
+
class: "mode-slide-top",
|
|
49
|
+
lightData: totop_default,
|
|
50
|
+
darkData: totop_default$1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
descripe: "向下滑动",
|
|
54
|
+
active: "slide-bottom",
|
|
55
|
+
class: "mode-slide-bottom",
|
|
56
|
+
lightData: tobottom_default,
|
|
57
|
+
darkData: tobottom_default$1
|
|
58
|
+
}
|
|
59
|
+
]);
|
|
60
|
+
function c(e) {
|
|
61
|
+
o.value[e] && o.value[e]?.play();
|
|
62
|
+
}
|
|
63
|
+
function l(e) {
|
|
64
|
+
o.value[e] && o.value[e]?.stop();
|
|
65
|
+
}
|
|
66
|
+
let u = ref(i.value);
|
|
67
|
+
function d(e) {
|
|
68
|
+
r.globalSettings.mainPage.enableTransition = e, p(JSON.stringify({ mainPage: { enableTransition: e } }));
|
|
69
|
+
}
|
|
70
|
+
function f(e) {
|
|
71
|
+
e && (a.value = e, r.globalSettings.mainPage.transitionMode = e, p(JSON.stringify({ mainPage: { transitionMode: e } })));
|
|
72
|
+
}
|
|
73
|
+
function p(e) {
|
|
74
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
|
|
75
|
+
e.success && message.success("设置成功");
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return (e, t) => {
|
|
79
|
+
let n = PubinfoIcon, r = Switch;
|
|
80
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
|
|
81
|
+
name: "icon_menu",
|
|
82
|
+
class: "text-base mr-[6px]",
|
|
83
|
+
size: 22
|
|
84
|
+
}), t[1] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页面切换动画", -1)]), createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [t[2] ||= createElementVNode("div", { class: "w-[110px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]" }, " 开启动画效果 ", -1), createVNode(r, {
|
|
85
|
+
checked: unref(u),
|
|
86
|
+
"onUpdate:checked": t[0] ||= (e) => isRef(u) ? u.value = e : null,
|
|
87
|
+
class: "ml-30px!",
|
|
88
|
+
"checked-children": "开启",
|
|
89
|
+
"un-checked-children": "关闭",
|
|
90
|
+
onChange: d
|
|
91
|
+
}, null, 8, ["checked"])]), createElementVNode("div", _hoisted_6, [t[3] ||= createElementVNode("div", { class: "flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]" }, " 动画模式 ", -1), createElementVNode("div", _hoisted_7, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(s), (e, t) => (openBlock(), createElementBlock("div", {
|
|
92
|
+
key: e.active,
|
|
93
|
+
class: normalizeClass(["item dark:bg-[#3a3e43]!", [unref(a) === e.active ? "active" : "", `item-${e.active}`]]),
|
|
94
|
+
aspect: "[9/6]",
|
|
95
|
+
onClick: (t) => f(e.active),
|
|
96
|
+
onMouseenter: (e) => c(t),
|
|
97
|
+
onMouseleave: (e) => l(t)
|
|
98
|
+
}, [createElementVNode("div", _hoisted_9, toDisplayString(e.descripe), 1), createElementVNode("div", _hoisted_10, [(openBlock(), createBlock(animation_item_default, {
|
|
99
|
+
key: t,
|
|
100
|
+
ref_for: !0,
|
|
101
|
+
ref: (e) => unref(o)[t] = e,
|
|
102
|
+
"light-animation-data": e.lightData,
|
|
103
|
+
"dark-animation-data": e.darkData
|
|
104
|
+
}, null, 8, ["light-animation-data", "dark-animation-data"]))])], 42, _hoisted_8))), 128))])])])])]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}), [["__scopeId", "data-v-fa18e8e3"]]);
|
|
108
|
+
export { page_animation_setting_default as default };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
|
|
2
|
+
import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
|
|
3
|
+
import "./animation_item-DBOz2rcX.js";
|
|
4
|
+
import "./HCheckList-ODQHidN8.js";
|
|
5
|
+
import { t as setItem_default } from "./setItem-Vkcwkj-O.js";
|
|
6
|
+
import { PubinfoIcon } from "pubinfo-nightly";
|
|
7
|
+
import { Fragment, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, reactive, renderList, resolveComponent, unref } from "vue";
|
|
8
|
+
import { message } from "ant-design-vue";
|
|
9
|
+
import './tabbar_setting.css';var enable_default$1 = new URL("json-asset-d430c8ca.json", import.meta.url).href, enableHotkeys_default$1 = new URL("json-asset-1ef286cd.json", import.meta.url).href, enableIcon_default$1 = new URL("json-asset-28d57c49.json", import.meta.url).href, enableMemory_default$1 = new URL("json-asset-15b8cef1.json", import.meta.url).href, style_default$1 = new URL("json-asset-d33c0299.json", import.meta.url).href, enable_default = new URL("json-asset-31c58607.json", import.meta.url).href, enableHotkeys_default = new URL("json-asset-0ee63e7f.json", import.meta.url).href, enableIcon_default = new URL("json-asset-e34ad826.json", import.meta.url).href, enableMemory_default = new URL("json-asset-6583dca6.json", import.meta.url).href, style_default = new URL("json-asset-e2bdf85c.json", import.meta.url).href, _hoisted_1 = {
|
|
10
|
+
"w-full": "",
|
|
11
|
+
"h-full": "",
|
|
12
|
+
"p-10px": ""
|
|
13
|
+
}, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "h-[38px] pl-[16px] flex flex-row items-center bar-header" }, _hoisted_4 = {
|
|
14
|
+
class: "mt-[22px] grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
15
|
+
aspect: "[3/2] "
|
|
16
|
+
}, tabbar_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
17
|
+
name: "TabbarAnimationSetting",
|
|
18
|
+
__name: "index",
|
|
19
|
+
setup(e) {
|
|
20
|
+
let r = useSettingsStore(), i = reactive([
|
|
21
|
+
{
|
|
22
|
+
name: "是否启用",
|
|
23
|
+
type: "switch",
|
|
24
|
+
descripe: "",
|
|
25
|
+
open: r.globalSettings.tabbar.enable,
|
|
26
|
+
activeStyle: "",
|
|
27
|
+
lightData: enable_default,
|
|
28
|
+
darkData: enable_default$1
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "风格",
|
|
32
|
+
type: "check",
|
|
33
|
+
descripe: "",
|
|
34
|
+
open: !0,
|
|
35
|
+
activeStyle: r.globalSettings.tabbar.style,
|
|
36
|
+
styleOptions: [
|
|
37
|
+
{
|
|
38
|
+
label: "时尚",
|
|
39
|
+
value: "fashion"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "卡片",
|
|
43
|
+
value: "card"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "方块",
|
|
47
|
+
value: "square"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
lightData: style_default,
|
|
51
|
+
darkData: style_default$1
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "是否显示图标",
|
|
55
|
+
type: "switch",
|
|
56
|
+
descripe: "",
|
|
57
|
+
open: r.globalSettings.tabbar.enableIcon,
|
|
58
|
+
activeStyle: "",
|
|
59
|
+
lightData: enableIcon_default,
|
|
60
|
+
darkData: enableIcon_default$1
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "是否启用记忆功能",
|
|
64
|
+
type: "switch",
|
|
65
|
+
descripe: "开启该功能后,非固定和非常驻的标签页将在本次会话窗口中始终存在,刷新浏览器或重新登录时不会丢失",
|
|
66
|
+
open: r.globalSettings.tabbar.enableMemory,
|
|
67
|
+
activeStyle: "",
|
|
68
|
+
lightData: enableMemory_default,
|
|
69
|
+
darkData: enableMemory_default$1
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "是否启用快捷键",
|
|
73
|
+
type: "switch",
|
|
74
|
+
descripe: "",
|
|
75
|
+
open: r.globalSettings.tabbar.enableHotkeys,
|
|
76
|
+
activeStyle: "",
|
|
77
|
+
lightData: enableHotkeys_default,
|
|
78
|
+
darkData: enableHotkeys_default$1
|
|
79
|
+
}
|
|
80
|
+
]), a = "";
|
|
81
|
+
function o(e, t) {
|
|
82
|
+
switch (e) {
|
|
83
|
+
case 0:
|
|
84
|
+
r.globalSettings.tabbar.enable = t, a = JSON.stringify({ tabbar: { enable: t } });
|
|
85
|
+
break;
|
|
86
|
+
case 1:
|
|
87
|
+
r.globalSettings.tabbar.style = t, a = JSON.stringify({ tabbar: { style: t } });
|
|
88
|
+
break;
|
|
89
|
+
case 2:
|
|
90
|
+
r.globalSettings.tabbar.enableIcon = t, a = JSON.stringify({ tabbar: { enableIcon: t } });
|
|
91
|
+
break;
|
|
92
|
+
case 3:
|
|
93
|
+
r.globalSettings.tabbar.enableMemory = t, a = JSON.stringify({ tabbar: { enableMemory: t } });
|
|
94
|
+
break;
|
|
95
|
+
case 4:
|
|
96
|
+
r.globalSettings.tabbar.enableHotkeys = t, a = JSON.stringify({ tabbar: { enableHotkeys: t } });
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
s(a);
|
|
100
|
+
}
|
|
101
|
+
function s(e) {
|
|
102
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
|
|
103
|
+
e.success && message.success("设置成功");
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return (e, t) => {
|
|
107
|
+
let n = PubinfoIcon;
|
|
108
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
|
|
109
|
+
name: "icon_tabbar",
|
|
110
|
+
class: "text-base mr-[6px]",
|
|
111
|
+
size: 22
|
|
112
|
+
}), t[0] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "标签栏", -1)]), createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(i), (e, t) => (openBlock(), createBlock(setItem_default, {
|
|
113
|
+
key: e.name,
|
|
114
|
+
class: "mb-20px",
|
|
115
|
+
aspect: "[9/6]",
|
|
116
|
+
name: e.name,
|
|
117
|
+
descripe: e.descripe,
|
|
118
|
+
open: e.open,
|
|
119
|
+
type: e.type,
|
|
120
|
+
"active-style": e.activeStyle,
|
|
121
|
+
"style-options": e.styleOptions,
|
|
122
|
+
"light-animation-data": e.lightData,
|
|
123
|
+
"dark-animation-data": e.darkData,
|
|
124
|
+
onChange: (e) => o(t, e)
|
|
125
|
+
}, null, 8, [
|
|
126
|
+
"name",
|
|
127
|
+
"descripe",
|
|
128
|
+
"open",
|
|
129
|
+
"type",
|
|
130
|
+
"active-style",
|
|
131
|
+
"style-options",
|
|
132
|
+
"light-animation-data",
|
|
133
|
+
"dark-animation-data",
|
|
134
|
+
"onChange"
|
|
135
|
+
]))), 128))])])]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}), [["__scopeId", "data-v-5b9fb472"]]);
|
|
139
|
+
export { tabbar_setting_default as default };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
|
|
2
|
+
import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
|
|
3
|
+
import "./animation_item-DBOz2rcX.js";
|
|
4
|
+
import "./HCheckList-ODQHidN8.js";
|
|
5
|
+
import { t as setItem_default } from "./setItem-Vkcwkj-O.js";
|
|
6
|
+
import { PubinfoIcon } from "pubinfo-nightly";
|
|
7
|
+
import { Fragment, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, reactive, renderList, resolveComponent, unref } from "vue";
|
|
8
|
+
import { message } from "ant-design-vue";
|
|
9
|
+
import './toolbar_setting.css';var enableColorScheme_default$1 = new URL("json-asset-64e176c9.json", import.meta.url).href, enableFullscreen_default$1 = new URL("json-asset-57c732a3.json", import.meta.url).href, enableNotification_default$1 = new URL("json-asset-8465c2cf.json", import.meta.url).href, enablePageReload_default$1 = new URL("json-asset-9e9f04a4.json", import.meta.url).href, enableUserPreferences_default$1 = new URL("json-asset-a13964cb.json", import.meta.url).href, navSearchEnable_default$1 = new URL("json-asset-520a5c68.json", import.meta.url).href, navSearchEnableHotkeys_default$1 = new URL("json-asset-3f27d67c.json", import.meta.url).href, enableColorScheme_default = new URL("json-asset-1ae9b726.json", import.meta.url).href, enableFullscreen_default = new URL("json-asset-13f452f1.json", import.meta.url).href, enableNotification_default = new URL("json-asset-15f77960.json", import.meta.url).href, enablePageReload_default = new URL("json-asset-bf00eaed.json", import.meta.url).href, enableUserPreferences_default = new URL("json-asset-32884f23.json", import.meta.url).href, navSearchEnable_default = new URL("json-asset-d8cfa560.json", import.meta.url).href, navSearchEnableHotkeys_default = new URL("json-asset-cb953f20.json", import.meta.url).href, _hoisted_1 = {
|
|
10
|
+
"w-full": "",
|
|
11
|
+
"h-full": "",
|
|
12
|
+
"p-10px": ""
|
|
13
|
+
}, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px pb-30px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "h-[38px] pl-[16px] flex flex-row items-center bar-header" }, _hoisted_4 = {
|
|
14
|
+
class: "mt-[22px] grid grid-cols-3 gap-x-[20px] px-30px w-full h-0 max-w-1500px",
|
|
15
|
+
aspect: "[3/2] "
|
|
16
|
+
}, toolbar_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
17
|
+
name: "ToolbarSetting",
|
|
18
|
+
__name: "index",
|
|
19
|
+
setup(e) {
|
|
20
|
+
let i = useSettingsStore(), a = reactive([
|
|
21
|
+
{
|
|
22
|
+
name: "通知中心",
|
|
23
|
+
type: "switch",
|
|
24
|
+
descripe: "该功能具体业务功能需自行开发,框架仅提供示例模版",
|
|
25
|
+
open: i.globalSettings.toolbar.enableNotification,
|
|
26
|
+
parentName: "toolbar",
|
|
27
|
+
childName: "enableNotification",
|
|
28
|
+
activeStyle: "",
|
|
29
|
+
lightData: enableNotification_default,
|
|
30
|
+
darkData: enableNotification_default$1
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "全屏",
|
|
34
|
+
type: "switch",
|
|
35
|
+
descripe: "",
|
|
36
|
+
parentName: "toolbar",
|
|
37
|
+
childName: "enableFullscreen",
|
|
38
|
+
open: i.globalSettings.toolbar.enableFullscreen,
|
|
39
|
+
activeStyle: "",
|
|
40
|
+
lightData: enableFullscreen_default,
|
|
41
|
+
darkData: enableFullscreen_default$1
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "页面刷新",
|
|
45
|
+
type: "switch",
|
|
46
|
+
descripe: "使用框架内提供的刷新功能进行页面刷新",
|
|
47
|
+
parentName: "toolbar",
|
|
48
|
+
childName: "enablePageReload",
|
|
49
|
+
open: i.globalSettings.toolbar.enablePageReload,
|
|
50
|
+
activeStyle: "",
|
|
51
|
+
lightData: enablePageReload_default,
|
|
52
|
+
darkData: enablePageReload_default$1
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "暗黑主题切换",
|
|
56
|
+
type: "switch",
|
|
57
|
+
descripe: "开启后可在明亮/暗黑模式中切换",
|
|
58
|
+
parentName: "toolbar",
|
|
59
|
+
childName: "enableColorScheme",
|
|
60
|
+
open: i.globalSettings.toolbar.enableColorScheme,
|
|
61
|
+
activeStyle: "",
|
|
62
|
+
lightData: enableColorScheme_default,
|
|
63
|
+
darkData: enableColorScheme_default$1
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "个性偏好设置",
|
|
67
|
+
type: "switch",
|
|
68
|
+
descripe: "",
|
|
69
|
+
parentName: "app",
|
|
70
|
+
childName: "enableUserPreferences",
|
|
71
|
+
open: i.globalSettings.app.enableUserPreferences,
|
|
72
|
+
activeStyle: "",
|
|
73
|
+
lightData: enableUserPreferences_default,
|
|
74
|
+
darkData: enableUserPreferences_default$1
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "导航搜索",
|
|
78
|
+
type: "switch",
|
|
79
|
+
descripe: "",
|
|
80
|
+
parentName: "navSearch",
|
|
81
|
+
childName: "enable",
|
|
82
|
+
open: i.globalSettings.navSearch.enable,
|
|
83
|
+
activeStyle: "",
|
|
84
|
+
lightData: navSearchEnable_default,
|
|
85
|
+
darkData: navSearchEnable_default$1
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "导航搜索快捷键",
|
|
89
|
+
type: "switch",
|
|
90
|
+
descripe: "",
|
|
91
|
+
parentName: "navSearch",
|
|
92
|
+
childName: "enableHotkeys",
|
|
93
|
+
open: i.globalSettings.navSearch.enableHotkeys,
|
|
94
|
+
activeStyle: "",
|
|
95
|
+
lightData: navSearchEnableHotkeys_default,
|
|
96
|
+
darkData: navSearchEnableHotkeys_default$1
|
|
97
|
+
}
|
|
98
|
+
]);
|
|
99
|
+
function o(e, t, n) {
|
|
100
|
+
if (i.globalSettings[e] && i.globalSettings[e][t] !== void 0) {
|
|
101
|
+
i.globalSettings[e][t] = n;
|
|
102
|
+
let r = {};
|
|
103
|
+
r[e] = {}, r[e][t] = n, s(JSON.stringify(r));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function s(e) {
|
|
107
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
|
|
108
|
+
e.success && message.success("设置成功");
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return (e, t) => {
|
|
112
|
+
let n = PubinfoIcon;
|
|
113
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
|
|
114
|
+
name: "icon_toolbar",
|
|
115
|
+
class: "text-base mr-[6px]",
|
|
116
|
+
size: 22
|
|
117
|
+
}), t[0] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "工具栏", -1)]), createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (e) => (openBlock(), createBlock(setItem_default, {
|
|
118
|
+
key: e.name,
|
|
119
|
+
class: "mb-20px",
|
|
120
|
+
aspect: "[9/6]",
|
|
121
|
+
name: e.name,
|
|
122
|
+
descripe: e.descripe,
|
|
123
|
+
open: e.open,
|
|
124
|
+
type: e.type,
|
|
125
|
+
"light-animation-data": e.lightData,
|
|
126
|
+
"dark-animation-data": e.darkData,
|
|
127
|
+
onChange: (t) => o(e.parentName, e.childName, t)
|
|
128
|
+
}, null, 8, [
|
|
129
|
+
"name",
|
|
130
|
+
"descripe",
|
|
131
|
+
"open",
|
|
132
|
+
"type",
|
|
133
|
+
"light-animation-data",
|
|
134
|
+
"dark-animation-data",
|
|
135
|
+
"onChange"
|
|
136
|
+
]))), 128))])])]);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}), [["__scopeId", "data-v-dc8e4487"]]);
|
|
140
|
+
export { toolbar_setting_default as default };
|