@deot/vc 1.0.62 → 1.0.63
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 +20 -10
- package/dist/index.umd.cjs +20 -10
- package/package.json +4 -4
package/dist/index.iife.js
CHANGED
|
@@ -14067,6 +14067,7 @@ var Vc = (function (exports, vue) {
|
|
|
14067
14067
|
const minute = vue.ref("");
|
|
14068
14068
|
const second = vue.ref("");
|
|
14069
14069
|
const millisecond = vue.ref("");
|
|
14070
|
+
const isComplete = vue.ref(false);
|
|
14070
14071
|
const showResult = vue.computed(() => {
|
|
14071
14072
|
return !props2.render && !slots.default;
|
|
14072
14073
|
});
|
|
@@ -14132,15 +14133,18 @@ var Vc = (function (exports, vue) {
|
|
|
14132
14133
|
millisecond.value = String(Math.floor(timestamp % 1e3 / (1e3 / msDividend.value)));
|
|
14133
14134
|
if (timestamp <= 0) {
|
|
14134
14135
|
stop();
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14136
|
+
if (!isComplete.value) {
|
|
14137
|
+
isComplete.value = true;
|
|
14138
|
+
emit("change", {
|
|
14139
|
+
timestamp: 0,
|
|
14140
|
+
day: "00",
|
|
14141
|
+
hour: "00",
|
|
14142
|
+
minute: "00",
|
|
14143
|
+
second: "00",
|
|
14144
|
+
millisecond: "00"
|
|
14145
|
+
});
|
|
14146
|
+
emit("complete");
|
|
14147
|
+
}
|
|
14144
14148
|
} else {
|
|
14145
14149
|
emit("change", {
|
|
14146
14150
|
timestamp,
|
|
@@ -14155,6 +14159,8 @@ var Vc = (function (exports, vue) {
|
|
|
14155
14159
|
const start = () => {
|
|
14156
14160
|
if (targetTimestamp.value) {
|
|
14157
14161
|
timer && clearInterval(timer);
|
|
14162
|
+
isComplete.value = false;
|
|
14163
|
+
run();
|
|
14158
14164
|
timer = setInterval(run, T.value);
|
|
14159
14165
|
}
|
|
14160
14166
|
};
|
|
@@ -27217,6 +27223,10 @@ var Vc = (function (exports, vue) {
|
|
|
27217
27223
|
const allowDrag = vue.computed(() => {
|
|
27218
27224
|
return typeof props2.resizable === "boolean" ? props2.resizable : props2.border;
|
|
27219
27225
|
});
|
|
27226
|
+
const dragLineClass = vue.computed(() => {
|
|
27227
|
+
if (props2.border || !props2.resizable) return;
|
|
27228
|
+
return "has-drag-line";
|
|
27229
|
+
});
|
|
27220
27230
|
const states = useStates({
|
|
27221
27231
|
columns: "columns",
|
|
27222
27232
|
isAllSelected: "isAllSelected",
|
|
@@ -27449,7 +27459,7 @@ var Vc = (function (exports, vue) {
|
|
|
27449
27459
|
"style": [getHeaderCellStyle(rowIndex, columnIndex, columns, column), {
|
|
27450
27460
|
width: `${column.realWidth}px`
|
|
27451
27461
|
}],
|
|
27452
|
-
"class": [getHeaderCellClass(rowIndex, columnIndex, columns, column), "vc-table__th"],
|
|
27462
|
+
"class": [getHeaderCellClass(rowIndex, columnIndex, columns, column), column.resizable && dragLineClass.value, "vc-table__th"],
|
|
27453
27463
|
"key": column.id
|
|
27454
27464
|
}, [vue.createVNode("div", {
|
|
27455
27465
|
"class": [
|
package/dist/index.umd.cjs
CHANGED
|
@@ -14070,6 +14070,7 @@
|
|
|
14070
14070
|
const minute = vue.ref("");
|
|
14071
14071
|
const second = vue.ref("");
|
|
14072
14072
|
const millisecond = vue.ref("");
|
|
14073
|
+
const isComplete = vue.ref(false);
|
|
14073
14074
|
const showResult = vue.computed(() => {
|
|
14074
14075
|
return !props2.render && !slots.default;
|
|
14075
14076
|
});
|
|
@@ -14135,15 +14136,18 @@
|
|
|
14135
14136
|
millisecond.value = String(Math.floor(timestamp % 1e3 / (1e3 / msDividend.value)));
|
|
14136
14137
|
if (timestamp <= 0) {
|
|
14137
14138
|
stop();
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14139
|
+
if (!isComplete.value) {
|
|
14140
|
+
isComplete.value = true;
|
|
14141
|
+
emit("change", {
|
|
14142
|
+
timestamp: 0,
|
|
14143
|
+
day: "00",
|
|
14144
|
+
hour: "00",
|
|
14145
|
+
minute: "00",
|
|
14146
|
+
second: "00",
|
|
14147
|
+
millisecond: "00"
|
|
14148
|
+
});
|
|
14149
|
+
emit("complete");
|
|
14150
|
+
}
|
|
14147
14151
|
} else {
|
|
14148
14152
|
emit("change", {
|
|
14149
14153
|
timestamp,
|
|
@@ -14158,6 +14162,8 @@
|
|
|
14158
14162
|
const start = () => {
|
|
14159
14163
|
if (targetTimestamp.value) {
|
|
14160
14164
|
timer && clearInterval(timer);
|
|
14165
|
+
isComplete.value = false;
|
|
14166
|
+
run();
|
|
14161
14167
|
timer = setInterval(run, T.value);
|
|
14162
14168
|
}
|
|
14163
14169
|
};
|
|
@@ -27220,6 +27226,10 @@
|
|
|
27220
27226
|
const allowDrag = vue.computed(() => {
|
|
27221
27227
|
return typeof props2.resizable === "boolean" ? props2.resizable : props2.border;
|
|
27222
27228
|
});
|
|
27229
|
+
const dragLineClass = vue.computed(() => {
|
|
27230
|
+
if (props2.border || !props2.resizable) return;
|
|
27231
|
+
return "has-drag-line";
|
|
27232
|
+
});
|
|
27223
27233
|
const states = useStates({
|
|
27224
27234
|
columns: "columns",
|
|
27225
27235
|
isAllSelected: "isAllSelected",
|
|
@@ -27452,7 +27462,7 @@
|
|
|
27452
27462
|
"style": [getHeaderCellStyle(rowIndex, columnIndex, columns, column), {
|
|
27453
27463
|
width: `${column.realWidth}px`
|
|
27454
27464
|
}],
|
|
27455
|
-
"class": [getHeaderCellClass(rowIndex, columnIndex, columns, column), "vc-table__th"],
|
|
27465
|
+
"class": [getHeaderCellClass(rowIndex, columnIndex, columns, column), column.resizable && dragLineClass.value, "vc-table__th"],
|
|
27456
27466
|
"key": column.id
|
|
27457
27467
|
}, [vue.createVNode("div", {
|
|
27458
27468
|
"class": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/vc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
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.63",
|
|
23
|
+
"@deot/vc-hooks": "^1.0.63",
|
|
24
|
+
"@deot/vc-shared": "^1.0.63"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "*"
|