@deot/vc 1.0.29 → 1.0.31
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.d.ts +4 -18
- package/dist/index.iife.js +8 -10
- package/dist/index.umd.cjs +8 -10
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -8782,10 +8782,7 @@ export declare const Components: {
|
|
|
8782
8782
|
type: StringConstructor;
|
|
8783
8783
|
default: string;
|
|
8784
8784
|
};
|
|
8785
|
-
line:
|
|
8786
|
-
type: NumberConstructor;
|
|
8787
|
-
default: number;
|
|
8788
|
-
};
|
|
8785
|
+
line: NumberConstructor;
|
|
8789
8786
|
label: StringConstructor;
|
|
8790
8787
|
labelClass: StringConstructor;
|
|
8791
8788
|
prop: StringConstructor;
|
|
@@ -8822,10 +8819,7 @@ export declare const Components: {
|
|
|
8822
8819
|
type: StringConstructor;
|
|
8823
8820
|
default: string;
|
|
8824
8821
|
};
|
|
8825
|
-
line:
|
|
8826
|
-
type: NumberConstructor;
|
|
8827
|
-
default: number;
|
|
8828
|
-
};
|
|
8822
|
+
line: NumberConstructor;
|
|
8829
8823
|
label: StringConstructor;
|
|
8830
8824
|
labelClass: StringConstructor;
|
|
8831
8825
|
prop: StringConstructor;
|
|
@@ -8857,7 +8851,6 @@ export declare const Components: {
|
|
|
8857
8851
|
tooltip: (StringConstructor | FunctionConstructor)[];
|
|
8858
8852
|
}>> & Readonly<{}>, {
|
|
8859
8853
|
type: string;
|
|
8860
|
-
line: number;
|
|
8861
8854
|
reserveSelection: boolean;
|
|
8862
8855
|
sortable: boolean;
|
|
8863
8856
|
resizable: boolean;
|
|
@@ -8868,10 +8861,7 @@ export declare const Components: {
|
|
|
8868
8861
|
type: StringConstructor;
|
|
8869
8862
|
default: string;
|
|
8870
8863
|
};
|
|
8871
|
-
line:
|
|
8872
|
-
type: NumberConstructor;
|
|
8873
|
-
default: number;
|
|
8874
|
-
};
|
|
8864
|
+
line: NumberConstructor;
|
|
8875
8865
|
label: StringConstructor;
|
|
8876
8866
|
labelClass: StringConstructor;
|
|
8877
8867
|
prop: StringConstructor;
|
|
@@ -8908,10 +8898,7 @@ export declare const Components: {
|
|
|
8908
8898
|
type: StringConstructor;
|
|
8909
8899
|
default: string;
|
|
8910
8900
|
};
|
|
8911
|
-
line:
|
|
8912
|
-
type: NumberConstructor;
|
|
8913
|
-
default: number;
|
|
8914
|
-
};
|
|
8901
|
+
line: NumberConstructor;
|
|
8915
8902
|
label: StringConstructor;
|
|
8916
8903
|
labelClass: StringConstructor;
|
|
8917
8904
|
prop: StringConstructor;
|
|
@@ -8943,7 +8930,6 @@ export declare const Components: {
|
|
|
8943
8930
|
tooltip: (StringConstructor | FunctionConstructor)[];
|
|
8944
8931
|
}>> & Readonly<{}>, {
|
|
8945
8932
|
type: string;
|
|
8946
|
-
line: number;
|
|
8947
8933
|
reserveSelection: boolean;
|
|
8948
8934
|
sortable: boolean;
|
|
8949
8935
|
resizable: boolean;
|
package/dist/index.iife.js
CHANGED
|
@@ -40621,10 +40621,10 @@ var Vc = (function (exports, vue) {
|
|
|
40621
40621
|
position: absolute!important;
|
|
40622
40622
|
word-break: break-all!important;
|
|
40623
40623
|
overflow: auto!important;
|
|
40624
|
-
opacity:
|
|
40624
|
+
opacity: 0!important;
|
|
40625
40625
|
z-index: -1000!important;
|
|
40626
40626
|
top: 0!important;
|
|
40627
|
-
right:
|
|
40627
|
+
right: 0!important;
|
|
40628
40628
|
`;
|
|
40629
40629
|
const SIZING_STYLE$1 = [
|
|
40630
40630
|
"letter-spacing",
|
|
@@ -40833,12 +40833,13 @@ var Vc = (function (exports, vue) {
|
|
|
40833
40833
|
table.emit("cell-mouse-enter", hoverState.row, hoverState.column, hoverState.cell, e);
|
|
40834
40834
|
}
|
|
40835
40835
|
const el2 = e.target.querySelector(".vc-table__text-line");
|
|
40836
|
-
|
|
40836
|
+
const line = typeof column.line !== "undefined" ? column.line : VcInstance.options.TableColumn?.line;
|
|
40837
|
+
if (!el2 || !line) return;
|
|
40837
40838
|
const value = `${row[column.prop]}`;
|
|
40838
40839
|
const endIndex = getFitIndex({
|
|
40839
40840
|
el: el2,
|
|
40840
40841
|
value,
|
|
40841
|
-
line
|
|
40842
|
+
line,
|
|
40842
40843
|
suffix: "..."
|
|
40843
40844
|
});
|
|
40844
40845
|
if (endIndex > 0 && endIndex < value.length - 1) {
|
|
@@ -40849,6 +40850,7 @@ var Vc = (function (exports, vue) {
|
|
|
40849
40850
|
hover: true,
|
|
40850
40851
|
alone: true,
|
|
40851
40852
|
autoWidth: true,
|
|
40853
|
+
placement: "top",
|
|
40852
40854
|
content: value
|
|
40853
40855
|
});
|
|
40854
40856
|
}
|
|
@@ -42147,7 +42149,7 @@ var Vc = (function (exports, vue) {
|
|
|
42147
42149
|
if (formatter) {
|
|
42148
42150
|
return column.formatter(rowData);
|
|
42149
42151
|
}
|
|
42150
|
-
const line = column.line
|
|
42152
|
+
const line = typeof column.line !== "undefined" ? column.line : VcInstance.options.TableColumn?.line;
|
|
42151
42153
|
if (line && value) {
|
|
42152
42154
|
const style2 = {
|
|
42153
42155
|
"-webkit-line-clamp": line
|
|
@@ -42206,11 +42208,7 @@ var Vc = (function (exports, vue) {
|
|
|
42206
42208
|
type: String,
|
|
42207
42209
|
default: "default"
|
|
42208
42210
|
},
|
|
42209
|
-
|
|
42210
|
-
line: {
|
|
42211
|
-
type: Number,
|
|
42212
|
-
default: 0
|
|
42213
|
-
},
|
|
42211
|
+
line: Number,
|
|
42214
42212
|
label: String,
|
|
42215
42213
|
labelClass: String,
|
|
42216
42214
|
prop: String,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -40624,10 +40624,10 @@
|
|
|
40624
40624
|
position: absolute!important;
|
|
40625
40625
|
word-break: break-all!important;
|
|
40626
40626
|
overflow: auto!important;
|
|
40627
|
-
opacity:
|
|
40627
|
+
opacity: 0!important;
|
|
40628
40628
|
z-index: -1000!important;
|
|
40629
40629
|
top: 0!important;
|
|
40630
|
-
right:
|
|
40630
|
+
right: 0!important;
|
|
40631
40631
|
`;
|
|
40632
40632
|
const SIZING_STYLE$1 = [
|
|
40633
40633
|
"letter-spacing",
|
|
@@ -40836,12 +40836,13 @@
|
|
|
40836
40836
|
table.emit("cell-mouse-enter", hoverState.row, hoverState.column, hoverState.cell, e);
|
|
40837
40837
|
}
|
|
40838
40838
|
const el2 = e.target.querySelector(".vc-table__text-line");
|
|
40839
|
-
|
|
40839
|
+
const line = typeof column.line !== "undefined" ? column.line : VcInstance.options.TableColumn?.line;
|
|
40840
|
+
if (!el2 || !line) return;
|
|
40840
40841
|
const value = `${row[column.prop]}`;
|
|
40841
40842
|
const endIndex = getFitIndex({
|
|
40842
40843
|
el: el2,
|
|
40843
40844
|
value,
|
|
40844
|
-
line
|
|
40845
|
+
line,
|
|
40845
40846
|
suffix: "..."
|
|
40846
40847
|
});
|
|
40847
40848
|
if (endIndex > 0 && endIndex < value.length - 1) {
|
|
@@ -40852,6 +40853,7 @@
|
|
|
40852
40853
|
hover: true,
|
|
40853
40854
|
alone: true,
|
|
40854
40855
|
autoWidth: true,
|
|
40856
|
+
placement: "top",
|
|
40855
40857
|
content: value
|
|
40856
40858
|
});
|
|
40857
40859
|
}
|
|
@@ -42150,7 +42152,7 @@
|
|
|
42150
42152
|
if (formatter) {
|
|
42151
42153
|
return column.formatter(rowData);
|
|
42152
42154
|
}
|
|
42153
|
-
const line = column.line
|
|
42155
|
+
const line = typeof column.line !== "undefined" ? column.line : VcInstance.options.TableColumn?.line;
|
|
42154
42156
|
if (line && value) {
|
|
42155
42157
|
const style2 = {
|
|
42156
42158
|
"-webkit-line-clamp": line
|
|
@@ -42209,11 +42211,7 @@
|
|
|
42209
42211
|
type: String,
|
|
42210
42212
|
default: "default"
|
|
42211
42213
|
},
|
|
42212
|
-
|
|
42213
|
-
line: {
|
|
42214
|
-
type: Number,
|
|
42215
|
-
default: 0
|
|
42216
|
-
},
|
|
42214
|
+
line: Number,
|
|
42217
42215
|
label: String,
|
|
42218
42216
|
labelClass: String,
|
|
42219
42217
|
prop: String,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
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.31",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.31",
|
|
24
|
+
"@deot/vc-shared": "^1.0.31"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|