@deot/vc 1.0.22 → 1.0.23
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/dist/index.iife.js +8 -3
- package/dist/index.umd.cjs +8 -3
- package/package.json +4 -4
package/dist/index.iife.js
CHANGED
|
@@ -35229,7 +35229,8 @@ var Vc = (function (exports, vue) {
|
|
|
35229
35229
|
}, [vue.createVNode(Spin, {
|
|
35230
35230
|
"size": 16
|
|
35231
35231
|
}, null)]), vue.createVNode(Scroller, {
|
|
35232
|
-
"class": "vc-select__options"
|
|
35232
|
+
"class": "vc-select__options",
|
|
35233
|
+
"max-height": "200px"
|
|
35233
35234
|
}, {
|
|
35234
35235
|
default: () => [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
|
|
35235
35236
|
let _slot;
|
|
@@ -38384,6 +38385,7 @@ var Vc = (function (exports, vue) {
|
|
|
38384
38385
|
const key = getValueOfRow(row, rowIndex);
|
|
38385
38386
|
const selected = table.store.isSelected(row);
|
|
38386
38387
|
const height = rowHeight || rowData.height;
|
|
38388
|
+
const maxColumnIndex = columns.length - 1;
|
|
38387
38389
|
return vue.createVNode("div", {
|
|
38388
38390
|
"key": key,
|
|
38389
38391
|
"class": [getRowClass(row, rowIndex), "vc-table__tr"],
|
|
@@ -38419,8 +38421,10 @@ var Vc = (function (exports, vue) {
|
|
|
38419
38421
|
column,
|
|
38420
38422
|
rowIndex,
|
|
38421
38423
|
columnIndex,
|
|
38424
|
+
selected,
|
|
38422
38425
|
store: table.store,
|
|
38423
|
-
|
|
38426
|
+
isHead: columnIndex === 0,
|
|
38427
|
+
isTail: columnIndex === maxColumnIndex
|
|
38424
38428
|
})]);
|
|
38425
38429
|
})]);
|
|
38426
38430
|
};
|
|
@@ -39806,10 +39810,11 @@ var Vc = (function (exports, vue) {
|
|
|
39806
39810
|
}
|
|
39807
39811
|
const line = column.line || VcInstance.options.TableColumn?.line;
|
|
39808
39812
|
if (line && value) {
|
|
39813
|
+
const base = rowData.isHead || rowData.isTail ? 30 : 20;
|
|
39809
39814
|
const style2 = {
|
|
39810
39815
|
// 目前左右pading为10
|
|
39811
39816
|
// TODO: 含有border还要-1
|
|
39812
|
-
width: (column.realWidth || column.width) -
|
|
39817
|
+
width: (column.realWidth || column.width) - base + "px"
|
|
39813
39818
|
};
|
|
39814
39819
|
return vue.createVNode(Text, {
|
|
39815
39820
|
"style": style2,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -35232,7 +35232,8 @@
|
|
|
35232
35232
|
}, [vue.createVNode(Spin, {
|
|
35233
35233
|
"size": 16
|
|
35234
35234
|
}, null)]), vue.createVNode(Scroller, {
|
|
35235
|
-
"class": "vc-select__options"
|
|
35235
|
+
"class": "vc-select__options",
|
|
35236
|
+
"max-height": "200px"
|
|
35236
35237
|
}, {
|
|
35237
35238
|
default: () => [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
|
|
35238
35239
|
let _slot;
|
|
@@ -38387,6 +38388,7 @@
|
|
|
38387
38388
|
const key = getValueOfRow(row, rowIndex);
|
|
38388
38389
|
const selected = table.store.isSelected(row);
|
|
38389
38390
|
const height = rowHeight || rowData.height;
|
|
38391
|
+
const maxColumnIndex = columns.length - 1;
|
|
38390
38392
|
return vue.createVNode("div", {
|
|
38391
38393
|
"key": key,
|
|
38392
38394
|
"class": [getRowClass(row, rowIndex), "vc-table__tr"],
|
|
@@ -38422,8 +38424,10 @@
|
|
|
38422
38424
|
column,
|
|
38423
38425
|
rowIndex,
|
|
38424
38426
|
columnIndex,
|
|
38427
|
+
selected,
|
|
38425
38428
|
store: table.store,
|
|
38426
|
-
|
|
38429
|
+
isHead: columnIndex === 0,
|
|
38430
|
+
isTail: columnIndex === maxColumnIndex
|
|
38427
38431
|
})]);
|
|
38428
38432
|
})]);
|
|
38429
38433
|
};
|
|
@@ -39809,10 +39813,11 @@
|
|
|
39809
39813
|
}
|
|
39810
39814
|
const line = column.line || VcInstance.options.TableColumn?.line;
|
|
39811
39815
|
if (line && value) {
|
|
39816
|
+
const base = rowData.isHead || rowData.isTail ? 30 : 20;
|
|
39812
39817
|
const style2 = {
|
|
39813
39818
|
// 目前左右pading为10
|
|
39814
39819
|
// TODO: 含有border还要-1
|
|
39815
|
-
width: (column.realWidth || column.width) -
|
|
39820
|
+
width: (column.realWidth || column.width) - base + "px"
|
|
39816
39821
|
};
|
|
39817
39822
|
return vue.createVNode(Text, {
|
|
39818
39823
|
"style": style2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/vc-components": "^1.0.
|
|
23
|
-
"@deot/vc-hooks": "^1.0.
|
|
24
|
-
"@deot/vc-shared": "^1.0.
|
|
22
|
+
"@deot/vc-components": "^1.0.23",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.23",
|
|
24
|
+
"@deot/vc-shared": "^1.0.23"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|