@cmstops/pro-compo 0.3.89 → 0.3.91

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,
@@ -83,7 +83,8 @@ const _sfc_main = defineComponent({
83
83
  const loadData = async () => {
84
84
  let params = {
85
85
  page: page.value.index,
86
- page_size: page.value.size
86
+ page_size: page.value.size,
87
+ review: 1
87
88
  };
88
89
  if (filter.value) {
89
90
  params = { ...params, ...filter.value };
@@ -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,
@@ -84,7 +84,8 @@ const _sfc_main = vue.defineComponent({
84
84
  const loadData = async () => {
85
85
  let params = {
86
86
  page: page.value.index,
87
- page_size: page.value.size
87
+ page_size: page.value.size,
88
+ review: 1
88
89
  };
89
90
  if (filter.value) {
90
91
  params = { ...params, ...filter.value };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.89",
3
+ "version": "0.3.91",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",