zhihao-ui 1.1.1 → 1.1.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/dist/es/{Button-DnpxJA88.js → Button-Q7GkKwFF.js} +1 -1
- package/dist/es/{DatePicker-DdLVvq3M.js → DatePicker-D8LPaPf6.js} +2 -2
- package/dist/es/{DetailSubTitle-BWNtw5qC.js → DetailSubTitle-C5pVYJhX.js} +2 -2
- package/dist/es/Dialog-BASeD5f8.js +74 -0
- package/dist/es/{EditInfoPair-Dkj9ohlm.js → EditInfoPair-CM5piQwT.js} +3 -3
- package/dist/es/{FileWrapper-D9UO6aN1.js → FileWrapper-DN-KKB9p.js} +4 -4
- package/dist/es/{Grid-D8odZrqs.js → Grid-Ds-Jy0Mn.js} +1 -1
- package/dist/es/{InfoPair-BXFe3add.js → InfoPair-CnBR3fy9.js} +3 -3
- package/dist/es/{Input-wPjJsk3b.js → Input-C1s8JqmI.js} +3 -3
- package/dist/es/{Loading-ClJhDU4h.js → Loading-DELLXz7f.js} +2 -2
- package/dist/es/{MessageBox-BbG8P2uz.js → MessageBox-26ImfgOR.js} +10 -10
- package/dist/es/{MoneyInput-CbCeKV_v.js → MoneyInput-Dt_ZE-zv.js} +5 -5
- package/dist/es/{PageHeadPanel-BaNhcn2t.js → PageHeadPanel-CdohXWA9.js} +2 -2
- package/dist/es/{ToolTips-Dm28zKim.js → ToolTips-CxyQMewg.js} +3 -3
- package/dist/es/index.js +15 -15
- package/dist/es/{utils-amzq0_Yw.js → utils-DBdiSe6_.js} +1 -1
- package/dist/es/{vendor-Cv1TpEaZ.js → vendor-mKFy0Hb6.js} +5 -5
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +37 -3
- package/dist/types/components/Dialog/index.d.ts +63 -5
- package/dist/types/components/Dialog/types.d.ts +5 -24
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +12 -12
- package/package.json +1 -1
- package/dist/es/Dialog-D9YXcRFu.js +0 -112
- package/dist/types/components/vitest.config.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as l, createBlock as r, unref as p, mergeProps as s, createSlots as N, withCtx as a, renderSlot as u, resolveDynamicComponent as d, createElementBlock as n, Fragment as f, renderList as k, toDisplayString as m, createCommentVNode as V, createVNode as i, createElementVNode as y, createTextVNode as h } from "vue";
|
|
2
|
-
import { a as v, b as C, c } from "./vendor-Cv1TpEaZ.js";
|
|
3
|
-
import { _ as E } from "./Button-DnpxJA88.js";
|
|
4
|
-
import { w as D } from "./utils-amzq0_Yw.js";
|
|
5
|
-
const $ = { class: "el-dialog__title" }, w = { key: 0 }, z = { key: 1 }, F = { class: "dialog-footer" }, T = { class: "dialog-footer" }, U = /* @__PURE__ */ b({
|
|
6
|
-
name: "zh-dialog",
|
|
7
|
-
__name: "Dialog",
|
|
8
|
-
setup(B) {
|
|
9
|
-
return (e, g) => (l(), r(p(v), s({
|
|
10
|
-
modelValue: e.dialogVisible,
|
|
11
|
-
"onUpdate:modelValue": g[0] || (g[0] = (o) => e.dialogVisible = o),
|
|
12
|
-
title: e.dialogTitle,
|
|
13
|
-
width: e.props.width,
|
|
14
|
-
"destroy-on-close": !0
|
|
15
|
-
}, e.$attrs, { class: "base-dialog" }), N({
|
|
16
|
-
header: a(() => [
|
|
17
|
-
y("span", $, m(e.dialogTitle), 1)
|
|
18
|
-
]),
|
|
19
|
-
default: a(() => [
|
|
20
|
-
e.slots.default ? u(e.$slots, "default", { key: 0 }, void 0, !0) : (l(), r(d(e.component.ElForm), s({ key: 1 }, e.formOptions.form, {
|
|
21
|
-
ref: "proFormRef",
|
|
22
|
-
model: e.model,
|
|
23
|
-
rules: e.formOptions.rules
|
|
24
|
-
}), {
|
|
25
|
-
default: a(() => [
|
|
26
|
-
(l(!0), n(f, null, k(e.formOptions.columns, (o) => (l(), n(f, {
|
|
27
|
-
key: o.prop
|
|
28
|
-
}, [
|
|
29
|
-
o.formItem.hidden ? (l(), r(d(`el-${o.attrs.typeName}`), s({
|
|
30
|
-
key: 0,
|
|
31
|
-
ref_for: !0
|
|
32
|
-
}, o.attrs, {
|
|
33
|
-
modelValue: e.model[o.formItem.prop],
|
|
34
|
-
"onUpdate:modelValue": (t) => e.model[o.formItem.prop] = t
|
|
35
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (l(), r(d(e.component.ElFormItem), s({
|
|
36
|
-
key: 1,
|
|
37
|
-
ref_for: !0
|
|
38
|
-
}, o.formItem), {
|
|
39
|
-
default: a(() => [
|
|
40
|
-
(l(), r(d(`el-${o.attrs.typeName}`), s({ ref_for: !0 }, o.attrs, {
|
|
41
|
-
modelValue: e.model[o.formItem.prop],
|
|
42
|
-
"onUpdate:modelValue": (t) => e.model[o.formItem.prop] = t
|
|
43
|
-
}), {
|
|
44
|
-
default: a(() => [
|
|
45
|
-
o.attrs.typeName === "text" ? (l(), n("span", w, m(e.model[o.formItem.prop]), 1)) : V("", !0),
|
|
46
|
-
o.attrs.typeName === "cascader" ? (l(), n("span", z, m(o.formItem.label), 1)) : V("", !0),
|
|
47
|
-
o.attrs.typeName === "select" ? (l(!0), n(f, { key: 2 }, k(o.attrs.enum, (t, I) => (l(), r(d(e.component.ElOption), {
|
|
48
|
-
key: I,
|
|
49
|
-
label: t[o.attrs.fieldNames.label],
|
|
50
|
-
value: t[o.attrs.fieldNames.value]
|
|
51
|
-
}, null, 8, ["label", "value"]))), 128)) : u(e.$slots, "default", { key: 3 }, void 0, !0)
|
|
52
|
-
]),
|
|
53
|
-
_: 2
|
|
54
|
-
}, 1040, ["modelValue", "onUpdate:modelValue"]))
|
|
55
|
-
]),
|
|
56
|
-
_: 2
|
|
57
|
-
}, 1040))
|
|
58
|
-
], 64))), 128)),
|
|
59
|
-
i(p(C), null, {
|
|
60
|
-
default: a(() => [
|
|
61
|
-
u(e.$slots, "operation", {}, void 0, !0)
|
|
62
|
-
]),
|
|
63
|
-
_: 3
|
|
64
|
-
})
|
|
65
|
-
]),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 16, ["model", "rules"]))
|
|
68
|
-
]),
|
|
69
|
-
_: 2
|
|
70
|
-
}, [
|
|
71
|
-
e.slots.footer ? {
|
|
72
|
-
name: "footer",
|
|
73
|
-
fn: a(() => [
|
|
74
|
-
y("span", F, [
|
|
75
|
-
u(e.$slots, "footer", {}, void 0, !0)
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
key: "0"
|
|
79
|
-
} : {
|
|
80
|
-
name: "footer",
|
|
81
|
-
fn: a(() => [
|
|
82
|
-
y("span", T, [
|
|
83
|
-
i(p(c), {
|
|
84
|
-
size: "large",
|
|
85
|
-
onClick: e.closeDialog
|
|
86
|
-
}, {
|
|
87
|
-
default: a(() => [
|
|
88
|
-
h(m(e.dialogCancelText), 1)
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["onClick"]),
|
|
92
|
-
i(p(c), {
|
|
93
|
-
size: "large",
|
|
94
|
-
type: "primary",
|
|
95
|
-
onClick: e.submit
|
|
96
|
-
}, {
|
|
97
|
-
default: a(() => [
|
|
98
|
-
h(m(e.dialogSubmitText), 1)
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["onClick"])
|
|
102
|
-
])
|
|
103
|
-
]),
|
|
104
|
-
key: "1"
|
|
105
|
-
}
|
|
106
|
-
]), 1040, ["modelValue", "title", "width"]));
|
|
107
|
-
}
|
|
108
|
-
}), _ = /* @__PURE__ */ E(U, [["__scopeId", "data-v-c0d85cb8"]]), P = D(_);
|
|
109
|
-
export {
|
|
110
|
-
P as Z,
|
|
111
|
-
_ as z
|
|
112
|
-
};
|