bkui-vue 1.0.3-beta.3 → 1.0.3-beta.7
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.cjs.js +35 -35
- package/dist/index.esm.js +6278 -6257
- package/dist/index.umd.js +34 -34
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +2 -1
- package/lib/form/form.variable.css +1 -0
- package/lib/pagination/index.js +0 -1
- package/lib/plugin-popover/index.js +10 -5
- package/lib/popover/index.js +10 -5
- package/lib/styles/reset.css +3 -1
- package/lib/styles/reset.less +3 -1
- package/lib/styles/reset.variable.css +3 -1
- package/lib/table/index.d.ts +15 -0
- package/lib/table/index.js +273 -217
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/props.d.ts +9 -0
- package/lib/table/table.d.ts +7 -0
- package/lib/table/use-attributes.d.ts +1 -1
- package/lib/table/utils.d.ts +4 -3
- package/lib/table-column/index.js +7 -0
- package/package.json +1 -1
package/lib/form/form.css
CHANGED
package/lib/form/form.less
CHANGED
@@ -24,6 +24,7 @@
|
|
24
24
|
margin-bottom: 6px;
|
25
25
|
line-height: 20px;
|
26
26
|
text-align: left;
|
27
|
+
|
27
28
|
}
|
28
29
|
|
29
30
|
.@{bk-prefix}-form-content {
|
@@ -81,7 +82,7 @@
|
|
81
82
|
text-align: right;
|
82
83
|
text-align: right;
|
83
84
|
vertical-align: middle;
|
84
|
-
|
85
|
+
box-sizing: border-box;
|
85
86
|
}
|
86
87
|
.@{bk-prefix}-form-label-description {
|
87
88
|
cursor: pointer;
|
package/lib/pagination/index.js
CHANGED
@@ -573,7 +573,6 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
573
573
|
*/
|
574
574
|
var handlePageEditorBlur = function handlePageEditorBlur() {
|
575
575
|
isFocused.value = false;
|
576
|
-
inputRef.value.textContent = "".concat(inputMemo);
|
577
576
|
if (inputMemo !== localCurrent.value) {
|
578
577
|
localCurrent.value = inputMemo;
|
579
578
|
}
|
@@ -3424,14 +3424,19 @@ var parentNodeReferId = null;
|
|
3424
3424
|
storeEvents = null;
|
3425
3425
|
}
|
3426
3426
|
};
|
3427
|
+
var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
|
3428
|
+
var _elment$closest;
|
3429
|
+
return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
|
3430
|
+
};
|
3427
3431
|
var updateBoundary = function updateBoundary() {
|
3428
3432
|
var _resolvePopElements3 = resolvePopElements(),
|
3429
3433
|
elReference = _resolvePopElements3.elReference,
|
3430
3434
|
root = _resolvePopElements3.root;
|
3431
3435
|
if (isFullscreen.value) {
|
3436
|
+
var _fullScreenTarget$val;
|
3432
3437
|
var _ref6 = elReference || root || {},
|
3433
3438
|
parentNode = _ref6.parentNode;
|
3434
|
-
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value)
|
3439
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3435
3440
|
return;
|
3436
3441
|
}
|
3437
3442
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3439,13 +3444,13 @@ var parentNodeReferId = null;
|
|
3439
3444
|
var _usePopperId = use_popper_id(props, '#'),
|
3440
3445
|
getPrefixId = _usePopperId.getPrefixId;
|
3441
3446
|
var setFullscreenTag = function setFullscreenTag() {
|
3442
|
-
var _fullScreenTarget$
|
3443
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$
|
3447
|
+
var _fullScreenTarget$val2;
|
3448
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3444
3449
|
};
|
3445
3450
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3446
|
-
var _fullScreenTarget$
|
3451
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3447
3452
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3448
|
-
((_fullScreenTarget$
|
3453
|
+
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3449
3454
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3450
3455
|
});
|
3451
3456
|
};
|
package/lib/popover/index.js
CHANGED
@@ -3427,14 +3427,19 @@ var parentNodeReferId = null;
|
|
3427
3427
|
storeEvents = null;
|
3428
3428
|
}
|
3429
3429
|
};
|
3430
|
+
var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
|
3431
|
+
var _elment$closest;
|
3432
|
+
return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
|
3433
|
+
};
|
3430
3434
|
var updateBoundary = function updateBoundary() {
|
3431
3435
|
var _resolvePopElements3 = resolvePopElements(),
|
3432
3436
|
elReference = _resolvePopElements3.elReference,
|
3433
3437
|
root = _resolvePopElements3.root;
|
3434
3438
|
if (isFullscreen.value) {
|
3439
|
+
var _fullScreenTarget$val;
|
3435
3440
|
var _ref6 = elReference || root || {},
|
3436
3441
|
parentNode = _ref6.parentNode;
|
3437
|
-
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value)
|
3442
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3438
3443
|
return;
|
3439
3444
|
}
|
3440
3445
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3442,13 +3447,13 @@ var parentNodeReferId = null;
|
|
3442
3447
|
var _usePopperId = use_popper_id(props, '#'),
|
3443
3448
|
getPrefixId = _usePopperId.getPrefixId;
|
3444
3449
|
var setFullscreenTag = function setFullscreenTag() {
|
3445
|
-
var _fullScreenTarget$
|
3446
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$
|
3450
|
+
var _fullScreenTarget$val2;
|
3451
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3447
3452
|
};
|
3448
3453
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3449
|
-
var _fullScreenTarget$
|
3454
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3450
3455
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3451
|
-
((_fullScreenTarget$
|
3456
|
+
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3452
3457
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3453
3458
|
});
|
3454
3459
|
};
|
package/lib/styles/reset.css
CHANGED
package/lib/styles/reset.less
CHANGED
package/lib/table/index.d.ts
CHANGED
@@ -42,6 +42,9 @@ declare const BkTable: {
|
|
42
42
|
} & {
|
43
43
|
default: boolean;
|
44
44
|
};
|
45
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
46
|
+
default: () => any[];
|
47
|
+
};
|
45
48
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
46
49
|
default: () => import("./props").Thead;
|
47
50
|
};
|
@@ -363,6 +366,9 @@ declare const BkTable: {
|
|
363
366
|
} & {
|
364
367
|
default: boolean;
|
365
368
|
};
|
369
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
370
|
+
default: () => any[];
|
371
|
+
};
|
366
372
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
367
373
|
default: () => import("./props").Thead;
|
368
374
|
};
|
@@ -586,6 +592,7 @@ declare const BkTable: {
|
|
586
592
|
stripe: boolean;
|
587
593
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
588
594
|
showHead: boolean;
|
595
|
+
sortValFormat: any[];
|
589
596
|
virtualEnabled: boolean;
|
590
597
|
paginationHeight: number;
|
591
598
|
remotePagination: boolean;
|
@@ -650,6 +657,9 @@ declare const BkTable: {
|
|
650
657
|
} & {
|
651
658
|
default: boolean;
|
652
659
|
};
|
660
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
661
|
+
default: () => any[];
|
662
|
+
};
|
653
663
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
654
664
|
default: () => import("./props").Thead;
|
655
665
|
};
|
@@ -873,6 +883,7 @@ declare const BkTable: {
|
|
873
883
|
stripe: boolean;
|
874
884
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
875
885
|
showHead: boolean;
|
886
|
+
sortValFormat: any[];
|
876
887
|
virtualEnabled: boolean;
|
877
888
|
paginationHeight: number;
|
878
889
|
remotePagination: boolean;
|
@@ -934,6 +945,9 @@ declare const BkTable: {
|
|
934
945
|
} & {
|
935
946
|
default: boolean;
|
936
947
|
};
|
948
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
949
|
+
default: () => any[];
|
950
|
+
};
|
937
951
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
938
952
|
default: () => import("./props").Thead;
|
939
953
|
};
|
@@ -1240,6 +1254,7 @@ declare const BkTable: {
|
|
1240
1254
|
stripe: boolean;
|
1241
1255
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
1242
1256
|
showHead: boolean;
|
1257
|
+
sortValFormat: any[];
|
1243
1258
|
virtualEnabled: boolean;
|
1244
1259
|
paginationHeight: number;
|
1245
1260
|
remotePagination: boolean;
|