@pubinfo-pr/module-rbac 0.222.5 → 0.222.7

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 (76) hide show
  1. package/dist/breadcrumb_setting-CenYZfHD.js +108 -0
  2. package/dist/index.js +14 -14
  3. package/dist/menu_setting-ogTQzu1D.js +155 -0
  4. package/dist/other_setting-BRA_NCwo.js +213 -0
  5. package/dist/page_animation_setting-D4glFlEk.js +109 -0
  6. package/dist/tabbar_setting-BbhYRbEq.js +139 -0
  7. package/dist/toolbar_setting-V4EHgnFb.js +140 -0
  8. package/dist/watermark_setting-jYKVi0Yf.js +191 -0
  9. package/package.json +3 -3
  10. package/dist/breadcrumb_setting-CW3eWnlU.js +0 -108
  11. package/dist/lottie-03f0a035.json +0 -1
  12. package/dist/lottie-0ee63e7f.json +0 -1
  13. package/dist/lottie-10eef4fe.json +0 -1
  14. package/dist/lottie-13f452f1.json +0 -1
  15. package/dist/lottie-14b7b290.json +0 -1
  16. package/dist/lottie-15b8cef1.json +0 -1
  17. package/dist/lottie-15f77960.json +0 -1
  18. package/dist/lottie-1ae9b726.json +0 -1
  19. package/dist/lottie-1b02359f.json +0 -1
  20. package/dist/lottie-1ef286cd.json +0 -1
  21. package/dist/lottie-23cfd18c.json +0 -1
  22. package/dist/lottie-265a0a5d.json +0 -1
  23. package/dist/lottie-28d57c49.json +0 -1
  24. package/dist/lottie-2b54ed10.json +0 -1
  25. package/dist/lottie-2bb6f642.json +0 -1
  26. package/dist/lottie-2cdc07bd.json +0 -1
  27. package/dist/lottie-31c58607.json +0 -1
  28. package/dist/lottie-32884f23.json +0 -1
  29. package/dist/lottie-32fca43a.json +0 -1
  30. package/dist/lottie-3a75445b.json +0 -1
  31. package/dist/lottie-3f27d67c.json +0 -1
  32. package/dist/lottie-4189453f.json +0 -1
  33. package/dist/lottie-4702b37c.json +0 -1
  34. package/dist/lottie-520a5c68.json +0 -1
  35. package/dist/lottie-56bea508.json +0 -1
  36. package/dist/lottie-57c732a3.json +0 -1
  37. package/dist/lottie-5be4a28f.json +0 -1
  38. package/dist/lottie-5e6d7cfa.json +0 -1
  39. package/dist/lottie-64e176c9.json +0 -1
  40. package/dist/lottie-6583dca6.json +0 -1
  41. package/dist/lottie-66c640c6.json +0 -1
  42. package/dist/lottie-68393156.json +0 -1
  43. package/dist/lottie-688465aa.json +0 -1
  44. package/dist/lottie-6bf334f4.json +0 -1
  45. package/dist/lottie-7b4f72ce.json +0 -1
  46. package/dist/lottie-837ec087.json +0 -1
  47. package/dist/lottie-838ac1ba.json +0 -1
  48. package/dist/lottie-8465c2cf.json +0 -1
  49. package/dist/lottie-9e9f04a4.json +0 -1
  50. package/dist/lottie-a13964cb.json +0 -1
  51. package/dist/lottie-ab93a057.json +0 -1
  52. package/dist/lottie-abe308fc.json +0 -1
  53. package/dist/lottie-b24f2cd3.json +0 -1
  54. package/dist/lottie-bf00eaed.json +0 -1
  55. package/dist/lottie-cb22efd7.json +0 -1
  56. package/dist/lottie-cb953f20.json +0 -1
  57. package/dist/lottie-cc209e34.json +0 -1
  58. package/dist/lottie-cfdffceb.json +0 -1
  59. package/dist/lottie-d33c0299.json +0 -1
  60. package/dist/lottie-d430c8ca.json +0 -1
  61. package/dist/lottie-d8cfa560.json +0 -1
  62. package/dist/lottie-da91beb6.json +0 -1
  63. package/dist/lottie-e2bdf85c.json +0 -1
  64. package/dist/lottie-e34ad826.json +0 -1
  65. package/dist/lottie-e80720aa.json +0 -1
  66. package/dist/lottie-e894bc92.json +0 -1
  67. package/dist/lottie-f28020f2.json +0 -1
  68. package/dist/lottie-f71ebbf4.json +0 -1
  69. package/dist/lottie-fb1f4917.json +0 -1
  70. package/dist/lottie-ff2e97c4.json +0 -1
  71. package/dist/menu_setting-C5Pr_E9s.js +0 -155
  72. package/dist/other_setting-DaDLf9QC.js +0 -213
  73. package/dist/page_animation_setting-BzlBS0Sa.js +0 -109
  74. package/dist/tabbar_setting-C_B1WZn1.js +0 -139
  75. package/dist/toolbar_setting-BPROx6V9.js +0 -140
  76. package/dist/watermark_setting-r0rMSViF.js +0 -191
@@ -1,191 +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 { t as animation_item_default } from "./animation_item-DBOz2rcX.js";
4
- import { PubinfoIcon, updateWatermark } from "pubinfo-pr";
5
- import { createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, unref, withCtx } from "vue";
6
- import { PlusOutlined } from "@ant-design/icons-vue";
7
- import { message } from "ant-design-vue";
8
- import { Button, Divider, Input as Input$1, InputNumber, Select, Space as Space$1, Switch } from "ant-design-vue/es";
9
- import './watermark_setting.css';var enableWatermark_default$1 = new URL("lottie-688465aa.json", import.meta.url).href, enableWatermark_default = new URL("lottie-cb22efd7.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 box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "h-[38px] pl-[16px] flex flex-row items-center bar-header" }, _hoisted_4 = { class: "px-30px py-20px max-w-1300px flex flex-wrap" }, _hoisted_5 = { class: "h-full w-[75%] rounded-[8px] jb flex justify-center" }, _hoisted_6 = { class: "pt-0px" }, _hoisted_7 = { class: "flex items-center mb-20px w-560px" }, _hoisted_8 = { class: "flex items-center mb-20px w-560px" }, _hoisted_9 = { class: "flex items-center mb-20px w-560px" }, _hoisted_10 = { class: "flex-1" }, _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 mb-20px w-560px" }, _hoisted_14 = { class: "flex items-center mb-20px w-560px" }, _hoisted_15 = { class: "flex items-center flex-row-reverse w-560px" }, watermark_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
10
- name: "WatermarkSetting",
11
- __name: "index",
12
- setup(e) {
13
- let s = defineComponent({
14
- props: { vnodes: {
15
- type: Object,
16
- required: !0
17
- } },
18
- setup(e) {
19
- return () => e.vnodes;
20
- }
21
- }), l = useSettingsStore(), u = ref();
22
- function d() {
23
- u.value && u.value?.play();
24
- }
25
- function f() {
26
- u.value && u.value?.stop();
27
- }
28
- let p = ref({
29
- text: l.globalSettings.watermark.text,
30
- x: l.globalSettings.watermark.x,
31
- y: l.globalSettings.watermark.y,
32
- x_space: l.globalSettings.watermark.x_space,
33
- y_space: l.globalSettings.watermark.y_space,
34
- alpha: l.globalSettings.watermark.alpha,
35
- width: l.globalSettings.watermark.width,
36
- enable: l.globalSettings.watermark.enable
37
- }), m = reactive([
38
- {
39
- label: "组织名称",
40
- value: "O"
41
- },
42
- {
43
- label: "用户名称",
44
- value: "U"
45
- },
46
- {
47
- label: "组织名称 用户名称",
48
- value: "OU"
49
- }
50
- ]), h = ref("");
51
- function g(e) {
52
- e.preventDefault(), h.value &&= (m.push({
53
- label: h.value,
54
- value: h.value
55
- }), "");
56
- }
57
- function _(e) {
58
- postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
59
- e.success && (message.success("设置成功"), updateWatermark());
60
- });
61
- }
62
- function v() {
63
- p.value = {
64
- text: l.globalSettings.watermark.text,
65
- x: l.globalSettings.watermark.x,
66
- y: l.globalSettings.watermark.y,
67
- x_space: l.globalSettings.watermark.x_space,
68
- y_space: l.globalSettings.watermark.y_space,
69
- alpha: l.globalSettings.watermark.alpha,
70
- width: l.globalSettings.watermark.width,
71
- enable: l.globalSettings.watermark.enable
72
- };
73
- }
74
- function y() {
75
- l.globalSettings.watermark.text = p.value.text, l.globalSettings.watermark.width = p.value.width, l.globalSettings.watermark.x = p.value.x, l.globalSettings.watermark.y = p.value.y, l.globalSettings.watermark.x_space = p.value.x_space, l.globalSettings.watermark.y_space = p.value.y_space, l.globalSettings.watermark.alpha = p.value.alpha, l.globalSettings.watermark.enable = p.value.enable, _(JSON.stringify({ watermark: {
76
- text: p.value.text,
77
- width: p.value.width,
78
- x: p.value.x,
79
- y: p.value.y,
80
- x_space: p.value.x_space,
81
- y_space: p.value.y_space,
82
- alpha: p.value.alpha,
83
- enable: p.value.enable
84
- } }));
85
- }
86
- return (e, t) => {
87
- let n = PubinfoIcon, r = Divider, i = Input$1, a = PlusOutlined, o = Button, c = Space$1, l = Select, _ = InputNumber, b = Switch;
88
- return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
89
- name: "icon_watermark",
90
- class: "text-base mr-[6px]",
91
- size: 22
92
- }), t[11] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页面水印", -1)]), createElementVNode("div", _hoisted_4, [createElementVNode("div", {
93
- class: "w-400px h-270px mr-60px mb-20px item_ani dark:bg-[#3a3e43]! dark:border-transparent!",
94
- onMouseenter: t[0] ||= (e) => d(),
95
- onMouseleave: t[1] ||= (e) => f()
96
- }, [createElementVNode("div", _hoisted_5, [createVNode(animation_item_default, {
97
- ref_key: "animateItem",
98
- ref: u,
99
- "light-animation-data": unref(enableWatermark_default),
100
- "dark-animation-data": unref(enableWatermark_default$1)
101
- }, null, 8, ["light-animation-data", "dark-animation-data"])])], 32), createElementVNode("div", _hoisted_6, [
102
- createElementVNode("div", _hoisted_7, [t[13] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印文案", -1), createVNode(l, {
103
- value: unref(p).text,
104
- "onUpdate:value": t[3] ||= (e) => unref(p).text = e,
105
- class: "flex-1",
106
- options: unref(m).map((e) => ({ ...e }))
107
- }, {
108
- dropdownRender: withCtx(({ menuNode: e }) => [
109
- createVNode(unref(s), { vnodes: e }, null, 8, ["vnodes"]),
110
- createVNode(r, { style: { margin: "4px 0" } }),
111
- createVNode(c, { style: { padding: "4px 8px" } }, {
112
- default: withCtx(() => [createVNode(i, {
113
- value: unref(h),
114
- "onUpdate:value": t[2] ||= (e) => isRef(h) ? h.value = e : null,
115
- placeholder: "输入你需要的内容"
116
- }, null, 8, ["value"]), createVNode(o, {
117
- type: "text",
118
- onClick: g
119
- }, {
120
- icon: withCtx(() => [createVNode(a)]),
121
- default: withCtx(() => [t[12] ||= createTextVNode(" 增加选项 ", -1)]),
122
- _: 1
123
- })]),
124
- _: 1
125
- })
126
- ]),
127
- _: 1
128
- }, 8, ["value", "options"])]),
129
- createElementVNode("div", _hoisted_8, [t[14] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印宽度", -1), createVNode(_, {
130
- value: unref(p).width,
131
- "onUpdate:value": t[4] ||= (e) => unref(p).width = e,
132
- class: "flex-1",
133
- min: 1
134
- }, null, 8, ["value"])]),
135
- createElementVNode("div", _hoisted_9, [t[15] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印起始位置", -1), createElementVNode("div", _hoisted_10, [createVNode(c, null, {
136
- default: withCtx(() => [createVNode(_, {
137
- value: unref(p).x,
138
- "onUpdate:value": t[5] ||= (e) => unref(p).x = e,
139
- "addon-before": "x轴坐标",
140
- min: 1
141
- }, null, 8, ["value"]), createVNode(_, {
142
- value: unref(p).y,
143
- "onUpdate:value": t[6] ||= (e) => unref(p).y = e,
144
- "addon-before": "y轴坐标",
145
- min: 1
146
- }, null, 8, ["value"])]),
147
- _: 1
148
- })])]),
149
- createElementVNode("div", _hoisted_11, [t[16] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印x轴间距", -1), createVNode(_, {
150
- value: unref(p).x_space,
151
- "onUpdate:value": t[7] ||= (e) => unref(p).x_space = e,
152
- class: "flex-1",
153
- min: 1
154
- }, null, 8, ["value"])]),
155
- createElementVNode("div", _hoisted_12, [t[17] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印y轴间距", -1), createVNode(_, {
156
- value: unref(p).y_space,
157
- "onUpdate:value": t[8] ||= (e) => unref(p).y_space = e,
158
- class: "flex-1",
159
- min: 1
160
- }, null, 8, ["value"])]),
161
- createElementVNode("div", _hoisted_13, [t[18] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印透明度", -1), createVNode(_, {
162
- value: unref(p).alpha,
163
- "onUpdate:value": t[9] ||= (e) => unref(p).alpha = e,
164
- class: "flex-1",
165
- min: 0,
166
- step: .01
167
- }, null, 8, ["value"])]),
168
- createElementVNode("div", _hoisted_14, [t[19] ||= createElementVNode("label", { class: "w-90px mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "水印开启", -1), createVNode(b, {
169
- checked: unref(p).enable,
170
- "onUpdate:checked": t[10] ||= (e) => unref(p).enable = e,
171
- "checked-children": "开启",
172
- "un-checked-children": "关闭"
173
- }, null, 8, ["checked"])]),
174
- createElementVNode("div", _hoisted_15, [createVNode(o, {
175
- style: { "margin-left": "10px" },
176
- onClick: v
177
- }, {
178
- default: withCtx(() => [...t[20] ||= [createTextVNode(" 重置 ", -1)]]),
179
- _: 1
180
- }), createVNode(o, {
181
- type: "primary",
182
- onClick: y
183
- }, {
184
- default: withCtx(() => [...t[21] ||= [createTextVNode(" 确定 ", -1)]]),
185
- _: 1
186
- })])
187
- ])])])]);
188
- };
189
- }
190
- }), [["__scopeId", "data-v-40510ce7"]]);
191
- export { watermark_setting_default as default };