@cmstops/pro-compo 0.3.90 → 0.3.92
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.
|
@@ -10,7 +10,7 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
columns: {},
|
|
11
11
|
formatQuery: { type: Boolean }
|
|
12
12
|
},
|
|
13
|
-
emits: ["search"],
|
|
13
|
+
emits: ["search", "selectSearch", "selectPopupChange"],
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -88,6 +88,12 @@ const _sfc_main = defineComponent({
|
|
|
88
88
|
form.value[item.key] = null;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
+
const handleSelectSearch = (value, item) => {
|
|
92
|
+
emit("selectSearch", { value, item });
|
|
93
|
+
};
|
|
94
|
+
const handleSelectPopupChange = (value, item) => {
|
|
95
|
+
emit("selectPopupChange", { value, item });
|
|
96
|
+
};
|
|
91
97
|
const resetFilter = () => {
|
|
92
98
|
form.value = {};
|
|
93
99
|
renderForm();
|
|
@@ -187,9 +193,12 @@ const _sfc_main = defineComponent({
|
|
|
187
193
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
188
194
|
"popup-container": "#base-filter-popup-container",
|
|
189
195
|
"allow-clear": "",
|
|
196
|
+
"allow-search": item.allowSearch,
|
|
190
197
|
"default-active-first-option": false,
|
|
191
198
|
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
192
199
|
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
200
|
+
onSearch: ($event) => handleSelectSearch($event, item),
|
|
201
|
+
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
193
202
|
onChange: ($event) => handleSelectChange($event, item)
|
|
194
203
|
}, {
|
|
195
204
|
default: withCtx(() => [
|
|
@@ -202,7 +211,7 @@ const _sfc_main = defineComponent({
|
|
|
202
211
|
}), 128))
|
|
203
212
|
]),
|
|
204
213
|
_: 2
|
|
205
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "onChange"])) : createCommentVNode("v-if", true),
|
|
214
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : createCommentVNode("v-if", true),
|
|
206
215
|
item.component === "range-picker" ? (openBlock(), createBlock(unref(RangePicker), {
|
|
207
216
|
key: 2,
|
|
208
217
|
modelValue: form.value[item.key].range,
|
|
@@ -43,16 +43,19 @@ const _sfc_main = defineComponent({
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
title: "\u62A5\u6599\u7C7B\u578B",
|
|
46
|
+
width: 150,
|
|
46
47
|
dataIndex: "classify_name",
|
|
47
48
|
slotName: "classify_name"
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
title: "@\u8BB0\u8005",
|
|
52
|
+
width: 150,
|
|
51
53
|
dataIndex: "report_user",
|
|
52
54
|
slotName: "pub_report_usertime"
|
|
53
55
|
},
|
|
54
56
|
{
|
|
55
57
|
title: "\u72B6\u6001",
|
|
58
|
+
width: 150,
|
|
56
59
|
dataIndex: "adopted",
|
|
57
60
|
slotName: "adopted"
|
|
58
61
|
},
|
|
@@ -210,6 +213,9 @@ const _sfc_main = defineComponent({
|
|
|
210
213
|
createElementVNode("span", _hoisted_5, toDisplayString(record.title || record.alias || "--"), 1)
|
|
211
214
|
])
|
|
212
215
|
]),
|
|
216
|
+
adopted: withCtx(({ record }) => [
|
|
217
|
+
createElementVNode("span", null, toDisplayString(record.adopted ? "\u5DF2\u5904\u7406" : "\u672A\u5904\u7406"), 1)
|
|
218
|
+
]),
|
|
213
219
|
pub_time: withCtx(({ record }) => [
|
|
214
220
|
createElementVNode("span", null, toDisplayString(record.pub_time), 1)
|
|
215
221
|
]),
|
|
@@ -11,7 +11,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
11
11
|
columns: {},
|
|
12
12
|
formatQuery: { type: Boolean }
|
|
13
13
|
},
|
|
14
|
-
emits: ["search"],
|
|
14
|
+
emits: ["search", "selectSearch", "selectPopupChange"],
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
@@ -89,6 +89,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
89
89
|
form.value[item.key] = null;
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
+
const handleSelectSearch = (value, item) => {
|
|
93
|
+
emit("selectSearch", { value, item });
|
|
94
|
+
};
|
|
95
|
+
const handleSelectPopupChange = (value, item) => {
|
|
96
|
+
emit("selectPopupChange", { value, item });
|
|
97
|
+
};
|
|
92
98
|
const resetFilter = () => {
|
|
93
99
|
form.value = {};
|
|
94
100
|
renderForm();
|
|
@@ -188,9 +194,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
188
194
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
189
195
|
"popup-container": "#base-filter-popup-container",
|
|
190
196
|
"allow-clear": "",
|
|
197
|
+
"allow-search": item.allowSearch,
|
|
191
198
|
"default-active-first-option": false,
|
|
192
199
|
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
193
200
|
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
201
|
+
onSearch: ($event) => handleSelectSearch($event, item),
|
|
202
|
+
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
194
203
|
onChange: ($event) => handleSelectChange($event, item)
|
|
195
204
|
}, {
|
|
196
205
|
default: vue.withCtx(() => [
|
|
@@ -203,7 +212,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
203
212
|
}), 128))
|
|
204
213
|
]),
|
|
205
214
|
_: 2
|
|
206
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "onChange"])) : vue.createCommentVNode("v-if", true),
|
|
215
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : vue.createCommentVNode("v-if", true),
|
|
207
216
|
item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
208
217
|
key: 2,
|
|
209
218
|
modelValue: form.value[item.key].range,
|
|
@@ -44,16 +44,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
title: "\u62A5\u6599\u7C7B\u578B",
|
|
47
|
+
width: 150,
|
|
47
48
|
dataIndex: "classify_name",
|
|
48
49
|
slotName: "classify_name"
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
title: "@\u8BB0\u8005",
|
|
53
|
+
width: 150,
|
|
52
54
|
dataIndex: "report_user",
|
|
53
55
|
slotName: "pub_report_usertime"
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
title: "\u72B6\u6001",
|
|
59
|
+
width: 150,
|
|
57
60
|
dataIndex: "adopted",
|
|
58
61
|
slotName: "adopted"
|
|
59
62
|
},
|
|
@@ -211,6 +214,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
211
214
|
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(record.title || record.alias || "--"), 1)
|
|
212
215
|
])
|
|
213
216
|
]),
|
|
217
|
+
adopted: vue.withCtx(({ record }) => [
|
|
218
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.adopted ? "\u5DF2\u5904\u7406" : "\u672A\u5904\u7406"), 1)
|
|
219
|
+
]),
|
|
214
220
|
pub_time: vue.withCtx(({ record }) => [
|
|
215
221
|
vue.createElementVNode("span", null, vue.toDisplayString(record.pub_time), 1)
|
|
216
222
|
]),
|