@cmstops/pro-compo 0.1.73 → 0.1.74
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/es/baseFilter/component.js +55 -113
- package/es/utils/typeMap.js +1 -10
- package/lib/baseFilter/component.js +54 -112
- package/lib/utils/typeMap.js +0 -10
- package/package.json +1 -1
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, toRaw, openBlock, createElementBlock, createElementVNode, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRaw, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, withCtx, unref, normalizeStyle, createCommentVNode, withModifiers, renderSlot } from "vue";
|
|
2
2
|
import { InputSearch, Select, Option, RangePicker } from "@arco-design/web-vue";
|
|
3
|
-
import { typeOptions } from "../utils/doc.js";
|
|
4
|
-
import { mpTypeOptions } from "../utils/typeMap.js";
|
|
5
3
|
import _sfc_main$1 from "./components/filterItem.js";
|
|
6
|
-
import { DEFAULT_BASE_API } from "../config.js";
|
|
7
4
|
const _hoisted_1 = { class: "base-filter-container" };
|
|
8
5
|
const _hoisted_2 = { class: "left" };
|
|
9
6
|
const _hoisted_3 = {
|
|
@@ -23,18 +20,30 @@ const _sfc_main = defineComponent({
|
|
|
23
20
|
setup(__props, { emit: __emit }) {
|
|
24
21
|
const props = __props;
|
|
25
22
|
const emit = __emit;
|
|
26
|
-
props.BASE_API || DEFAULT_BASE_API;
|
|
27
23
|
const render = ref(false);
|
|
28
24
|
const form = ref({});
|
|
29
25
|
const columnsKeys = computed(() => props.columns.map((column) => column.key));
|
|
30
26
|
const columnsMap = computed(() => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
27
|
+
const map = props.columns.reduce((map2, column) => {
|
|
28
|
+
map2[column.key] = column;
|
|
29
|
+
return map2;
|
|
34
30
|
}, {});
|
|
31
|
+
return map;
|
|
35
32
|
});
|
|
36
|
-
const
|
|
37
|
-
|
|
33
|
+
const renderColumns = computed(() => {
|
|
34
|
+
let rangeKeys = props.columns.filter((column) => column.range).map((column) => column.range);
|
|
35
|
+
rangeKeys = [...new Set(rangeKeys)];
|
|
36
|
+
const _columns = props.columns.filter((column) => !column.range);
|
|
37
|
+
rangeKeys.forEach((key) => {
|
|
38
|
+
const rangeItem = props.columns.filter((column) => column.range === key);
|
|
39
|
+
rangeItem[0].key = key;
|
|
40
|
+
_columns.push(rangeItem[0]);
|
|
41
|
+
});
|
|
42
|
+
return _columns;
|
|
43
|
+
});
|
|
44
|
+
const getOptions = (item) => {
|
|
45
|
+
return item.options ? item.options : [];
|
|
46
|
+
};
|
|
38
47
|
const hasValue = computed(() => {
|
|
39
48
|
return (key) => {
|
|
40
49
|
var _a, _b;
|
|
@@ -106,10 +115,9 @@ const _sfc_main = defineComponent({
|
|
|
106
115
|
}
|
|
107
116
|
return _parmas;
|
|
108
117
|
};
|
|
109
|
-
const _mpTypeOptions = mpTypeOptions();
|
|
110
118
|
watch(
|
|
111
119
|
() => columnsKeys.value,
|
|
112
|
-
(
|
|
120
|
+
() => {
|
|
113
121
|
renderForm();
|
|
114
122
|
},
|
|
115
123
|
{ immediate: true }
|
|
@@ -121,110 +129,35 @@ const _sfc_main = defineComponent({
|
|
|
121
129
|
},
|
|
122
130
|
{ deep: true }
|
|
123
131
|
);
|
|
124
|
-
const seriesOptions = typeOptions();
|
|
125
132
|
return (_ctx, _cache) => {
|
|
126
133
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
127
134
|
createElementVNode("div", _hoisted_2, [
|
|
128
135
|
render.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
modelValue: form.value.
|
|
138
|
-
"onUpdate:modelValue":
|
|
139
|
-
style: normalizeStyle({ width: styleWidth(columnsMap.value.
|
|
140
|
-
"allow-clear": "",
|
|
141
|
-
size: "medium",
|
|
142
|
-
placeholder: `\u8BF7\u8F93\u5165${(_a = columnsMap.value.word) == null ? void 0 : _a.label}`
|
|
143
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
144
|
-
];
|
|
145
|
-
}),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["active"])) : createCommentVNode("v-if", true),
|
|
148
|
-
hasKey("series") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
149
|
-
key: 1,
|
|
150
|
-
active: hasValue.value("series")
|
|
151
|
-
}, {
|
|
152
|
-
default: withCtx(() => {
|
|
153
|
-
var _a;
|
|
154
|
-
return [
|
|
155
|
-
createVNode(unref(Select), {
|
|
156
|
-
modelValue: form.value.series,
|
|
157
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.series = $event),
|
|
158
|
-
"allow-clear": "",
|
|
159
|
-
style: normalizeStyle({ width: styleWidth(columnsMap.value.series) }),
|
|
160
|
-
placeholder: `\u8BF7\u9009\u62E9${(_a = columnsMap.value.series) == null ? void 0 : _a.label}`
|
|
161
|
-
}, {
|
|
162
|
-
default: withCtx(() => [
|
|
163
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(seriesOptions), (opt) => {
|
|
164
|
-
return openBlock(), createBlock(unref(Option), {
|
|
165
|
-
key: opt.value,
|
|
166
|
-
label: opt.label,
|
|
167
|
-
value: opt.value
|
|
168
|
-
}, null, 8, ["label", "value"]);
|
|
169
|
-
}), 128))
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
}, 8, ["modelValue", "style", "placeholder"])
|
|
173
|
-
];
|
|
174
|
-
}),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 8, ["active"])) : createCommentVNode("v-if", true),
|
|
177
|
-
hasKey("pub_time") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
178
|
-
key: 2,
|
|
179
|
-
active: hasValue.value("pub_time")
|
|
180
|
-
}, {
|
|
181
|
-
default: withCtx(() => [
|
|
182
|
-
createVNode(unref(RangePicker), {
|
|
183
|
-
modelValue: form.value.pub_time.range,
|
|
184
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.pub_time.range = $event),
|
|
185
|
-
style: normalizeStyle({ width: styleWidth(form.value.pub_time) }),
|
|
186
|
-
"value-format": "timestamp",
|
|
187
|
-
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
188
|
-
}, ["stop"]))
|
|
189
|
-
}, null, 8, ["modelValue", "style"])
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
}, 8, ["active"])) : createCommentVNode("v-if", true),
|
|
193
|
-
hasKey("mp_name") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
194
|
-
key: 3,
|
|
195
|
-
active: hasValue.value("mp_name")
|
|
196
|
-
}, {
|
|
197
|
-
default: withCtx(() => {
|
|
198
|
-
var _a;
|
|
199
|
-
return [
|
|
200
|
-
createVNode(unref(InputSearch), {
|
|
201
|
-
modelValue: form.value.mp_name,
|
|
202
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.mp_name = $event),
|
|
203
|
-
style: normalizeStyle({ width: styleWidth(columnsMap.value.mp_name) }),
|
|
136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderColumns.value, (item, index) => {
|
|
137
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
138
|
+
key: index,
|
|
139
|
+
active: hasValue.value(item.key)
|
|
140
|
+
}, {
|
|
141
|
+
default: withCtx(() => [
|
|
142
|
+
item.component === "input" ? (openBlock(), createBlock(unref(InputSearch), {
|
|
143
|
+
key: 0,
|
|
144
|
+
modelValue: form.value[item.key],
|
|
145
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
146
|
+
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
204
147
|
"allow-clear": "",
|
|
205
148
|
size: "medium",
|
|
206
|
-
placeholder: `\u8BF7\u8F93\u5165${
|
|
207
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
hasKey("mp_type") ? (openBlock(), createBlock(_sfc_main$1, {
|
|
213
|
-
key: 4,
|
|
214
|
-
active: hasValue.value("mp_type")
|
|
215
|
-
}, {
|
|
216
|
-
default: withCtx(() => {
|
|
217
|
-
var _a;
|
|
218
|
-
return [
|
|
219
|
-
createVNode(unref(Select), {
|
|
220
|
-
modelValue: form.value.mp_type,
|
|
221
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.mp_type = $event),
|
|
222
|
-
style: normalizeStyle([{ width: styleWidth(columnsMap.value.mp_type) }, { "width": "150px" }]),
|
|
149
|
+
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
150
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
|
|
151
|
+
item.component === "select" ? (openBlock(), createBlock(unref(Select), {
|
|
152
|
+
key: 1,
|
|
153
|
+
modelValue: form.value[item.key],
|
|
154
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
223
155
|
"allow-clear": "",
|
|
224
|
-
|
|
156
|
+
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
157
|
+
placeholder: `\u8BF7\u9009\u62E9${item.label}`
|
|
225
158
|
}, {
|
|
226
159
|
default: withCtx(() => [
|
|
227
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
160
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getOptions(item), (opt) => {
|
|
228
161
|
return openBlock(), createBlock(unref(Option), {
|
|
229
162
|
key: opt.value,
|
|
230
163
|
label: opt.label,
|
|
@@ -232,12 +165,21 @@ const _sfc_main = defineComponent({
|
|
|
232
165
|
}, null, 8, ["label", "value"]);
|
|
233
166
|
}), 128))
|
|
234
167
|
]),
|
|
235
|
-
_:
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
168
|
+
_: 2
|
|
169
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
|
|
170
|
+
item.component === "range-picker" ? (openBlock(), createBlock(unref(RangePicker), {
|
|
171
|
+
key: 2,
|
|
172
|
+
modelValue: form.value[item.key].range,
|
|
173
|
+
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
174
|
+
style: normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
175
|
+
"value-format": "timestamp",
|
|
176
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
177
|
+
}, ["stop"]))
|
|
178
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : createCommentVNode("v-if", true)
|
|
179
|
+
]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, ["active"]);
|
|
182
|
+
}), 128))
|
|
241
183
|
])) : createCommentVNode("v-if", true)
|
|
242
184
|
]),
|
|
243
185
|
createElementVNode("div", _hoisted_4, [
|
package/es/utils/typeMap.js
CHANGED
|
@@ -83,15 +83,6 @@ const mp_type_map = {
|
|
|
83
83
|
1: "\u4E2A\u4EBA\u53F7",
|
|
84
84
|
2: "\u7EC4\u7EC7\u53F7"
|
|
85
85
|
};
|
|
86
|
-
const mpTypeOptions = () => {
|
|
87
|
-
const arr = Object.keys(mp_type_map).map((key) => {
|
|
88
|
-
return {
|
|
89
|
-
value: key,
|
|
90
|
-
label: mp_type_map[key]
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
return arr;
|
|
94
|
-
};
|
|
95
86
|
const kongo_source_map = {
|
|
96
87
|
app: "\u5E94\u7528",
|
|
97
88
|
url: "\u94FE\u63A5",
|
|
@@ -161,4 +152,4 @@ const matrixPublishFormalStateMap = {
|
|
|
161
152
|
12: "\u672A\u77E5",
|
|
162
153
|
13: "\u79C1\u5BC6"
|
|
163
154
|
};
|
|
164
|
-
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, ilive_type_map, key_target_type_map, kongo_source_map, local_live_doc_status, local_live_doc_type, matrixPublishFormalStateMap, matrixPublishStateMap,
|
|
155
|
+
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, ilive_type_map, key_target_type_map, kongo_source_map, local_live_doc_status, local_live_doc_type, matrixPublishFormalStateMap, matrixPublishStateMap, mp_type_map };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
-
var doc = require("../utils/doc.js");
|
|
5
|
-
var typeMap = require("../utils/typeMap.js");
|
|
6
4
|
var filterItem = require("./components/filterItem.js");
|
|
7
|
-
var config = require("../config.js");
|
|
8
5
|
const _hoisted_1 = { class: "base-filter-container" };
|
|
9
6
|
const _hoisted_2 = { class: "left" };
|
|
10
7
|
const _hoisted_3 = {
|
|
@@ -24,18 +21,30 @@ const _sfc_main = vue.defineComponent({
|
|
|
24
21
|
setup(__props, { emit: __emit }) {
|
|
25
22
|
const props = __props;
|
|
26
23
|
const emit = __emit;
|
|
27
|
-
props.BASE_API || config.DEFAULT_BASE_API;
|
|
28
24
|
const render = vue.ref(false);
|
|
29
25
|
const form = vue.ref({});
|
|
30
26
|
const columnsKeys = vue.computed(() => props.columns.map((column) => column.key));
|
|
31
27
|
const columnsMap = vue.computed(() => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return
|
|
28
|
+
const map = props.columns.reduce((map2, column) => {
|
|
29
|
+
map2[column.key] = column;
|
|
30
|
+
return map2;
|
|
35
31
|
}, {});
|
|
32
|
+
return map;
|
|
36
33
|
});
|
|
37
|
-
const
|
|
38
|
-
|
|
34
|
+
const renderColumns = vue.computed(() => {
|
|
35
|
+
let rangeKeys = props.columns.filter((column) => column.range).map((column) => column.range);
|
|
36
|
+
rangeKeys = [...new Set(rangeKeys)];
|
|
37
|
+
const _columns = props.columns.filter((column) => !column.range);
|
|
38
|
+
rangeKeys.forEach((key) => {
|
|
39
|
+
const rangeItem = props.columns.filter((column) => column.range === key);
|
|
40
|
+
rangeItem[0].key = key;
|
|
41
|
+
_columns.push(rangeItem[0]);
|
|
42
|
+
});
|
|
43
|
+
return _columns;
|
|
44
|
+
});
|
|
45
|
+
const getOptions = (item) => {
|
|
46
|
+
return item.options ? item.options : [];
|
|
47
|
+
};
|
|
39
48
|
const hasValue = vue.computed(() => {
|
|
40
49
|
return (key) => {
|
|
41
50
|
var _a, _b;
|
|
@@ -107,10 +116,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
107
116
|
}
|
|
108
117
|
return _parmas;
|
|
109
118
|
};
|
|
110
|
-
const _mpTypeOptions = typeMap.mpTypeOptions();
|
|
111
119
|
vue.watch(
|
|
112
120
|
() => columnsKeys.value,
|
|
113
|
-
(
|
|
121
|
+
() => {
|
|
114
122
|
renderForm();
|
|
115
123
|
},
|
|
116
124
|
{ immediate: true }
|
|
@@ -122,110 +130,35 @@ const _sfc_main = vue.defineComponent({
|
|
|
122
130
|
},
|
|
123
131
|
{ deep: true }
|
|
124
132
|
);
|
|
125
|
-
const seriesOptions = doc.typeOptions();
|
|
126
133
|
return (_ctx, _cache) => {
|
|
127
134
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
128
135
|
vue.createElementVNode("div", _hoisted_2, [
|
|
129
136
|
render.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
modelValue: form.value.
|
|
139
|
-
"onUpdate:modelValue":
|
|
140
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.
|
|
141
|
-
"allow-clear": "",
|
|
142
|
-
size: "medium",
|
|
143
|
-
placeholder: `\u8BF7\u8F93\u5165${(_a = columnsMap.value.word) == null ? void 0 : _a.label}`
|
|
144
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
145
|
-
];
|
|
146
|
-
}),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
149
|
-
hasKey("series") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
150
|
-
key: 1,
|
|
151
|
-
active: hasValue.value("series")
|
|
152
|
-
}, {
|
|
153
|
-
default: vue.withCtx(() => {
|
|
154
|
-
var _a;
|
|
155
|
-
return [
|
|
156
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
157
|
-
modelValue: form.value.series,
|
|
158
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.series = $event),
|
|
159
|
-
"allow-clear": "",
|
|
160
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.series) }),
|
|
161
|
-
placeholder: `\u8BF7\u9009\u62E9${(_a = columnsMap.value.series) == null ? void 0 : _a.label}`
|
|
162
|
-
}, {
|
|
163
|
-
default: vue.withCtx(() => [
|
|
164
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(seriesOptions), (opt) => {
|
|
165
|
-
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
166
|
-
key: opt.value,
|
|
167
|
-
label: opt.label,
|
|
168
|
-
value: opt.value
|
|
169
|
-
}, null, 8, ["label", "value"]);
|
|
170
|
-
}), 128))
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["modelValue", "style", "placeholder"])
|
|
174
|
-
];
|
|
175
|
-
}),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
178
|
-
hasKey("pub_time") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
179
|
-
key: 2,
|
|
180
|
-
active: hasValue.value("pub_time")
|
|
181
|
-
}, {
|
|
182
|
-
default: vue.withCtx(() => [
|
|
183
|
-
vue.createVNode(vue.unref(webVue.RangePicker), {
|
|
184
|
-
modelValue: form.value.pub_time.range,
|
|
185
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.pub_time.range = $event),
|
|
186
|
-
style: vue.normalizeStyle({ width: styleWidth(form.value.pub_time) }),
|
|
187
|
-
"value-format": "timestamp",
|
|
188
|
-
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
189
|
-
}, ["stop"]))
|
|
190
|
-
}, null, 8, ["modelValue", "style"])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
194
|
-
hasKey("mp_name") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
195
|
-
key: 3,
|
|
196
|
-
active: hasValue.value("mp_name")
|
|
197
|
-
}, {
|
|
198
|
-
default: vue.withCtx(() => {
|
|
199
|
-
var _a;
|
|
200
|
-
return [
|
|
201
|
-
vue.createVNode(vue.unref(webVue.InputSearch), {
|
|
202
|
-
modelValue: form.value.mp_name,
|
|
203
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.mp_name = $event),
|
|
204
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.mp_name) }),
|
|
137
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(renderColumns.value, (item, index) => {
|
|
138
|
+
return vue.openBlock(), vue.createBlock(filterItem, {
|
|
139
|
+
key: index,
|
|
140
|
+
active: hasValue.value(item.key)
|
|
141
|
+
}, {
|
|
142
|
+
default: vue.withCtx(() => [
|
|
143
|
+
item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
144
|
+
key: 0,
|
|
145
|
+
modelValue: form.value[item.key],
|
|
146
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
147
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
205
148
|
"allow-clear": "",
|
|
206
149
|
size: "medium",
|
|
207
|
-
placeholder: `\u8BF7\u8F93\u5165${
|
|
208
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
hasKey("mp_type") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
214
|
-
key: 4,
|
|
215
|
-
active: hasValue.value("mp_type")
|
|
216
|
-
}, {
|
|
217
|
-
default: vue.withCtx(() => {
|
|
218
|
-
var _a;
|
|
219
|
-
return [
|
|
220
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
221
|
-
modelValue: form.value.mp_type,
|
|
222
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.mp_type = $event),
|
|
223
|
-
style: vue.normalizeStyle([{ width: styleWidth(columnsMap.value.mp_type) }, { "width": "150px" }]),
|
|
150
|
+
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
151
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
item.component === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
153
|
+
key: 1,
|
|
154
|
+
modelValue: form.value[item.key],
|
|
155
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
224
156
|
"allow-clear": "",
|
|
225
|
-
|
|
157
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
158
|
+
placeholder: `\u8BF7\u9009\u62E9${item.label}`
|
|
226
159
|
}, {
|
|
227
160
|
default: vue.withCtx(() => [
|
|
228
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
161
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions(item), (opt) => {
|
|
229
162
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
230
163
|
key: opt.value,
|
|
231
164
|
label: opt.label,
|
|
@@ -233,12 +166,21 @@ const _sfc_main = vue.defineComponent({
|
|
|
233
166
|
}, null, 8, ["label", "value"]);
|
|
234
167
|
}), 128))
|
|
235
168
|
]),
|
|
236
|
-
_:
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
171
|
+
item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
172
|
+
key: 2,
|
|
173
|
+
modelValue: form.value[item.key].range,
|
|
174
|
+
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
175
|
+
style: vue.normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
176
|
+
"value-format": "timestamp",
|
|
177
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
178
|
+
}, ["stop"]))
|
|
179
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true)
|
|
180
|
+
]),
|
|
181
|
+
_: 2
|
|
182
|
+
}, 1032, ["active"]);
|
|
183
|
+
}), 128))
|
|
242
184
|
])) : vue.createCommentVNode("v-if", true)
|
|
243
185
|
]),
|
|
244
186
|
vue.createElementVNode("div", _hoisted_4, [
|
package/lib/utils/typeMap.js
CHANGED
|
@@ -85,15 +85,6 @@ const mp_type_map = {
|
|
|
85
85
|
1: "\u4E2A\u4EBA\u53F7",
|
|
86
86
|
2: "\u7EC4\u7EC7\u53F7"
|
|
87
87
|
};
|
|
88
|
-
const mpTypeOptions = () => {
|
|
89
|
-
const arr = Object.keys(mp_type_map).map((key) => {
|
|
90
|
-
return {
|
|
91
|
-
value: key,
|
|
92
|
-
label: mp_type_map[key]
|
|
93
|
-
};
|
|
94
|
-
});
|
|
95
|
-
return arr;
|
|
96
|
-
};
|
|
97
88
|
const kongo_source_map = {
|
|
98
89
|
app: "\u5E94\u7528",
|
|
99
90
|
url: "\u94FE\u63A5",
|
|
@@ -178,5 +169,4 @@ exports.local_live_doc_status = local_live_doc_status;
|
|
|
178
169
|
exports.local_live_doc_type = local_live_doc_type;
|
|
179
170
|
exports.matrixPublishFormalStateMap = matrixPublishFormalStateMap;
|
|
180
171
|
exports.matrixPublishStateMap = matrixPublishStateMap;
|
|
181
|
-
exports.mpTypeOptions = mpTypeOptions;
|
|
182
172
|
exports.mp_type_map = mp_type_map;
|