@zl-ui-kit/components 0.18.1 → 0.18.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as t, ref as
|
|
1
|
+
import { defineComponent as k, computed as t, ref as s, openBlock as c, createElementBlock as u, normalizeClass as f, createBlock as h, createCommentVNode as r, createVNode as g, withCtx as V, createElementVNode as x, renderSlot as I } from "vue";
|
|
2
2
|
import $ from "../ZlAutoTooltip/index.vue.mjs";
|
|
3
3
|
import v from "../ZlIcon/index.vue.mjs";
|
|
4
4
|
const N = { class: "zl-tag__text" }, A = /* @__PURE__ */ k({
|
|
@@ -38,9 +38,9 @@ const N = { class: "zl-tag__text" }, A = /* @__PURE__ */ k({
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["close", "update:visible", "update:selected", "select"],
|
|
40
40
|
setup(e, { emit: b }) {
|
|
41
|
-
const l = e, o = b, m = t(() => l.size ?? "small"), z = t(() => l.disabled), n = t(() => l.dotIcon ? "zl:dot-fill" : l.icon),
|
|
41
|
+
const l = e, o = b, m = t(() => l.size ?? "small"), z = t(() => l.disabled), n = t(() => l.dotIcon ? "zl:dot-fill" : l.icon), i = s(l.defaultVisible), y = t(() => l.visible ?? i.value), B = t(() => !l.selectable && l.fill), a = s(l.defaultSelected), p = t(() => l.selected ?? a.value);
|
|
42
42
|
function C(d) {
|
|
43
|
-
|
|
43
|
+
i.value = !1, o("update:visible", !1), o("close", d);
|
|
44
44
|
}
|
|
45
45
|
function S() {
|
|
46
46
|
l.selectable && (a.value = !a.value, o("update:selected", a.value), o("select", a.value));
|
|
@@ -83,7 +83,7 @@ const N = { class: "zl-tag__text" }, A = /* @__PURE__ */ k({
|
|
|
83
83
|
class: "zl-tag__close",
|
|
84
84
|
onClick: C
|
|
85
85
|
}, [
|
|
86
|
-
g(v, { icon: "zl:
|
|
86
|
+
g(v, { icon: "zl:disagree" })
|
|
87
87
|
])) : r("", !0)
|
|
88
88
|
], 2));
|
|
89
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/components",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"file-type": "^20.4.1",
|
|
40
40
|
"dt-sql-parser": "^4.3.1",
|
|
41
41
|
"sql-formatter": "^15.4.2",
|
|
42
|
-
"@zl-ui-kit/
|
|
43
|
-
"@zl-ui-kit/
|
|
44
|
-
"@zl-ui-kit/
|
|
42
|
+
"@zl-ui-kit/icons": "0.18.2",
|
|
43
|
+
"@zl-ui-kit/utils": "0.18.2",
|
|
44
|
+
"@zl-ui-kit/composables": "0.18.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@vueuse/core": "^12.3.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"@vue-office/pdf": "^2.0.10",
|
|
99
99
|
"@vue-office/pptx": "1.0.1",
|
|
100
100
|
"echarts": "^5.6.0",
|
|
101
|
-
"@jichuang/tsconfig": "1.0.0",
|
|
102
|
-
"@jichuang/eslint-config": "1.0.0",
|
|
103
101
|
"@jichuang/vite-config": "1.0.0",
|
|
104
|
-
"@
|
|
102
|
+
"@jichuang/eslint-config": "1.0.0",
|
|
103
|
+
"@jichuang/tsconfig": "1.0.0",
|
|
104
|
+
"@zl-ui-kit/theme": "0.18.2"
|
|
105
105
|
},
|
|
106
106
|
"repository": {
|
|
107
107
|
"type": "git",
|