@web-utils/component 2.0.1 → 2.0.3
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/chunks/{7af3ceb1.js → 3a79781b.js} +3 -3
- package/dist/chunks/{df803484.js → 41a066be.js} +0 -0
- package/dist/chunks/{163eed3b.js → 5a78e0db.js} +0 -0
- package/dist/chunks/{6499de3a.js → 5d4282fb.js} +0 -0
- package/dist/chunks/{a73fe8ee.js → 61ad06b2.js} +0 -0
- package/dist/chunks/{86bcadec.js → 76680a03.js} +2 -2
- package/dist/chunks/{8bbde9bf.js → 8c0142e0.js} +0 -0
- package/dist/chunks/{90bd3d52.js → 97652d86.js} +5 -5
- package/dist/chunks/{92404ceb.js → b4acd3a6.js} +3 -3
- package/dist/chunks/{2bd4e340.js → f71045fc.js} +0 -0
- package/dist/components/address-input/index.js +2 -2
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +3 -3
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code-mirror-editor/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/confirm-button/index.js +3 -3
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/custom-scrollbar/index.js +2 -3
- package/dist/components/data-table-picker/index.js +5 -5
- package/dist/components/dynamic-table/index.js +6 -6
- package/dist/components/e-charts/index.js +1 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +192 -192
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +4 -4
- package/dist/components/empty-view/index.js +2 -2
- package/dist/components/error-view/index.js +2 -2
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +13 -13
- package/dist/components/form-date-picker/index.js +9 -9
- package/dist/components/form-holder/index.js +3 -3
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +4 -4
- package/dist/components/form-input-id-card/index.js +4 -4
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +4 -4
- package/dist/components/form-input-time/index.js +6 -6
- package/dist/components/form-item/index.js +4 -5
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +2 -2
- package/dist/components/form-radio-group/index.js +13 -13
- package/dist/components/form-select/index.js +14 -14
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +7 -7
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/iframe-window/index.js +3 -3
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +2 -2
- package/dist/components/keep-view-alive/index.js +1 -1
- package/dist/components/loading-view/index.js +2 -2
- package/dist/components/nav-bar/index.js +2 -2
- package/dist/components/not-implement/index.js +2 -2
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +2 -2
- package/dist/components/page-index/index.js +4 -4
- package/dist/components/page-index-top/index.js +3 -3
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +4 -4
- package/dist/components/pageable-table/index.js +8 -8
- package/dist/components/pageable-view/index.js +5 -5
- package/dist/components/photo-swipe/index.js +5 -5
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search-popover/index.js +6 -6
- package/dist/components/sign-panel/index.js +11 -11
- package/dist/components/split-pane/index.js +1 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +2 -2
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +2 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-view/index.js +12 -12
- package/dist/components/tag-render/index.js +3 -3
- package/dist/components/tinymce-editor/index.js +3 -3
- package/dist/components/tinymce-wrapper/index.js +393 -393
- package/dist/components/toolbar/index.js +40 -40
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/vue-tags-input/index.js +3 -3
- package/dist/components/watermark/index.js +2 -2
- package/dist/components/x-dialog/index.js +6 -6
- package/dist/index.css +0 -63
- package/dist/index.es.js +606 -608
- package/package.json +22 -22
- package/web-types.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "element-ui/src/mixins/emitter";
|
|
2
2
|
import { generateId as n } from "element-ui/src/utils/util";
|
|
3
|
-
import { n as c } from "../../chunks/
|
|
3
|
+
import { n as c } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var o = function() {
|
|
5
5
|
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
6
6
|
return t("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dialog as s } from "element-ui";
|
|
2
2
|
import { dialogDrag as a } from "@web-utils/core/dist/directives/index";
|
|
3
|
-
import { n } from "../../chunks/
|
|
3
|
+
import { n } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var r = function() {
|
|
5
5
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
6
6
|
return t("Transition", {
|
|
@@ -61,7 +61,7 @@ var r = function() {
|
|
|
61
61
|
type: "text",
|
|
62
62
|
icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
|
|
63
63
|
size: "medium",
|
|
64
|
-
title: e.fullScreen ? "
|
|
64
|
+
title: e.fullScreen ? "还原" : "最大化"
|
|
65
65
|
},
|
|
66
66
|
on: {
|
|
67
67
|
click: e.toggleFullScreen
|
|
@@ -71,7 +71,7 @@ var r = function() {
|
|
|
71
71
|
attrs: {
|
|
72
72
|
"aria-label": "Close",
|
|
73
73
|
type: "text",
|
|
74
|
-
title: "
|
|
74
|
+
title: "关闭",
|
|
75
75
|
icon: "el-icon-close",
|
|
76
76
|
size: "medium"
|
|
77
77
|
},
|
|
@@ -201,7 +201,7 @@ const u = {
|
|
|
201
201
|
return !!((l = (e = this.$scopedSlots).footer) != null && l.call(e));
|
|
202
202
|
},
|
|
203
203
|
handleWrapperClick() {
|
|
204
|
-
|
|
204
|
+
this.closeOnClickModal && this.handleClose();
|
|
205
205
|
},
|
|
206
206
|
handleClose() {
|
|
207
207
|
typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as o } from "../../chunks/
|
|
1
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
2
2
|
var s = function() {
|
|
3
3
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
4
4
|
return n("div", {
|
|
@@ -23,7 +23,7 @@ const r = {
|
|
|
23
23
|
props: {
|
|
24
24
|
emptyTips: {
|
|
25
25
|
type: String,
|
|
26
|
-
default: "
|
|
26
|
+
default: "暂无数据"
|
|
27
27
|
},
|
|
28
28
|
fontSize: {
|
|
29
29
|
type: String,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as i } from "../../chunks/
|
|
1
|
+
import { n as i } from "../../chunks/5d4282fb.js";
|
|
2
2
|
var o = function() {
|
|
3
3
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
4
4
|
return r("div", {
|
|
@@ -23,7 +23,7 @@ const a = {
|
|
|
23
23
|
props: {
|
|
24
24
|
errorTips: {
|
|
25
25
|
type: String,
|
|
26
|
-
default: "
|
|
26
|
+
default: "加载失败,请重试"
|
|
27
27
|
},
|
|
28
28
|
fontSize: {
|
|
29
29
|
type: String,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as s } from "../../chunks/
|
|
2
|
-
import { f as a } from "../../chunks/
|
|
1
|
+
import { f as s } from "../../chunks/76680a03.js";
|
|
2
|
+
import { f as a } from "../../chunks/61ad06b2.js";
|
|
3
3
|
import { Cascader as i } from "element-ui";
|
|
4
|
-
import { i as u, n as p } from "../../chunks/
|
|
4
|
+
import { i as u, n as p } from "../../chunks/f71045fc.js";
|
|
5
5
|
import { findTreeChildren as c, cloneDeep as d, setParent as m } from "@web-utils/core";
|
|
6
|
-
import { n as f } from "../../chunks/
|
|
6
|
+
import { n as f } from "../../chunks/5d4282fb.js";
|
|
7
7
|
var h = function() {
|
|
8
8
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
9
9
|
return r("FormItem", e._b({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as n } from "../../chunks/
|
|
2
|
-
import { f as s } from "../../chunks/
|
|
3
|
-
import { i as a, n as u } from "../../chunks/
|
|
1
|
+
import { f as n } from "../../chunks/76680a03.js";
|
|
2
|
+
import { f as s } from "../../chunks/61ad06b2.js";
|
|
3
|
+
import { i as a, n as u } from "../../chunks/f71045fc.js";
|
|
4
4
|
import { CheckboxGroup as p } from "element-ui";
|
|
5
|
-
import { n as h } from "../../chunks/
|
|
5
|
+
import { n as h } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var c = function() {
|
|
7
7
|
var e = this, r = e.$createElement, o = e._self._c || r;
|
|
8
8
|
return o("FormItem", e._b({
|
|
@@ -128,7 +128,7 @@ const m = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
128
128
|
},
|
|
129
129
|
computed: {
|
|
130
130
|
prefix() {
|
|
131
|
-
return "
|
|
131
|
+
return "请选择";
|
|
132
132
|
},
|
|
133
133
|
labelKey() {
|
|
134
134
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -142,21 +142,21 @@ const m = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
142
142
|
innerOptions() {
|
|
143
143
|
return this.gender ? [
|
|
144
144
|
{
|
|
145
|
-
[this.labelKey]: "
|
|
146
|
-
[this.valueKey]: "
|
|
145
|
+
[this.labelKey]: "男",
|
|
146
|
+
[this.valueKey]: "男"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
[this.labelKey]: "
|
|
150
|
-
[this.valueKey]: "
|
|
149
|
+
[this.labelKey]: "女",
|
|
150
|
+
[this.valueKey]: "女"
|
|
151
151
|
}
|
|
152
152
|
] : this.confirm ? [
|
|
153
153
|
{
|
|
154
|
-
[this.labelKey]: "
|
|
155
|
-
[this.valueKey]: "
|
|
154
|
+
[this.labelKey]: "是",
|
|
155
|
+
[this.valueKey]: "是"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
[this.labelKey]: "
|
|
159
|
-
[this.valueKey]: "
|
|
158
|
+
[this.labelKey]: "否",
|
|
159
|
+
[this.valueKey]: "否"
|
|
160
160
|
}
|
|
161
161
|
] : this.options;
|
|
162
162
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as o } from "../../chunks/
|
|
2
|
-
import { f as l } from "../../chunks/
|
|
1
|
+
import { f as o } from "../../chunks/76680a03.js";
|
|
2
|
+
import { f as l } from "../../chunks/61ad06b2.js";
|
|
3
3
|
import { toDate as n } from "@web-utils/core";
|
|
4
|
-
import { i as m, n as u } from "../../chunks/
|
|
5
|
-
import { n as p } from "../../chunks/
|
|
4
|
+
import { i as m, n as u } from "../../chunks/f71045fc.js";
|
|
5
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var h = function() {
|
|
7
7
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
8
8
|
return r("FormItem", e._b({
|
|
@@ -103,7 +103,7 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
|
|
|
103
103
|
},
|
|
104
104
|
computed: {
|
|
105
105
|
prefix() {
|
|
106
|
-
return "
|
|
106
|
+
return "请选择";
|
|
107
107
|
},
|
|
108
108
|
mini() {
|
|
109
109
|
if (this.miniDate) {
|
|
@@ -134,7 +134,7 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
|
|
|
134
134
|
return this.value;
|
|
135
135
|
},
|
|
136
136
|
fat() {
|
|
137
|
-
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy
|
|
137
|
+
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
|
138
138
|
},
|
|
139
139
|
inputProps() {
|
|
140
140
|
return m({
|
|
@@ -142,9 +142,9 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
|
|
|
142
142
|
...this.$props,
|
|
143
143
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
144
144
|
format: this.format || this.fat,
|
|
145
|
-
rangeSeparator: this.rangeSeparator || "
|
|
146
|
-
startPlaceholder: this.startPlaceholder || "
|
|
147
|
-
endPlaceholder: this.endPlaceholder || "
|
|
145
|
+
rangeSeparator: this.rangeSeparator || "至",
|
|
146
|
+
startPlaceholder: this.startPlaceholder || "开始日期",
|
|
147
|
+
endPlaceholder: this.endPlaceholder || "结束日期"
|
|
148
148
|
}, f);
|
|
149
149
|
},
|
|
150
150
|
range() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { warning as l } from "@web-utils/core";
|
|
2
|
-
import { j as a } from "../../chunks/
|
|
3
|
-
import { n as s } from "../../chunks/
|
|
2
|
+
import { j as a } from "../../chunks/f71045fc.js";
|
|
3
|
+
import { n as s } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var o = function() {
|
|
5
5
|
var e = this, r = e.$createElement, i = e._self._c || r;
|
|
6
6
|
return i("ElForm", e._g(e._b({
|
|
@@ -53,7 +53,7 @@ const d = {
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
created() {
|
|
56
|
-
this.required || l.call(a(this, (e) => ["FormView", "FormHolder"].includes(e.$options.name)), "
|
|
56
|
+
this.required || l.call(a(this, (e) => ["FormView", "FormHolder"].includes(e.$options.name)), "一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊");
|
|
57
57
|
},
|
|
58
58
|
methods: {
|
|
59
59
|
clearValidate(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as l } from "../../chunks/
|
|
1
|
+
import { f as l } from "../../chunks/76680a03.js";
|
|
2
2
|
import { Input as u } from "element-ui";
|
|
3
|
-
import { i as a, n as i } from "../../chunks/
|
|
4
|
-
import { n as p } from "../../chunks/
|
|
3
|
+
import { i as a, n as i } from "../../chunks/f71045fc.js";
|
|
4
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
5
5
|
var m = function() {
|
|
6
6
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
7
7
|
return r("FormItem", e._b({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as s } from "../../chunks/
|
|
1
|
+
import { f as s } from "../../chunks/76680a03.js";
|
|
2
2
|
import { Input as a } from "element-ui";
|
|
3
|
-
import { i as u, n as i } from "../../chunks/
|
|
4
|
-
import { n as p } from "../../chunks/
|
|
3
|
+
import { i as u, n as i } from "../../chunks/f71045fc.js";
|
|
4
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
5
5
|
const m = (e, r, t) => r && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(r) ? t(new Error("invalid")) : t();
|
|
6
6
|
var c = function() {
|
|
7
7
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
@@ -70,7 +70,7 @@ const f = Object.keys(a.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
70
70
|
getRules() {
|
|
71
71
|
return [{
|
|
72
72
|
validator: m,
|
|
73
|
-
message: "
|
|
73
|
+
message: "请输入正确的邮箱!"
|
|
74
74
|
}];
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as a } from "../../chunks/
|
|
1
|
+
import { f as a } from "../../chunks/76680a03.js";
|
|
2
2
|
import { validateIdCard as s } from "@web-utils/core";
|
|
3
3
|
import { Input as i } from "element-ui";
|
|
4
|
-
import { i as u, n as p } from "../../chunks/
|
|
5
|
-
import { n as m } from "../../chunks/
|
|
4
|
+
import { i as u, n as p } from "../../chunks/f71045fc.js";
|
|
5
|
+
import { n as m } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var d = function() {
|
|
7
7
|
var r = this, e = r.$createElement, t = r._self._c || e;
|
|
8
8
|
return t("FormItem", r._b({
|
|
@@ -77,7 +77,7 @@ const _ = Object.keys(i.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
77
77
|
getRules() {
|
|
78
78
|
return [{
|
|
79
79
|
validator: s,
|
|
80
|
-
message: "
|
|
80
|
+
message: "请输入正确的身份证号码!"
|
|
81
81
|
}];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as i } from "../../chunks/
|
|
2
|
-
import { i as s, n as p } from "../../chunks/
|
|
3
|
-
import { i as l } from "../../chunks/
|
|
4
|
-
import { n as a } from "../../chunks/
|
|
1
|
+
import { f as i } from "../../chunks/76680a03.js";
|
|
2
|
+
import { i as s, n as p } from "../../chunks/f71045fc.js";
|
|
3
|
+
import { i as l } from "../../chunks/41a066be.js";
|
|
4
|
+
import { n as a } from "../../chunks/5d4282fb.js";
|
|
5
5
|
var m = function() {
|
|
6
6
|
var e = this, r = e.$createElement, n = e._self._c || r;
|
|
7
7
|
return n("FormItem", e._b({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as s } from "../../chunks/
|
|
1
|
+
import { f as s } from "../../chunks/76680a03.js";
|
|
2
2
|
import { validatePhoneNum as u } from "@web-utils/core";
|
|
3
|
-
import { i as a, n as i } from "../../chunks/
|
|
3
|
+
import { i as a, n as i } from "../../chunks/f71045fc.js";
|
|
4
4
|
import { Input as p } from "element-ui";
|
|
5
|
-
import { n as m } from "../../chunks/
|
|
5
|
+
import { n as m } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var c = function() {
|
|
7
7
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
8
8
|
return r("FormItem", e._b({
|
|
@@ -68,7 +68,7 @@ const f = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
68
68
|
getRules() {
|
|
69
69
|
return [{
|
|
70
70
|
validator: u,
|
|
71
|
-
message: "
|
|
71
|
+
message: "请输入正确的手机号码!"
|
|
72
72
|
}];
|
|
73
73
|
},
|
|
74
74
|
emitInput(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as i } from "../../chunks/
|
|
1
|
+
import { f as i } from "../../chunks/76680a03.js";
|
|
2
2
|
import { TimePicker as l } from "element-ui";
|
|
3
|
-
import { i as s, n as u } from "../../chunks/
|
|
4
|
-
import { n as m } from "../../chunks/
|
|
3
|
+
import { i as s, n as u } from "../../chunks/f71045fc.js";
|
|
4
|
+
import { n as m } from "../../chunks/5d4282fb.js";
|
|
5
5
|
var p = function() {
|
|
6
6
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
7
7
|
return n("FormItem", e._b({
|
|
@@ -28,8 +28,8 @@ var p = function() {
|
|
|
28
28
|
maxTime: e.maxTime,
|
|
29
29
|
selectableRange: e.selectableRange
|
|
30
30
|
},
|
|
31
|
-
"start-placeholder": "
|
|
32
|
-
"end-placeholder": "
|
|
31
|
+
"start-placeholder": "开始时间",
|
|
32
|
+
"end-placeholder": "结束时间",
|
|
33
33
|
placeholder: e.computePlaceholder
|
|
34
34
|
},
|
|
35
35
|
on: {
|
|
@@ -95,7 +95,7 @@ const f = Object.keys(l.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
95
95
|
},
|
|
96
96
|
computed: {
|
|
97
97
|
prefix() {
|
|
98
|
-
return "
|
|
98
|
+
return "请选择";
|
|
99
99
|
},
|
|
100
100
|
inputProps() {
|
|
101
101
|
return s({ ...u(this.$attrs), ...this.$props }, f);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as E } from "../../chunks/
|
|
1
|
+
import { f as E } from "../../chunks/b4acd3a6.js";
|
|
2
2
|
import { hasOwn as _ } from "@web-utils/core";
|
|
3
|
-
import { n as W } from "../../chunks/
|
|
3
|
+
import { n as W } from "../../chunks/5d4282fb.js";
|
|
4
4
|
const j = {
|
|
5
5
|
name: "FormItem",
|
|
6
6
|
mixins: [E],
|
|
@@ -14,11 +14,10 @@ const j = {
|
|
|
14
14
|
},
|
|
15
15
|
computed: {
|
|
16
16
|
gutter() {
|
|
17
|
-
var r;
|
|
18
17
|
let e = this.$parent;
|
|
19
18
|
for (; e && e.$options.componentName !== "ElRow"; )
|
|
20
19
|
e = e.$parent;
|
|
21
|
-
return (
|
|
20
|
+
return (e == null ? void 0 : e.gutter) ?? 0;
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
23
|
methods: {
|
|
@@ -46,7 +45,7 @@ const j = {
|
|
|
46
45
|
let i = u, d = s, p = s, h = g, w = F;
|
|
47
46
|
f && (_(f, "block") && (h = f.block), _(f, "wrapCol") && (w = f.wrapCol));
|
|
48
47
|
const $ = h && q && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
49
|
-
return k ||
|
|
48
|
+
return k || n != null && 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
49
|
style: {
|
|
51
50
|
width: $
|
|
52
51
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFunction as m } from "@web-utils/core";
|
|
2
|
-
import { n as u } from "../../chunks/
|
|
2
|
+
import { n as u } from "../../chunks/5d4282fb.js";
|
|
3
3
|
const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], c = ["$emit", "validate", "clearValidate"], p = {
|
|
4
4
|
name: "FormItemGroup",
|
|
5
5
|
inject: {
|
|
@@ -102,7 +102,7 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
102
102
|
}) : e("EmptyView", {
|
|
103
103
|
attrs: {
|
|
104
104
|
"font-size": "14px",
|
|
105
|
-
"empty-tips": "
|
|
105
|
+
"empty-tips": "暂无信息"
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as n } from "../../chunks/
|
|
2
|
-
import { f as s } from "../../chunks/
|
|
1
|
+
import { f as n } from "../../chunks/76680a03.js";
|
|
2
|
+
import { f as s } from "../../chunks/61ad06b2.js";
|
|
3
3
|
import { RadioGroup as a } from "element-ui";
|
|
4
|
-
import { i as u, n as p } from "../../chunks/
|
|
5
|
-
import { n as c } from "../../chunks/
|
|
4
|
+
import { i as u, n as p } from "../../chunks/f71045fc.js";
|
|
5
|
+
import { n as c } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var f = function() {
|
|
7
7
|
var e = this, o = e.$createElement, r = e._self._c || o;
|
|
8
8
|
return r("FormItem", e._b({
|
|
@@ -106,7 +106,7 @@ const d = Object.keys(a.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
106
106
|
},
|
|
107
107
|
computed: {
|
|
108
108
|
prefix() {
|
|
109
|
-
return "
|
|
109
|
+
return "请选择";
|
|
110
110
|
},
|
|
111
111
|
inputProps() {
|
|
112
112
|
return u({ ...p(this.$attrs), ...this.$props }, d);
|
|
@@ -120,21 +120,21 @@ const d = Object.keys(a.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
120
120
|
innerOptions() {
|
|
121
121
|
return this.gender ? [
|
|
122
122
|
{
|
|
123
|
-
[this.labelKey]: "
|
|
124
|
-
[this.valueKey]: this.chinese ? "
|
|
123
|
+
[this.labelKey]: "男",
|
|
124
|
+
[this.valueKey]: this.chinese ? "男" : this.typing ? 1 : "1"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
[this.labelKey]: "
|
|
128
|
-
[this.valueKey]: this.chinese ? "
|
|
127
|
+
[this.labelKey]: "女",
|
|
128
|
+
[this.valueKey]: this.chinese ? "女" : this.typing ? 2 : "2"
|
|
129
129
|
}
|
|
130
130
|
] : this.confirm ? [
|
|
131
131
|
{
|
|
132
|
-
[this.labelKey]: "
|
|
133
|
-
[this.valueKey]: this.chinese ? "
|
|
132
|
+
[this.labelKey]: "是",
|
|
133
|
+
[this.valueKey]: this.chinese ? "是" : this.english ? "Y" : this.typing ? 1 : "1"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
[this.labelKey]: "
|
|
137
|
-
[this.valueKey]: this.chinese ? "
|
|
136
|
+
[this.labelKey]: "否",
|
|
137
|
+
[this.valueKey]: this.chinese ? "否" : this.english ? "N" : this.typing ? 0 : "0"
|
|
138
138
|
}
|
|
139
139
|
] : this.options;
|
|
140
140
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as s } from "../../chunks/
|
|
2
|
-
import { f as o } from "../../chunks/
|
|
1
|
+
import { f as s } from "../../chunks/76680a03.js";
|
|
2
|
+
import { f as o } from "../../chunks/61ad06b2.js";
|
|
3
3
|
import { Select as a } from "element-ui";
|
|
4
|
-
import { i as u, n as p } from "../../chunks/
|
|
5
|
-
import { n as c } from "../../chunks/
|
|
4
|
+
import { i as u, n as p } from "../../chunks/f71045fc.js";
|
|
5
|
+
import { n as c } from "../../chunks/5d4282fb.js";
|
|
6
6
|
var h = function() {
|
|
7
7
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
8
8
|
return t("FormItem", e._b({
|
|
@@ -93,7 +93,7 @@ const m = Object.keys(a.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
93
93
|
},
|
|
94
94
|
computed: {
|
|
95
95
|
prefix() {
|
|
96
|
-
return "
|
|
96
|
+
return "请选择";
|
|
97
97
|
},
|
|
98
98
|
labelKey() {
|
|
99
99
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -107,23 +107,23 @@ const m = Object.keys(a.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
107
107
|
innerOptions() {
|
|
108
108
|
return this.gender ? [
|
|
109
109
|
{
|
|
110
|
-
[this.labelKey]: "
|
|
111
|
-
[this.valueKey]: this.chinese ? "
|
|
110
|
+
[this.labelKey]: "男",
|
|
111
|
+
[this.valueKey]: this.chinese ? "男" : this.typing ? 1 : "1"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
[this.labelKey]: "
|
|
115
|
-
[this.valueKey]: this.chinese ? "
|
|
114
|
+
[this.labelKey]: "女",
|
|
115
|
+
[this.valueKey]: this.chinese ? "女" : this.typing ? 2 : "2"
|
|
116
116
|
}
|
|
117
117
|
] : this.confirm ? [
|
|
118
118
|
{
|
|
119
|
-
[this.labelKey]: "
|
|
120
|
-
[this.valueKey]: this.chinese ? "
|
|
119
|
+
[this.labelKey]: "是",
|
|
120
|
+
[this.valueKey]: this.chinese ? "是" : this.english ? "Y" : this.typing ? 1 : "1"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
[this.labelKey]: "
|
|
124
|
-
[this.valueKey]: this.chinese ? "
|
|
123
|
+
[this.labelKey]: "否",
|
|
124
|
+
[this.valueKey]: this.chinese ? "否" : this.english ? "N" : this.typing ? 0 : "0"
|
|
125
125
|
}
|
|
126
|
-
] : this.all ? [{ [this.valueKey]: "", [this.labelKey]: "
|
|
126
|
+
] : this.all ? [{ [this.valueKey]: "", [this.labelKey]: "全部" }, ...this.options] : this.options;
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
methods: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as i } from "../../chunks/
|
|
1
|
+
import { f as i } from "../../chunks/76680a03.js";
|
|
2
2
|
import { Switch as s } from "element-ui";
|
|
3
|
-
import { i as u, n as a } from "../../chunks/
|
|
4
|
-
import { n as p } from "../../chunks/
|
|
3
|
+
import { i as u, n as a } from "../../chunks/f71045fc.js";
|
|
4
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
5
5
|
var c = function() {
|
|
6
6
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
7
7
|
return r("FormItem", e._b({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as s } from "../../chunks/
|
|
2
|
-
import { i, n as a } from "../../chunks/
|
|
1
|
+
import { f as s } from "../../chunks/76680a03.js";
|
|
2
|
+
import { i, n as a } from "../../chunks/f71045fc.js";
|
|
3
3
|
import { Input as u } from "element-ui";
|
|
4
|
-
import { n as p } from "../../chunks/
|
|
4
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
5
5
|
var m = function() {
|
|
6
6
|
var e = this, t = e.$createElement, o = e._self._c || t;
|
|
7
7
|
return o("FormItem", e._b({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasOwn as a, merge as m, toStringArray as h, animate as p, isInContainer as b } from "@web-utils/core";
|
|
2
|
-
import { n as v } from "../../chunks/
|
|
2
|
+
import { n as v } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var _ = function() {
|
|
4
4
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
5
5
|
return o("div", {
|
|
@@ -67,7 +67,7 @@ var _ = function() {
|
|
|
67
67
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
68
68
|
return [o("EmptyView", {
|
|
69
69
|
attrs: {
|
|
70
|
-
"empty-tips": "
|
|
70
|
+
"empty-tips": "请添加表单内容"
|
|
71
71
|
}
|
|
72
72
|
})];
|
|
73
73
|
}), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
|
|
@@ -108,7 +108,7 @@ var _ = function() {
|
|
|
108
108
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
109
109
|
return [o("EmptyView", {
|
|
110
110
|
attrs: {
|
|
111
|
-
"empty-tips": "
|
|
111
|
+
"empty-tips": "请添加表单内容"
|
|
112
112
|
}
|
|
113
113
|
})];
|
|
114
114
|
}), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
|
|
@@ -149,7 +149,7 @@ var _ = function() {
|
|
|
149
149
|
staticClass: "form-content"
|
|
150
150
|
}, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o("FormItemGroup", {
|
|
151
151
|
attrs: {
|
|
152
|
-
"block-title": "
|
|
152
|
+
"block-title": "流程日志"
|
|
153
153
|
}
|
|
154
154
|
}, [o("FlowLog", {
|
|
155
155
|
staticClass: "flow-log",
|
|
@@ -166,7 +166,7 @@ var _ = function() {
|
|
|
166
166
|
staticClass: "form-nav"
|
|
167
167
|
}, [o("div", {
|
|
168
168
|
staticClass: "form-nav-header"
|
|
169
|
-
}, [t._v("
|
|
169
|
+
}, [t._v(" 表单导航 ")]), o("ul", {
|
|
170
170
|
staticClass: "form-nav-list"
|
|
171
171
|
}, t._l(t.groups, function(r, s) {
|
|
172
172
|
return o("li", {
|
|
@@ -299,13 +299,13 @@ const u = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
299
299
|
!this.toolbarListeners.edit && a(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
300
300
|
},
|
|
301
301
|
async navItemClick(t, e) {
|
|
302
|
-
|
|
302
|
+
this.showNav && (await this.$nextTick(), this.activeFormItemGroup(t, e), t.expand || t.open());
|
|
303
303
|
},
|
|
304
304
|
activeFormItemGroup(t, e) {
|
|
305
305
|
this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10, p(t.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = e;
|
|
306
306
|
},
|
|
307
307
|
async tryActive() {
|
|
308
|
-
if (
|
|
308
|
+
if (this.showNav) {
|
|
309
309
|
for (let t = 0; t < this.groups.length; t++)
|
|
310
310
|
if (b(this.groups[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
311
311
|
this.activeIndex = t;
|