ct-component-plus
Advanced tools
+1
-1
| { | ||
| "name": "ct-component-plus", | ||
| "private": false, | ||
| "version": "2.2.9", | ||
| "version": "2.2.10", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "main": "packages/components/index.js", |
@@ -50,2 +50,6 @@ import { buriedParamsKey, searchComponentProps } from "../../../hooks"; | ||
| noDataText: String, | ||
| keywordParam: { | ||
| type: String, | ||
| default: "keyword", | ||
| }, | ||
| }; |
@@ -11,2 +11,3 @@ <template> | ||
| :filterable="filterable" | ||
| :filter-method="filterMethod" | ||
| :clear-icon="clearIcon" | ||
@@ -204,3 +205,3 @@ :suffix-icon="suffixIcon" | ||
| selectRef.value.selectedLabel = newVal; | ||
| } | ||
| }, | ||
| ); | ||
@@ -250,3 +251,3 @@ watch(optionsByApi, () => { | ||
| } | ||
| params.keyword = keyword.value; | ||
| params[props.keywordParam] = keyword.value; | ||
| params.page_no = pageNo.value; | ||
@@ -264,3 +265,3 @@ params.page_size = pageSize.value; | ||
| const { | ||
| list, | ||
| list = "list", | ||
| label = "label", | ||
@@ -305,3 +306,3 @@ value = "value", | ||
| optionsByApi, | ||
| valueModel | ||
| valueModel, | ||
| ); | ||
@@ -327,3 +328,3 @@ if (defineSearchHandle === false) return; | ||
| immediate: true, | ||
| } | ||
| }, | ||
| ); | ||
@@ -393,2 +394,10 @@ // watch( | ||
| function filterMethod(val) { | ||
| if (props.multiple) { | ||
| return; //多选走原有搜索逻辑 | ||
| } | ||
| keyword.value = val; | ||
| changeKeyword(); | ||
| } | ||
| onMounted(() => { | ||
@@ -395,0 +404,0 @@ if (!baseDao) { |
+4
-0
@@ -0,1 +1,5 @@ | ||
| # v2.2.10版本更新内容: | ||
| 1. 优化分页下拉组件搜索相关逻辑 | ||
| # v2.2.9版本更新内容: | ||
@@ -2,0 +6,0 @@ |
216909
0.17%1523
0.26%25
19.05%