@web-utils/form-ui 1.0.0-beta75 → 1.0.0-beta76
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/chunks/{CzA5Lt_l2.mjs → B-WTB0ce2.mjs} +1 -1
- package/chunks/{aG2VZRRm2.mjs → BLBHnUme2.mjs} +1 -1
- package/chunks/{CMyOgBni2.mjs → BM8snKHN2.mjs} +1 -1
- package/chunks/{nZTrOKQf2.mjs → BP_0cJ172.mjs} +66 -66
- package/chunks/{CEDZmNDG2.mjs → BTNnujZA2.mjs} +1 -1
- package/chunks/{BCI1maFm2.mjs → BaB0bq4I2.mjs} +1 -1
- package/chunks/{B2p5StJk2.mjs → BvlU_Z6D2.mjs} +1 -1
- package/chunks/C7rEqtOR.mjs +70 -0
- package/chunks/{BoXQg1h12.mjs → CF23xugU2.mjs} +2 -2
- package/chunks/{DS86zxjN2.mjs → CFKKwzh72.mjs} +2 -2
- package/chunks/{B5gBCT5G2.mjs → CI-pH-gR2.mjs} +1 -1
- package/chunks/{BA_en_FG2.mjs → CVM0lwn22.mjs} +1 -1
- package/chunks/{CizBLN6J2.mjs → CWaId08S2.mjs} +1 -1
- package/chunks/{Bh4XihEh.mjs → Cg6ahpHk.mjs} +1 -1
- package/chunks/{Cjxblk9N2.mjs → CpIXTVFU2.mjs} +2 -2
- package/chunks/{Dv-_PE3-.mjs → DLdsvozr.mjs} +2 -2
- package/chunks/{DCTK5oyK.mjs → DMDsZeqv.mjs} +1 -1
- package/chunks/{DjFlEzPM2.mjs → DNiq6hHj2.mjs} +3 -3
- package/chunks/{CfxgQ-wf2.mjs → DP7eF99m2.mjs} +1 -1
- package/chunks/{CstdEG9K2.mjs → DRXM1Mt22.mjs} +1 -1
- package/chunks/{Bp4VotK62.mjs → D_gR5ibl2.mjs} +2 -2
- package/chunks/{Cfz-cav7.mjs → Dgwcljur.mjs} +63 -41
- package/chunks/{_BhTD9wf.mjs → Dhdoa4M6.mjs} +1 -1
- package/chunks/{C_UxYEd72.mjs → Dje2xUVd2.mjs} +2 -2
- package/chunks/{BbO6NHlx2.mjs → DvkUImww2.mjs} +109 -109
- package/chunks/{VbE4wwJT2.mjs → kAaQhLJs2.mjs} +1 -1
- package/chunks/{CBsdczGQ.mjs → ohCkWdwS.mjs} +1 -1
- package/chunks/{C6AxHCkY2.mjs → x2jJ6cfy2.mjs} +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/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-input-tag/index.mjs +1 -1
- package/form-input-time/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-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/helper/input.d.ts +3 -1
- package/helper/input.mjs +1 -1
- package/helper/sub-table-plus.d.ts +1 -1
- package/index.mjs +29 -29
- package/package.json +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +15 -16
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +36 -37
- package/chunks/UCeucUsB.mjs +0 -68
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableColumnCtx } from 'element-plus';
|
|
1
|
+
import { TableColumnCtx } from 'element-plus/es';
|
|
2
2
|
export type InputType = 'input' | 'checkbox1' | 'inputPhoneNumber' | 'user' | 'department' | 'select' | 'datePicker' | 'cascader' | 'checkbox' | 'number';
|
|
3
3
|
export type Align = 'left' | 'center' | 'right';
|
|
4
4
|
export type Option = {
|
package/index.mjs
CHANGED
|
@@ -47,44 +47,44 @@ import H from "./flow-viewer/index.mjs";
|
|
|
47
47
|
import U from "./form-advice/index.mjs";
|
|
48
48
|
import W from "./form-button/index.mjs";
|
|
49
49
|
import G from "./form-card/index.mjs";
|
|
50
|
-
import { s as K } from "./chunks/
|
|
51
|
-
import { t as q } from "./chunks/
|
|
50
|
+
import { s as K } from "./chunks/Dgwcljur.mjs";
|
|
51
|
+
import { t as q } from "./chunks/ohCkWdwS.mjs";
|
|
52
52
|
import J from "./form-cell/index.mjs";
|
|
53
|
-
import { t as Y } from "./chunks/
|
|
54
|
-
import { t as X } from "./chunks/
|
|
55
|
-
import { t as Z } from "./chunks/
|
|
56
|
-
import { t as re } from "./chunks/
|
|
53
|
+
import { t as Y } from "./chunks/Dhdoa4M6.mjs";
|
|
54
|
+
import { t as X } from "./chunks/C7rEqtOR.mjs";
|
|
55
|
+
import { t as Z } from "./chunks/DLdsvozr.mjs";
|
|
56
|
+
import { t as re } from "./chunks/DMDsZeqv.mjs";
|
|
57
57
|
import ie from "./form-red-table/index.mjs";
|
|
58
58
|
import { t as ae } from "./chunks/CZeL7oiY2.mjs";
|
|
59
|
-
import { t as oe } from "./chunks/
|
|
59
|
+
import { t as oe } from "./chunks/DP7eF99m2.mjs";
|
|
60
60
|
import { t as se } from "./chunks/C3pzNRoU2.mjs";
|
|
61
|
-
import { t as ce } from "./chunks/
|
|
62
|
-
import { t as le } from "./chunks/
|
|
63
|
-
import { t as ue } from "./chunks/
|
|
64
|
-
import { t as de } from "./chunks/
|
|
65
|
-
import { t as Q } from "./chunks/
|
|
61
|
+
import { t as ce } from "./chunks/CVM0lwn22.mjs";
|
|
62
|
+
import { t as le } from "./chunks/CF23xugU2.mjs";
|
|
63
|
+
import { t as ue } from "./chunks/CpIXTVFU2.mjs";
|
|
64
|
+
import { t as de } from "./chunks/BTNnujZA2.mjs";
|
|
65
|
+
import { t as Q } from "./chunks/Dje2xUVd2.mjs";
|
|
66
66
|
import fe from "./x-input-tag/index.mjs";
|
|
67
|
-
import { t as pe } from "./chunks/
|
|
68
|
-
import { t as me } from "./chunks/
|
|
67
|
+
import { t as pe } from "./chunks/CI-pH-gR2.mjs";
|
|
68
|
+
import { t as me } from "./chunks/DRXM1Mt22.mjs";
|
|
69
69
|
import he from "./form-item-config-provider/index.mjs";
|
|
70
70
|
import { t as ge } from "./chunks/CJ7Ai-mH2.mjs";
|
|
71
|
-
import { t as _e } from "./chunks/
|
|
72
|
-
import { t as ve } from "./chunks/
|
|
71
|
+
import { t as _e } from "./chunks/BLBHnUme2.mjs";
|
|
72
|
+
import { t as ve } from "./chunks/x2jJ6cfy2.mjs";
|
|
73
73
|
import { t as ye } from "./chunks/gNfZhMJk2.mjs";
|
|
74
|
-
import { t as be } from "./chunks/
|
|
75
|
-
import { t as xe } from "./chunks/
|
|
76
|
-
import { t as Se } from "./chunks/
|
|
74
|
+
import { t as be } from "./chunks/BaB0bq4I2.mjs";
|
|
75
|
+
import { t as xe } from "./chunks/B-WTB0ce2.mjs";
|
|
76
|
+
import { t as Se } from "./chunks/kAaQhLJs2.mjs";
|
|
77
77
|
import Ce from "./table-column-def/index.mjs";
|
|
78
|
-
import { t as we } from "./chunks/
|
|
79
|
-
import { t as Te } from "./chunks/
|
|
80
|
-
import { t as Ee } from "./chunks/
|
|
81
|
-
import { t as De } from "./chunks/
|
|
82
|
-
import { t as Oe } from "./chunks/
|
|
83
|
-
import { t as ke } from "./chunks/
|
|
84
|
-
import { t as Ae } from "./chunks/
|
|
78
|
+
import { t as we } from "./chunks/D_gR5ibl2.mjs";
|
|
79
|
+
import { t as Te } from "./chunks/BP_0cJ172.mjs";
|
|
80
|
+
import { t as Ee } from "./chunks/CFKKwzh72.mjs";
|
|
81
|
+
import { t as De } from "./chunks/DvkUImww2.mjs";
|
|
82
|
+
import { t as Oe } from "./chunks/DNiq6hHj2.mjs";
|
|
83
|
+
import { t as ke } from "./chunks/BvlU_Z6D2.mjs";
|
|
84
|
+
import { t as Ae } from "./chunks/CWaId08S2.mjs";
|
|
85
85
|
import { t as je } from "./chunks/b_78-Wov2.mjs";
|
|
86
|
-
import { t as Me } from "./chunks/
|
|
87
|
-
import { t as Ne } from "./chunks/
|
|
86
|
+
import { t as Me } from "./chunks/BM8snKHN2.mjs";
|
|
87
|
+
import { t as Ne } from "./chunks/Cg6ahpHk.mjs";
|
|
88
88
|
import Pe from "./loading-view/index.mjs";
|
|
89
89
|
import { t as Fe } from "./chunks/Bh2SlzOo.mjs";
|
|
90
90
|
import Ie from "./form-view/index.mjs";
|
|
@@ -119,7 +119,7 @@ import { t as ut } from "./chunks/3UWcbJcG.mjs";
|
|
|
119
119
|
import { t as dt } from "./chunks/CGVBF4Ml.mjs";
|
|
120
120
|
//#region src/components/index.ts
|
|
121
121
|
var $ = ($) => {
|
|
122
|
-
$.component(
|
|
122
|
+
$.component("AddressInput", ee), $.component("Affix", te), $.component("AwesomeButton", ne), $.component("CapsuleTab", e), $.component("Card", t), $.component("CodeMirrorEditor", n), $.component("Confirmable", r), $.component("ConfirmButton", i), $.component("ContextMenu", a), $.component("CountUp", o), $.component("CustomScrollbar", s), $.component("DataBox", c), $.component("DataCard", l), $.component("DataCardText", u), $.component("DataDisplay", d), $.component("DataIcons", f), $.component("DataImgtext", p), $.component("DataOperatext", m), $.component("DataPanel", h), $.component("DataPay", g), $.component("DataPrice", _), $.component("DataProgress", v), $.component("DataRotate", y), $.component("DataTablePicker", E), $.component("DataTabs", D), $.component("DictRender", w), $.component("EasyPopup", O), $.component("ECharts", k), $.component("EditableProgress", A), $.component("EditableTree", j), $.component("ElementDialog", b), $.component("ElementResizeObserver", x), $.component("EmptyView", M), $.component("ErrorView", N), $.component("FlexBox", P), $.component("FlexColumn", F), $.component("FlexItem", I), $.component("FlexRow", L), $.component("FlexScrollArea", R), $.component("FlexScroller", z), $.component("FlowDesigner", B), $.component("FlowViewer", H), $.component("FormAdvice", U), $.component("FormButton", W), $.component("FormCard", G), $.component("FormCascader", q), $.component("FormCell", J), $.component("FormCheckbox", Y), $.component("FormCheckboxGroup", Z), $.component("FormDatePicker", re), $.component("FormHolder", ae), $.component("FormImage", oe), $.component("FormInput", X), $.component("FormInputCronExpression", ce), $.component("FormInputEmail", le), $.component("FormInputIdCard", ue), $.component("FormInputNumber", de), $.component("FormInputPhoneNumber", Q), $.component("FormInputTag", pe), $.component("FormInputTime", me), $.component("FormItemConfigProvider", he), $.component("FormItemGroup", ge), $.component("FormItemX", K), $.component("FormRadioGroup", _e), $.component("FormRate", ve), $.component("FormRedTable", ie), $.component("FormRow", ye), $.component("FormSelect", be), $.component("FormSlider", xe), $.component("FormSwitch", Se), $.component("FormTable", Ee), $.component("FormTablePlus", Oe), $.component("FormText", ke), $.component("FormTextarea", we), $.component("FormTimeSelect", Ae), $.component("FormTreeSelect", Me), $.component("FormTreeSelectMultiple", Ne), $.component("FormView", Ie), $.component("GuideSteps", Le), $.component("HighlightJS", V), $.component("IframeWindow", Re), $.component("ImageCropper", ze), $.component("ImagePreview", Be), $.component("ImageViewer", Ve), $.component("InputNumberRange", He), $.component("Keyboard", Ue), $.component("LoadingView", Pe), $.component("NameAvatar", We), $.component("NavBar", Ge), $.component("Page", Ke), $.component("PageableTable", S), $.component("PageHeader", qe), $.component("PageIndex", Je), $.component("PageIndexTop", Xe), $.component("PageSkeleton", Ye), $.component("PageSkeletonNew", Ze), $.component("PhotoSwipe", Qe), $.component("SignPanel", $e), $.component("SkeletonPanel", et), $.component("SplitPane", tt), $.component("Stateful", nt), $.component("SubTable", Te), $.component("SubTablePlus", De), $.component("Swiper", rt), $.component("TableColumn", T), $.component("TableColumnDef", Ce), $.component("TableView", it), $.component("TagRender", at), $.component("TextEllipsis", ot), $.component("Toolbar", Fe), $.component("ToolbarButton", C), $.component("VueCron", se), $.component("VueQrCode", st), $.component("VueTagsInput", ct), $.component("VueTreeSelect", je), $.component("VueVideoPlayer", lt), $.component("Watermark", ut), $.component("XInputTag", fe), $.component("YearCalendar", dt);
|
|
123
123
|
};
|
|
124
124
|
//#endregion
|
|
125
125
|
export { ee as AddressInput, te as Affix, ne as AwesomeButton, e as CapsuleTab, t as Card, n as CodeMirrorEditor, i as ConfirmButton, r as Confirmable, a as ContextMenu, o as CountUp, s as CustomScrollbar, c as DataBox, l as DataCard, u as DataCardText, d as DataDisplay, f as DataIcons, p as DataImgtext, m as DataOperatext, h as DataPanel, g as DataPay, _ as DataPrice, v as DataProgress, y as DataRotate, E as DataTablePicker, D as DataTabs, w as DictRender, k as ECharts, O as EasyPopup, A as EditableProgress, j as EditableTree, b as ElementDialog, x as ElementResizeObserver, M as EmptyView, N as ErrorView, P as FlexBox, F as FlexColumn, I as FlexItem, L as FlexRow, R as FlexScrollArea, z as FlexScroller, B as FlowDesigner, H as FlowViewer, U as FormAdvice, W as FormButton, G as FormCard, q as FormCascader, J as FormCell, Y as FormCheckbox, Z as FormCheckboxGroup, re as FormDatePicker, ae as FormHolder, oe as FormImage, X as FormInput, ce as FormInputCronExpression, le as FormInputEmail, ue as FormInputIdCard, de as FormInputNumber, Q as FormInputPhoneNumber, pe as FormInputTag, me as FormInputTime, he as FormItemConfigProvider, ge as FormItemGroup, K as FormItemX, _e as FormRadioGroup, ve as FormRate, ie as FormRedTable, ye as FormRow, be as FormSelect, xe as FormSlider, Se as FormSwitch, Ee as FormTable, Oe as FormTablePlus, ke as FormText, we as FormTextarea, Ae as FormTimeSelect, Me as FormTreeSelect, Ne as FormTreeSelectMultiple, Ie as FormView, Le as GuideSteps, V as HighlightJS, Re as IframeWindow, ze as ImageCropper, Be as ImagePreview, Ve as ImageViewer, He as InputNumberRange, Ue as Keyboard, Pe as LoadingView, We as NameAvatar, Ge as NavBar, Ke as Page, qe as PageHeader, Je as PageIndex, Xe as PageIndexTop, Ye as PageSkeleton, Ze as PageSkeletonNew, S as PageableTable, Qe as PhotoSwipe, $e as SignPanel, et as SkeletonPanel, tt as SplitPane, nt as Stateful, Te as SubTable, De as SubTablePlus, rt as Swiper, T as TableColumn, Ce as TableColumnDef, it as TableView, at as TagRender, ot as TextEllipsis, Fe as Toolbar, C as ToolbarButton, se as VueCron, st as VueQrCode, ct as VueTagsInput, je as VueTreeSelect, lt as VueVideoPlayer, ut as Watermark, fe as XInputTag, dt as YearCalendar, $ as install };
|
package/package.json
CHANGED
package/sub-table/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BP_0cJ172.mjs";
|
|
2
2
|
export { e as default };
|
package/sub-table-plus/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DvkUImww2.mjs";
|
|
2
2
|
export { e as default };
|
package/table-view/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { processButtons as i, reloadTable as a } from "../api/index.mjs";
|
|
|
5
5
|
import { cellClickHandlerContextKey as o, tableViewContextKey as s } from "../constants/index.mjs";
|
|
6
6
|
import { t as c } from "../chunks/mnqSaATq.mjs";
|
|
7
7
|
import l from "../editable-tree/index.mjs";
|
|
8
|
-
import { s as u } from "../chunks/
|
|
8
|
+
import { s as u } from "../chunks/Dgwcljur.mjs";
|
|
9
9
|
import d from "../form-item-config-provider/index.mjs";
|
|
10
10
|
import { t as f } from "../chunks/Bh2SlzOo.mjs";
|
|
11
11
|
import { ElCollapseTransition as p, ElForm as m, ElFormItem as h, ElRow as g } from "element-plus/es";
|
package/tag-render/index.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { t as e } from "../chunks/B1MSrc6f.mjs";
|
|
2
|
-
import { ElButton as t, ElTag as n } from "element-plus/es";
|
|
2
|
+
import { ElButton as t, ElTag as n, formItemContextKey as r } from "element-plus/es";
|
|
3
3
|
import "element-plus/es/components/base/style/css";
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { hasOwn as
|
|
4
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, openBlock as l, renderList as u, toDisplayString as d, withCtx as f } from "vue";
|
|
5
|
+
import { hasOwn as p } from "@web-utils/core";
|
|
6
6
|
import "element-plus/es/components/button/style/css";
|
|
7
|
-
import { formItemContextKey as p } from "element-plus";
|
|
8
7
|
import "element-plus/es/components/tag/style/css";
|
|
9
8
|
//#region src/components/TagRender.vue
|
|
10
9
|
var m = {
|
|
11
10
|
name: "TagRender",
|
|
12
11
|
inject: { elFormItem: {
|
|
13
|
-
from:
|
|
12
|
+
from: r,
|
|
14
13
|
default: {}
|
|
15
14
|
} },
|
|
16
15
|
props: {
|
|
@@ -45,7 +44,7 @@ var m = {
|
|
|
45
44
|
}
|
|
46
45
|
} },
|
|
47
46
|
methods: { getTagName(e) {
|
|
48
|
-
return
|
|
47
|
+
return p(e, "name") ? e.name : p(e, "label") ? e.label : e;
|
|
49
48
|
} }
|
|
50
49
|
}, h = { class: "tag-render" }, g = {
|
|
51
50
|
key: 1,
|
|
@@ -58,28 +57,28 @@ var m = {
|
|
|
58
57
|
key: 3,
|
|
59
58
|
class: "tags-count"
|
|
60
59
|
};
|
|
61
|
-
function v(e,
|
|
60
|
+
function v(e, r, p, m, v, y) {
|
|
62
61
|
let b = n, x = t;
|
|
63
|
-
return
|
|
64
|
-
p.tags && p.tags.length && p.tags[0] ? (
|
|
62
|
+
return l(), s("div", h, [
|
|
63
|
+
p.tags && p.tags.length && p.tags[0] ? (l(!0), s(i, { key: 0 }, u(y.internalTags, (t, n) => (l(), a(b, {
|
|
65
64
|
key: n,
|
|
66
65
|
closable: p.enable,
|
|
67
66
|
"disable-transitions": "",
|
|
68
67
|
onClose: (t) => e.$emit("close", p.tags[n], n)
|
|
69
68
|
}, {
|
|
70
|
-
default:
|
|
69
|
+
default: f(() => [c(d(y.getTagName(t)), 1)]),
|
|
71
70
|
_: 2
|
|
72
|
-
}, 1032, ["closable", "onClose"]))), 128)) : p.enable ?
|
|
73
|
-
p.enable ? (
|
|
71
|
+
}, 1032, ["closable", "onClose"]))), 128)) : p.enable ? o("v-if", !0) : (l(), s("span", g, "无")),
|
|
72
|
+
p.enable ? (l(), a(x, {
|
|
74
73
|
key: 2,
|
|
75
74
|
class: "add-tag",
|
|
76
75
|
size: "small",
|
|
77
|
-
onClick:
|
|
76
|
+
onClick: r[0] || (r[0] = (t) => e.$emit("add"))
|
|
78
77
|
}, {
|
|
79
|
-
default:
|
|
78
|
+
default: f(() => [...r[1] || (r[1] = [c("+ 添加", -1)])]),
|
|
80
79
|
_: 1
|
|
81
|
-
})) :
|
|
82
|
-
p.count ? (
|
|
80
|
+
})) : o("v-if", !0),
|
|
81
|
+
p.count ? (l(), s("span", _, d(p.tags.length && p.tags[0] ? p.tags.length : ""), 1)) : o("v-if", !0)
|
|
83
82
|
]);
|
|
84
83
|
}
|
|
85
84
|
var y = /* @__PURE__ */ e(m, [["render", v]]);
|