cnhis-design-vue 2.1.155 → 2.1.157
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/CHANGELOG.md +14 -0
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +26 -26
- package/es/button/index.js +4 -4
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +9 -9
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +4 -4
- package/es/index/index.js +248 -222
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +149 -69
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +268 -245
- package/lib/cui.umd.js +268 -245
- package/lib/cui.umd.min.js +8 -8
- package/package.json +1 -1
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +3 -3
- package/packages/table-filter/src/components/render-widget/components/SelectDynamic.vue +9 -3
- package/packages/table-filter/src/components/render-widget/mixins/dynamic-method.js +3 -2
package/package.json
CHANGED
|
@@ -1346,7 +1346,7 @@ export default create({
|
|
|
1346
1346
|
this.$refs.quicksearch?.clearData();
|
|
1347
1347
|
this.$emit('reloadList', item);
|
|
1348
1348
|
},
|
|
1349
|
-
clickBtn(data, item, index, skip, j) {
|
|
1349
|
+
clickBtn(data, item, index, skip, j, config={}) {
|
|
1350
1350
|
this.$emit('clearTeamTitleName');
|
|
1351
1351
|
if ((item.name.includes('批量') && item.type == 'ADD' && !skip) || (item.type == 'BATCH' && !skip)) {
|
|
1352
1352
|
this.showDrawer(item, j);
|
|
@@ -1360,7 +1360,7 @@ export default create({
|
|
|
1360
1360
|
Object.assign(item, {
|
|
1361
1361
|
_index_: j
|
|
1362
1362
|
});
|
|
1363
|
-
this.$emit('clickBtn', data, item, index);
|
|
1363
|
+
this.$emit('clickBtn', data, item, index, j, config);
|
|
1364
1364
|
},
|
|
1365
1365
|
clickGroupBtn(btn, j) {
|
|
1366
1366
|
this.clickBtn(this.clickRowData, btn, this.clickRowData.my_index, undefined, j);
|
|
@@ -2065,7 +2065,7 @@ export default create({
|
|
|
2065
2065
|
触发原按钮流程,在EditTable中触发原打印按钮节点时,修改[printPrevFinish]状态
|
|
2066
2066
|
触发watch,再执行Promise.resolve()
|
|
2067
2067
|
*/
|
|
2068
|
-
this.clickBtn(clickBtn, btn, clickBtn.my_index, true, j);
|
|
2068
|
+
this.clickBtn(clickBtn, btn, clickBtn.my_index, true, j, {printBtnTrigger: true});
|
|
2069
2069
|
const timestamp = Date.now();
|
|
2070
2070
|
|
|
2071
2071
|
this.resetAllPrintFnWatch();
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
class="quick-dynamic-select"
|
|
16
16
|
:notFoundContent="componentCfg.fetchingWordbook ? undefined : '暂无数据'"
|
|
17
17
|
:class="{ 'quick-dynamic-select-mul': maxTagCount > 0 }"
|
|
18
|
-
@search="
|
|
18
|
+
@search="handleWordBookSearchDebounce"
|
|
19
19
|
@dropdownVisibleChange="dropdownVisibleChangeRender($event, componentCfg)"
|
|
20
20
|
@change="handleChange($event, componentCfg)"
|
|
21
21
|
>
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
import { Select, Spin, Icon,Button } from 'ant-design-vue';
|
|
66
66
|
import selectPages from '@/component/select-pages';
|
|
67
67
|
import Ellipsis from '~/ellipsis'
|
|
68
|
+
import { debounce } from "lodash";
|
|
68
69
|
export default {
|
|
69
70
|
name: "SelectDynamic",
|
|
70
71
|
components: {
|
|
@@ -163,7 +164,9 @@ export default {
|
|
|
163
164
|
// }
|
|
164
165
|
},
|
|
165
166
|
// 生命周期
|
|
166
|
-
created() {
|
|
167
|
+
created() {
|
|
168
|
+
this.handleWordBookSearchDebounce = debounce(this.handleWordBookSearch, 300)
|
|
169
|
+
},
|
|
167
170
|
mounted() {},
|
|
168
171
|
|
|
169
172
|
// 方法
|
|
@@ -178,11 +181,14 @@ export default {
|
|
|
178
181
|
if(this.mode === 'multiple') return;
|
|
179
182
|
this.$emit('change')
|
|
180
183
|
},
|
|
184
|
+
handleWordBookSearch(keyword) {
|
|
185
|
+
this.handleWordBookSearchRender(keyword, this.componentCfg, { skipFirstDef: true });
|
|
186
|
+
},
|
|
181
187
|
handleSearchChangePage(type) {
|
|
182
188
|
let cType = type || 'next';
|
|
183
189
|
let { page, keyword = undefined } = this?.componentCfg?.searchPageConfig;
|
|
184
190
|
page = cType === 'next' ? page + 1 : page - 1;
|
|
185
|
-
this.handleWordBookSearchRender(keyword, this.componentCfg, { page });
|
|
191
|
+
this.handleWordBookSearchRender(keyword, this.componentCfg, { page, skipFirstDef: true });
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
};
|
|
@@ -158,8 +158,9 @@ export default {
|
|
|
158
158
|
if (tableDataType === 'API' && Array.isArray(filterKeys) && filterKeys.length) {
|
|
159
159
|
searchKeyName = filterKeys[0] || 'keyword';
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
const { skipFirstDef, ...others } = config || {};
|
|
162
|
+
let rp = { [searchKeyName]: value, ...params, ...others };
|
|
163
|
+
this.wordbookDataMethodRender(rp, item, { skipFirstDef });
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
};
|