cnhis-design-vue 0.2.19-beta → 0.2.20-beta
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/es/big-table/index.js +78 -78
- package/es/big-table/style.css +1 -1
- package/es/index/index.js +112 -108
- package/es/index/style.css +1 -1
- package/es/table-filter/index.js +34 -30
- package/es/table-filter/style.css +1 -1
- package/lib/cui.common.js +162 -158
- package/lib/cui.umd.js +162 -158
- package/lib/cui.umd.min.js +13 -13
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +4 -4
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +8 -4
package/package.json
CHANGED
|
@@ -353,6 +353,10 @@ export default create({
|
|
|
353
353
|
},
|
|
354
354
|
isScanMultiTable() {
|
|
355
355
|
return this.columnConfig?.isScanMultiTable
|
|
356
|
+
},
|
|
357
|
+
tableNoSetting(){
|
|
358
|
+
let { noSetting } = this.getOtherConfigInit() || {};
|
|
359
|
+
return noSetting || this.showSettings?.hideSettingBtn == 1;
|
|
356
360
|
}
|
|
357
361
|
},
|
|
358
362
|
watch: {
|
|
@@ -2864,10 +2868,6 @@ export default create({
|
|
|
2864
2868
|
const config = tableOptions?.config || {};
|
|
2865
2869
|
return config || undefined;
|
|
2866
2870
|
},
|
|
2867
|
-
tableNoSetting(){
|
|
2868
|
-
let { noSetting } = this.getOtherConfigInit() || {};
|
|
2869
|
-
return noSetting || this.showSettings?.hideSettingBtn == 1;
|
|
2870
|
-
},
|
|
2871
2871
|
// 单选
|
|
2872
2872
|
radioOnChange(rowData = {}) {
|
|
2873
2873
|
let { data, row, $rowIndex } = rowData;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
<!-- 平铺列表 tree -->
|
|
102
102
|
<template v-if="showRelatedTreeBtn">
|
|
103
|
-
<li :class="[
|
|
103
|
+
<li v-if="showRelatedSearch" :class="[isRelatedSearchFold ? 'related-search-input' : 'related-search-input-expand']">
|
|
104
104
|
<a-input-search
|
|
105
105
|
ref="relatedSearchInput"
|
|
106
106
|
class="my-input-search my-input-search-related"
|
|
@@ -737,7 +737,7 @@ export default create({
|
|
|
737
737
|
}
|
|
738
738
|
},
|
|
739
739
|
searchPlaceHolder() {
|
|
740
|
-
if (!this.useFieldList?.length) return "请输入关键字搜索";
|
|
740
|
+
if (!this.useFieldList?.length || this.showRelatedTreeBtn) return "请输入关键字搜索";
|
|
741
741
|
let str = "";
|
|
742
742
|
let strList = this.useFieldList
|
|
743
743
|
?.map(item => {
|
|
@@ -745,8 +745,11 @@ export default create({
|
|
|
745
745
|
return item.formTitle || item.alias || item.title;
|
|
746
746
|
})
|
|
747
747
|
.filter(Boolean);
|
|
748
|
-
str = strList.join("/");
|
|
748
|
+
str = "输入" + strList.join("/");
|
|
749
749
|
return str || "请输入关键字搜索";
|
|
750
|
+
},
|
|
751
|
+
showRelatedSearch() {
|
|
752
|
+
return this.showRelatedTreeBtn && this.isShowSetting('hideSearch')
|
|
750
753
|
}
|
|
751
754
|
},
|
|
752
755
|
data() {
|
|
@@ -2083,10 +2086,11 @@ export default create({
|
|
|
2083
2086
|
searchPlaceHolder: {
|
|
2084
2087
|
immediate: true,
|
|
2085
2088
|
handler(val) {
|
|
2086
|
-
if (!val) return;
|
|
2089
|
+
if (!val || this.showRelatedTreeBtn) return;
|
|
2087
2090
|
this.$nextTick(() => {
|
|
2088
2091
|
this.showPlaceholderPrefix = false;
|
|
2089
2092
|
let dom = this.$refs.baseSearchPlaceholderSpan;
|
|
2093
|
+
if(!dom) return;
|
|
2090
2094
|
let w = dom.offsetWidth;
|
|
2091
2095
|
console.log(w, "wwww");
|
|
2092
2096
|
let maxW = this.showOutSearch ? 284 : 244;
|