3h1-ui 2.14.81 → 2.14.82
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/index.js +17 -1
- package/lib/index.js +17 -1
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -14690,6 +14690,20 @@ function handleItem(item, ellipsis) {
|
|
|
14690
14690
|
handleChildren(children, !!ellipsis);
|
|
14691
14691
|
}
|
|
14692
14692
|
}
|
|
14693
|
+
function handleColumnResize(propsRef, columns) {
|
|
14694
|
+
columns.forEach((item) => {
|
|
14695
|
+
if (item.flag === "ACTION")
|
|
14696
|
+
return;
|
|
14697
|
+
if (propsRef.value.resizable) {
|
|
14698
|
+
item.width = item.width || 100;
|
|
14699
|
+
item.resizable = item.resizable === void 0 ? true : item.resizable;
|
|
14700
|
+
} else {
|
|
14701
|
+
if (item.resizable) {
|
|
14702
|
+
item.width = item.width || 100;
|
|
14703
|
+
}
|
|
14704
|
+
}
|
|
14705
|
+
});
|
|
14706
|
+
}
|
|
14693
14707
|
function handleChildren(children, ellipsis) {
|
|
14694
14708
|
if (!children)
|
|
14695
14709
|
return;
|
|
@@ -14754,13 +14768,14 @@ function handleActionColumn(propsRef, columns) {
|
|
|
14754
14768
|
});
|
|
14755
14769
|
}
|
|
14756
14770
|
}
|
|
14757
|
-
function useColumns$1(propsRef, getPaginationRef, tableAction) {
|
|
14771
|
+
function useColumns$1(propsRef, getPaginationRef, tableAction, tableElRef) {
|
|
14758
14772
|
const columnsRef = ref(unref(propsRef).columns);
|
|
14759
14773
|
let cacheColumns = unref(propsRef).columns;
|
|
14760
14774
|
const getColumnsRef = computed(() => {
|
|
14761
14775
|
const columns = cloneDeep(unref(columnsRef));
|
|
14762
14776
|
handleIndexColumn(propsRef, getPaginationRef, columns);
|
|
14763
14777
|
handleActionColumn(propsRef, columns);
|
|
14778
|
+
handleColumnResize(propsRef, columns);
|
|
14764
14779
|
if (!columns) {
|
|
14765
14780
|
return [];
|
|
14766
14781
|
}
|
|
@@ -17343,6 +17358,7 @@ const basicProps$3 = reactive({
|
|
|
17343
17358
|
default: null
|
|
17344
17359
|
},
|
|
17345
17360
|
ellipsis: { type: Boolean, default: true },
|
|
17361
|
+
resizable: { type: Boolean, default: false },
|
|
17346
17362
|
isCanResizeParent: { type: Boolean, default: false },
|
|
17347
17363
|
canResize: { type: Boolean, default: true },
|
|
17348
17364
|
clearSelectOnPageChange: {
|
package/lib/index.js
CHANGED
|
@@ -14692,6 +14692,20 @@ function handleItem(item, ellipsis) {
|
|
|
14692
14692
|
handleChildren(children, !!ellipsis);
|
|
14693
14693
|
}
|
|
14694
14694
|
}
|
|
14695
|
+
function handleColumnResize(propsRef, columns) {
|
|
14696
|
+
columns.forEach((item) => {
|
|
14697
|
+
if (item.flag === "ACTION")
|
|
14698
|
+
return;
|
|
14699
|
+
if (propsRef.value.resizable) {
|
|
14700
|
+
item.width = item.width || 100;
|
|
14701
|
+
item.resizable = item.resizable === void 0 ? true : item.resizable;
|
|
14702
|
+
} else {
|
|
14703
|
+
if (item.resizable) {
|
|
14704
|
+
item.width = item.width || 100;
|
|
14705
|
+
}
|
|
14706
|
+
}
|
|
14707
|
+
});
|
|
14708
|
+
}
|
|
14695
14709
|
function handleChildren(children, ellipsis) {
|
|
14696
14710
|
if (!children)
|
|
14697
14711
|
return;
|
|
@@ -14756,13 +14770,14 @@ function handleActionColumn(propsRef, columns) {
|
|
|
14756
14770
|
});
|
|
14757
14771
|
}
|
|
14758
14772
|
}
|
|
14759
|
-
function useColumns$1(propsRef, getPaginationRef, tableAction) {
|
|
14773
|
+
function useColumns$1(propsRef, getPaginationRef, tableAction, tableElRef) {
|
|
14760
14774
|
const columnsRef = vue.ref(vue.unref(propsRef).columns);
|
|
14761
14775
|
let cacheColumns = vue.unref(propsRef).columns;
|
|
14762
14776
|
const getColumnsRef = vue.computed(() => {
|
|
14763
14777
|
const columns = cloneDeep(vue.unref(columnsRef));
|
|
14764
14778
|
handleIndexColumn(propsRef, getPaginationRef, columns);
|
|
14765
14779
|
handleActionColumn(propsRef, columns);
|
|
14780
|
+
handleColumnResize(propsRef, columns);
|
|
14766
14781
|
if (!columns) {
|
|
14767
14782
|
return [];
|
|
14768
14783
|
}
|
|
@@ -17345,6 +17360,7 @@ const basicProps$3 = vue.reactive({
|
|
|
17345
17360
|
default: null
|
|
17346
17361
|
},
|
|
17347
17362
|
ellipsis: { type: Boolean, default: true },
|
|
17363
|
+
resizable: { type: Boolean, default: false },
|
|
17348
17364
|
isCanResizeParent: { type: Boolean, default: false },
|
|
17349
17365
|
canResize: { type: Boolean, default: true },
|
|
17350
17366
|
clearSelectOnPageChange: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.82",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "^4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
+
"@shy-plugins/utils": "1.1.1",
|
|
32
33
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
|
-
"@shy-plugins/use": "1.0.9"
|
|
34
|
-
"@shy-plugins/utils": "1.1.1"
|
|
34
|
+
"@shy-plugins/use": "1.0.9"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|