zjh-web-ui 1.0.10 → 1.0.11
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/config/resolver.js +1 -1
- package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +23 -23
- package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +2 -2
- package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +27 -27
- package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +38 -38
- package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +2 -2
- package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +80 -80
- package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +23 -23
- package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +14 -14
- package/dist/components/HuiDataView/HuiDataView.vue2.js +37 -37
- package/dist/components/HuiGridForm/HuiGridForm.vue.js +2 -2
- package/dist/components/HuiGridForm/HuiGridForm.vue2.js +103 -103
- package/dist/components/HuiGridForm/HuiGridFormHooks.js +1 -1
- package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +69 -69
- package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +47 -47
- package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +21 -21
- package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +49 -49
- package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +2 -2
- package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +14 -14
- package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +18 -18
- package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +50 -50
- package/dist/components/HuiTags/HuiTags.vue2.js +9 -9
- package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +12 -16
- package/dist/components/HuiTinymce/HuiTinymce.vue.js +10 -10
- package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +43 -43
- package/dist/components/HuiTip/HuiTip.vue.js +15 -15
- package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +1 -1
- package/dist/index.d.ts +2116 -0
- package/dist/style.css +1 -1
- package/dist/utils/hui-rules.js +1 -1
- package/dist/utils/hui-tool/message-box/index.js +3 -3
- package/dist/utils/hui-tool/message-box/message-box.vue2.js +112 -0
- package/dist/utils/hui-tool/message-box/message-box.vue3.js +2 -2
- package/global.d.ts +21 -21
- package/package.json +1 -1
- package/types/index.d.ts +2115 -12
- package/dist/utils/hui-tool/message-box/message-box.vue.js +0 -112
- package/types/components/AMapConfig.d.ts +0 -2
- package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +0 -105
- package/types/components/HuiAMapMassMarkers/index.d.ts +0 -107
- package/types/components/HuiAMapMassMarkers/type.d.ts +0 -58
- package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +0 -76
- package/types/components/HuiAMapSearchAddress/index.d.ts +0 -77
- package/types/components/HuiAMapSearchAddress/type.d.ts +0 -19
- package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +0 -38
- package/types/components/HuiAMapSearchAddressDialog/index.d.ts +0 -71
- package/types/components/HuiAMapSearchAddressDialog/type.d.ts +0 -17
- package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +0 -76
- package/types/components/HuiAMapSelectAddress/index.d.ts +0 -77
- package/types/components/HuiAMapSelectAddress/type.d.ts +0 -19
- package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +0 -38
- package/types/components/HuiAMapSelectAddressDialog/index.d.ts +0 -71
- package/types/components/HuiAMapSelectAddressDialog/type.d.ts +0 -17
- package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +0 -44
- package/types/components/HuiCountDownButton/index.d.ts +0 -76
- package/types/components/HuiCountDownButton/type.d.ts +0 -20
- package/types/components/HuiDataView/HuiDataView.vue.d.ts +0 -60
- package/types/components/HuiDataView/index.d.ts +0 -109
- package/types/components/HuiDataView/type.d.ts +0 -49
- package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +0 -77
- package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +0 -4
- package/types/components/HuiGridForm/index.d.ts +0 -175
- package/types/components/HuiGridForm/type.d.ts +0 -67
- package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +0 -75
- package/types/components/HuiLineEditDialog/index.d.ts +0 -173
- package/types/components/HuiLineEditDialog/type.d.ts +0 -86
- package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +0 -74
- package/types/components/HuiLineEditPopover/index.d.ts +0 -133
- package/types/components/HuiLineEditPopover/type.d.ts +0 -23
- package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +0 -31
- package/types/components/HuiPreviewRichTextDialog/index.d.ts +0 -22
- package/types/components/HuiPreviewRichTextDialog/type.d.ts +0 -4
- package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +0 -53
- package/types/components/HuiRegionTreeDialog/index.d.ts +0 -68
- package/types/components/HuiRegionTreeDialog/type.d.ts +0 -24
- package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +0 -25
- package/types/components/HuiRegionTreeSelect/index.d.ts +0 -29
- package/types/components/HuiRegionTreeSelect/type.d.ts +0 -6
- package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +0 -14
- package/types/components/HuiSelectLoadStatus/index.d.ts +0 -33
- package/types/components/HuiSelectLoadStatus/type.d.ts +0 -11
- package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +0 -37
- package/types/components/HuiShowUrlDialog/index.d.ts +0 -40
- package/types/components/HuiShowUrlDialog/type.d.ts +0 -11
- package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +0 -44
- package/types/components/HuiStringArrayInputDialog/index.d.ts +0 -67
- package/types/components/HuiStringArrayInputDialog/type.d.ts +0 -33
- package/types/components/HuiTags/HuiTags.vue.d.ts +0 -37
- package/types/components/HuiTags/index.d.ts +0 -36
- package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +0 -93
- package/types/components/HuiTagsMore/index.d.ts +0 -92
- package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +0 -62
- package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +0 -3
- package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +0 -3
- package/types/components/HuiTinymce/index.d.ts +0 -66
- package/types/components/HuiTinymce/type.d.ts +0 -51
- package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +0 -53
- package/types/components/HuiTinymceDialog/index.d.ts +0 -78
- package/types/components/HuiTinymceDialog/type.d.ts +0 -12
- package/types/components/HuiTip/HuiTip.vue.d.ts +0 -22
- package/types/components/HuiTip/index.d.ts +0 -99
- package/types/components/HuiTip/type.d.ts +0 -14
- package/types/components-install-list.d.ts +0 -3328
- package/types/components.d.ts +0 -21
- package/types/delegate.d.ts +0 -41
- package/types/directives/index.d.ts +0 -4
- package/types/directives/install-loadmore.d.ts +0 -7
- package/types/directives/select-loadmore.d.ts +0 -7
- package/types/hooks/index.d.ts +0 -3
- package/types/hooks/useHuiDialog/useHuiDialog.d.ts +0 -18
- package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +0 -3
- package/types/hooks/useHuiFormDialog/type.d.ts +0 -90
- package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +0 -32
- package/types/install-helper/install.d.ts +0 -18
- package/types/install-helper/typescript.d.ts +0 -14
- package/types/utils/hui-rules.d.ts +0 -80
- package/types/utils/hui-tool/index.d.ts +0 -8
- package/types/utils/hui-tool/message-box/index.d.ts +0 -18
- package/types/utils/hui-tool/message-box/message-box.vue.d.ts +0 -36
- package/types/utils/hui-tool/msg-tool.d.ts +0 -26
- package/types/utils/index.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElOption as
|
|
3
|
-
import { Loading as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as r, createBlock as s, openBlock as o, unref as t, withCtx as a, withDirectives as i, createElementBlock as m, createCommentVNode as u, createElementVNode as l, createVNode as d, vShow as c } from "vue";
|
|
2
|
+
import { ElOption as f, ElIcon as g } from "element-plus";
|
|
3
|
+
import { Loading as h } from "@element-plus/icons-vue";
|
|
4
|
+
const v = { class: "flex flex-center" }, x = { key: 0 }, E = /* @__PURE__ */ r({
|
|
5
5
|
name: "HuiSelectLoadStatus",
|
|
6
6
|
__name: "HuiSelectLoadStatus",
|
|
7
7
|
props: {
|
|
@@ -9,31 +9,31 @@ const h = { class: "flex flex-center" }, v = { key: 0 }, E = /* @__PURE__ */ d({
|
|
|
9
9
|
length: {},
|
|
10
10
|
leave: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (S, n) => (o(), s(t(f), {
|
|
14
14
|
disabled: "",
|
|
15
15
|
value: "",
|
|
16
16
|
class: "flex flex-center !h-25"
|
|
17
17
|
}, {
|
|
18
18
|
default: a(() => [
|
|
19
|
-
i(
|
|
20
|
-
|
|
19
|
+
i(l("div", v, [
|
|
20
|
+
d(t(g), {
|
|
21
21
|
class: "mr-10 is-loading",
|
|
22
22
|
size: "14"
|
|
23
23
|
}, {
|
|
24
24
|
default: a(() => [
|
|
25
|
-
|
|
25
|
+
d(t(h))
|
|
26
26
|
]),
|
|
27
27
|
_: 1
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
n[0] || (n[0] = l("span", null, "正在加载更多...", -1))
|
|
30
30
|
], 512), [
|
|
31
|
-
[
|
|
31
|
+
[c, e.loading]
|
|
32
32
|
]),
|
|
33
|
-
i(
|
|
34
|
-
[
|
|
33
|
+
i(l("div", null, "无匹配数据", 512), [
|
|
34
|
+
[c, e.length <= 0 && !e.loading]
|
|
35
35
|
]),
|
|
36
|
-
e.length > 0 && e.leave <= 0 ? (
|
|
36
|
+
e.length > 0 && e.leave <= 0 ? (o(), m("div", x, "没有更多了")) : u("", !0)
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as s, ref as
|
|
1
|
+
import { defineComponent as s, ref as f, createBlock as p, openBlock as h, unref as n, isRef as c, withCtx as w, createElementVNode as g, normalizeStyle as x, toValue as y } from "vue";
|
|
2
2
|
import { useHuiDialog as U } from "../../hooks/useHuiDialog/useHuiDialog.js";
|
|
3
3
|
import { ElDialog as V } from "element-plus";
|
|
4
|
-
import { testUtils as v } from "
|
|
5
|
-
/* empty css
|
|
4
|
+
import { testUtils as v } from "zjh-utils";
|
|
5
|
+
/* empty css */
|
|
6
6
|
const D = ["src"], B = /* @__PURE__ */ s({
|
|
7
7
|
name: "HuiShowUrlDialog",
|
|
8
8
|
__name: "HuiShowUrlDialog",
|
|
@@ -11,34 +11,34 @@ const D = ["src"], B = /* @__PURE__ */ s({
|
|
|
11
11
|
width: { default: "920px" },
|
|
12
12
|
height: { default: "600px" }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const { show:
|
|
16
|
-
function
|
|
17
|
-
if (v.isEmpty(
|
|
18
|
-
|
|
14
|
+
setup(e, { expose: r }) {
|
|
15
|
+
const { show: t, payload: l, open: d, close: o } = U(), i = f("");
|
|
16
|
+
function u() {
|
|
17
|
+
if (v.isEmpty(y(l))) {
|
|
18
|
+
o();
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
i.value =
|
|
21
|
+
i.value = l.value.url;
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return r({
|
|
24
24
|
open: d,
|
|
25
|
-
close:
|
|
26
|
-
}), (
|
|
27
|
-
modelValue:
|
|
28
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
29
|
-
title:
|
|
30
|
-
width:
|
|
25
|
+
close: o
|
|
26
|
+
}), (b, a) => (h(), p(n(V), {
|
|
27
|
+
modelValue: n(t),
|
|
28
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => c(t) ? t.value = m : null),
|
|
29
|
+
title: e.title,
|
|
30
|
+
width: e.width,
|
|
31
31
|
"close-on-click-modal": !1,
|
|
32
32
|
"modal-append-to-body": !1,
|
|
33
33
|
"append-to-body": "",
|
|
34
|
-
onOpen:
|
|
34
|
+
onOpen: u
|
|
35
35
|
}, {
|
|
36
36
|
default: w(() => [
|
|
37
37
|
g("iframe", {
|
|
38
38
|
src: i.value,
|
|
39
39
|
frameborder: "0",
|
|
40
40
|
width: "100%",
|
|
41
|
-
style:
|
|
41
|
+
style: x({ height: e.height })
|
|
42
42
|
}, null, 12, D)
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElDialog as M,
|
|
1
|
+
import { defineComponent as A, ref as B, reactive as y, createBlock as D, openBlock as I, unref as t, isRef as N, withCtx as n, createVNode as a, createElementBlock as R, createCommentVNode as U, withKeys as F, toDisplayString as H, createElementVNode as K, createTextVNode as b, toValue as r } from "vue";
|
|
2
|
+
import { ElDialog as M, ElForm as O, ElFormItem as j, ElInput as z, ElButton as g, ElMessage as L } from "element-plus";
|
|
3
3
|
import { useHuiDialog as T } from "../../hooks/useHuiDialog/useHuiDialog.js";
|
|
4
|
-
import { testUtils as
|
|
5
|
-
/* empty css
|
|
6
|
-
const
|
|
4
|
+
import { testUtils as q, stringUtils as G } from "zjh-utils";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const J = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-danger ml-50"
|
|
9
|
-
},
|
|
9
|
+
}, Z = /* @__PURE__ */ A({
|
|
10
10
|
name: "HuiStringArrayInputDialog",
|
|
11
11
|
__name: "HuiStringArrayInputDialog",
|
|
12
12
|
props: {
|
|
@@ -17,94 +17,94 @@ const G = {
|
|
|
17
17
|
tips: { type: Boolean, default: !0 }
|
|
18
18
|
},
|
|
19
19
|
emits: ["onSubmit"],
|
|
20
|
-
setup(
|
|
21
|
-
const { id: C, show:
|
|
20
|
+
setup(l, { expose: v, emit: V }) {
|
|
21
|
+
const { id: C, show: f, payload: i, confirmLoading: s, open: E, close: u } = T(), d = B(null), k = V, x = l, o = y({
|
|
22
22
|
inputInfo: ""
|
|
23
|
-
}),
|
|
24
|
-
inputInfo:
|
|
23
|
+
}), h = y({
|
|
24
|
+
inputInfo: x.rules || []
|
|
25
25
|
});
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
26
|
+
function w() {
|
|
27
|
+
if (q.isEmpty(r(i))) {
|
|
28
28
|
u();
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
o.inputInfo = Array.isArray(r(i).inputInfo) ? r(i).inputInfo.join(",") : r(i).inputInfo;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
if (
|
|
33
|
+
function p() {
|
|
34
|
+
d.value.validate(async (c) => {
|
|
35
|
+
if (c) {
|
|
36
36
|
s.value = !0;
|
|
37
|
-
let e =
|
|
38
|
-
e =
|
|
37
|
+
let e = o.inputInfo;
|
|
38
|
+
e = G.trimChar(e.replaceAll(",", ","), ",", "both"), k("onSubmit", r(C), e), u();
|
|
39
39
|
} else
|
|
40
40
|
L.error("验证未通过");
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
43
|
+
function S() {
|
|
44
|
+
o.inputInfo = "", i.value = {}, s.value = !1, d.value.resetFields();
|
|
45
45
|
}
|
|
46
46
|
return v({
|
|
47
47
|
open: E,
|
|
48
48
|
close: u
|
|
49
|
-
}), (
|
|
50
|
-
modelValue:
|
|
51
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
52
|
-
title:
|
|
49
|
+
}), (c, e) => (I(), D(t(M), {
|
|
50
|
+
modelValue: t(f),
|
|
51
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => N(f) ? f.value = m : null),
|
|
52
|
+
title: l.title,
|
|
53
53
|
width: "520px",
|
|
54
54
|
top: "35vh",
|
|
55
55
|
"modal-append-to-body": !1,
|
|
56
56
|
"append-to-body": "",
|
|
57
|
-
onOpen:
|
|
58
|
-
onClose:
|
|
57
|
+
onOpen: w,
|
|
58
|
+
onClose: S
|
|
59
59
|
}, {
|
|
60
60
|
footer: n(() => [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
default: n(() => e[2] || (e[2] = [
|
|
64
|
-
|
|
65
|
-
])),
|
|
61
|
+
K("div", null, [
|
|
62
|
+
a(t(g), { onClick: t(u) }, {
|
|
63
|
+
default: n(() => [...e[2] || (e[2] = [
|
|
64
|
+
b("取 消", -1)
|
|
65
|
+
])]),
|
|
66
66
|
_: 1
|
|
67
67
|
}, 8, ["onClick"]),
|
|
68
|
-
|
|
68
|
+
a(t(g), {
|
|
69
69
|
type: "primary",
|
|
70
70
|
class: "w-100",
|
|
71
|
-
loading:
|
|
72
|
-
onClick:
|
|
71
|
+
loading: t(s),
|
|
72
|
+
onClick: p
|
|
73
73
|
}, {
|
|
74
|
-
default: n(() => e[3] || (e[3] = [
|
|
75
|
-
|
|
76
|
-
])),
|
|
74
|
+
default: n(() => [...e[3] || (e[3] = [
|
|
75
|
+
b("确 定", -1)
|
|
76
|
+
])]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 8, ["loading"])
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
default: n(() => [
|
|
82
|
-
|
|
82
|
+
a(t(O), {
|
|
83
83
|
ref_key: "formRef",
|
|
84
|
-
ref:
|
|
85
|
-
model:
|
|
86
|
-
rules:
|
|
84
|
+
ref: d,
|
|
85
|
+
model: o,
|
|
86
|
+
rules: h,
|
|
87
87
|
size: "small",
|
|
88
88
|
class: "mt-30 font-bold w-100%"
|
|
89
89
|
}, {
|
|
90
90
|
default: n(() => [
|
|
91
|
-
|
|
92
|
-
label:
|
|
91
|
+
a(t(j), {
|
|
92
|
+
label: l.label,
|
|
93
93
|
prop: "inputInfo",
|
|
94
94
|
class: "flex w-100%"
|
|
95
95
|
}, {
|
|
96
96
|
default: n(() => [
|
|
97
|
-
|
|
98
|
-
modelValue:
|
|
99
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
97
|
+
a(t(z), {
|
|
98
|
+
modelValue: o.inputInfo,
|
|
99
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => o.inputInfo = m),
|
|
100
100
|
modelModifiers: { trim: !0 },
|
|
101
|
-
placeholder:
|
|
102
|
-
onKeyup:
|
|
101
|
+
placeholder: l.placeholder,
|
|
102
|
+
onKeyup: F(p, ["enter"])
|
|
103
103
|
}, null, 8, ["modelValue", "placeholder"])
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["label"]),
|
|
107
|
-
|
|
107
|
+
l.tips ? (I(), R("div", J, H(l.placeholder), 1)) : U("", !0)
|
|
108
108
|
]),
|
|
109
109
|
_: 1
|
|
110
110
|
}, 8, ["model", "rules"])
|
|
@@ -114,5 +114,5 @@ const G = {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
export {
|
|
117
|
-
|
|
117
|
+
Z as default
|
|
118
118
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, createBlock as s, openBlock as i, unref as o, normalizeClass as l, withCtx as c, createTextVNode as p, toDisplayString as g } from "vue";
|
|
2
2
|
import { ElTag as u } from "element-plus";
|
|
3
|
-
const f = /* @__PURE__ */
|
|
3
|
+
const f = /* @__PURE__ */ n({
|
|
4
4
|
name: "HuiTags",
|
|
5
5
|
__name: "HuiTags",
|
|
6
6
|
props: {
|
|
@@ -8,16 +8,16 @@ const f = /* @__PURE__ */ s({
|
|
|
8
8
|
tagType: { default: "primary" },
|
|
9
9
|
tagClass: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
13
|
-
if (!((
|
|
11
|
+
setup(a) {
|
|
12
|
+
const e = a;
|
|
13
|
+
if (!((t) => ["primary", "success", "warning", "danger", "info"].includes(t))(e.tagType))
|
|
14
14
|
throw new Error(`Invalid tagType: ${e.tagType}`);
|
|
15
|
-
return (
|
|
15
|
+
return (t, r) => (i(), s(o(u), {
|
|
16
16
|
type: a.tagType,
|
|
17
|
-
class:
|
|
17
|
+
class: l(a.tagClass)
|
|
18
18
|
}, {
|
|
19
|
-
default:
|
|
20
|
-
g(
|
|
19
|
+
default: c(() => [
|
|
20
|
+
p(g(a.text), 1)
|
|
21
21
|
]),
|
|
22
22
|
_: 1
|
|
23
23
|
}, 8, ["type", "class"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as D, ref as h, onMounted as L,
|
|
1
|
+
import { defineComponent as D, ref as h, onMounted as L, createElementBlock as r, openBlock as a, createElementVNode as x, createVNode as A, normalizeClass as j, Fragment as y, renderList as o, createBlock as n, unref as c, withCtx as u, mergeProps as f, createTextVNode as d, toDisplayString as g, normalizeStyle as k, createCommentVNode as B } from "vue";
|
|
2
2
|
import { ElTooltip as w, ElTag as b, ElPopover as M } from "element-plus";
|
|
3
3
|
import T from "../HuiTags/HuiTags.vue.js";
|
|
4
|
-
import { testUtils as N } from "
|
|
4
|
+
import { testUtils as N } from "zjh-utils";
|
|
5
5
|
const O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "admin-link text-20"
|
|
@@ -74,7 +74,7 @@ const O = {
|
|
|
74
74
|
x("div", {
|
|
75
75
|
ref_key: "tagsDiv",
|
|
76
76
|
ref: K,
|
|
77
|
-
class:
|
|
77
|
+
class: j(["tagsDiv whitespace-nowrap", m.value ? "overflow-hidden" : ""])
|
|
78
78
|
}, [
|
|
79
79
|
e.showTips ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t, v) => (a(), n(c(w), {
|
|
80
80
|
key: v,
|
|
@@ -87,9 +87,8 @@ const O = {
|
|
|
87
87
|
e.isElTag ? (a(), n(c(b), f({
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "m-b-5 m-r-5",
|
|
90
|
-
type: e.elTagType
|
|
91
|
-
|
|
92
|
-
}, e.elTagAttr), {
|
|
90
|
+
type: e.elTagType
|
|
91
|
+
}, { ref_for: !0 }, e.elTagAttr), {
|
|
93
92
|
default: u(() => [
|
|
94
93
|
d(g(l(t)[e.labelKey]), 1)
|
|
95
94
|
]),
|
|
@@ -106,9 +105,8 @@ const O = {
|
|
|
106
105
|
e.isElTag ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t) => (a(), n(c(b), f({
|
|
107
106
|
key: l(t)[e.valueKey],
|
|
108
107
|
class: "m-b-5 m-r-5",
|
|
109
|
-
type: e.elTagType
|
|
110
|
-
|
|
111
|
-
}, e.elTagAttr), {
|
|
108
|
+
type: e.elTagType
|
|
109
|
+
}, { ref_for: !0 }, e.elTagAttr), {
|
|
112
110
|
default: u(() => [
|
|
113
111
|
d(g(l(t)[e.labelKey]), 1)
|
|
114
112
|
]),
|
|
@@ -121,7 +119,7 @@ const O = {
|
|
|
121
119
|
}, null, 8, ["text", "style"]))), 128))
|
|
122
120
|
], 64))
|
|
123
121
|
], 2),
|
|
124
|
-
|
|
122
|
+
A(c(M), {
|
|
125
123
|
placement: "right",
|
|
126
124
|
title: "",
|
|
127
125
|
width: 130,
|
|
@@ -143,9 +141,8 @@ const O = {
|
|
|
143
141
|
e.isElTag ? (a(), n(c(b), f({
|
|
144
142
|
key: 0,
|
|
145
143
|
class: "m-b-5 m-r-5",
|
|
146
|
-
type: e.elTagType
|
|
147
|
-
|
|
148
|
-
}, e.elTagAttr), {
|
|
144
|
+
type: e.elTagType
|
|
145
|
+
}, { ref_for: !0 }, e.elTagAttr), {
|
|
149
146
|
default: u(() => [
|
|
150
147
|
d(g(l(t)[e.labelKey]), 1)
|
|
151
148
|
]),
|
|
@@ -162,9 +159,8 @@ const O = {
|
|
|
162
159
|
e.isElTag ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t) => (a(), n(c(b), f({
|
|
163
160
|
key: l(t)[e.valueKey],
|
|
164
161
|
class: "m-b-5 m-r-5",
|
|
165
|
-
type: e.elTagType
|
|
166
|
-
|
|
167
|
-
}, e.elTagAttr), {
|
|
162
|
+
type: e.elTagType
|
|
163
|
+
}, { ref_for: !0 }, e.elTagAttr), {
|
|
168
164
|
default: u(() => [
|
|
169
165
|
d(g(l(t)[e.labelKey]), 1)
|
|
170
166
|
]),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as a, mergeModels as
|
|
2
|
-
import
|
|
3
|
-
import { HuiTinymceLinkHooks as
|
|
4
|
-
import { HuiTinymceSettingHooks as
|
|
1
|
+
import { defineComponent as a, mergeModels as r, useModel as p, createElementBlock as s, openBlock as c, normalizeStyle as f, createVNode as k, unref as n } from "vue";
|
|
2
|
+
import y from "@tinymce/tinymce-vue";
|
|
3
|
+
import { HuiTinymceLinkHooks as V } from "./HuiTinymceLinkHooks.js";
|
|
4
|
+
import { HuiTinymceSettingHooks as v } from "./HuiTinymceSettingHooks.js";
|
|
5
5
|
const T = /* @__PURE__ */ a({
|
|
6
6
|
name: "HuiTinymce",
|
|
7
7
|
__name: "HuiTinymce",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ r({
|
|
9
9
|
width: { default: "100%" },
|
|
10
10
|
height: { default: "80vh" },
|
|
11
11
|
linkAttribute: { default: () => [
|
|
@@ -19,13 +19,13 @@ const T = /* @__PURE__ */ a({
|
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(e) {
|
|
22
|
-
const t = e, { linkExpandAttributeStr: l, linkSetup: m } =
|
|
23
|
-
return (
|
|
24
|
-
style:
|
|
22
|
+
const t = e, { linkExpandAttributeStr: l, linkSetup: m } = V({ props: t }), { setting: u } = v({ props: t, linkSetup: m, linkExpandAttributeStr: l }), i = p(e, "modelValue");
|
|
23
|
+
return (H, o) => (c(), s("div", {
|
|
24
|
+
style: f({ width: e.width })
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
k(n(y), {
|
|
27
27
|
modelValue: i.value,
|
|
28
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
28
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => i.value = d),
|
|
29
29
|
init: n(u),
|
|
30
30
|
"api-key": "no-api-key"
|
|
31
31
|
}, null, 8, ["modelValue", "init"])
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
2
|
-
import { useHuiDialog as
|
|
3
|
-
import { ElDialog as
|
|
4
|
-
import "
|
|
5
|
-
/* empty css
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as H, ref as g, createBlock as A, openBlock as E, unref as o, isRef as P, withCtx as a, createVNode as p, createElementVNode as S, createTextVNode as v, toDisplayString as T, toValue as u } from "vue";
|
|
2
|
+
import { useHuiDialog as N } from "../../hooks/useHuiDialog/useHuiDialog.js";
|
|
3
|
+
import { ElDialog as z, ElButton as h, ElMessage as I } from "element-plus";
|
|
4
|
+
import "zjh-utils";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import O from "../HuiTinymce/HuiTinymce.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
const q = /* @__PURE__ */ H({
|
|
9
9
|
name: "HuiTinymceDialog",
|
|
@@ -18,73 +18,73 @@ const q = /* @__PURE__ */ H({
|
|
|
18
18
|
permission: { default: () => ({}) }
|
|
19
19
|
},
|
|
20
20
|
emits: ["onSubmit"],
|
|
21
|
-
setup(
|
|
22
|
-
const { permission: w } =
|
|
21
|
+
setup(r, { expose: b, emit: k }) {
|
|
22
|
+
const { permission: w } = r, y = k, { show: m, open: V, close: s, payload: l, confirmLoading: d } = N(), n = g(""), f = g("提交");
|
|
23
|
+
function x() {
|
|
24
|
+
var i, e;
|
|
25
|
+
n.value = ((i = u(l)) == null ? void 0 : i.content) || "", f.value = (e = u(l)) != null && e.row ? "提交" : "保存";
|
|
26
|
+
}
|
|
23
27
|
function C() {
|
|
24
|
-
|
|
25
|
-
n.value = ((t = a(l)) == null ? void 0 : t.content) || "", p.value = (e = a(l)) != null && e.row ? "提交" : "保存";
|
|
28
|
+
n.value = "", l.value = {}, d.value = !1;
|
|
26
29
|
}
|
|
27
30
|
function D() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (!t) return !0;
|
|
35
|
-
const f = window.huiDelegate.getBtnPermission()[t] ?? !1;
|
|
36
|
-
return f || z.error(e || "暂无权限,请联系管理员!"), f;
|
|
31
|
+
const { code: i, tip: e, checkRight: t } = w;
|
|
32
|
+
if (t)
|
|
33
|
+
return t();
|
|
34
|
+
if (!i) return !0;
|
|
35
|
+
const c = window.huiDelegate.getBtnPermission()[i] ?? !1;
|
|
36
|
+
return c || I.error(e || "暂无权限,请联系管理员!"), c;
|
|
37
37
|
}
|
|
38
38
|
function B() {
|
|
39
|
-
var e,
|
|
40
|
-
|
|
39
|
+
var e, t;
|
|
40
|
+
D() && (d.value = !0, y("onSubmit", n.value, (e = u(l)) == null ? void 0 : e.row, (t = u(l)) == null ? void 0 : t.field), s());
|
|
41
41
|
}
|
|
42
42
|
return b({
|
|
43
43
|
open: V,
|
|
44
44
|
close: s
|
|
45
|
-
}), (
|
|
46
|
-
modelValue:
|
|
47
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
45
|
+
}), (i, e) => (E(), A(o(z), {
|
|
46
|
+
modelValue: o(m),
|
|
47
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => P(m) ? m.value = t : null),
|
|
48
48
|
title: "内容编辑",
|
|
49
|
-
width:
|
|
49
|
+
width: r.width,
|
|
50
50
|
top: "5vh",
|
|
51
51
|
"modal-append-to-body": !1,
|
|
52
52
|
"append-to-body": "",
|
|
53
|
-
onOpen:
|
|
54
|
-
onClose:
|
|
53
|
+
onOpen: x,
|
|
54
|
+
onClose: C
|
|
55
55
|
}, {
|
|
56
|
-
footer:
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
footer: a(() => [
|
|
57
|
+
S("div", null, [
|
|
58
|
+
p(o(h), {
|
|
59
59
|
size: "large",
|
|
60
60
|
class: "!c-primary !border !border-1 !border-[theme(colors.primary)] !px-16 !text-14",
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: o(s)
|
|
62
62
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
])),
|
|
63
|
+
default: a(() => [...e[2] || (e[2] = [
|
|
64
|
+
v("取 消", -1)
|
|
65
|
+
])]),
|
|
66
66
|
_: 1
|
|
67
67
|
}, 8, ["onClick"]),
|
|
68
|
-
|
|
68
|
+
p(o(h), {
|
|
69
69
|
size: "large",
|
|
70
70
|
type: "primary",
|
|
71
|
-
loading:
|
|
71
|
+
loading: o(d),
|
|
72
72
|
class: "w-120 !ml-20",
|
|
73
73
|
onClick: B
|
|
74
74
|
}, {
|
|
75
|
-
default:
|
|
76
|
-
|
|
75
|
+
default: a(() => [
|
|
76
|
+
v(T(f.value), 1)
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
79
|
}, 8, ["loading"])
|
|
80
80
|
])
|
|
81
81
|
]),
|
|
82
|
-
default:
|
|
83
|
-
|
|
82
|
+
default: a(() => [
|
|
83
|
+
p(O, {
|
|
84
84
|
modelValue: n.value,
|
|
85
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
86
|
-
height:
|
|
87
|
-
"link-attribute":
|
|
85
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
|
|
86
|
+
height: r.height,
|
|
87
|
+
"link-attribute": r.linkAttribute
|
|
88
88
|
}, null, 8, ["modelValue", "height", "link-attribute"])
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElTooltip as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, createBlock as r, openBlock as l, unref as u, mergeProps as d, withCtx as c, createElementVNode as a, normalizeClass as n, renderSlot as i, createElementBlock as o, toDisplayString as C } from "vue";
|
|
2
|
+
import { ElTooltip as g } from "element-plus";
|
|
3
|
+
const T = ["innerHTML"], H = /* @__PURE__ */ m({
|
|
4
4
|
name: "HuiTip",
|
|
5
5
|
__name: "HuiTip",
|
|
6
6
|
props: {
|
|
@@ -12,31 +12,31 @@ const C = ["innerHTML"], k = /* @__PURE__ */ r({
|
|
|
12
12
|
contentClass: {},
|
|
13
13
|
tipAttr: { default: () => ({}) }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
setup(e) {
|
|
16
|
+
function s(t) {
|
|
17
|
+
return t ? (t = t.trim(), /^<([a-z1-6]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/i.test(t)) : !1;
|
|
18
18
|
}
|
|
19
|
-
return (
|
|
19
|
+
return (t, f) => (l(), r(u(g), d({
|
|
20
20
|
effect: e.effect,
|
|
21
21
|
placement: e.placement
|
|
22
22
|
}, e.tipAttr), {
|
|
23
|
-
content:
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
content: c(() => [
|
|
24
|
+
i(t.$slots, "default", {}, () => [
|
|
25
|
+
s(e.content) ? (l(), o("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: n(e.contentClass),
|
|
28
28
|
innerHTML: e.content
|
|
29
|
-
}, null, 10,
|
|
29
|
+
}, null, 10, T)) : (l(), o("div", {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: n(e.contentClass)
|
|
32
|
-
},
|
|
32
|
+
}, C(e.content), 3))
|
|
33
33
|
])
|
|
34
34
|
]),
|
|
35
|
-
default:
|
|
35
|
+
default: c(() => [
|
|
36
36
|
a("div", {
|
|
37
37
|
class: n(["ml-3", e.rclass])
|
|
38
38
|
}, [
|
|
39
|
-
|
|
39
|
+
i(t.$slots, "icon", {}, () => [
|
|
40
40
|
a("i", {
|
|
41
41
|
class: n(["icon-com i-com-wenhao-plain c-info", e.iconClass])
|
|
42
42
|
}, null, 2)
|
|
@@ -48,5 +48,5 @@ const C = ["innerHTML"], k = /* @__PURE__ */ r({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
H as default
|
|
52
52
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentInstance as $, ref as f, computed as p, toValue as r } from "vue";
|
|
2
2
|
import { HuiTool as v } from "../../utils/hui-tool/index.js";
|
|
3
|
-
import { objectUtils as q } from "
|
|
3
|
+
import { objectUtils as q } from "zjh-utils";
|
|
4
4
|
import { ElMessage as z } from "element-plus";
|
|
5
5
|
const W = function({
|
|
6
6
|
formModel: w = {},
|