asiaint-lowcode 2.0.0 → 2.0.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.
- package/README.md +0 -73
- package/dist/asiaint-lowcode.js +12 -0
- package/dist/asiaint-lowcode.umd.cjs +1579 -0
- package/dist/index.d.ts +528 -0
- package/dist/lazy/Card-op6i_z8G.js +46 -0
- package/dist/lazy/Cascader-cy25S0M_.js +41 -0
- package/dist/lazy/Checkbox-CQ56BycM.js +75 -0
- package/dist/lazy/Collapse-DXETETv8.js +54 -0
- package/dist/lazy/ColorInput-Ox5qD0YJ.js +28 -0
- package/dist/lazy/Component-BEqoz5jH.js +321 -0
- package/dist/lazy/Component-BLahI--2.js +117 -0
- package/dist/lazy/Component-C69_b7D6.js +97 -0
- package/dist/lazy/Component-CcwERaPj.js +27 -0
- package/dist/lazy/Component-DO63yabq.js +66 -0
- package/dist/lazy/Component-DhFx0wp3.js +13 -0
- package/dist/lazy/Component-IxyabXCT.js +24 -0
- package/dist/lazy/Custom-D7E3J-kY.js +26 -0
- package/dist/lazy/DatePicker-B565iRox.js +11 -0
- package/dist/lazy/Divider-2PVfgKTw.js +21 -0
- package/dist/lazy/FormList-BAk7pGQ5.js +199 -0
- package/dist/lazy/Grid-CQ3I3JJA.js +30 -0
- package/dist/lazy/Inline-DqNMJ75M.js +30 -0
- package/dist/lazy/JsonEdit-j4lAk68A.js +16385 -0
- package/dist/lazy/ObjGroup-CKy7PIXn.js +32 -0
- package/dist/lazy/Radio-Cv3X53D3.js +77 -0
- package/dist/lazy/SearchSelect-BkYukJim.js +86 -0
- package/dist/lazy/Select-MM2rUOPj.js +67 -0
- package/dist/lazy/Tabs-BVFfJAUT.js +47 -0
- package/dist/lazy/Tag-YpWlcGOi.js +22 -0
- package/dist/lazy/TextArea-KNtWavU4.js +25 -0
- package/dist/lazy/Title-32bZDihB.js +4 -0
- package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +23 -0
- package/dist/lazy/index-DoIvJXpY.js +22488 -0
- package/dist/lazy/useSelect-DkY4BS54.js +50 -0
- package/dist/style.css +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
|
|
2
|
+
import { u as j, d as h, e as k } from "./index-DoIvJXpY.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "vfc-ObjGroup-render"
|
|
7
|
+
}, F = /* @__PURE__ */ p({
|
|
8
|
+
__name: "ObjGroup",
|
|
9
|
+
props: {
|
|
10
|
+
children: {},
|
|
11
|
+
name: {}
|
|
12
|
+
},
|
|
13
|
+
setup(u) {
|
|
14
|
+
const s = u, l = j(), a = i("$objGroupBase"), t = a ? `${a.value}.${s.name}` : s.name;
|
|
15
|
+
return d("$objGroupBase", f(t)), (c, G) => (e(), o("div", v, [
|
|
16
|
+
n(l).design ? (e(), m(n(h), {
|
|
17
|
+
key: 0,
|
|
18
|
+
list: c.children
|
|
19
|
+
}, null, 8, ["list"])) : (e(), o("div", B, [
|
|
20
|
+
(e(!0), o(_, null, $(c.children, (r) => (e(), m(n(k), b({
|
|
21
|
+
key: r.name,
|
|
22
|
+
ref_for: !0
|
|
23
|
+
}, r, {
|
|
24
|
+
name: `${n(t)}.${r.name}`
|
|
25
|
+
}), null, 16, ["name"]))), 128))
|
|
26
|
+
]))
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
F as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as B, mergeModels as S, useModel as T, inject as h, resolveComponent as s, resolveDirective as w, unref as l, openBlock as o, createElementBlock as d, toDisplayString as N, Fragment as f, createCommentVNode as F, withDirectives as I, createBlock as y, mergeProps as k, withCtx as C, createVNode as $, renderList as M } from "vue";
|
|
2
|
+
import { u as j } from "./index-DoIvJXpY.js";
|
|
3
|
+
import { u as E } from "./useSelect-DkY4BS54.js";
|
|
4
|
+
const L = { key: 0 }, O = {
|
|
5
|
+
key: 0,
|
|
6
|
+
style: { "font-size": "12px" }
|
|
7
|
+
}, q = /* @__PURE__ */ B({
|
|
8
|
+
__name: "Radio",
|
|
9
|
+
props: /* @__PURE__ */ S({
|
|
10
|
+
options: { default: () => [] },
|
|
11
|
+
mode: { default: "static" },
|
|
12
|
+
labelKey: { default: "label" },
|
|
13
|
+
valueKey: { default: "value" },
|
|
14
|
+
disabledKey: { default: "disabled" },
|
|
15
|
+
api: {},
|
|
16
|
+
name: { default: "" },
|
|
17
|
+
onChange: {},
|
|
18
|
+
optionType: { default: "circle" },
|
|
19
|
+
direction: { default: "horizontal" },
|
|
20
|
+
space: { default: 20 }
|
|
21
|
+
}, {
|
|
22
|
+
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
23
|
+
modelModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(v) {
|
|
27
|
+
const r = v, p = T(v, "modelValue"), c = j(), b = h("ruleModule", void 0), V = h("pageMethodMap", {}), _ = (e) => {
|
|
28
|
+
const { valueKey: u = "value", name: i } = r;
|
|
29
|
+
let t = {};
|
|
30
|
+
t = n.value.find((m) => m[u] === e) || {}, c.selectData && i && c.updateSelectData(i, t), r.onChange && b && b[r.onChange](V, e, t);
|
|
31
|
+
}, { currentOptions: n, loading: g } = E(r);
|
|
32
|
+
return (e, u) => {
|
|
33
|
+
var K;
|
|
34
|
+
const i = s("el-radio"), t = s("el-radio-button"), m = s("el-space"), D = s("el-radio-group"), z = w("loading");
|
|
35
|
+
return l(c).read ? (o(), d("div", L, N((K = l(n).find((a) => a[e.valueKey] === p.value)) == null ? void 0 : K[e.labelKey]), 1)) : (o(), d(f, { key: 1 }, [
|
|
36
|
+
!l(n).length && !l(g) ? (o(), d("div", O, "暂无选项")) : F("", !0),
|
|
37
|
+
I((o(), y(D, k({
|
|
38
|
+
modelValue: p.value,
|
|
39
|
+
"onUpdate:modelValue": u[0] || (u[0] = (a) => p.value = a),
|
|
40
|
+
onChange: _
|
|
41
|
+
}, e.$attrs), {
|
|
42
|
+
default: C(() => [
|
|
43
|
+
$(m, {
|
|
44
|
+
wrap: "",
|
|
45
|
+
direction: e.direction,
|
|
46
|
+
size: [e.space, e.space],
|
|
47
|
+
alignment: "normal"
|
|
48
|
+
}, {
|
|
49
|
+
default: C(() => [
|
|
50
|
+
e.optionType === "circle" || e.optionType === "border" ? (o(!0), d(f, { key: 0 }, M(l(n), (a) => (o(), y(i, {
|
|
51
|
+
key: a[e.valueKey],
|
|
52
|
+
label: a[e.labelKey],
|
|
53
|
+
value: a[e.valueKey],
|
|
54
|
+
disabled: a[e.disabledKey],
|
|
55
|
+
border: e.optionType === "border"
|
|
56
|
+
}, null, 8, ["label", "value", "disabled", "border"]))), 128)) : (o(!0), d(f, { key: 1 }, M(l(n), (a) => (o(), y(t, k({
|
|
57
|
+
key: a[e.valueKey],
|
|
58
|
+
label: a[e.labelKey],
|
|
59
|
+
value: a[e.valueKey],
|
|
60
|
+
disabled: a[e.disabledKey],
|
|
61
|
+
ref_for: !0
|
|
62
|
+
}, e.$attrs), null, 16, ["label", "value", "disabled"]))), 128))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["direction", "size"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 16, ["modelValue"])), [
|
|
69
|
+
[z, l(g)]
|
|
70
|
+
])
|
|
71
|
+
], 64));
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
q as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as w, mergeModels as A, useModel as I, inject as S, resolveComponent as b, resolveDirective as N, unref as n, openBlock as a, createElementBlock as u, toDisplayString as v, withDirectives as j, createBlock as k, mergeProps as F, withCtx as y, Fragment as $, renderList as E, createTextVNode as L, createVNode as C } from "vue";
|
|
2
|
+
import { u as O, _ as P, b as T } from "./index-DoIvJXpY.js";
|
|
3
|
+
import { u as U } from "./useSelect-DkY4BS54.js";
|
|
4
|
+
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "search-select-wrapper"
|
|
7
|
+
}, J = /* @__PURE__ */ w({
|
|
8
|
+
__name: "SearchSelect",
|
|
9
|
+
props: /* @__PURE__ */ A({
|
|
10
|
+
onSearch: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
options: { default: () => [] },
|
|
13
|
+
multiple: { type: Boolean, default: !1 },
|
|
14
|
+
mode: { default: "static" },
|
|
15
|
+
labelKey: { default: "label" },
|
|
16
|
+
valueKey: { default: "value" },
|
|
17
|
+
disabledKey: { default: "disabled" },
|
|
18
|
+
api: {},
|
|
19
|
+
name: { default: "" },
|
|
20
|
+
onChange: {}
|
|
21
|
+
}, {
|
|
22
|
+
modelValue: { type: [String, Number, Boolean, Array] },
|
|
23
|
+
modelModifiers: {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(h) {
|
|
27
|
+
const o = h, d = I(h, "modelValue"), m = O(), c = S("ruleModule", void 0), _ = S("pageMethodMap", {}), M = (e) => {
|
|
28
|
+
const { valueKey: i = "value", multiple: f, name: p } = o;
|
|
29
|
+
let t = {};
|
|
30
|
+
f && Array.isArray(e) ? t = s.value.filter((r) => e.includes(r[i])) : t = s.value.find((r) => r[i] === e) || {}, m.selectData && p && m.updateSelectData(p, t), o.onChange && c && c[o.onChange](_, e, t);
|
|
31
|
+
}, V = () => {
|
|
32
|
+
o.onSearch && c && c[o.onSearch](_);
|
|
33
|
+
}, { currentOptions: s, loading: B } = U(o);
|
|
34
|
+
return (e, i) => {
|
|
35
|
+
var g;
|
|
36
|
+
const f = b("el-option"), p = b("el-select"), t = b("el-button"), r = N("loading");
|
|
37
|
+
return n(m).read ? (a(), u("div", q, [
|
|
38
|
+
e.multiple ? (a(), u("div", z, v(d.value && d.value.map((l) => {
|
|
39
|
+
var K;
|
|
40
|
+
return (K = n(s).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
|
|
41
|
+
}).join("、")), 1)) : (a(), u("div", G, v((g = n(s).find((l) => l[e.valueKey] === d.value)) == null ? void 0 : g[e.labelKey]), 1))
|
|
42
|
+
])) : (a(), u("div", H, [
|
|
43
|
+
j((a(), k(p, F({
|
|
44
|
+
modelValue: d.value,
|
|
45
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => d.value = l)
|
|
46
|
+
}, e.$attrs, {
|
|
47
|
+
onChange: M,
|
|
48
|
+
multiple: e.multiple,
|
|
49
|
+
clearable: "",
|
|
50
|
+
filterable: "",
|
|
51
|
+
disabled: e.disabled
|
|
52
|
+
}), {
|
|
53
|
+
default: y(() => [
|
|
54
|
+
(a(!0), u($, null, E(n(s), (l) => (a(), k(f, {
|
|
55
|
+
key: l[e.valueKey],
|
|
56
|
+
label: l[e.labelKey],
|
|
57
|
+
value: l[e.valueKey],
|
|
58
|
+
disabled: l[e.disabledKey]
|
|
59
|
+
}, {
|
|
60
|
+
default: y(() => [
|
|
61
|
+
L(v(l[e.labelKey]), 1)
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 16, ["modelValue", "multiple", "disabled"])), [
|
|
68
|
+
[r, n(B)]
|
|
69
|
+
]),
|
|
70
|
+
C(t, {
|
|
71
|
+
onClick: V,
|
|
72
|
+
disabled: e.disabled,
|
|
73
|
+
class: "search-btn"
|
|
74
|
+
}, {
|
|
75
|
+
default: y(() => [
|
|
76
|
+
C(n(P), { name: "search" })
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["disabled"])
|
|
80
|
+
]));
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-d0b75379"]]);
|
|
84
|
+
export {
|
|
85
|
+
X as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as _, mergeModels as B, useModel as S, inject as g, resolveComponent as K, resolveDirective as A, unref as i, openBlock as t, createElementBlock as p, toDisplayString as f, withDirectives as j, createBlock as h, mergeProps as w, withCtx as M, Fragment as F, renderList as I, createTextVNode as N } from "vue";
|
|
2
|
+
import { u as E } from "./index-DoIvJXpY.js";
|
|
3
|
+
import { u as L } from "./useSelect-DkY4BS54.js";
|
|
4
|
+
const O = { key: 0 }, P = { key: 0 }, T = { key: 1 }, z = /* @__PURE__ */ _({
|
|
5
|
+
__name: "Select",
|
|
6
|
+
props: /* @__PURE__ */ B({
|
|
7
|
+
options: { default: () => [] },
|
|
8
|
+
multiple: { type: Boolean, default: !1 },
|
|
9
|
+
mode: { default: "static" },
|
|
10
|
+
labelKey: { default: "label" },
|
|
11
|
+
valueKey: { default: "value" },
|
|
12
|
+
disabledKey: { default: "disabled" },
|
|
13
|
+
api: {},
|
|
14
|
+
name: { default: "" },
|
|
15
|
+
onChange: {}
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: { type: [String, Number, Boolean, Array] },
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(v) {
|
|
22
|
+
const s = v, n = S(v, "modelValue"), m = E(), y = g("ruleModule", void 0), k = g("pageMethodMap", {}), C = (e) => {
|
|
23
|
+
const { valueKey: d = "value", multiple: c, name: r } = s;
|
|
24
|
+
let a = {};
|
|
25
|
+
c && Array.isArray(e) ? a = u.value.filter((o) => e.includes(o[d])) : a = u.value.find((o) => o[d] === e) || {}, m.selectData && r && m.updateSelectData(r, a), s.onChange && y && y[s.onChange](k, e, a);
|
|
26
|
+
}, { currentOptions: u, loading: V } = L(s);
|
|
27
|
+
return (e, d) => {
|
|
28
|
+
var o;
|
|
29
|
+
const c = K("el-option"), r = K("el-select"), a = A("loading");
|
|
30
|
+
return i(m).read ? (t(), p("div", O, [
|
|
31
|
+
e.multiple ? (t(), p("div", P, f(n.value && n.value.map((l) => {
|
|
32
|
+
var b;
|
|
33
|
+
return (b = i(u).find((D) => D[e.valueKey] === l)) == null ? void 0 : b[e.labelKey];
|
|
34
|
+
}).join("、")), 1)) : (t(), p("div", T, f((o = i(u).find((l) => l[e.valueKey] === n.value)) == null ? void 0 : o[e.labelKey]), 1))
|
|
35
|
+
])) : j((t(), h(r, w({
|
|
36
|
+
key: 1,
|
|
37
|
+
modelValue: n.value,
|
|
38
|
+
"onUpdate:modelValue": d[0] || (d[0] = (l) => n.value = l)
|
|
39
|
+
}, e.$attrs, {
|
|
40
|
+
onChange: C,
|
|
41
|
+
multiple: e.multiple,
|
|
42
|
+
clearable: "",
|
|
43
|
+
filterable: ""
|
|
44
|
+
}), {
|
|
45
|
+
default: M(() => [
|
|
46
|
+
(t(!0), p(F, null, I(i(u), (l) => (t(), h(c, {
|
|
47
|
+
key: l[e.valueKey],
|
|
48
|
+
label: l[e.labelKey],
|
|
49
|
+
value: l[e.valueKey],
|
|
50
|
+
disabled: l[e.disabledKey]
|
|
51
|
+
}, {
|
|
52
|
+
default: M(() => [
|
|
53
|
+
N(f(l[e.labelKey]), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 16, ["modelValue", "multiple"])), [
|
|
60
|
+
[a, i(V)]
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
z as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
|
|
2
|
+
import { a as V } from "./index-DoIvJXpY.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const w = /* @__PURE__ */ i({
|
|
5
|
+
__name: "Tabs",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
defaultKey: {}
|
|
9
|
+
},
|
|
10
|
+
setup(s) {
|
|
11
|
+
const n = s, r = m("");
|
|
12
|
+
return _(
|
|
13
|
+
() => n.children,
|
|
14
|
+
() => {
|
|
15
|
+
n.children.forEach((e) => {
|
|
16
|
+
e.children || (e.children = []);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
), h(() => {
|
|
20
|
+
n.defaultKey && (r.value = n.defaultKey);
|
|
21
|
+
}), (e, o) => {
|
|
22
|
+
const f = a("el-tab-pane"), p = a("el-tabs");
|
|
23
|
+
return l(), c(p, u(e.$attrs, {
|
|
24
|
+
modelValue: r.value,
|
|
25
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t)
|
|
26
|
+
}), {
|
|
27
|
+
default: d(() => [
|
|
28
|
+
(l(!0), b(v, null, y(e.children, (t) => (l(), c(f, u({
|
|
29
|
+
key: t.name,
|
|
30
|
+
ref_for: !0
|
|
31
|
+
}, t), {
|
|
32
|
+
default: d(() => [
|
|
33
|
+
k(K(V), {
|
|
34
|
+
list: t.children
|
|
35
|
+
}, null, 8, ["list"])
|
|
36
|
+
]),
|
|
37
|
+
_: 2
|
|
38
|
+
}, 1040))), 128))
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 16, ["modelValue"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
w as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as o, resolveComponent as p, openBlock as a, createBlock as n, withCtx as r, createTextVNode as l, toDisplayString as _ } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ o({
|
|
3
|
+
__name: "Tag",
|
|
4
|
+
props: {
|
|
5
|
+
text: { default: "标签" },
|
|
6
|
+
type: { default: "primary" }
|
|
7
|
+
},
|
|
8
|
+
setup(c) {
|
|
9
|
+
return (e, s) => {
|
|
10
|
+
const t = p("el-tag");
|
|
11
|
+
return a(), n(t, { type: e.type }, {
|
|
12
|
+
default: r(() => [
|
|
13
|
+
l(_(e.text), 1)
|
|
14
|
+
]),
|
|
15
|
+
_: 1
|
|
16
|
+
}, 8, ["type"]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
f as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as u, useModel as s, resolveComponent as p, unref as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as f, mergeProps as _ } from "vue";
|
|
2
|
+
import { u as v } from "./index-DoIvJXpY.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const V = { key: 0 }, B = /* @__PURE__ */ u({
|
|
5
|
+
__name: "TextArea",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(l) {
|
|
12
|
+
const e = s(l, "modelValue"), n = v();
|
|
13
|
+
return (a, o) => {
|
|
14
|
+
const r = p("el-input");
|
|
15
|
+
return d(n).read ? (t(), i("div", V, c(e.value), 1)) : (t(), f(r, _({ key: 1 }, a.$attrs, {
|
|
16
|
+
modelValue: e.value,
|
|
17
|
+
"onUpdate:modelValue": o[0] || (o[0] = (m) => e.value = m),
|
|
18
|
+
type: "textarea"
|
|
19
|
+
}), null, 16, ["modelValue"]));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
B as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as l, createBlock as o, resolveDynamicComponent as a, normalizeStyle as i, withCtx as n, createTextVNode as r, toDisplayString as p } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ t({
|
|
3
|
+
__name: "Title",
|
|
4
|
+
props: {
|
|
5
|
+
title: { default: "标题" },
|
|
6
|
+
type: { default: "h3" },
|
|
7
|
+
italic: { type: Boolean, default: !1 }
|
|
8
|
+
},
|
|
9
|
+
setup(s) {
|
|
10
|
+
return (e, c) => (l(), o(a(e.type), {
|
|
11
|
+
class: "Title",
|
|
12
|
+
style: i({ fontStyle: e.italic ? "italic" : "normal" })
|
|
13
|
+
}, {
|
|
14
|
+
default: n(() => [
|
|
15
|
+
r(p(e.title), 1)
|
|
16
|
+
]),
|
|
17
|
+
_: 1
|
|
18
|
+
}, 8, ["style"]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
m as _
|
|
23
|
+
};
|