@web-utils/component 1.2.4 → 1.2.6
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 +27 -27
- package/dist/chunks/163eed3b.js +16 -1
- package/dist/chunks/2bd4e340.js +184 -0
- package/dist/chunks/6499de3a.js +30 -1
- package/dist/chunks/7af3ceb1.js +75 -0
- package/dist/chunks/86bcadec.js +24 -0
- package/dist/chunks/8bbde9bf.js +81 -1
- package/dist/chunks/90bd3d52.js +26 -1
- package/dist/chunks/92404ceb.js +126 -0
- package/dist/chunks/a73fe8ee.js +11 -0
- package/dist/chunks/df803484.js +60 -0
- package/dist/components/address-input/index.js +113 -1
- package/dist/components/aside-menu/index.js +58 -1
- package/dist/components/awesome-button/index.js +82 -1
- package/dist/components/capsule-tab/index.js +52 -1
- package/dist/components/chunk-file-uploader/index.js +119 -1
- package/dist/components/chunk-file-uploader-button/index.js +60 -1
- package/dist/components/chunk-file-uploader-drop/index.js +65 -1
- package/dist/components/chunk-file-uploader-file/index.js +311 -1
- package/dist/components/chunk-file-uploader-files/index.js +49 -1
- package/dist/components/chunk-file-uploader-list/index.js +50 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
- package/dist/components/code-mirror-editor/index.js +310 -6
- package/dist/components/color-picker/index.js +110 -1
- package/dist/components/confirm-button/index.js +57 -1
- package/dist/components/confirmable/index.js +28 -1
- package/dist/components/context-menu/index.js +236 -1
- package/dist/components/custom-scrollbar/index.js +150 -1
- package/dist/components/data-table-picker/index.js +137 -1
- package/dist/components/dynamic-table/index.js +195 -1
- package/dist/components/e-charts/index.js +229 -1
- package/dist/components/editable-progress/index.js +141 -1
- package/dist/components/editable-tree/index.js +789 -1
- package/dist/components/egd-collapse/index.js +79 -1
- package/dist/components/egd-collapse-item/index.js +132 -1
- package/dist/components/el-color-picker-dropdown/index.js +170 -1
- package/dist/components/element-dialog/index.js +242 -1
- package/dist/components/empty-view/index.js +69 -1
- package/dist/components/error-view/index.js +61 -1
- package/dist/components/flex-column/index.js +50 -1
- package/dist/components/flex-item/index.js +66 -1
- package/dist/components/flex-row/index.js +50 -1
- package/dist/components/flex-scroller/index.js +47 -1
- package/dist/components/form-button/index.js +80 -1
- package/dist/components/form-cascader/index.js +151 -1
- package/dist/components/form-checkbox-group/index.js +192 -1
- package/dist/components/form-date-picker/index.js +182 -1
- package/dist/components/form-holder/index.js +90 -1
- package/dist/components/form-input/index.js +106 -1
- package/dist/components/form-input-email/index.js +97 -1
- package/dist/components/form-input-id-card/index.js +104 -1
- package/dist/components/form-input-number/index.js +123 -1
- package/dist/components/form-input-phone-number/index.js +98 -1
- package/dist/components/form-input-time/index.js +124 -1
- package/dist/components/form-item/index.js +120 -1
- package/dist/components/form-item-config-provider/index.js +63 -1
- package/dist/components/form-item-group/index.js +169 -1
- package/dist/components/form-radio-group/index.js +170 -1
- package/dist/components/form-select/index.js +154 -1
- package/dist/components/form-switch/index.js +97 -1
- package/dist/components/form-textarea/index.js +102 -1
- package/dist/components/form-view/index.js +343 -1
- package/dist/components/guide-steps/index.js +94 -1
- package/dist/components/icon-card/index.js +62 -1
- package/dist/components/iframe-window/index.js +99 -1
- package/dist/components/input-number/index.js +274 -1
- package/dist/components/input-number-range/index.js +110 -1
- package/dist/components/j-s-x-component/index.js +16 -1
- package/dist/components/keep-view-alive/index.js +119 -1
- package/dist/components/loading-view/index.js +61 -1
- package/dist/components/nav-bar/index.js +52 -1
- package/dist/components/not-implement/index.js +35 -1
- package/dist/components/page/index.js +40 -1
- package/dist/components/page-header/index.js +56 -1
- package/dist/components/page-index/index.js +151 -1
- package/dist/components/page-index-top/index.js +119 -1
- package/dist/components/page-skeleton/index.js +56 -1
- package/dist/components/page-skeleton-new/index.js +98 -1
- package/dist/components/pageable-table/index.js +429 -1
- package/dist/components/pageable-view/index.js +328 -2
- package/dist/components/photo-swipe/index.js +187 -1
- package/dist/components/resize-observer/index.js +62 -1
- package/dist/components/search-popover/index.js +391 -2
- package/dist/components/sign-panel/index.js +242 -1
- package/dist/components/split-pane/index.js +209 -1
- package/dist/components/stateful/index.js +84 -1
- package/dist/components/static-pageable-table/index.js +92 -1
- package/dist/components/swiper/index.js +158 -1
- package/dist/components/tab/index.js +145 -1
- package/dist/components/tab-item/index.js +73 -1
- package/dist/components/table-column/index.js +89 -1
- package/dist/components/table-view/index.js +363 -1
- package/dist/components/tag-render/index.js +97 -1
- package/dist/components/tinymce-editor/index.js +173 -1
- package/dist/components/tinymce-wrapper/index.js +618 -1
- package/dist/components/toolbar/index.js +217 -1
- package/dist/components/toolbar-button/index.js +90 -1
- package/dist/components/trigger/index.js +71 -1
- package/dist/components/vue-tags-input/index.js +439 -1
- package/dist/components/watermark/index.js +63 -1
- package/dist/components/x-dialog/index.js +173 -1
- package/dist/index.css +2102 -1
- package/dist/index.es.js +2995 -2078
- package/package.json +29 -29
- package/web-types.json +22 -16
- package/dist/chunks/23bd3525.js +0 -1
- package/dist/chunks/65f4f4f2.js +0 -1
- package/dist/chunks/8473fc69.js +0 -1
- package/dist/chunks/addb6ed5.js +0 -1
- package/dist/chunks/b8305633.js +0 -1
- package/dist/chunks/e8547f66.js +0 -1
|
@@ -1 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as a } from "../../chunks/86bcadec.js";
|
|
2
|
+
import { validateIdCard as s } from "@web-utils/core";
|
|
3
|
+
import { Input as i } from "element-ui";
|
|
4
|
+
import { i as u, n as p } from "../../chunks/2bd4e340.js";
|
|
5
|
+
import { n as m } from "../../chunks/6499de3a.js";
|
|
6
|
+
var d = function() {
|
|
7
|
+
var r = this, e = r.$createElement, t = r._self._c || e;
|
|
8
|
+
return t("FormItem", r._b({
|
|
9
|
+
attrs: {
|
|
10
|
+
rules: r.computeRules,
|
|
11
|
+
disabled: r.inputDisabled
|
|
12
|
+
},
|
|
13
|
+
scopedSlots: r._u([{
|
|
14
|
+
key: "default",
|
|
15
|
+
fn: function() {
|
|
16
|
+
return [t("ElInput", r._g(r._b({
|
|
17
|
+
class: {
|
|
18
|
+
"is-readonly": r.readonly
|
|
19
|
+
},
|
|
20
|
+
attrs: {
|
|
21
|
+
value: r.value,
|
|
22
|
+
readonly: r.readonly,
|
|
23
|
+
maxlength: r.maxLength,
|
|
24
|
+
disabled: r.inputDisabled,
|
|
25
|
+
placeholder: r.computePlaceholder
|
|
26
|
+
},
|
|
27
|
+
on: {
|
|
28
|
+
input: function(o) {
|
|
29
|
+
return r.$emit("input", o);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", {
|
|
33
|
+
staticClass: "el-form-item__error"
|
|
34
|
+
}, [r._t("warn")], 2) : r._e()];
|
|
35
|
+
},
|
|
36
|
+
proxy: !0
|
|
37
|
+
}, {
|
|
38
|
+
key: "error",
|
|
39
|
+
fn: function(o) {
|
|
40
|
+
var n = o.error;
|
|
41
|
+
return [r.$scopedSlots.error && r.$scopedSlots.error(n) ? t("div", {
|
|
42
|
+
staticClass: "el-form-item__error"
|
|
43
|
+
}, [r._t("error", function() {
|
|
44
|
+
return [r._v(" " + r._s(n) + " ")];
|
|
45
|
+
}, {
|
|
46
|
+
error: n
|
|
47
|
+
})], 2) : r._e()];
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "label",
|
|
51
|
+
fn: function() {
|
|
52
|
+
return [r._t("label")];
|
|
53
|
+
},
|
|
54
|
+
proxy: !0
|
|
55
|
+
}], null, !0)
|
|
56
|
+
}, "FormItem", r.formItemProps, !1));
|
|
57
|
+
}, c = [];
|
|
58
|
+
const _ = Object.keys(i.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), f = {
|
|
59
|
+
name: "FormInputIdCard",
|
|
60
|
+
mixins: [a],
|
|
61
|
+
props: {
|
|
62
|
+
value: {
|
|
63
|
+
type: String
|
|
64
|
+
},
|
|
65
|
+
maxLength: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "200"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
inputProps() {
|
|
72
|
+
return u({ ...p(this.$attrs), ...this.$props }, _);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
methods: {
|
|
76
|
+
validateIdCard: s,
|
|
77
|
+
getRules() {
|
|
78
|
+
return [{
|
|
79
|
+
validator: s,
|
|
80
|
+
message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801\uFF01"
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, l = {};
|
|
85
|
+
var v = /* @__PURE__ */ m(
|
|
86
|
+
f,
|
|
87
|
+
d,
|
|
88
|
+
c,
|
|
89
|
+
!1,
|
|
90
|
+
y,
|
|
91
|
+
null,
|
|
92
|
+
null,
|
|
93
|
+
null
|
|
94
|
+
);
|
|
95
|
+
function y(r) {
|
|
96
|
+
for (let e in l)
|
|
97
|
+
this[e] = l[e];
|
|
98
|
+
}
|
|
99
|
+
const $ = /* @__PURE__ */ function() {
|
|
100
|
+
return v.exports;
|
|
101
|
+
}();
|
|
102
|
+
export {
|
|
103
|
+
$ as default
|
|
104
|
+
};
|
|
@@ -1 +1,123 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as i } from "../../chunks/86bcadec.js";
|
|
2
|
+
import { i as s, n as p } from "../../chunks/2bd4e340.js";
|
|
3
|
+
import { i as l } from "../../chunks/df803484.js";
|
|
4
|
+
import { n as a } from "../../chunks/6499de3a.js";
|
|
5
|
+
var m = function() {
|
|
6
|
+
var e = this, r = e.$createElement, n = e._self._c || r;
|
|
7
|
+
return n("FormItem", e._b({
|
|
8
|
+
attrs: {
|
|
9
|
+
rules: e.computeRules,
|
|
10
|
+
disabled: e.inputDisabled
|
|
11
|
+
},
|
|
12
|
+
scopedSlots: e._u([{
|
|
13
|
+
key: "default",
|
|
14
|
+
fn: function() {
|
|
15
|
+
return [n("InputNumber", e._g(e._b({
|
|
16
|
+
staticClass: "form-input-number",
|
|
17
|
+
attrs: {
|
|
18
|
+
value: e.value,
|
|
19
|
+
controls: !1,
|
|
20
|
+
precision: e.precision,
|
|
21
|
+
max: e.max,
|
|
22
|
+
min: e.min,
|
|
23
|
+
placeholder: e.computePlaceholder,
|
|
24
|
+
disabled: e.inputDisabled
|
|
25
|
+
},
|
|
26
|
+
on: {
|
|
27
|
+
input: function(t) {
|
|
28
|
+
return e.$emit("input", t);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
scopedSlots: e._u([{
|
|
32
|
+
key: "append",
|
|
33
|
+
fn: function() {
|
|
34
|
+
return [e._t("append")];
|
|
35
|
+
},
|
|
36
|
+
proxy: !0
|
|
37
|
+
}, {
|
|
38
|
+
key: "prefix",
|
|
39
|
+
fn: function() {
|
|
40
|
+
return [e._t("prefix")];
|
|
41
|
+
},
|
|
42
|
+
proxy: !0
|
|
43
|
+
}, {
|
|
44
|
+
key: "prepend",
|
|
45
|
+
fn: function() {
|
|
46
|
+
return [e._t("prepend")];
|
|
47
|
+
},
|
|
48
|
+
proxy: !0
|
|
49
|
+
}, {
|
|
50
|
+
key: "suffix",
|
|
51
|
+
fn: function() {
|
|
52
|
+
return [e._t("suffix")];
|
|
53
|
+
},
|
|
54
|
+
proxy: !0
|
|
55
|
+
}], null, !0)
|
|
56
|
+
}, "InputNumber", e.inputProps, !1), e.listeners))];
|
|
57
|
+
},
|
|
58
|
+
proxy: !0
|
|
59
|
+
}, {
|
|
60
|
+
key: "error",
|
|
61
|
+
fn: function(t) {
|
|
62
|
+
var o = t.error;
|
|
63
|
+
return [e._t("error", null, {
|
|
64
|
+
error: o
|
|
65
|
+
})];
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "label",
|
|
69
|
+
fn: function() {
|
|
70
|
+
return [e._t("label")];
|
|
71
|
+
},
|
|
72
|
+
proxy: !0
|
|
73
|
+
}], null, !0)
|
|
74
|
+
}, "FormItem", e.formItemProps, !1));
|
|
75
|
+
}, f = [];
|
|
76
|
+
const c = Object.keys(l.props).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), _ = {
|
|
77
|
+
name: "FormInputNumber",
|
|
78
|
+
mixins: [i],
|
|
79
|
+
props: {
|
|
80
|
+
value: {
|
|
81
|
+
type: [String, Number]
|
|
82
|
+
},
|
|
83
|
+
max: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: 1 / 0
|
|
86
|
+
},
|
|
87
|
+
min: {
|
|
88
|
+
type: Number,
|
|
89
|
+
default: -1 / 0
|
|
90
|
+
},
|
|
91
|
+
precision: {
|
|
92
|
+
type: Number,
|
|
93
|
+
validator(e) {
|
|
94
|
+
return e >= 0 && e === parseInt(e, 10);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
computed: {
|
|
99
|
+
inputProps() {
|
|
100
|
+
return s({ ...p(this.$attrs), ...this.$props }, c);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, u = {};
|
|
104
|
+
var d = /* @__PURE__ */ a(
|
|
105
|
+
_,
|
|
106
|
+
m,
|
|
107
|
+
f,
|
|
108
|
+
!1,
|
|
109
|
+
y,
|
|
110
|
+
null,
|
|
111
|
+
null,
|
|
112
|
+
null
|
|
113
|
+
);
|
|
114
|
+
function y(e) {
|
|
115
|
+
for (let r in u)
|
|
116
|
+
this[r] = u[r];
|
|
117
|
+
}
|
|
118
|
+
const N = /* @__PURE__ */ function() {
|
|
119
|
+
return d.exports;
|
|
120
|
+
}();
|
|
121
|
+
export {
|
|
122
|
+
N as default
|
|
123
|
+
};
|
|
@@ -1 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as s } from "../../chunks/86bcadec.js";
|
|
2
|
+
import { validatePhoneNum as u } from "@web-utils/core";
|
|
3
|
+
import { i as a, n as i } from "../../chunks/2bd4e340.js";
|
|
4
|
+
import { Input as p } from "element-ui";
|
|
5
|
+
import { n as m } from "../../chunks/6499de3a.js";
|
|
6
|
+
var c = function() {
|
|
7
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
8
|
+
return r("FormItem", e._b({
|
|
9
|
+
attrs: {
|
|
10
|
+
rules: e.computeRules,
|
|
11
|
+
disabled: e.inputDisabled
|
|
12
|
+
},
|
|
13
|
+
scopedSlots: e._u([{
|
|
14
|
+
key: "default",
|
|
15
|
+
fn: function() {
|
|
16
|
+
return [r("ElInput", e._g(e._b({
|
|
17
|
+
class: {
|
|
18
|
+
"is-readonly": e.readonly
|
|
19
|
+
},
|
|
20
|
+
attrs: {
|
|
21
|
+
value: e.value,
|
|
22
|
+
readonly: e.readonly,
|
|
23
|
+
maxlength: e.maxLength,
|
|
24
|
+
disabled: e.inputDisabled,
|
|
25
|
+
placeholder: e.computePlaceholder
|
|
26
|
+
},
|
|
27
|
+
on: {
|
|
28
|
+
input: e.emitInput
|
|
29
|
+
}
|
|
30
|
+
}, "ElInput", e.inputProps, !1), e.listeners))];
|
|
31
|
+
},
|
|
32
|
+
proxy: !0
|
|
33
|
+
}, {
|
|
34
|
+
key: "error",
|
|
35
|
+
fn: function(o) {
|
|
36
|
+
var l = o.error;
|
|
37
|
+
return [e._t("error", null, {
|
|
38
|
+
error: l
|
|
39
|
+
})];
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "label",
|
|
43
|
+
fn: function() {
|
|
44
|
+
return [e._t("label")];
|
|
45
|
+
},
|
|
46
|
+
proxy: !0
|
|
47
|
+
}], null, !0)
|
|
48
|
+
}, "FormItem", e.formItemProps, !1));
|
|
49
|
+
}, d = [];
|
|
50
|
+
const f = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), _ = {
|
|
51
|
+
name: "FormInputPhoneNumber",
|
|
52
|
+
mixins: [s],
|
|
53
|
+
props: {
|
|
54
|
+
value: {
|
|
55
|
+
type: String
|
|
56
|
+
},
|
|
57
|
+
maxLength: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "200"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
inputProps() {
|
|
64
|
+
return a({ ...i(this.$attrs), ...this.$props }, f);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
getRules() {
|
|
69
|
+
return [{
|
|
70
|
+
validator: u,
|
|
71
|
+
message: "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801\uFF01"
|
|
72
|
+
}];
|
|
73
|
+
},
|
|
74
|
+
emitInput(e) {
|
|
75
|
+
this.$emit("input", e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, n = {};
|
|
79
|
+
var h = /* @__PURE__ */ m(
|
|
80
|
+
_,
|
|
81
|
+
c,
|
|
82
|
+
d,
|
|
83
|
+
!1,
|
|
84
|
+
v,
|
|
85
|
+
null,
|
|
86
|
+
null,
|
|
87
|
+
null
|
|
88
|
+
);
|
|
89
|
+
function v(e) {
|
|
90
|
+
for (let t in n)
|
|
91
|
+
this[t] = n[t];
|
|
92
|
+
}
|
|
93
|
+
const g = /* @__PURE__ */ function() {
|
|
94
|
+
return h.exports;
|
|
95
|
+
}();
|
|
96
|
+
export {
|
|
97
|
+
g as default
|
|
98
|
+
};
|
|
@@ -1 +1,124 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as i } from "../../chunks/86bcadec.js";
|
|
2
|
+
import { TimePicker as l } from "element-ui";
|
|
3
|
+
import { i as s, n as u } from "../../chunks/2bd4e340.js";
|
|
4
|
+
import { n as m } from "../../chunks/6499de3a.js";
|
|
5
|
+
var p = function() {
|
|
6
|
+
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
7
|
+
return n("FormItem", e._b({
|
|
8
|
+
attrs: {
|
|
9
|
+
rules: e.computeRules,
|
|
10
|
+
disabled: e.inputDisabled
|
|
11
|
+
},
|
|
12
|
+
scopedSlots: e._u([{
|
|
13
|
+
key: "default",
|
|
14
|
+
fn: function() {
|
|
15
|
+
return [n("ElTimePicker", e._g(e._b({
|
|
16
|
+
attrs: {
|
|
17
|
+
"is-range": e.range,
|
|
18
|
+
value: e.value,
|
|
19
|
+
disabled: e.inputDisabled,
|
|
20
|
+
format: e.format,
|
|
21
|
+
"value-format": e.valueFormat || e.format,
|
|
22
|
+
clearable: "",
|
|
23
|
+
"picker-options": {
|
|
24
|
+
start: e.start,
|
|
25
|
+
end: e.end,
|
|
26
|
+
step: e.step,
|
|
27
|
+
minTime: e.minTime,
|
|
28
|
+
maxTime: e.maxTime,
|
|
29
|
+
selectableRange: e.selectableRange
|
|
30
|
+
},
|
|
31
|
+
"start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
|
|
32
|
+
"end-placeholder": "\u7ED3\u675F\u65F6\u95F4",
|
|
33
|
+
placeholder: e.computePlaceholder
|
|
34
|
+
},
|
|
35
|
+
on: {
|
|
36
|
+
input: function(r) {
|
|
37
|
+
return e.$emit("input", r);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, "ElTimePicker", e.inputProps, !1), e.listeners))];
|
|
41
|
+
},
|
|
42
|
+
proxy: !0
|
|
43
|
+
}, {
|
|
44
|
+
key: "error",
|
|
45
|
+
fn: function(r) {
|
|
46
|
+
var o = r.error;
|
|
47
|
+
return [e._t("error", null, {
|
|
48
|
+
error: o
|
|
49
|
+
})];
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "label",
|
|
53
|
+
fn: function() {
|
|
54
|
+
return [e._t("label")];
|
|
55
|
+
},
|
|
56
|
+
proxy: !0
|
|
57
|
+
}], null, !0)
|
|
58
|
+
}, "FormItem", e.formItemProps, !1));
|
|
59
|
+
}, c = [];
|
|
60
|
+
const f = Object.keys(l.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), d = {
|
|
61
|
+
name: "FormInputTime",
|
|
62
|
+
mixins: [i],
|
|
63
|
+
props: {
|
|
64
|
+
range: Boolean,
|
|
65
|
+
format: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "HH:mm:ss"
|
|
68
|
+
},
|
|
69
|
+
valueFormat: {
|
|
70
|
+
type: String
|
|
71
|
+
},
|
|
72
|
+
start: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "09:00"
|
|
75
|
+
},
|
|
76
|
+
end: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "18:00"
|
|
79
|
+
},
|
|
80
|
+
step: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: "00:30"
|
|
83
|
+
},
|
|
84
|
+
minTime: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "00:00"
|
|
87
|
+
},
|
|
88
|
+
maxTime: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ""
|
|
91
|
+
},
|
|
92
|
+
selectableRange: {
|
|
93
|
+
type: String
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
prefix() {
|
|
98
|
+
return "\u8BF7\u9009\u62E9";
|
|
99
|
+
},
|
|
100
|
+
inputProps() {
|
|
101
|
+
return s({ ...u(this.$attrs), ...this.$props }, f);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, a = {};
|
|
105
|
+
var _ = /* @__PURE__ */ m(
|
|
106
|
+
d,
|
|
107
|
+
p,
|
|
108
|
+
c,
|
|
109
|
+
!1,
|
|
110
|
+
v,
|
|
111
|
+
null,
|
|
112
|
+
null,
|
|
113
|
+
null
|
|
114
|
+
);
|
|
115
|
+
function v(e) {
|
|
116
|
+
for (let t in a)
|
|
117
|
+
this[t] = a[t];
|
|
118
|
+
}
|
|
119
|
+
const T = /* @__PURE__ */ function() {
|
|
120
|
+
return _.exports;
|
|
121
|
+
}();
|
|
122
|
+
export {
|
|
123
|
+
T as default
|
|
124
|
+
};
|
|
@@ -1 +1,120 @@
|
|
|
1
|
-
|
|
1
|
+
import { f as E } from "../../chunks/92404ceb.js";
|
|
2
|
+
import { hasOwn as _ } from "@web-utils/core";
|
|
3
|
+
import { n as W } from "../../chunks/6499de3a.js";
|
|
4
|
+
const j = {
|
|
5
|
+
name: "FormItem",
|
|
6
|
+
mixins: [E],
|
|
7
|
+
inject: {
|
|
8
|
+
formHolder: {
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
formItemConfig: {
|
|
12
|
+
default: null
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
computed: {
|
|
16
|
+
gutter() {
|
|
17
|
+
var r;
|
|
18
|
+
let e = this.$parent;
|
|
19
|
+
for (; e && e.$options.componentName !== "ElRow"; )
|
|
20
|
+
e = e.$parent;
|
|
21
|
+
return (r = e == null ? void 0 : e.gutter) != null ? r : 0;
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
renderFormItem() {
|
|
26
|
+
var I, C, v;
|
|
27
|
+
const e = this.$createElement, {
|
|
28
|
+
label: r,
|
|
29
|
+
labelWidth: c,
|
|
30
|
+
prop: l,
|
|
31
|
+
rules: u,
|
|
32
|
+
$scopedSlots: a,
|
|
33
|
+
elFormItemProps: t,
|
|
34
|
+
elForm: n,
|
|
35
|
+
formHolder: o,
|
|
36
|
+
formItemClass: m,
|
|
37
|
+
required: s,
|
|
38
|
+
block: g,
|
|
39
|
+
half: q,
|
|
40
|
+
wrapCol: F,
|
|
41
|
+
wrapFormItem: x,
|
|
42
|
+
disabled: k,
|
|
43
|
+
formItemConfig: f,
|
|
44
|
+
getRequireRule: y
|
|
45
|
+
} = this;
|
|
46
|
+
let i = u, d = s, p = s, h = g, w = F;
|
|
47
|
+
f && (_(f, "block") && (h = f.block), _(f, "wrapCol") && (w = f.wrapCol));
|
|
48
|
+
const $ = h && q && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
49
|
+
return k || (n == null ? void 0 : n.disabled) ? (i = [], o && !o.required && !((I = o.requiredFields) != null && I.includes(l)) && (p = !1)) : (o && !o.required && !((C = o.requiredFields) != null && C.includes(l)) && (d = !1), d && !(i != null && i.length) && l ? i = [y()] : d || (p = !1, i && (i = i.filter((R) => !R.required)))), x ? e("ElFormItem", {
|
|
50
|
+
style: {
|
|
51
|
+
width: $
|
|
52
|
+
},
|
|
53
|
+
key: `${l}-${d}`,
|
|
54
|
+
class: p ? `form-item required ${m || ""}` : `${m || ""}`,
|
|
55
|
+
scopedSlots: a,
|
|
56
|
+
props: {
|
|
57
|
+
...t
|
|
58
|
+
},
|
|
59
|
+
attrs: {
|
|
60
|
+
label: r,
|
|
61
|
+
"label-width": c,
|
|
62
|
+
prop: l,
|
|
63
|
+
rules: i
|
|
64
|
+
},
|
|
65
|
+
ref: "formItem"
|
|
66
|
+
}) : e("div", [(v = a.default) == null ? void 0 : v.call(a)]);
|
|
67
|
+
},
|
|
68
|
+
async clearValidate() {
|
|
69
|
+
var e, r;
|
|
70
|
+
await this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
|
|
71
|
+
},
|
|
72
|
+
async validate() {
|
|
73
|
+
var e, r;
|
|
74
|
+
await this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
render() {
|
|
78
|
+
var m, s;
|
|
79
|
+
const e = arguments[0], {
|
|
80
|
+
computeSpan: r,
|
|
81
|
+
wrapCol: c,
|
|
82
|
+
formItemConfig: l,
|
|
83
|
+
renderFormItem: u,
|
|
84
|
+
elColProps: a,
|
|
85
|
+
$scopedSlots: t,
|
|
86
|
+
unwrap: n
|
|
87
|
+
} = this;
|
|
88
|
+
let o = c;
|
|
89
|
+
return l && _(l, "wrapCol") && (o = l.wrapCol), n ? e("div", [(m = t.default) == null ? void 0 : m.call(t)]) : o ? e("ElCol", {
|
|
90
|
+
props: {
|
|
91
|
+
...a
|
|
92
|
+
},
|
|
93
|
+
attrs: {
|
|
94
|
+
span: r
|
|
95
|
+
}
|
|
96
|
+
}, [u(), (s = t == null ? void 0 : t.below) == null ? void 0 : s.call(t)]) : u();
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
let H, M;
|
|
100
|
+
const b = {};
|
|
101
|
+
var P = /* @__PURE__ */ W(
|
|
102
|
+
j,
|
|
103
|
+
H,
|
|
104
|
+
M,
|
|
105
|
+
!1,
|
|
106
|
+
T,
|
|
107
|
+
null,
|
|
108
|
+
null,
|
|
109
|
+
null
|
|
110
|
+
);
|
|
111
|
+
function T(e) {
|
|
112
|
+
for (let r in b)
|
|
113
|
+
this[r] = b[r];
|
|
114
|
+
}
|
|
115
|
+
const N = /* @__PURE__ */ function() {
|
|
116
|
+
return P.exports;
|
|
117
|
+
}();
|
|
118
|
+
export {
|
|
119
|
+
N as default
|
|
120
|
+
};
|
|
@@ -1 +1,63 @@
|
|
|
1
|
-
import{n as r}from"../../chunks/6499de3a.js";
|
|
1
|
+
import { n as r } from "../../chunks/6499de3a.js";
|
|
2
|
+
const n = {
|
|
3
|
+
name: "FormItemConfigProvider",
|
|
4
|
+
provide() {
|
|
5
|
+
return {
|
|
6
|
+
formItemConfig: this.config
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
block: Boolean,
|
|
11
|
+
wrapCol: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
config: {
|
|
19
|
+
block: !1,
|
|
20
|
+
wrapCol: !0
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
watch: {
|
|
25
|
+
block: {
|
|
26
|
+
immediate: !0,
|
|
27
|
+
handler(e) {
|
|
28
|
+
this.config.block = e;
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
wrapCol: {
|
|
32
|
+
immediate: !0,
|
|
33
|
+
handler(e) {
|
|
34
|
+
this.config.wrapCol = e;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
return this.$scopedSlots.default();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
let l, i;
|
|
43
|
+
const t = {};
|
|
44
|
+
var a = /* @__PURE__ */ r(
|
|
45
|
+
n,
|
|
46
|
+
l,
|
|
47
|
+
i,
|
|
48
|
+
!1,
|
|
49
|
+
s,
|
|
50
|
+
null,
|
|
51
|
+
null,
|
|
52
|
+
null
|
|
53
|
+
);
|
|
54
|
+
function s(e) {
|
|
55
|
+
for (let o in t)
|
|
56
|
+
this[o] = t[o];
|
|
57
|
+
}
|
|
58
|
+
const u = /* @__PURE__ */ function() {
|
|
59
|
+
return a.exports;
|
|
60
|
+
}();
|
|
61
|
+
export {
|
|
62
|
+
u as default
|
|
63
|
+
};
|