@pubinfo-pr/module-rbac 0.222.4 → 0.222.6
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-CenYZfHD.js +108 -0
- package/dist/index.js +14 -14
- package/dist/menu_setting-ogTQzu1D.js +155 -0
- package/dist/other_setting-BRA_NCwo.js +213 -0
- package/dist/page_animation_setting-D4glFlEk.js +109 -0
- package/dist/tabbar_setting-BbhYRbEq.js +139 -0
- package/dist/toolbar_setting-V4EHgnFb.js +140 -0
- package/dist/watermark_setting-jYKVi0Yf.js +191 -0
- package/package.json +3 -3
- package/dist/breadcrumb_setting-CW3eWnlU.js +0 -108
- package/dist/lottie-03f0a035.json +0 -1
- package/dist/lottie-0ee63e7f.json +0 -1
- package/dist/lottie-10eef4fe.json +0 -1
- package/dist/lottie-13f452f1.json +0 -1
- package/dist/lottie-14b7b290.json +0 -1
- package/dist/lottie-15b8cef1.json +0 -1
- package/dist/lottie-15f77960.json +0 -1
- package/dist/lottie-1ae9b726.json +0 -1
- package/dist/lottie-1b02359f.json +0 -1
- package/dist/lottie-1ef286cd.json +0 -1
- package/dist/lottie-23cfd18c.json +0 -1
- package/dist/lottie-265a0a5d.json +0 -1
- package/dist/lottie-28d57c49.json +0 -1
- package/dist/lottie-2b54ed10.json +0 -1
- package/dist/lottie-2bb6f642.json +0 -1
- package/dist/lottie-2cdc07bd.json +0 -1
- package/dist/lottie-31c58607.json +0 -1
- package/dist/lottie-32884f23.json +0 -1
- package/dist/lottie-32fca43a.json +0 -1
- package/dist/lottie-3a75445b.json +0 -1
- package/dist/lottie-3f27d67c.json +0 -1
- package/dist/lottie-4189453f.json +0 -1
- package/dist/lottie-4702b37c.json +0 -1
- package/dist/lottie-520a5c68.json +0 -1
- package/dist/lottie-56bea508.json +0 -1
- package/dist/lottie-57c732a3.json +0 -1
- package/dist/lottie-5be4a28f.json +0 -1
- package/dist/lottie-5e6d7cfa.json +0 -1
- package/dist/lottie-64e176c9.json +0 -1
- package/dist/lottie-6583dca6.json +0 -1
- package/dist/lottie-66c640c6.json +0 -1
- package/dist/lottie-68393156.json +0 -1
- package/dist/lottie-688465aa.json +0 -1
- package/dist/lottie-6bf334f4.json +0 -1
- package/dist/lottie-7b4f72ce.json +0 -1
- package/dist/lottie-837ec087.json +0 -1
- package/dist/lottie-838ac1ba.json +0 -1
- package/dist/lottie-8465c2cf.json +0 -1
- package/dist/lottie-9e9f04a4.json +0 -1
- package/dist/lottie-a13964cb.json +0 -1
- package/dist/lottie-ab93a057.json +0 -1
- package/dist/lottie-abe308fc.json +0 -1
- package/dist/lottie-b24f2cd3.json +0 -1
- package/dist/lottie-bf00eaed.json +0 -1
- package/dist/lottie-cb22efd7.json +0 -1
- package/dist/lottie-cb953f20.json +0 -1
- package/dist/lottie-cc209e34.json +0 -1
- package/dist/lottie-cfdffceb.json +0 -1
- package/dist/lottie-d33c0299.json +0 -1
- package/dist/lottie-d430c8ca.json +0 -1
- package/dist/lottie-d8cfa560.json +0 -1
- package/dist/lottie-da91beb6.json +0 -1
- package/dist/lottie-e2bdf85c.json +0 -1
- package/dist/lottie-e34ad826.json +0 -1
- package/dist/lottie-e80720aa.json +0 -1
- package/dist/lottie-e894bc92.json +0 -1
- package/dist/lottie-f28020f2.json +0 -1
- package/dist/lottie-f71ebbf4.json +0 -1
- package/dist/lottie-fb1f4917.json +0 -1
- package/dist/lottie-ff2e97c4.json +0 -1
- package/dist/menu_setting-C5Pr_E9s.js +0 -155
- package/dist/other_setting-DaDLf9QC.js +0 -213
- package/dist/page_animation_setting-BzlBS0Sa.js +0 -109
- package/dist/tabbar_setting-C_B1WZn1.js +0 -139
- package/dist/toolbar_setting-BPROx6V9.js +0 -140
- package/dist/watermark_setting-r0rMSViF.js +0 -191
|
@@ -1,213 +0,0 @@
|
|
|
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-Bjl8zTpQ.js";
|
|
6
|
-
import { PubinfoIcon } from "pubinfo-pr";
|
|
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("lottie-66c640c6.json", import.meta.url).href, enableHotkeys_default$1 = new URL("lottie-f71ebbf4.json", import.meta.url).href, switchTabbarAndToolbar_default$1 = new URL("lottie-838ac1ba.json", import.meta.url).href, enableCopyright_default = new URL("lottie-ab93a057.json", import.meta.url).href, enableHotkeys_default = new URL("lottie-da91beb6.json", import.meta.url).href, switchTabbarAndToolbar_default = new URL("lottie-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 };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { 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-pr";
|
|
5
|
-
import { Fragment, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, isRef, 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
|
-
var fadeinout_default$1 = new URL("lottie-cfdffceb.json", import.meta.url).href, tobottom_default$1 = new URL("lottie-5e6d7cfa.json", import.meta.url).href, toleft_default$1 = new URL("lottie-4189453f.json", import.meta.url).href, toright_default$1 = new URL("lottie-ff2e97c4.json", import.meta.url).href, totop_default$1 = new URL("lottie-68393156.json", import.meta.url).href, fadeinout_default = new URL("lottie-265a0a5d.json", import.meta.url).href, tobottom_default = new URL("lottie-837ec087.json", import.meta.url).href, toleft_default = new URL("lottie-1b02359f.json", import.meta.url).href, toright_default = new URL("lottie-3a75445b.json", import.meta.url).href, totop_default = new URL("lottie-e80720aa.json", import.meta.url).href, _hoisted_1 = { class: "w-full h-full p-10px" }, _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 = {
|
|
9
|
-
class: "flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
10
|
-
aspect: "[3/2]"
|
|
11
|
-
}, _hoisted_8 = [
|
|
12
|
-
"data-status",
|
|
13
|
-
"onClick",
|
|
14
|
-
"onMouseenter",
|
|
15
|
-
"onMouseleave"
|
|
16
|
-
], _hoisted_9 = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, _hoisted_10 = {
|
|
17
|
-
class: "flex-1 mt-[20px] w-[75%] rounded-[8px] py-[10px] flex justify-center",
|
|
18
|
-
style: { background: "linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%)" }
|
|
19
|
-
}, page_animation_setting_default = /* @__PURE__ */ defineComponent({
|
|
20
|
-
name: "PageAnimationSetting",
|
|
21
|
-
__name: "index",
|
|
22
|
-
setup(n) {
|
|
23
|
-
let i = useSettingsStore(), { enableTransition: a, transitionMode: o } = toRefs(i.globalSettings.mainPage), s = ref([]), c = 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 l(e) {
|
|
61
|
-
s.value[e] && s.value[e]?.play();
|
|
62
|
-
}
|
|
63
|
-
function u(e) {
|
|
64
|
-
s.value[e] && s.value[e]?.stop();
|
|
65
|
-
}
|
|
66
|
-
let d = ref(a.value);
|
|
67
|
-
function f(e) {
|
|
68
|
-
i.globalSettings.mainPage.enableTransition = e, m(JSON.stringify({ mainPage: { enableTransition: e } }));
|
|
69
|
-
}
|
|
70
|
-
function p(e) {
|
|
71
|
-
e && (o.value = e, i.globalSettings.mainPage.transitionMode = e, m(JSON.stringify({ mainPage: { transitionMode: e } })));
|
|
72
|
-
}
|
|
73
|
-
function m(t) {
|
|
74
|
-
postSysconfigAddOrEidtSysThemeStyleConfig({ content: t }).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(d),
|
|
86
|
-
"onUpdate:checked": t[0] ||= (e) => isRef(d) ? d.value = e : null,
|
|
87
|
-
class: "ml-30px!",
|
|
88
|
-
"checked-children": "开启",
|
|
89
|
-
"un-checked-children": "关闭",
|
|
90
|
-
onChange: f
|
|
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(c), (e, t) => (openBlock(), createElementBlock("div", {
|
|
92
|
-
key: e.active,
|
|
93
|
-
class: "flex flex-col cursor-pointer bg-[color:var(--g-bg)] border border-[color:var(--g-tabbar-tab-hover-bg)] [place-items:center_center] pt-[26px] rounded-lg border-solid dark:bg-[#3a3e43]! data-[status=active]:border-[rgb(var(--ui-primary))] data-[status=active]:shadow-[0_2.6px_13px_0_#59626940] data-[status=active]:rounded-lg data-[status=active]:border-[2.6px] data-[status=active]:border-solid",
|
|
94
|
-
"data-status": [unref(o) === e.active ? "active" : "", `item-${e.active}`],
|
|
95
|
-
aspect: "[9/6]",
|
|
96
|
-
onClick: (t) => p(e.active),
|
|
97
|
-
onMouseenter: (e) => l(t),
|
|
98
|
-
onMouseleave: (e) => u(t)
|
|
99
|
-
}, [createElementVNode("div", _hoisted_9, toDisplayString(e.descripe), 1), createElementVNode("div", _hoisted_10, [(openBlock(), createBlock(animation_item_default, {
|
|
100
|
-
key: t,
|
|
101
|
-
ref_for: !0,
|
|
102
|
-
ref: (e) => unref(s)[t] = e,
|
|
103
|
-
"light-animation-data": e.lightData,
|
|
104
|
-
"dark-animation-data": e.darkData
|
|
105
|
-
}, null, 8, ["light-animation-data", "dark-animation-data"]))])], 40, _hoisted_8))), 128))])])])])]);
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
export { page_animation_setting_default as default };
|
|
@@ -1,139 +0,0 @@
|
|
|
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-Bjl8zTpQ.js";
|
|
6
|
-
import { PubinfoIcon } from "pubinfo-pr";
|
|
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("lottie-d430c8ca.json", import.meta.url).href, enableHotkeys_default$1 = new URL("lottie-1ef286cd.json", import.meta.url).href, enableIcon_default$1 = new URL("lottie-28d57c49.json", import.meta.url).href, enableMemory_default$1 = new URL("lottie-15b8cef1.json", import.meta.url).href, style_default$1 = new URL("lottie-d33c0299.json", import.meta.url).href, enable_default = new URL("lottie-31c58607.json", import.meta.url).href, enableHotkeys_default = new URL("lottie-0ee63e7f.json", import.meta.url).href, enableIcon_default = new URL("lottie-e34ad826.json", import.meta.url).href, enableMemory_default = new URL("lottie-6583dca6.json", import.meta.url).href, style_default = new URL("lottie-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 };
|
|
@@ -1,140 +0,0 @@
|
|
|
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-Bjl8zTpQ.js";
|
|
6
|
-
import { PubinfoIcon } from "pubinfo-pr";
|
|
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("lottie-64e176c9.json", import.meta.url).href, enableFullscreen_default$1 = new URL("lottie-57c732a3.json", import.meta.url).href, enableNotification_default$1 = new URL("lottie-8465c2cf.json", import.meta.url).href, enablePageReload_default$1 = new URL("lottie-9e9f04a4.json", import.meta.url).href, enableUserPreferences_default$1 = new URL("lottie-a13964cb.json", import.meta.url).href, navSearchEnable_default$1 = new URL("lottie-520a5c68.json", import.meta.url).href, navSearchEnableHotkeys_default$1 = new URL("lottie-3f27d67c.json", import.meta.url).href, enableColorScheme_default = new URL("lottie-1ae9b726.json", import.meta.url).href, enableFullscreen_default = new URL("lottie-13f452f1.json", import.meta.url).href, enableNotification_default = new URL("lottie-15f77960.json", import.meta.url).href, enablePageReload_default = new URL("lottie-bf00eaed.json", import.meta.url).href, enableUserPreferences_default = new URL("lottie-32884f23.json", import.meta.url).href, navSearchEnable_default = new URL("lottie-d8cfa560.json", import.meta.url).href, navSearchEnableHotkeys_default = new URL("lottie-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 };
|