yh-pub 2.0.17 → 2.0.19

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 (37) hide show
  1. package/{AdminLogin-DphyKZPW.js → AdminLogin-BO6LBhX4.js} +2 -2
  2. package/{AdminLogin-DphyKZPW.js.map → AdminLogin-BO6LBhX4.js.map} +1 -1
  3. package/{Error-CtMxKIrL.js → Error-Cu8ZyNGy.js} +2 -2
  4. package/{Error-CtMxKIrL.js.map → Error-Cu8ZyNGy.js.map} +1 -1
  5. package/{Error401-CkWdE1-U.js → Error401-BlxNP-z2.js} +3 -3
  6. package/{Error401-CkWdE1-U.js.map → Error401-BlxNP-z2.js.map} +1 -1
  7. package/{Error404-Jh86cttv.js → Error404-DZ04uTX_.js} +3 -3
  8. package/{Error404-Jh86cttv.js.map → Error404-DZ04uTX_.js.map} +1 -1
  9. package/{Error500-Bciz55ct.js → Error500-EnaAvRHg.js} +3 -3
  10. package/{Error500-Bciz55ct.js.map → Error500-EnaAvRHg.js.map} +1 -1
  11. package/{HomeIndex-By7xqMmN.js → HomeIndex-B-vY8ijY.js} +2 -2
  12. package/{HomeIndex-By7xqMmN.js.map → HomeIndex-B-vY8ijY.js.map} +1 -1
  13. package/IconExplorer-qW9wfu65.js +75 -0
  14. package/IconExplorer-qW9wfu65.js.map +1 -0
  15. package/Index-Cq0YTHU1.js +5 -0
  16. package/Index-Cq0YTHU1.js.map +1 -0
  17. package/{MainLogin-B8G5zG2_.js → MainLogin-BNH1G8-y.js} +2 -2
  18. package/{MainLogin-B8G5zG2_.js.map → MainLogin-BNH1G8-y.js.map} +1 -1
  19. package/{MenuManage-C032-Z-y.js → MenuManage-Xm8iH8Qc.js} +2 -2
  20. package/{MenuManage-C032-Z-y.js.map → MenuManage-Xm8iH8Qc.js.map} +1 -1
  21. package/{OrgManage-D_1GSIEW.js → OrgManage-dBnClzKk.js} +2 -2
  22. package/{OrgManage-D_1GSIEW.js.map → OrgManage-dBnClzKk.js.map} +1 -1
  23. package/{RoleManage-DGF2hBb9.js → RoleManage-Do66qpZN.js} +2 -2
  24. package/{RoleManage-DGF2hBb9.js.map → RoleManage-Do66qpZN.js.map} +1 -1
  25. package/{SysConfig-Bz1aCBiF.js → SysConfig-CCm80eJB.js} +2 -2
  26. package/{SysConfig-Bz1aCBiF.js.map → SysConfig-CCm80eJB.js.map} +1 -1
  27. package/{TenantList-BN1me24x.js → TenantList--3JWscXe.js} +2 -2
  28. package/{TenantList-BN1me24x.js.map → TenantList--3JWscXe.js.map} +1 -1
  29. package/{index-BGa5B4PM.js → index-B7FFNPt7.js} +6034 -6017
  30. package/{index-BGa5B4PM.js.map → index-B7FFNPt7.js.map} +1 -1
  31. package/index.es.js +36 -32
  32. package/package.json +1 -1
  33. package/style.css +1 -1
  34. package/IconExplorer-Dr3j5Xa5.js +0 -66
  35. package/IconExplorer-Dr3j5Xa5.js.map +0 -1
  36. package/Index-CG8Z5RuS.js +0 -5
  37. package/Index-CG8Z5RuS.js.map +0 -1
@@ -1,66 +0,0 @@
1
- import { defineComponent as x, ref as i, computed as g, onMounted as h, resolveComponent as s, resolveDirective as C, openBlock as t, createElementBlock as a, createVNode as u, unref as F, withDirectives as b, Fragment as w, renderList as I, createElementVNode as k, toDisplayString as L } from "vue";
2
- import { ElMessage as E } from "element-plus";
3
- import { g as V, c as d, _ as Y } from "./index-BGa5B4PM.js";
4
- const $ = { class: "icon-explorer-page" }, D = { class: "icon-grid-container" }, B = ["onClick"], M = { class: "icon-name" }, N = /* @__PURE__ */ x({
5
- __name: "IconExplorer",
6
- setup(T) {
7
- const c = i(""), r = i(!1), l = i([]), p = g(() => {
8
- const o = c.value.toLowerCase();
9
- return o ? l.value.filter(
10
- (e) => e.label && e.label.toLowerCase().includes(o) || e.value && e.value.toLowerCase().includes(o) || e.pinyinFull && e.pinyinFull.includes(o) || e.pinyinFirst && e.pinyinFirst.includes(o)
11
- ) : l.value;
12
- });
13
- function v(o) {
14
- if (navigator.clipboard) {
15
- navigator.clipboard.writeText(o);
16
- return;
17
- }
18
- const e = document.createElement("textarea");
19
- e.value = o, e.style.position = "fixed", e.style.opacity = "0", document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
20
- }
21
- function f(o) {
22
- const e = `<YhIcon fontFamily="${o.fontFamily}" prefix="${o.prefix}" name="${o.value}"></YhIcon>`;
23
- v(e), E.success(d("已复制: ") + e);
24
- }
25
- return h(async () => {
26
- if (!(l.value.length > 0)) {
27
- r.value = !0;
28
- try {
29
- l.value = await V();
30
- } finally {
31
- r.value = !1;
32
- }
33
- }
34
- }), (o, e) => {
35
- const _ = s("el-input"), m = s("YhIcon"), y = C("loading");
36
- return t(), a("div", $, [
37
- u(_, {
38
- modelValue: c.value,
39
- "onUpdate:modelValue": e[0] || (e[0] = (n) => c.value = n),
40
- placeholder: F(d)("输入中文、英文、拼音筛选"),
41
- "allow-clear": ""
42
- }, null, 8, ["modelValue", "placeholder"]),
43
- b((t(), a("div", D, [
44
- (t(!0), a(w, null, I(p.value, (n) => (t(), a("div", {
45
- key: n.value,
46
- class: "icon-grid-item",
47
- onClick: (S) => f(n)
48
- }, [
49
- u(m, {
50
- fontFamily: n.fontFamily,
51
- prefix: n.prefix,
52
- name: n.value
53
- }, null, 8, ["fontFamily", "prefix", "name"]),
54
- k("span", M, L(n.value), 1)
55
- ], 8, B))), 128))
56
- ])), [
57
- [y, r.value]
58
- ])
59
- ]);
60
- };
61
- }
62
- }), z = /* @__PURE__ */ Y(N, [["__scopeId", "data-v-27bdba05"]]);
63
- export {
64
- z as default
65
- };
66
- //# sourceMappingURL=IconExplorer-Dr3j5Xa5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconExplorer-Dr3j5Xa5.js","sources":["../layout/components/IconExplorer.vue"],"sourcesContent":["<template>\n <div class=\"icon-explorer-page\">\n <el-input\n v-model=\"keyword\"\n :placeholder=\"ct('输入中文、英文、拼音筛选')\"\n allow-clear />\n\n <div\n v-loading=\"loading\"\n class=\"icon-grid-container\">\n <div\n v-for=\"item in filteredList\"\n :key=\"item.value\"\n class=\"icon-grid-item\"\n @click=\"copyIcon(item)\">\n <YhIcon\n :fontFamily=\"item.fontFamily\"\n :prefix=\"item.prefix\"\n :name=\"item.value\"></YhIcon>\n <span class=\"icon-name\">{{ item.value }}</span>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {ref, computed, onMounted} from 'vue';\n import {ElMessage} from 'element-plus';\n import {getIconList, type IconItem} from '../../components/common/basic/iconData';\n import {ct} from '../../utils/i18nHelp';\n\n const keyword = ref('');\n const loading = ref(false);\n const iconList = ref<IconItem[]>([]);\n\n // 搜索过滤\n const filteredList = computed(() => {\n const kw = keyword.value.toLowerCase();\n if (!kw) return iconList.value;\n return iconList.value.filter(\n (item) =>\n (item.label && item.label.toLowerCase().includes(kw)) ||\n (item.value && item.value.toLowerCase().includes(kw)) ||\n (item.pinyinFull && item.pinyinFull.includes(kw)) ||\n (item.pinyinFirst && item.pinyinFirst.includes(kw))\n );\n });\n\n // 剪贴板复制(含 fallback)\n function copyToClipboard(text: string) {\n if (navigator.clipboard) {\n navigator.clipboard.writeText(text);\n return;\n }\n // fallback:textarea 选区复制\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.style.position = 'fixed';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.select();\n document.execCommand('copy');\n document.body.removeChild(textarea);\n }\n\n function copyIcon(item: IconItem) {\n const code = `<YhIcon fontFamily=\"${item.fontFamily}\" prefix=\"${item.prefix}\" name=\"${item.value}\"></YhIcon>`;\n copyToClipboard(code);\n ElMessage.success(ct('已复制: ') + code);\n }\n\n // 页面加载时获取图标数据\n onMounted(async () => {\n if (iconList.value.length > 0) return;\n loading.value = true;\n try {\n iconList.value = await getIconList();\n } finally {\n loading.value = false;\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .icon-explorer-page {\n height: 100%;\n overflow: hidden;\n box-sizing: border-box;\n padding: 20px;\n display: flex;\n flex-direction: column;\n }\n .icon-grid-container {\n flex: 1;\n overflow: auto;\n margin-top: 16px;\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n }\n\n .icon-grid-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 88px;\n height: 88px;\n cursor: pointer;\n border-radius: 6px;\n transition: all 0.2s;\n\n &:hover {\n transform: scale(1.2);\n background: #f0f2f5;\n }\n\n i {\n font-size: 48px;\n }\n\n .icon-name {\n margin-top: 4px;\n font-size: 11px;\n color: #999;\n max-width: 80px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n</style>\n"],"names":["keyword","ref","loading","iconList","filteredList","computed","kw","item","copyToClipboard","text","textarea","copyIcon","code","ElMessage","ct","onMounted","getIconList","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_el_input","$event","_unref","_withDirectives","_hoisted_2","_Fragment","_renderList","_component_YhIcon","_createElementVNode","_hoisted_4","_toDisplayString"],"mappings":";;;;;;AA+BE,UAAMA,IAAUC,EAAI,EAAE,GAChBC,IAAUD,EAAI,EAAK,GACnBE,IAAWF,EAAgB,EAAE,GAG7BG,IAAeC,EAAS,MAAM;AAClC,YAAMC,IAAKN,EAAQ,MAAM,YAAA;AACzB,aAAKM,IACEH,EAAS,MAAM;AAAA,QACpB,CAACI,MACEA,EAAK,SAASA,EAAK,MAAM,YAAA,EAAc,SAASD,CAAE,KAClDC,EAAK,SAASA,EAAK,MAAM,YAAA,EAAc,SAASD,CAAE,KAClDC,EAAK,cAAcA,EAAK,WAAW,SAASD,CAAE,KAC9CC,EAAK,eAAeA,EAAK,YAAY,SAASD,CAAE;AAAA,MAAA,IANrCH,EAAS;AAAA,IAQ3B,CAAC;AAGD,aAASK,EAAgBC,GAAc;AACrC,UAAI,UAAU,WAAW;AACvB,kBAAU,UAAU,UAAUA,CAAI;AAClC;AAAA,MACF;AAEA,YAAMC,IAAW,SAAS,cAAc,UAAU;AA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cAX5BL,EAAA,KAAO;AAAA,QAAA;;;;;"}
package/Index-CG8Z5RuS.js DELETED
@@ -1,5 +0,0 @@
1
- import { b as f } from "./index-BGa5B4PM.js";
2
- export {
3
- f as default
4
- };
5
- //# sourceMappingURL=Index-CG8Z5RuS.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Index-CG8Z5RuS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}