@web-utils/component 2.8.8 → 2.8.9
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/chat/index.mjs +1 -1
- package/chunk-file-uploader/index.mjs +5 -3
- package/chunks/FormTemp.a77c73c4.mjs +163 -0
- package/{icon-temp/index.mjs → chunks/IconTemp.a10129a6.mjs} +2 -2
- package/chunks/{dataformat.ab62230f.mjs → dataformat.4100726d.mjs} +8 -8
- package/chunks/{dic.7f13b573.mjs → dic.9e90e2a4.mjs} +1 -1
- package/chunks/{event.1ac32f1d.mjs → event.ebd9a3a6.mjs} +2 -2
- package/chunks/{init.47ce5ed9.mjs → init.27f6a0c4.mjs} +2 -2
- package/chunks/{util.505913d9.mjs → util.d691afb6.mjs} +17 -17
- package/dialog-form/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +14 -12
- package/flow/index.mjs +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +36 -32
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2504 -140
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +538 -333
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +21 -21
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +14 -12
- 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 +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- 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 +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +475 -552
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/package.json +1 -1
- package/process-palette/index.mjs +190 -0
- package/process-palette/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +104 -34
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +846 -44
- package/tinymce-editor/style.css +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +25 -658
- package/chunk-file-uploader-button/index.mjs +0 -60
- package/chunk-file-uploader-button/style.css +0 -1
- package/chunk-file-uploader-drop/index.mjs +0 -83
- package/chunk-file-uploader-drop/style.css +0 -1
- package/chunk-file-uploader-file/index.mjs +0 -311
- package/chunk-file-uploader-file/style.css +0 -1
- package/chunk-file-uploader-files/index.mjs +0 -49
- package/chunk-file-uploader-files/style.css +0 -1
- package/chunk-file-uploader-list/index.mjs +0 -50
- package/chunk-file-uploader-list/style.css +0 -1
- package/chunk-file-uploader-un-support/index.mjs +0 -51
- package/chunk-file-uploader-un-support/style.css +0 -1
- package/chunks/config.46422d7f.mjs +0 -73
- package/chunks/detail.6e46de33.mjs +0 -29
- package/chunks/mixins.5a78e0db.mjs +0 -16
- package/chunks/utils.97652d86.mjs +0 -26
- package/column/index.mjs +0 -115
- package/column-default/index.mjs +0 -106
- package/column-dynamic/index.mjs +0 -93
- package/column-menu/index.mjs +0 -288
- package/column-slot/index.mjs +0 -267
- package/dialog-column/index.mjs +0 -139
- package/dialog-excel/index.mjs +0 -211
- package/dialog-filter/index.mjs +0 -248
- package/form-group/index.mjs +0 -117
- package/form-group/style.css +0 -1
- package/form-temp/index.mjs +0 -137
- package/fy-dialog-form/index.mjs +0 -272
- package/fy-form-menu/index.mjs +0 -95
- package/header-menu/index.mjs +0 -238
- package/header-search/index.mjs +0 -255
- package/table-page/index.mjs +0 -130
- package/tinymce-wrapper/index.mjs +0 -821
- package/tinymce-wrapper/style.css +0 -1
- package/trigger/index.mjs +0 -71
package/dialog-excel/index.mjs
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { d as p } from "../chunks/detail.6e46de33.mjs";
|
|
2
|
-
import { d as a } from "../chunks/util.505913d9.mjs";
|
|
3
|
-
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
var d = function() {
|
|
5
|
-
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
6
|
-
return t.box ? e("div", [e("ElementDialog", {
|
|
7
|
-
staticClass: "avue-dialog",
|
|
8
|
-
attrs: {
|
|
9
|
-
title: "导出",
|
|
10
|
-
"lock-scroll": "",
|
|
11
|
-
visible: t.box,
|
|
12
|
-
width: t.crud.isMobile ? "100%" : "30%"
|
|
13
|
-
},
|
|
14
|
-
on: {
|
|
15
|
-
"update:visible": function(s) {
|
|
16
|
-
t.box = s;
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
scopedSlots: t._u([{
|
|
20
|
-
key: "footer",
|
|
21
|
-
fn: function() {
|
|
22
|
-
return [e("span", {
|
|
23
|
-
staticClass: "dialog-footer"
|
|
24
|
-
}, [e("ElButton", {
|
|
25
|
-
attrs: {
|
|
26
|
-
type: "primary",
|
|
27
|
-
size: t.crud.isMediumSize
|
|
28
|
-
},
|
|
29
|
-
on: {
|
|
30
|
-
click: t.handleSubmit
|
|
31
|
-
}
|
|
32
|
-
}, [t._v("确定")]), e("ElButton", {
|
|
33
|
-
attrs: {
|
|
34
|
-
size: t.crud.isMediumSize
|
|
35
|
-
},
|
|
36
|
-
on: {
|
|
37
|
-
click: function(s) {
|
|
38
|
-
t.box = !1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}, [t._v("取消")])], 1)];
|
|
42
|
-
},
|
|
43
|
-
proxy: !0
|
|
44
|
-
}], null, !1, 2375905330)
|
|
45
|
-
}, [e("FyForm", {
|
|
46
|
-
attrs: {
|
|
47
|
-
option: t.option
|
|
48
|
-
},
|
|
49
|
-
model: {
|
|
50
|
-
value: t.form,
|
|
51
|
-
callback: function(s) {
|
|
52
|
-
t.form = s;
|
|
53
|
-
},
|
|
54
|
-
expression: "form"
|
|
55
|
-
}
|
|
56
|
-
})], 1)], 1) : t._e();
|
|
57
|
-
}, h = [];
|
|
58
|
-
const m = {
|
|
59
|
-
name: "DialogExcel",
|
|
60
|
-
inject: ["crud"],
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
option: {},
|
|
64
|
-
columnOption: {},
|
|
65
|
-
box: !1,
|
|
66
|
-
form: {
|
|
67
|
-
name: this.crud.tableOption.title
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
methods: {
|
|
72
|
-
handleShow() {
|
|
73
|
-
this.getColumnOption(), this.getOption(), this.box = !0;
|
|
74
|
-
},
|
|
75
|
-
handleSubmit() {
|
|
76
|
-
this.$Export.excel({
|
|
77
|
-
title: this.form.name,
|
|
78
|
-
columns: this.getColumn(),
|
|
79
|
-
data: this.handleSum()
|
|
80
|
-
}), this.box = !1;
|
|
81
|
-
},
|
|
82
|
-
// 计算统计
|
|
83
|
-
handleSum() {
|
|
84
|
-
const t = this.crud.tableOption, r = this.crud.propOption, e = this.form.type ? this.crud.list : this.crud.tableSelect, s = [];
|
|
85
|
-
return this.form.params.includes("data") && e.forEach((o) => {
|
|
86
|
-
const i = a(o);
|
|
87
|
-
r.forEach((n) => {
|
|
88
|
-
const c = n.parentProp ? (this.crud.cascaderDIC[n.$index] || {})[n.prop] : this.crud.DIC[n.prop];
|
|
89
|
-
i[n.prop] = p(i, n, t, c);
|
|
90
|
-
}), s.push(i);
|
|
91
|
-
}), this.form.params.includes("sum") && t.showSummary && s.push(this.crud.sumsList), s;
|
|
92
|
-
},
|
|
93
|
-
getOption() {
|
|
94
|
-
this.option = {
|
|
95
|
-
submitBtn: !1,
|
|
96
|
-
emptyBtn: !1,
|
|
97
|
-
column: [
|
|
98
|
-
{
|
|
99
|
-
label: "文件名",
|
|
100
|
-
prop: "name",
|
|
101
|
-
span: 24
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
label: "选择数据",
|
|
105
|
-
prop: "type",
|
|
106
|
-
span: 24,
|
|
107
|
-
type: "select",
|
|
108
|
-
dicData: [{
|
|
109
|
-
label: "当前数据(当前页全部的数据)",
|
|
110
|
-
value: !0
|
|
111
|
-
}, {
|
|
112
|
-
label: "选中的数据(当前页选中的数据)",
|
|
113
|
-
disabled: this.crud.tableOption.selection !== !0,
|
|
114
|
-
value: !1
|
|
115
|
-
}]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
label: "选择字段",
|
|
119
|
-
prop: "prop",
|
|
120
|
-
type: "tree",
|
|
121
|
-
multiple: !0,
|
|
122
|
-
checkStrictly: !0,
|
|
123
|
-
span: 24,
|
|
124
|
-
props: {
|
|
125
|
-
value: "prop"
|
|
126
|
-
},
|
|
127
|
-
dicData: this.columnOption
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: "参数设置",
|
|
131
|
-
prop: "params",
|
|
132
|
-
type: "checkbox",
|
|
133
|
-
span: 24,
|
|
134
|
-
value: ["header", "data"].concat((() => {
|
|
135
|
-
const t = [];
|
|
136
|
-
return this.crud.isHeader && t.push("headers"), this.crud.isShowSummary && t.push("sum"), t;
|
|
137
|
-
})()),
|
|
138
|
-
dicData: [{
|
|
139
|
-
label: "表头",
|
|
140
|
-
disabled: !0,
|
|
141
|
-
value: "header"
|
|
142
|
-
}, {
|
|
143
|
-
label: "数据源",
|
|
144
|
-
value: "data"
|
|
145
|
-
}].concat((() => {
|
|
146
|
-
const t = [];
|
|
147
|
-
return t.push({
|
|
148
|
-
label: "复杂表头",
|
|
149
|
-
value: "headers",
|
|
150
|
-
disabled: !this.crud.isHeader
|
|
151
|
-
}), t.push({
|
|
152
|
-
label: "合计统计",
|
|
153
|
-
value: "sum",
|
|
154
|
-
disabled: !this.crud.isShowSummary
|
|
155
|
-
}), t;
|
|
156
|
-
})())
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
}, this.form.type = this.crud.selectLen === 0;
|
|
160
|
-
},
|
|
161
|
-
getColumnOption() {
|
|
162
|
-
const t = a(this.crud.columnOption), r = [], e = (s = []) => {
|
|
163
|
-
s.forEach((o, i) => {
|
|
164
|
-
const n = o.children;
|
|
165
|
-
n && !Array.isArray(n) ? delete o.children : o.showColumn === !1 ? s.splice(i, 1) : (r.push(o.prop), o.children && e(n));
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
e(t), this.columnOption = t, this.form.prop = r;
|
|
169
|
-
},
|
|
170
|
-
getColumn() {
|
|
171
|
-
const t = a(this.columnOption), r = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
|
|
172
|
-
if (!this.form.params)
|
|
173
|
-
return [];
|
|
174
|
-
if (this.form.params.includes("headers")) {
|
|
175
|
-
const e = (s = []) => {
|
|
176
|
-
s.forEach((o, i) => {
|
|
177
|
-
r.includes(o.prop) ? o.children && e(o.children) : s.splice(i, 1);
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
|
-
return e(t), t;
|
|
181
|
-
} else {
|
|
182
|
-
const e = [], s = (o = []) => {
|
|
183
|
-
o.forEach((i) => {
|
|
184
|
-
i.children ? s(i.children) : r.includes(i.prop) && e.push(i);
|
|
185
|
-
});
|
|
186
|
-
};
|
|
187
|
-
return s(t), e;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}, l = {};
|
|
192
|
-
var f = /* @__PURE__ */ u(
|
|
193
|
-
m,
|
|
194
|
-
d,
|
|
195
|
-
h,
|
|
196
|
-
!1,
|
|
197
|
-
b,
|
|
198
|
-
null,
|
|
199
|
-
null,
|
|
200
|
-
null
|
|
201
|
-
);
|
|
202
|
-
function b(t) {
|
|
203
|
-
for (let r in l)
|
|
204
|
-
this[r] = l[r];
|
|
205
|
-
}
|
|
206
|
-
const x = /* @__PURE__ */ function() {
|
|
207
|
-
return f.exports;
|
|
208
|
-
}();
|
|
209
|
-
export {
|
|
210
|
-
x as default
|
|
211
|
-
};
|
package/dialog-filter/index.mjs
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { d as u } from "../chunks/util.505913d9.mjs";
|
|
2
|
-
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var r = function() {
|
|
4
|
-
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
5
|
-
return e.box ? t("div", [t("ElDrawer", {
|
|
6
|
-
staticClass: "avue-dialog",
|
|
7
|
-
class: ["avue-crud__dialog", "avue-crud__filter"],
|
|
8
|
-
attrs: {
|
|
9
|
-
"lock-scroll": "",
|
|
10
|
-
"append-to-body": "",
|
|
11
|
-
title: "过滤条件",
|
|
12
|
-
size: e.crud.isMobile ? "100%" : "60%",
|
|
13
|
-
visible: e.box
|
|
14
|
-
},
|
|
15
|
-
on: {
|
|
16
|
-
"update:visible": function(i) {
|
|
17
|
-
e.box = i;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}, [t("ElRow", {
|
|
21
|
-
attrs: {
|
|
22
|
-
span: 24
|
|
23
|
-
}
|
|
24
|
-
}, [t("div", {
|
|
25
|
-
staticClass: "avue-crud__filter-menu"
|
|
26
|
-
}, [t("ElButtonGroup", [t("ElButton", {
|
|
27
|
-
attrs: {
|
|
28
|
-
type: "primary",
|
|
29
|
-
size: e.crud.isMediumSize
|
|
30
|
-
},
|
|
31
|
-
on: {
|
|
32
|
-
click: e.handleAdd
|
|
33
|
-
}
|
|
34
|
-
}, [e._v(" 新增条件 ")]), t("ElButton", {
|
|
35
|
-
attrs: {
|
|
36
|
-
type: "primary",
|
|
37
|
-
size: e.crud.isMediumSize
|
|
38
|
-
},
|
|
39
|
-
on: {
|
|
40
|
-
click: e.handleClear
|
|
41
|
-
}
|
|
42
|
-
}, [e._v(" 清空条件 ")]), t("ElButton", {
|
|
43
|
-
attrs: {
|
|
44
|
-
type: "primary",
|
|
45
|
-
size: e.crud.isMediumSize
|
|
46
|
-
},
|
|
47
|
-
on: {
|
|
48
|
-
click: e.handleValueClear
|
|
49
|
-
}
|
|
50
|
-
}, [e._v(" 清空数据 ")])], 1)], 1), e._l(e.list, function(i, a) {
|
|
51
|
-
return t("ElCol", {
|
|
52
|
-
key: a,
|
|
53
|
-
staticClass: "avue-crud__filter-item",
|
|
54
|
-
attrs: {
|
|
55
|
-
md: 12,
|
|
56
|
-
xs: 24,
|
|
57
|
-
sm: 12
|
|
58
|
-
}
|
|
59
|
-
}, [t("FySelect", {
|
|
60
|
-
staticClass: "avue-crud__filter-label",
|
|
61
|
-
attrs: {
|
|
62
|
-
dic: e.columnOption,
|
|
63
|
-
clearable: !1,
|
|
64
|
-
size: e.crud.isMediumSize
|
|
65
|
-
},
|
|
66
|
-
on: {
|
|
67
|
-
change: function(s) {
|
|
68
|
-
return e.handleChange(a);
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
model: {
|
|
72
|
-
value: i.text,
|
|
73
|
-
callback: function(s) {
|
|
74
|
-
e.$set(i, "text", s);
|
|
75
|
-
},
|
|
76
|
-
expression: "column.text"
|
|
77
|
-
}
|
|
78
|
-
}), t("FySelect", {
|
|
79
|
-
staticClass: "avue-crud__filter-symbol",
|
|
80
|
-
attrs: {
|
|
81
|
-
dic: e.symbolDic,
|
|
82
|
-
clearable: !1,
|
|
83
|
-
size: e.crud.isMediumSize
|
|
84
|
-
},
|
|
85
|
-
model: {
|
|
86
|
-
value: i.symbol,
|
|
87
|
-
callback: function(s) {
|
|
88
|
-
e.$set(i, "symbol", s);
|
|
89
|
-
},
|
|
90
|
-
expression: "column.symbol"
|
|
91
|
-
}
|
|
92
|
-
}), t("FyInput", {
|
|
93
|
-
staticClass: "avue-crud__filter-value",
|
|
94
|
-
attrs: {
|
|
95
|
-
size: e.crud.isMediumSize
|
|
96
|
-
},
|
|
97
|
-
model: {
|
|
98
|
-
value: i.value,
|
|
99
|
-
callback: function(s) {
|
|
100
|
-
e.$set(i, "value", s);
|
|
101
|
-
},
|
|
102
|
-
expression: "column.value"
|
|
103
|
-
}
|
|
104
|
-
}), t("ElButton", {
|
|
105
|
-
staticClass: "avue-crud__filter-icon",
|
|
106
|
-
attrs: {
|
|
107
|
-
type: "danger",
|
|
108
|
-
size: "mini",
|
|
109
|
-
circle: "",
|
|
110
|
-
icon: "el-icon-minus"
|
|
111
|
-
},
|
|
112
|
-
on: {
|
|
113
|
-
click: function(s) {
|
|
114
|
-
return e.handleDelete(a);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
})], 1);
|
|
118
|
-
}), t("ElCol", {
|
|
119
|
-
staticClass: "avue-form__menu avue-form__menu--right",
|
|
120
|
-
attrs: {
|
|
121
|
-
span: 24
|
|
122
|
-
}
|
|
123
|
-
}, [t("ElButton", {
|
|
124
|
-
attrs: {
|
|
125
|
-
type: "primary",
|
|
126
|
-
size: e.crud.isMediumSize
|
|
127
|
-
},
|
|
128
|
-
on: {
|
|
129
|
-
click: e.handleSubmit
|
|
130
|
-
}
|
|
131
|
-
}, [e._v(" 确 定 ")]), t("ElButton", {
|
|
132
|
-
attrs: {
|
|
133
|
-
size: e.crud.isMediumSize
|
|
134
|
-
},
|
|
135
|
-
on: {
|
|
136
|
-
click: function(i) {
|
|
137
|
-
e.box = !1;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}, [e._v(" 取 消 ")])], 1)], 2)], 1)], 1) : e._e();
|
|
141
|
-
}, c = [];
|
|
142
|
-
const d = {
|
|
143
|
-
name: "DialogFilter",
|
|
144
|
-
inject: ["crud"],
|
|
145
|
-
data() {
|
|
146
|
-
return {
|
|
147
|
-
box: !1,
|
|
148
|
-
columnObj: {},
|
|
149
|
-
symbolDic: [
|
|
150
|
-
{
|
|
151
|
-
label: "=",
|
|
152
|
-
value: "="
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: "≠",
|
|
156
|
-
value: "≠"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
label: "like",
|
|
160
|
-
value: "like"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
label: ">",
|
|
164
|
-
value: ">"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: "≥",
|
|
168
|
-
value: "≥"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
label: "<",
|
|
172
|
-
value: "<"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
label: "≤",
|
|
176
|
-
value: "≤"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
label: "∈",
|
|
180
|
-
value: "∈"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
list: [],
|
|
184
|
-
columnOption: {}
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
methods: {
|
|
188
|
-
handleShow() {
|
|
189
|
-
this.getColumnOption(), this.box = !0;
|
|
190
|
-
},
|
|
191
|
-
getColumnOption() {
|
|
192
|
-
const e = [];
|
|
193
|
-
u(this.crud.propOption).forEach((t) => {
|
|
194
|
-
t.showColumn !== !1 && e.push(Object.assign(t, {
|
|
195
|
-
value: t.prop
|
|
196
|
-
}));
|
|
197
|
-
}), this.columnOption = e, this.columnObj = this.columnOption[0];
|
|
198
|
-
},
|
|
199
|
-
handleDelete(e) {
|
|
200
|
-
this.list.splice(e, 1);
|
|
201
|
-
},
|
|
202
|
-
handleClear() {
|
|
203
|
-
this.list = [];
|
|
204
|
-
},
|
|
205
|
-
handleValueClear() {
|
|
206
|
-
this.list.forEach((e) => {
|
|
207
|
-
e.value = "";
|
|
208
|
-
});
|
|
209
|
-
},
|
|
210
|
-
handleSubmit() {
|
|
211
|
-
const e = [];
|
|
212
|
-
this.list.forEach((l) => {
|
|
213
|
-
e.push([l.text, l.symbol, l.value]);
|
|
214
|
-
}), this.crud.$emit("filter", e), this.box = !1;
|
|
215
|
-
},
|
|
216
|
-
handleChange(e) {
|
|
217
|
-
this.list[e].value = "";
|
|
218
|
-
},
|
|
219
|
-
handleAdd() {
|
|
220
|
-
const e = this.columnObj.prop;
|
|
221
|
-
this.list.push({
|
|
222
|
-
text: e,
|
|
223
|
-
value: "",
|
|
224
|
-
symbol: this.symbolDic[0].value
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}, n = {};
|
|
229
|
-
var m = /* @__PURE__ */ o(
|
|
230
|
-
d,
|
|
231
|
-
r,
|
|
232
|
-
c,
|
|
233
|
-
!1,
|
|
234
|
-
v,
|
|
235
|
-
null,
|
|
236
|
-
null,
|
|
237
|
-
null
|
|
238
|
-
);
|
|
239
|
-
function v(e) {
|
|
240
|
-
for (let l in n)
|
|
241
|
-
this[l] = n[l];
|
|
242
|
-
}
|
|
243
|
-
const _ = /* @__PURE__ */ function() {
|
|
244
|
-
return m.exports;
|
|
245
|
-
}();
|
|
246
|
-
export {
|
|
247
|
-
_ as default
|
|
248
|
-
};
|
package/form-group/index.mjs
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
-
var l = function() {
|
|
3
|
-
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
|
-
return e.display ? t("div", {
|
|
5
|
-
class: ["avue-group", {
|
|
6
|
-
"avue-group--header": !e.isHeader,
|
|
7
|
-
"avue-group__arrow": !e.arrow
|
|
8
|
-
}]
|
|
9
|
-
}, [e._t("tabs"), t("ElCollapse", {
|
|
10
|
-
attrs: {
|
|
11
|
-
value: e.text
|
|
12
|
-
},
|
|
13
|
-
on: {
|
|
14
|
-
change: e.handleChange
|
|
15
|
-
},
|
|
16
|
-
model: {
|
|
17
|
-
value: e.activeName,
|
|
18
|
-
callback: function(o) {
|
|
19
|
-
e.activeName = o;
|
|
20
|
-
},
|
|
21
|
-
expression: "activeName"
|
|
22
|
-
}
|
|
23
|
-
}, [t("ElCollapseItem", {
|
|
24
|
-
attrs: {
|
|
25
|
-
name: 1,
|
|
26
|
-
disabled: !e.arrow
|
|
27
|
-
},
|
|
28
|
-
scopedSlots: e._u([{
|
|
29
|
-
key: "title",
|
|
30
|
-
fn: function() {
|
|
31
|
-
return [t("div", {
|
|
32
|
-
staticClass: "avue-group__header"
|
|
33
|
-
}, [e._t("header", function() {
|
|
34
|
-
return [e.icon ? t("i", {
|
|
35
|
-
class: [e.icon, "avue-group__icon"]
|
|
36
|
-
}) : e._e(), e.label ? t("h1", {
|
|
37
|
-
staticClass: "avue-group__title"
|
|
38
|
-
}, [e._v(" " + e._s(e.label) + " ")]) : e._e()];
|
|
39
|
-
})], 2)];
|
|
40
|
-
},
|
|
41
|
-
proxy: !0
|
|
42
|
-
}], null, !0)
|
|
43
|
-
}, [e._t("default")], 2)], 1)], 2) : e._e();
|
|
44
|
-
}, s = [];
|
|
45
|
-
const u = {
|
|
46
|
-
name: "FormGroup",
|
|
47
|
-
props: {
|
|
48
|
-
arrow: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !0
|
|
51
|
-
},
|
|
52
|
-
collapse: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: !0
|
|
55
|
-
},
|
|
56
|
-
header: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !0
|
|
59
|
-
},
|
|
60
|
-
icon: {
|
|
61
|
-
type: String
|
|
62
|
-
},
|
|
63
|
-
display: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: !0
|
|
66
|
-
},
|
|
67
|
-
label: {
|
|
68
|
-
type: String
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
data() {
|
|
72
|
-
return {
|
|
73
|
-
activeName: ""
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
text() {
|
|
78
|
-
return this.collapse ? 1 : 0;
|
|
79
|
-
},
|
|
80
|
-
isHeader() {
|
|
81
|
-
return this.$slots.header && this.header || (this.label || this.icon) && this.header;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
watch: {
|
|
85
|
-
text(e) {
|
|
86
|
-
this.activeName = [e];
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
created() {
|
|
90
|
-
this.activeName = [this.text];
|
|
91
|
-
},
|
|
92
|
-
methods: {
|
|
93
|
-
handleChange(e) {
|
|
94
|
-
this.$emit("change", e);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, r = {};
|
|
98
|
-
var i = /* @__PURE__ */ n(
|
|
99
|
-
u,
|
|
100
|
-
l,
|
|
101
|
-
s,
|
|
102
|
-
!1,
|
|
103
|
-
c,
|
|
104
|
-
null,
|
|
105
|
-
null,
|
|
106
|
-
null
|
|
107
|
-
);
|
|
108
|
-
function c(e) {
|
|
109
|
-
for (let a in r)
|
|
110
|
-
this[a] = r[a];
|
|
111
|
-
}
|
|
112
|
-
const p = /* @__PURE__ */ function() {
|
|
113
|
-
return i.exports;
|
|
114
|
-
}();
|
|
115
|
-
export {
|
|
116
|
-
p as default
|
|
117
|
-
};
|
package/form-group/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avue-group{width:100%}.avue-group .el-collapse,.avue-group .el-collapse-item__wrap{border-color:#fff}.avue-group .el-collapse-item__header{height:inherit;margin-bottom:20px;border:none;border-bottom:1px solid #eee}.avue-group .el-collapse-item__content,.avue-group .van-collapse-item__content{padding-bottom:0}.avue-group .van-collapse-item__content{padding:0 2px}.avue-group--arrow .el-collapse-item__arrow,.avue-group--arrow .van-icon-arrow{display:none}.avue-group .van-hairline--top-bottom:after,.avue-group .van-hairline-unset--top-bottom:after{display:none}.avue-group .van-collapse-item__title{display:flex;align-items:center;padding:0 10px}.avue-group .van-collapse-item__title:after{left:0!important}.avue-group--none{margin:0!important;border:none!important}.avue-group--header .el-collapse-item__header,.avue-group--header .van-collapse-item__title{display:none}.avue-group--collapse .el-collapse-item__arrow,.avue-group--collapse .el-collapse-item__header{display:flex!important}.avue-group__item{box-sizing:border-box;margin-bottom:10px;background-color:#fff;border-bottom:1px solid #eee;border-radius:5px}.avue-group__item:last-child{border-bottom:none}.avue-group__header{display:flex;align-items:center;box-sizing:border-box;width:100%;height:50px;line-height:50px}.avue-group__icon{margin-right:8px;color:#000000d9;font-size:20px}.avue-group__title{color:#000000d9;font-weight:500;font-size:16px}
|
package/form-temp/index.mjs
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { g as a, a as u } from "../chunks/dataformat.ab62230f.mjs";
|
|
2
|
-
import { s } from "../chunks/slot.4b391395.mjs";
|
|
3
|
-
import { u as p } from "../chunks/util.505913d9.mjs";
|
|
4
|
-
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
var c = function() {
|
|
6
|
-
var e = this, n = e.$createElement, o = e._self._c || n;
|
|
7
|
-
return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
|
|
8
|
-
ref: "temp",
|
|
9
|
-
tag: "Component",
|
|
10
|
-
attrs: {
|
|
11
|
-
column: Object.assign(e.column, e.params),
|
|
12
|
-
dic: e.dic,
|
|
13
|
-
disabled: e.column.disabled || e.disabled,
|
|
14
|
-
readonly: e.column.readonly || e.readonly,
|
|
15
|
-
placeholder: e.getPlaceholder(e.column),
|
|
16
|
-
props: e.column.props || e.props,
|
|
17
|
-
"props-http": e.column.propsHttp || e.propsHttp,
|
|
18
|
-
size: e.column.size || e.size,
|
|
19
|
-
"table-data": e.tableData,
|
|
20
|
-
type: e.type || e.column.type,
|
|
21
|
-
"column-slot": e.columnSlot
|
|
22
|
-
},
|
|
23
|
-
nativeOn: {
|
|
24
|
-
keyup: function(t) {
|
|
25
|
-
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.enterChange.apply(null, arguments);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
scopedSlots: e._u([e._l(e.columnSlot, function(t) {
|
|
29
|
-
return {
|
|
30
|
-
key: t,
|
|
31
|
-
fn: function(l) {
|
|
32
|
-
return [e._t(t, null, null, l)];
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
})], null, !0),
|
|
36
|
-
model: {
|
|
37
|
-
value: e.text,
|
|
38
|
-
callback: function(t) {
|
|
39
|
-
e.text = t;
|
|
40
|
-
},
|
|
41
|
-
expression: "text"
|
|
42
|
-
}
|
|
43
|
-
}, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? o("span", {
|
|
44
|
-
domProps: {
|
|
45
|
-
innerHTML: e._s(e.params.html)
|
|
46
|
-
}
|
|
47
|
-
}) : e._e()]);
|
|
48
|
-
}, i = [];
|
|
49
|
-
const d = {
|
|
50
|
-
name: "FormTemp",
|
|
51
|
-
mixins: [s],
|
|
52
|
-
props: {
|
|
53
|
-
value: [String, Object, Number, Boolean, Array],
|
|
54
|
-
columnSlot: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default: () => []
|
|
57
|
-
},
|
|
58
|
-
tableData: {
|
|
59
|
-
type: Object,
|
|
60
|
-
default: () => ({})
|
|
61
|
-
},
|
|
62
|
-
enter: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
type: {
|
|
67
|
-
type: String
|
|
68
|
-
},
|
|
69
|
-
propsHttp: {
|
|
70
|
-
type: Object,
|
|
71
|
-
default: () => ({})
|
|
72
|
-
},
|
|
73
|
-
props: {
|
|
74
|
-
type: Object
|
|
75
|
-
},
|
|
76
|
-
dic: {
|
|
77
|
-
type: Array
|
|
78
|
-
},
|
|
79
|
-
size: {
|
|
80
|
-
type: String
|
|
81
|
-
},
|
|
82
|
-
disabled: {
|
|
83
|
-
type: Boolean
|
|
84
|
-
},
|
|
85
|
-
readonly: {
|
|
86
|
-
type: Boolean
|
|
87
|
-
},
|
|
88
|
-
column: {
|
|
89
|
-
type: Object,
|
|
90
|
-
default: () => ({})
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
computed: {
|
|
94
|
-
params() {
|
|
95
|
-
return this.column.params || {};
|
|
96
|
-
},
|
|
97
|
-
event() {
|
|
98
|
-
return this.column.event || {};
|
|
99
|
-
},
|
|
100
|
-
text: {
|
|
101
|
-
get() {
|
|
102
|
-
return this.value;
|
|
103
|
-
},
|
|
104
|
-
set(e) {
|
|
105
|
-
this.$emit("input", e), this.$emit("change", e);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
methods: {
|
|
110
|
-
uploadFun: p,
|
|
111
|
-
getComponent: a,
|
|
112
|
-
getPlaceholder: u,
|
|
113
|
-
enterChange() {
|
|
114
|
-
typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, r = {};
|
|
118
|
-
var y = /* @__PURE__ */ m(
|
|
119
|
-
d,
|
|
120
|
-
c,
|
|
121
|
-
i,
|
|
122
|
-
!1,
|
|
123
|
-
f,
|
|
124
|
-
null,
|
|
125
|
-
null,
|
|
126
|
-
null
|
|
127
|
-
);
|
|
128
|
-
function f(e) {
|
|
129
|
-
for (let n in r)
|
|
130
|
-
this[n] = r[n];
|
|
131
|
-
}
|
|
132
|
-
const v = /* @__PURE__ */ function() {
|
|
133
|
-
return y.exports;
|
|
134
|
-
}();
|
|
135
|
-
export {
|
|
136
|
-
v as default
|
|
137
|
-
};
|