ct-component-plus 0.0.34 → 0.0.36
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/package.json
CHANGED
|
@@ -129,6 +129,9 @@ export default {
|
|
|
129
129
|
let dataP = {
|
|
130
130
|
...state.searchParams,
|
|
131
131
|
};
|
|
132
|
+
if (state.sortObj?.order && state.sortObj?.prop) {
|
|
133
|
+
dataP.sortObj = state.sortObj;
|
|
134
|
+
}
|
|
132
135
|
if (props.pageSize) {
|
|
133
136
|
dataP.pageSize = props.pageSize;
|
|
134
137
|
dataP.pageNo = state.pageNo;
|
|
@@ -245,6 +248,7 @@ export default {
|
|
|
245
248
|
getPageData,
|
|
246
249
|
changePageNo,
|
|
247
250
|
changeSort,
|
|
251
|
+
state,
|
|
248
252
|
});
|
|
249
253
|
return () =>
|
|
250
254
|
h("div", { class: ns.b() }, [
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
<span v-if="!keyword">已选{{ selectLength }}项</span>
|
|
37
37
|
<span v-else>检索结果</span>
|
|
38
38
|
</span>
|
|
39
|
-
<el-checkbox
|
|
39
|
+
<el-checkbox
|
|
40
|
+
v-model="checkedAll"
|
|
41
|
+
v-show="!noFilterOptions"
|
|
42
|
+
@change="changeCheckedAll"
|
|
40
43
|
>全选</el-checkbox
|
|
41
44
|
>
|
|
42
45
|
</div>
|
|
@@ -247,6 +250,12 @@ const checkedAll = useCheckedAll(filterOptions, valueModel, {
|
|
|
247
250
|
}
|
|
248
251
|
},
|
|
249
252
|
}).checkedAll;
|
|
253
|
+
const changeCheckedAll = () => {
|
|
254
|
+
const selectEmit = selectRef.value.$emit;
|
|
255
|
+
if (selectEmit) {
|
|
256
|
+
selectEmit("change", valueModel.value);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
250
259
|
|
|
251
260
|
const focusFilter = () => {
|
|
252
261
|
if (filterInput.value && filterInput.value.focus) {
|