@web-utils/component 5.0.0-beta01 → 5.0.0-beta03
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 +25 -31
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.CV8b95tW.mjs} +130 -139
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.DH1ypcUw.mjs} +17 -18
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.D6kZl7sm.mjs} +8 -8
- package/chunks/FormCascader.BXL8lKww.mjs +1229 -0
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.DzTPiDNh.mjs} +339 -337
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.B8iPLduv.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.CCGqEapT.mjs} +38 -31
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.t0jbTL_K.mjs} +470 -467
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.uoFQ-xp_.mjs} +53 -51
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.CgyGhetD.mjs} +25 -21
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/ImagePreview.DDFrZgo5.mjs +649 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.DBspwbYo.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.Bq9d6JSz.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.DR-REJN5.mjs} +84 -83
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.Cq9Bvevm.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.BmPnLuu3.mjs} +163 -142
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.GHx4Z2lG.mjs} +48 -43
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.CuUc8N2C.mjs} +26 -26
- package/chunks/{form-input.D25eDRMq.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.fYYCXvCs.mjs} +77 -75
- package/chunks/icon.AJYLfX1m.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.niAg1zTC.mjs} +31 -39
- package/chunks/{init.DwpukyOB.mjs → init.CtUEiRbU.mjs} +6 -6
- package/chunks/{input.PejnqwSH.mjs → input.B_wW4aF-.mjs} +107 -106
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.BCmee5N0.mjs → message.DnTACuzV.mjs} +76 -75
- package/chunks/{overlay.DubSnqma.mjs → overlay.Rhu_rfhx.mjs} +5 -5
- package/chunks/{radio.BotKXqJr.mjs → radio.BMkZBhl5.mjs} +45 -45
- package/chunks/{scroll.CzORc5Zk.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.DPi-PLbb.mjs → tag.B6yUaGj-.mjs} +25 -25
- package/chunks/{teleport._VGEzK4d.mjs → teleport.87mkIv8m.mjs} +3 -3
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.Dzjs7LZ8.mjs} +108 -108
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/use-empty-values.CxYKjLV9.mjs +81 -0
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/{use-id.CFO5NeoV.mjs → use-id.CyzdvfQn.mjs} +3 -3
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.CBoQRFjH.mjs} +12 -87
- package/chunks/{use-size.DxrwTUwf.mjs → use-size.CoorvF12.mjs} +2 -2
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.D_SioRnx.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +10 -9
- package/form-input-id-card/index.mjs +10 -9
- package/form-input-phone-number/index.mjs +11 -10
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -3
- package/helper-function.mjs +36 -20
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +2 -187
- package/index.d.ts +1 -2
- package/index.mjs +153 -154
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +12 -14
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -146
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +265 -363
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/FormCascader.CaM-oEhv.mjs +0 -1226
- package/chunks/checkbox.emIuFmnt.mjs +0 -437
- package/chunks/confirmable-mixin.BBil7dto.mjs +0 -1646
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-global-config.C9hs-O_x.mjs +0 -56
- package/chunks/validator.C4-z_t9p.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { computed as e, getCurrentInstance as t, inject as n, ref as r, unref as i } from "vue";
|
|
2
|
-
import { fromPairs as a, isPlainObject as o } from "lodash-unified";
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
|
-
var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.getPrototypeOf, f = Object.prototype.hasOwnProperty, p = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), m = (e, t, n, r) => {
|
|
5
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !f.call(e, s) && s !== n && c(e, s, {
|
|
6
|
-
get: ((e) => t[e]).bind(null, s),
|
|
7
|
-
enumerable: !(r = l(t, s)) || r.enumerable
|
|
8
|
-
});
|
|
9
|
-
return e;
|
|
10
|
-
}, h = (e, t, n) => (n = e == null ? {} : s(d(e)), m(t || !e || !e.__esModule ? c(n, "default", {
|
|
11
|
-
value: e,
|
|
12
|
-
enumerable: !0
|
|
13
|
-
}) : n, e));
|
|
14
|
-
process.env.NODE_ENV === "production" || Object.freeze({}), process.env.NODE_ENV === "production" || Object.freeze([]);
|
|
15
|
-
var g = () => {}, _ = Object.prototype.hasOwnProperty, v = (e, t) => _.call(e, t), y = Array.isArray, b = (e) => E(e) === "[object Date]", x = (e) => typeof e == "function", S = (e) => typeof e == "string", C = (e) => typeof e == "object" && !!e, w = (e) => (C(e) || x(e)) && x(e.then) && x(e.catch), T = Object.prototype.toString, E = (e) => T.call(e), D = (e) => E(e) === "[object Object]", O = (e) => {
|
|
16
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
17
|
-
return ((n) => t[n] || (t[n] = e(n)));
|
|
18
|
-
}, k = /-\w/g, A = O((e) => e.replace(k, (e) => e.slice(1).toUpperCase())), j = /\B([A-Z])/g, M = O((e) => e.replace(j, "-$1").toLowerCase()), N = "is-", P = (e, t, n, r, i) => {
|
|
19
|
-
let a = `${e}-${t}`;
|
|
20
|
-
return n && (a += `-${n}`), r && (a += `__${r}`), i && (a += `--${i}`), a;
|
|
21
|
-
}, F = Symbol("namespaceContextKey"), I = (a) => {
|
|
22
|
-
let o = a || (t() ? n(F, r("el")) : r("el"));
|
|
23
|
-
return e(() => i(o) || "el");
|
|
24
|
-
}, L = (e, t) => {
|
|
25
|
-
let n = I(t);
|
|
26
|
-
return {
|
|
27
|
-
namespace: n,
|
|
28
|
-
b: (t = "") => P(n.value, e, t, "", ""),
|
|
29
|
-
e: (t) => t ? P(n.value, e, "", t, "") : "",
|
|
30
|
-
m: (t) => t ? P(n.value, e, "", "", t) : "",
|
|
31
|
-
be: (t, r) => t && r ? P(n.value, e, t, r, "") : "",
|
|
32
|
-
em: (t, r) => t && r ? P(n.value, e, "", t, r) : "",
|
|
33
|
-
bm: (t, r) => t && r ? P(n.value, e, t, "", r) : "",
|
|
34
|
-
bem: (t, r, i) => t && r && i ? P(n.value, e, t, r, i) : "",
|
|
35
|
-
is: (e, ...t) => {
|
|
36
|
-
let n = t.length >= 1 ? t[0] : !0;
|
|
37
|
-
return e && n ? `${N}${e}` : "";
|
|
38
|
-
},
|
|
39
|
-
cssVar: (e) => {
|
|
40
|
-
let t = {};
|
|
41
|
-
for (let r in e) e[r] && (t[`--${n.value}-${r}`] = e[r]);
|
|
42
|
-
return t;
|
|
43
|
-
},
|
|
44
|
-
cssVarName: (e) => `--${n.value}-${e}`,
|
|
45
|
-
cssVarBlock: (t) => {
|
|
46
|
-
let r = {};
|
|
47
|
-
for (let i in t) t[i] && (r[`--${n.value}-${e}-${i}`] = t[i]);
|
|
48
|
-
return r;
|
|
49
|
-
},
|
|
50
|
-
cssVarBlockName: (t) => `--${n.value}-${e}-${t}`
|
|
51
|
-
};
|
|
52
|
-
}, R = (e) => {
|
|
53
|
-
let t = e.props, n = y(t) ? a(t.map((e) => [e, {}])) : t;
|
|
54
|
-
e.setPropsDefaults = (t) => {
|
|
55
|
-
if (n) {
|
|
56
|
-
for (let [e, r] of Object.entries(t)) {
|
|
57
|
-
let t = n[e];
|
|
58
|
-
if (v(n, e)) {
|
|
59
|
-
if (o(t)) {
|
|
60
|
-
n[e] = {
|
|
61
|
-
...t,
|
|
62
|
-
default: r
|
|
63
|
-
};
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
n[e] = {
|
|
67
|
-
type: t,
|
|
68
|
-
default: r
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
e.props = n;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}, z = (e, t) => {
|
|
76
|
-
if (e.install = (n) => {
|
|
77
|
-
for (let r of [e, ...Object.values(t ?? {})]) n.component(r.name, r);
|
|
78
|
-
}, t) for (let [n, r] of Object.entries(t)) e[n] = r;
|
|
79
|
-
return R(e), e;
|
|
80
|
-
}, B = (e, t) => (e.install = (n) => {
|
|
81
|
-
e._context = n._context, n.config.globalProperties[t] = e;
|
|
82
|
-
}, e), V = (e) => (e.install = g, R(e), e);
|
|
83
|
-
//#endregion
|
|
84
|
-
export { S as _, I as a, A as c, y as d, b as f, w as g, D as h, F as i, v as l, C as m, B as n, L as o, x as p, V as r, g as s, z as t, M as u, p as v, h as y };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./use-size.DxrwTUwf.mjs";
|
|
2
|
-
import { t } from "./use-id.CFO5NeoV.mjs";
|
|
3
|
-
import { computed as n, getCurrentInstance as r, inject as i, onMounted as a, onUnmounted as o, ref as s, toRef as c, unref as l, watch as u } from "vue";
|
|
4
|
-
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/hooks/use-prop/index.mjs
|
|
5
|
-
var d = (e) => {
|
|
6
|
-
let t = r();
|
|
7
|
-
return n(() => {
|
|
8
|
-
var n;
|
|
9
|
-
return t == null || (n = t.proxy) == null || (n = n.$props) == null ? void 0 : n[e];
|
|
10
|
-
});
|
|
11
|
-
}, f = Symbol("formContextKey"), p = Symbol("formItemContextKey"), m = (t, r = {}) => {
|
|
12
|
-
let a = s(void 0), o = r.prop ? a : d("size"), c = r.global ? a : e(), u = r.form ? { size: void 0 } : i(f, void 0), m = r.formItem ? { size: void 0 } : i(p, void 0);
|
|
13
|
-
return n(() => o.value || l(t) || (m == null ? void 0 : m.size) || (u == null ? void 0 : u.size) || c.value || "");
|
|
14
|
-
}, h = (e) => {
|
|
15
|
-
let t = d("disabled"), r = i(f, void 0);
|
|
16
|
-
return n(() => t.value ?? l(e) ?? (r == null ? void 0 : r.disabled) ?? !1);
|
|
17
|
-
}, g = () => ({
|
|
18
|
-
form: i(f, void 0),
|
|
19
|
-
formItem: i(p, void 0)
|
|
20
|
-
}), _ = (e, { formItemContext: i, disableIdGeneration: l, disableIdManagement: d }) => {
|
|
21
|
-
l || (l = s(!1)), d || (d = s(!1));
|
|
22
|
-
let f = r(), p = () => {
|
|
23
|
-
let e = f == null ? void 0 : f.parent;
|
|
24
|
-
for (; e;) {
|
|
25
|
-
if (e.type.name === "ElFormItem") return !1;
|
|
26
|
-
if (e.type.name === "ElLabelWrap") return !0;
|
|
27
|
-
e = e.parent;
|
|
28
|
-
}
|
|
29
|
-
return !1;
|
|
30
|
-
}, m = s(), h, g = n(() => {
|
|
31
|
-
var t;
|
|
32
|
-
return !!(!(e.label || e.ariaLabel) && i && i.inputIds && ((t = i.inputIds) == null ? void 0 : t.length) <= 1);
|
|
33
|
-
});
|
|
34
|
-
return a(() => {
|
|
35
|
-
h = u([c(e, "id"), l], ([e, n]) => {
|
|
36
|
-
let r = e ?? (n ? void 0 : t().value);
|
|
37
|
-
r !== m.value && (i != null && i.removeInputId && !p() && (m.value && i.removeInputId(m.value), !(d != null && d.value) && !n && r && i.addInputId(r)), m.value = r);
|
|
38
|
-
}, { immediate: !0 });
|
|
39
|
-
}), o(() => {
|
|
40
|
-
h && h(), i != null && i.removeInputId && m.value && i.removeInputId(m.value);
|
|
41
|
-
}), {
|
|
42
|
-
isLabeledByFormItem: g,
|
|
43
|
-
inputId: m
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
47
|
-
export { f as a, m as i, _ as n, p as o, h as r, g as t };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { i as e, o as t } from "./install.yLcn5MLL.mjs";
|
|
2
|
-
import { a as n, l as r, o as i, t as a, u as o } from "./use-empty-values.Dy_r78F6.mjs";
|
|
3
|
-
import { t as s } from "./use-size.DxrwTUwf.mjs";
|
|
4
|
-
import { O as c, P as l } from "./style.BmlGmjpO.mjs";
|
|
5
|
-
import { computed as u, getCurrentInstance as d, inject as f, provide as p, ref as m, unref as h } from "vue";
|
|
6
|
-
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/config-provider/src/constants.mjs
|
|
7
|
-
var g = Symbol(), _ = m();
|
|
8
|
-
function v(e, t = void 0) {
|
|
9
|
-
let n = d() ? f(g, _) : _;
|
|
10
|
-
return e ? u(() => {
|
|
11
|
-
var r;
|
|
12
|
-
return ((r = n.value) == null ? void 0 : r[e]) ?? t;
|
|
13
|
-
}) : n;
|
|
14
|
-
}
|
|
15
|
-
function y(e, r) {
|
|
16
|
-
let i = v(), a = t(e, u(() => {
|
|
17
|
-
var e;
|
|
18
|
-
return ((e = i.value) == null ? void 0 : e.namespace) || "el";
|
|
19
|
-
})), s = o(u(() => {
|
|
20
|
-
var e;
|
|
21
|
-
return (e = i.value) == null ? void 0 : e.locale;
|
|
22
|
-
})), c = n(u(() => {
|
|
23
|
-
var e;
|
|
24
|
-
return ((e = i.value) == null ? void 0 : e.zIndex) || 2e3;
|
|
25
|
-
})), l = u(() => {
|
|
26
|
-
var e;
|
|
27
|
-
return h(r) || ((e = i.value) == null ? void 0 : e.size) || "";
|
|
28
|
-
});
|
|
29
|
-
return b(u(() => h(i) || {})), {
|
|
30
|
-
ns: a,
|
|
31
|
-
locale: s,
|
|
32
|
-
zIndex: c,
|
|
33
|
-
size: l
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var b = (t, n, o = !1) => {
|
|
37
|
-
let l = !!d(), f = l ? v() : void 0, m = (n == null ? void 0 : n.provide) ?? (l ? p : void 0);
|
|
38
|
-
if (!m) {
|
|
39
|
-
c("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
let y = u(() => {
|
|
43
|
-
let e = h(t);
|
|
44
|
-
return f != null && f.value ? x(f.value, e) : e;
|
|
45
|
-
});
|
|
46
|
-
return m(g, y), m(r, u(() => y.value.locale)), m(e, u(() => y.value.namespace)), m(i, u(() => y.value.zIndex)), m(s, { size: u(() => y.value.size || "") }), m(a, u(() => ({
|
|
47
|
-
emptyValues: y.value.emptyValues,
|
|
48
|
-
valueOnClear: y.value.valueOnClear
|
|
49
|
-
}))), (o || !_.value) && (_.value = y.value), y;
|
|
50
|
-
}, x = (e, t) => {
|
|
51
|
-
let n = [...new Set([...l(e), ...l(t)])], r = {};
|
|
52
|
-
for (let i of n) r[i] = t[i] === void 0 ? e[i] : t[i];
|
|
53
|
-
return r;
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
export { y as n, v as r, b as t };
|
package/login/index.mjs
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { x as t } from "../chunks/util.g-WQEec9.mjs";
|
|
3
|
-
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, normalizeStyle as c, openBlock as l, resolveComponent as u, toDisplayString as d, withCtx as f } from "vue";
|
|
4
|
-
import { isBlank as p } from "@web-utils/core";
|
|
5
|
-
//#region src/components/login/Login.vue
|
|
6
|
-
var m = "发送验证码", h = "{{time}}s后重获取", g = {
|
|
7
|
-
name: "Login",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: {
|
|
10
|
-
type: Object,
|
|
11
|
-
default: () => ({})
|
|
12
|
-
},
|
|
13
|
-
codesrc: { type: String },
|
|
14
|
-
option: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: () => ({})
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
emits: [
|
|
20
|
-
"refresh",
|
|
21
|
-
"send",
|
|
22
|
-
"submit",
|
|
23
|
-
"update:modelValue",
|
|
24
|
-
"change"
|
|
25
|
-
],
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
text: m,
|
|
29
|
-
nowtime: "",
|
|
30
|
-
check: {},
|
|
31
|
-
flag: !1
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
computed: {
|
|
35
|
-
form: {
|
|
36
|
-
get() {
|
|
37
|
-
return this.modelValue;
|
|
38
|
-
},
|
|
39
|
-
set(e) {
|
|
40
|
-
this.$emit("update:modelValue", e), this.$emit("change", e);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
labelWidth() {
|
|
44
|
-
return this.option.labelWidth || 80;
|
|
45
|
-
},
|
|
46
|
-
time() {
|
|
47
|
-
return this.option.time || 60;
|
|
48
|
-
},
|
|
49
|
-
isImg() {
|
|
50
|
-
return this.codeType === "img";
|
|
51
|
-
},
|
|
52
|
-
isPhone() {
|
|
53
|
-
return this.codeType === "phone";
|
|
54
|
-
},
|
|
55
|
-
codeType() {
|
|
56
|
-
return this.option.codeType || "img";
|
|
57
|
-
},
|
|
58
|
-
width() {
|
|
59
|
-
return this.option.width || "100%";
|
|
60
|
-
},
|
|
61
|
-
username() {
|
|
62
|
-
return this.column.username || {};
|
|
63
|
-
},
|
|
64
|
-
password() {
|
|
65
|
-
return this.column.password || {};
|
|
66
|
-
},
|
|
67
|
-
code() {
|
|
68
|
-
return this.column.code || {};
|
|
69
|
-
},
|
|
70
|
-
column() {
|
|
71
|
-
return this.option.column || {};
|
|
72
|
-
},
|
|
73
|
-
sendDisabled() {
|
|
74
|
-
return !p(this.check);
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
methods: {
|
|
78
|
-
setPx: t,
|
|
79
|
-
onSend() {
|
|
80
|
-
this.sendDisabled || this.$emit("send", () => {
|
|
81
|
-
this.nowtime = this.time, this.text = h.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
|
|
82
|
-
this.nowtime--, this.nowtime === 0 ? (this.text = m, clearInterval(this.check), this.check = null) : this.text = h.replace("{{time}}", this.nowtime);
|
|
83
|
-
}, 1e3);
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
onRefresh() {
|
|
87
|
-
this.$emit("refresh");
|
|
88
|
-
},
|
|
89
|
-
onSubmit() {
|
|
90
|
-
let e = () => {
|
|
91
|
-
let e = {};
|
|
92
|
-
for (let t in this.form) {
|
|
93
|
-
let n = t;
|
|
94
|
-
this[t].prop && (n = this[t].prop), e[n] = this.form[t];
|
|
95
|
-
}
|
|
96
|
-
return e;
|
|
97
|
-
};
|
|
98
|
-
this.$refs.form.validate((t) => {
|
|
99
|
-
t && this.$emit("submit", e());
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}, _ = { key: 1 }, v = ["src"];
|
|
104
|
-
function y(e, t, p, m, h, g) {
|
|
105
|
-
let y = u("ElInput"), b = u("ElTooltip"), x = u("ElFormItem"), S = u("ElButton"), C = u("ElForm");
|
|
106
|
-
return l(), i("div", {
|
|
107
|
-
class: "avue-login",
|
|
108
|
-
style: c({ width: g.setPx(g.width) })
|
|
109
|
-
}, [s(C, {
|
|
110
|
-
ref: "form",
|
|
111
|
-
model: g.form,
|
|
112
|
-
"label-suffix": ":",
|
|
113
|
-
"label-width": g.setPx(g.labelWidth)
|
|
114
|
-
}, {
|
|
115
|
-
default: f(() => [
|
|
116
|
-
g.username.hide ? r("v-if", !0) : (l(), n(x, {
|
|
117
|
-
key: 0,
|
|
118
|
-
label: g.username.label || "用户名",
|
|
119
|
-
rules: g.username.rules,
|
|
120
|
-
"label-width": g.setPx(g.username.labelWidth),
|
|
121
|
-
prop: "username"
|
|
122
|
-
}, {
|
|
123
|
-
default: f(() => [s(b, {
|
|
124
|
-
content: g.username.tip,
|
|
125
|
-
disabled: g.username.tip === void 0,
|
|
126
|
-
placement: "top-start"
|
|
127
|
-
}, {
|
|
128
|
-
default: f(() => [s(y, {
|
|
129
|
-
modelValue: g.form.username,
|
|
130
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => g.form.username = e),
|
|
131
|
-
size: "small",
|
|
132
|
-
"prefix-icon": g.username.prefixIcon || "el-icon-user",
|
|
133
|
-
placeholder: g.username.placeholder || "请输入用户名",
|
|
134
|
-
autocomplete: g.username.autocomplete
|
|
135
|
-
}, null, 8, [
|
|
136
|
-
"modelValue",
|
|
137
|
-
"prefix-icon",
|
|
138
|
-
"placeholder",
|
|
139
|
-
"autocomplete"
|
|
140
|
-
])]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["content", "disabled"])]),
|
|
143
|
-
_: 1
|
|
144
|
-
}, 8, [
|
|
145
|
-
"label",
|
|
146
|
-
"rules",
|
|
147
|
-
"label-width"
|
|
148
|
-
])),
|
|
149
|
-
g.password.hide ? r("v-if", !0) : (l(), n(x, {
|
|
150
|
-
key: 1,
|
|
151
|
-
label: g.password.label || "密码",
|
|
152
|
-
rules: g.password.rules,
|
|
153
|
-
"label-width": g.setPx(g.password.labelWidth),
|
|
154
|
-
prop: "password"
|
|
155
|
-
}, {
|
|
156
|
-
default: f(() => [s(b, {
|
|
157
|
-
content: g.password.tip,
|
|
158
|
-
disabled: g.password.tip === void 0,
|
|
159
|
-
placement: "top-start"
|
|
160
|
-
}, {
|
|
161
|
-
default: f(() => [s(y, {
|
|
162
|
-
modelValue: g.form.password,
|
|
163
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => g.form.password = e),
|
|
164
|
-
type: "password",
|
|
165
|
-
size: "small",
|
|
166
|
-
"prefix-icon": g.password.prefixIcon || "el-icon-unlock",
|
|
167
|
-
placeholder: g.password.placeholder || "请输入密码",
|
|
168
|
-
"show-password": "",
|
|
169
|
-
autocomplete: g.password.autocomplete
|
|
170
|
-
}, null, 8, [
|
|
171
|
-
"modelValue",
|
|
172
|
-
"prefix-icon",
|
|
173
|
-
"placeholder",
|
|
174
|
-
"autocomplete"
|
|
175
|
-
])]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["content", "disabled"])]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, [
|
|
180
|
-
"label",
|
|
181
|
-
"rules",
|
|
182
|
-
"label-width"
|
|
183
|
-
])),
|
|
184
|
-
g.code.hide ? r("v-if", !0) : (l(), n(x, {
|
|
185
|
-
key: 2,
|
|
186
|
-
label: g.code.label || "验证码",
|
|
187
|
-
rules: g.code.rules,
|
|
188
|
-
"label-width": g.setPx(g.code.labelWidth),
|
|
189
|
-
prop: "code"
|
|
190
|
-
}, {
|
|
191
|
-
default: f(() => [s(b, {
|
|
192
|
-
content: g.code.tip,
|
|
193
|
-
disabled: g.code.tip === void 0,
|
|
194
|
-
placement: "top-start"
|
|
195
|
-
}, {
|
|
196
|
-
default: f(() => [s(y, {
|
|
197
|
-
modelValue: g.form.code,
|
|
198
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => g.form.code = e),
|
|
199
|
-
size: "small",
|
|
200
|
-
"prefix-icon": g.code.prefixIcon || "el-icon-c-scale-to-original",
|
|
201
|
-
placeholder: g.code.placeholder || "请输入验证码",
|
|
202
|
-
autocomplete: g.code.autocomplete
|
|
203
|
-
}, {
|
|
204
|
-
append: f(() => [g.isPhone ? (l(), n(S, {
|
|
205
|
-
key: 0,
|
|
206
|
-
type: "primary",
|
|
207
|
-
class: "avue-login__send",
|
|
208
|
-
disabled: g.sendDisabled,
|
|
209
|
-
onClick: g.onSend
|
|
210
|
-
}, {
|
|
211
|
-
default: f(() => [o(d(h.text), 1)]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["disabled", "onClick"])) : r("v-if", !0), g.isImg ? (l(), i("span", _, [a("img", {
|
|
214
|
-
src: p.codesrc,
|
|
215
|
-
alt: "",
|
|
216
|
-
width: "80",
|
|
217
|
-
height: "25",
|
|
218
|
-
onClick: t[2] || (t[2] = (...e) => g.onRefresh && g.onRefresh(...e))
|
|
219
|
-
}, null, 8, v)])) : r("v-if", !0)]),
|
|
220
|
-
_: 1
|
|
221
|
-
}, 8, [
|
|
222
|
-
"modelValue",
|
|
223
|
-
"prefix-icon",
|
|
224
|
-
"placeholder",
|
|
225
|
-
"autocomplete"
|
|
226
|
-
])]),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["content", "disabled"])]),
|
|
229
|
-
_: 1
|
|
230
|
-
}, 8, [
|
|
231
|
-
"label",
|
|
232
|
-
"rules",
|
|
233
|
-
"label-width"
|
|
234
|
-
])),
|
|
235
|
-
s(x, null, {
|
|
236
|
-
default: f(() => [s(S, {
|
|
237
|
-
type: "primary",
|
|
238
|
-
class: "avue-login__submit",
|
|
239
|
-
onClick: g.onSubmit
|
|
240
|
-
}, {
|
|
241
|
-
default: f(() => [...t[4] || (t[4] = [o(" 登录 ", -1)])]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["onClick"])]),
|
|
244
|
-
_: 1
|
|
245
|
-
})
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}, 8, ["model", "label-width"])], 4);
|
|
249
|
-
}
|
|
250
|
-
var b = /* @__PURE__ */ e(g, [["render", y]]);
|
|
251
|
-
//#endregion
|
|
252
|
-
export { b as default };
|
package/login/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avue-login .el-form-item{margin-bottom:18px}.avue-login .el-input-group__append{padding:0;overflow:hidden}.avue-login__send{box-sizing:border-box;min-width:150px}.avue-login__send:hover{color:#c0c4cc!important;background-color:#f5f7fa!important;border-color:#ebeef5!important}.avue-login__submit{width:100%}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|