@web-utils/form-ui 1.0.0-beta25 → 1.0.0-beta26
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/awesome-button/index.mjs +49 -2
- package/chunks/{BYNkR7-j.mjs → 3QpBKdDM.mjs} +2 -2
- package/chunks/{Uhf6MK26.mjs → ADvOhGAW.mjs} +1 -1
- package/chunks/{0nMB8MZ0.mjs → BAE_vglg.mjs} +2 -2
- package/chunks/{1UkAGJ03.mjs → BJP-5-0v.mjs} +2 -2
- package/chunks/{Ckur6g6N.mjs → BPbmq_Fz.mjs} +2 -2
- package/chunks/{CjeZ3uKX.mjs → BhmGnR4F.mjs} +6 -6
- package/chunks/{DDc6e1uO.mjs → CCc9Zjms.mjs} +3 -3
- package/chunks/{DJjmr9R3.mjs → Cme51jl3.mjs} +2 -2
- package/chunks/{B2PYq5pM.mjs → CnP5qx9A.mjs} +2 -2
- package/chunks/{BM8sdTDJ.mjs → CotIhBXj.mjs} +2 -2
- package/chunks/{o7O5_GIP.mjs → D-ffcm89.mjs} +2 -2
- package/chunks/{U08ZaDiY.mjs → D1G2MMMx.mjs} +206 -199
- package/chunks/{4G13cKOo.mjs → DGYsSu6t.mjs} +2 -2
- package/chunks/{CAQ6-w1f.mjs → DJTwM7o_.mjs} +3 -3
- package/chunks/{CnVy7Ngb.mjs → DS8NSFKr.mjs} +10 -6
- package/chunks/{B8rugxZ0.mjs → DlFC9IZx.mjs} +2 -2
- package/chunks/{XKBWlv3M.mjs → Dn79Y_Rb.mjs} +2 -2
- package/chunks/{MVhpewST.mjs → DzMQIy5h.mjs} +1 -1
- package/chunks/{CtK74qPE.mjs → lVzx0-GH.mjs} +2 -2
- package/chunks/{BowPVbJ7.mjs → ltggbLWM.mjs} +2 -2
- package/chunks/{DnWeeCd1.mjs → mjEH6tHn.mjs} +1 -1
- package/chunks/{DdZcziWU.mjs → o5196FMX.mjs} +3 -3
- package/chunks/{Dl5QgkX_.mjs → qRpPD8iK.mjs} +2 -2
- package/chunks/{BdD1Rt-7.mjs → tRXOz6_G.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/empty-view/index.mjs +1 -1
- package/form-advice/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +27 -27
- package/package.json +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -13047
- package/x-input-tag/index.mjs +6 -6
- package/year-calendar/index.mjs +1 -1
- package/chunks/iIcGTQmB.mjs +0 -50
- /package/chunks/{BdHFJ9cK.mjs → BVLgLg_s.mjs} +0 -0
- /package/chunks/{DOl--Hf9.mjs → Bgny2wyC.mjs} +0 -0
- /package/chunks/{DgL5zblr.mjs → Bm5eiSmT.mjs} +0 -0
- /package/chunks/{DETsVUo_.mjs → C9J3j0PX.mjs} +0 -0
- /package/chunks/{DJNXk_Cv.mjs → CkFapoKt.mjs} +0 -0
- /package/chunks/{eR-FlUht.mjs → pxFLMMUm.mjs} +0 -0
package/awesome-button/index.mjs
CHANGED
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { isFunction as e } from "@web-utils/core";
|
|
2
|
+
import { h as t, ref as n, resolveComponent as r } from "vue";
|
|
3
|
+
//#region src/components/button/AwesomeButton.vue
|
|
4
|
+
var i = {
|
|
5
|
+
name: "AwesomeButton",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
props: {
|
|
8
|
+
type: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "primary"
|
|
11
|
+
},
|
|
12
|
+
size: String,
|
|
13
|
+
icon: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
nativeType: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "button"
|
|
20
|
+
},
|
|
21
|
+
loading: Boolean,
|
|
22
|
+
disabled: Boolean,
|
|
23
|
+
plain: Boolean,
|
|
24
|
+
autofocus: Boolean,
|
|
25
|
+
round: Boolean,
|
|
26
|
+
text: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ""
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(i, { attrs: a, slots: o }) {
|
|
32
|
+
let s = r("ElButton"), { text: c, ...l } = i, { onClick: u, ...d } = a, f = n(!1), p = async (t) => {
|
|
33
|
+
if (f.value = !0, e(u)) try {
|
|
34
|
+
await u(t);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.error(e);
|
|
37
|
+
}
|
|
38
|
+
f.value = !1;
|
|
39
|
+
};
|
|
40
|
+
return () => t(s, {
|
|
41
|
+
...d,
|
|
42
|
+
...l,
|
|
43
|
+
disabled: f.value,
|
|
44
|
+
onClick: p
|
|
45
|
+
}, { default: o.default || (() => c) });
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { i as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { computed as r, createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
4
4
|
import { ElCheckbox as s, ElCheckboxButton as c, ElCheckboxGroup as l } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/checkbox-group.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./BVLgLg_s.mjs";
|
|
2
2
|
import { formHolderContextKey as t, formItemConfigProviderContextKey as n, formItemGroupContextKey as r } from "../constants/index.mjs";
|
|
3
3
|
import { computed as i, createVNode as a, h as o, inject as s, mergeProps as c, nextTick as l, unref as u, useTemplateRef as d } from "vue";
|
|
4
4
|
import { ElCol as f, rowContextKey as p } from "element-plus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t, t as n } from "./
|
|
2
|
-
import { n as r, t as i } from "./
|
|
1
|
+
import { i as e, n as t, t as n } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n as r, t as i } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { validatePhoneNum as a } from "@web-utils/core";
|
|
4
4
|
import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
5
5
|
import { ElInput as u } from "element-plus/es";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElRate as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/rate.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
1
|
+
import { n as e } from "./BVLgLg_s.mjs";
|
|
2
2
|
import { hasAuthority as t } from "../api/index.mjs";
|
|
3
3
|
import { toolbarContextKey as n } from "../constants/index.mjs";
|
|
4
|
-
import { t as r } from "./
|
|
4
|
+
import { t as r } from "./Bgny2wyC.mjs";
|
|
5
5
|
import { NOOP as i, capitalize as a } from "@web-utils/core";
|
|
6
6
|
import { Comment as o, createVNode as s } from "vue";
|
|
7
7
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e } from "./
|
|
1
|
+
import { a as e } from "./BVLgLg_s.mjs";
|
|
2
2
|
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withModifiers as y } from "vue";
|
|
3
3
|
import { ElDialog as b } from "element-plus/es";
|
|
4
4
|
//#region src/components/dialog/props.ts
|
|
@@ -150,23 +150,23 @@ var x = {
|
|
|
150
150
|
fullscreen: h(M),
|
|
151
151
|
style: { "--dialog-body-height": h(P) }
|
|
152
152
|
}), o({
|
|
153
|
-
header: v(() => [p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
|
|
153
|
+
header: v(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: u(["dialog-header-button", {
|
|
156
156
|
"el-icon-full-screen": !e.fullscreen,
|
|
157
157
|
"el-icon-copy-document": e.fullscreen
|
|
158
158
|
}]),
|
|
159
159
|
onClick: y(N, ["stop"])
|
|
160
|
-
}, null, 2)) : r("", !0), e.showClose ? (d(), i("i", {
|
|
160
|
+
}, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
|
|
161
161
|
key: 1,
|
|
162
162
|
class: "dialog-header-button el-icon-close",
|
|
163
163
|
onClick: y(I, ["stop"])
|
|
164
|
-
})) : r("", !0)])])]),
|
|
165
|
-
default: v(() => [p(e.$slots, "default")]),
|
|
164
|
+
})) : r("v-if", !0)])])]),
|
|
165
|
+
default: v(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
|
|
166
166
|
_: 2
|
|
167
167
|
}, [e.$slots.footer ? {
|
|
168
168
|
name: "footer",
|
|
169
|
-
fn: v(() => [p(e.$slots, "footer", { close: I })]),
|
|
169
|
+
fn: v(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: I })]),
|
|
170
170
|
key: "0"
|
|
171
171
|
} : void 0]), 1040, [
|
|
172
172
|
"modelValue",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
3
|
-
import { t as i } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n, t as r } from "./mjEH6tHn.mjs";
|
|
3
|
+
import { t as i } from "./D1G2MMMx.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o, ref as s } from "vue";
|
|
5
5
|
import { ElInput as c, ElPopover as l } from "element-plus/es";
|
|
6
6
|
//#region src/components/form/props/input-cron.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElCheckbox as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/checkbox.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { computed as r, createVNode as i, mergeProps as a } from "vue";
|
|
4
4
|
import { ElDatePicker as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/date.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElOption as o, ElSelect as s } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/select.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
1
|
+
import { i as e, n as t } from "./ADvOhGAW.mjs";
|
|
2
|
+
import { n, t as r } from "./mjEH6tHn.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
|
|
5
5
|
import { computed as l, createVNode as u, mergeProps as d } from "vue";
|