bkui-vue 2.0.1-beta.15.table.8 → 2.0.1-beta.15.table.9
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 +23 -23
- package/dist/index.esm.js +2627 -2624
- package/dist/index.umd.js +23 -23
- package/lib/index.js +1 -1
- package/lib/table/index.js +20 -14
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
|
|
4
4
|
export * from './config-provider';
|
5
5
|
export * from './directives';
|
6
6
|
export * as plugins from './plugins';
|
7
|
-
export const version = "2.0.1-beta.15.table.
|
7
|
+
export const version = "2.0.1-beta.15.table.9";
|
8
8
|
window.__bkui_vue_version__ = version;
|
package/lib/table/index.js
CHANGED
@@ -20950,17 +20950,19 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
20950
20950
|
return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head'), true), 'has-settings', !!props.settings));
|
20951
20951
|
});
|
20952
20952
|
var setFixedColumnShawdow = function setFixedColumnShawdow() {
|
20953
|
+
var _refRoot$value, _refRoot$value2;
|
20953
20954
|
var rightShawdow = offsetRight.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
|
20954
20955
|
var leftShawdow = translateX.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
|
20955
|
-
refRoot.value.style.setProperty('--shadow-right', rightShawdow);
|
20956
|
-
refRoot.value.style.setProperty('--shadow-left', leftShawdow);
|
20956
|
+
(_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.style) === null || _refRoot$value === void 0 || _refRoot$value.setProperty('--shadow-right', rightShawdow);
|
20957
|
+
(_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || (_refRoot$value2 = _refRoot$value2.style) === null || _refRoot$value2 === void 0 || _refRoot$value2.setProperty('--shadow-left', leftShawdow);
|
20957
20958
|
};
|
20958
20959
|
var setRootStyleVars = (0,shared_namespaceObject.throttle)(function () {
|
20959
|
-
|
20960
|
-
refRoot.value.style.setProperty('--drag-offset-
|
20961
|
-
refRoot.value.style.setProperty('--
|
20962
|
-
refRoot.value.style.setProperty('--translate-
|
20963
|
-
refRoot.value.style.setProperty('--translate-x
|
20960
|
+
var _refRoot$value3, _refRoot$value4, _refRoot$value5, _refRoot$value6, _refRoot$value7;
|
20961
|
+
(_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || (_refRoot$value3 = _refRoot$value3.style) === null || _refRoot$value3 === void 0 || _refRoot$value3.setProperty('--drag-offset-x', "".concat(dragOffsetX.value, "px"));
|
20962
|
+
(_refRoot$value4 = refRoot.value) === null || _refRoot$value4 === void 0 || (_refRoot$value4 = _refRoot$value4.style) === null || _refRoot$value4 === void 0 || _refRoot$value4.setProperty('--drag-offset-h-x', "".concat(dragOffsetX.value - 2, "px"));
|
20963
|
+
(_refRoot$value5 = refRoot.value) === null || _refRoot$value5 === void 0 || (_refRoot$value5 = _refRoot$value5.style) === null || _refRoot$value5 === void 0 || _refRoot$value5.setProperty('--translate-y', "".concat(translateY.value, "px"));
|
20964
|
+
(_refRoot$value6 = refRoot.value) === null || _refRoot$value6 === void 0 || (_refRoot$value6 = _refRoot$value6.style) === null || _refRoot$value6 === void 0 || _refRoot$value6.setProperty('--translate-x', "".concat(translateX.value, "px"));
|
20965
|
+
(_refRoot$value7 = refRoot.value) === null || _refRoot$value7 === void 0 || (_refRoot$value7 = _refRoot$value7.style) === null || _refRoot$value7 === void 0 || _refRoot$value7.setProperty('--translate-x-1', "-".concat(translateX.value, "px"));
|
20964
20966
|
setFixedColumnShawdow();
|
20965
20967
|
});
|
20966
20968
|
var setTranslateX = function setTranslateX(val) {
|
@@ -20972,11 +20974,12 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
20972
20974
|
setRootStyleVars();
|
20973
20975
|
};
|
20974
20976
|
var initRootStyleVars = function initRootStyleVars() {
|
20975
|
-
|
20976
|
-
refRoot.value.style.setProperty('--drag-offset-
|
20977
|
-
refRoot.value.style.setProperty('--
|
20978
|
-
refRoot.value.style.setProperty('--translate-
|
20979
|
-
refRoot.value.style.setProperty('--translate-x
|
20977
|
+
var _refRoot$value8, _refRoot$value9, _refRoot$value10, _refRoot$value11, _refRoot$value12;
|
20978
|
+
(_refRoot$value8 = refRoot.value) === null || _refRoot$value8 === void 0 || (_refRoot$value8 = _refRoot$value8.style) === null || _refRoot$value8 === void 0 || _refRoot$value8.setProperty('--drag-offset-x', '-1000px');
|
20979
|
+
(_refRoot$value9 = refRoot.value) === null || _refRoot$value9 === void 0 || (_refRoot$value9 = _refRoot$value9.style) === null || _refRoot$value9 === void 0 || _refRoot$value9.setProperty('--drag-offset-h-x', '-1000px');
|
20980
|
+
(_refRoot$value10 = refRoot.value) === null || _refRoot$value10 === void 0 || (_refRoot$value10 = _refRoot$value10.style) === null || _refRoot$value10 === void 0 || _refRoot$value10.setProperty('--translate-y', '0px');
|
20981
|
+
(_refRoot$value11 = refRoot.value) === null || _refRoot$value11 === void 0 || (_refRoot$value11 = _refRoot$value11.style) === null || _refRoot$value11 === void 0 || _refRoot$value11.setProperty('--translate-x', '0px');
|
20982
|
+
(_refRoot$value12 = refRoot.value) === null || _refRoot$value12 === void 0 || (_refRoot$value12 = _refRoot$value12.style) === null || _refRoot$value12 === void 0 || _refRoot$value12.setProperty('--translate-x-1', '0px');
|
20980
20983
|
};
|
20981
20984
|
var setDragOffsetX = function setDragOffsetX(val) {
|
20982
20985
|
dragOffsetX.value = val;
|
@@ -21297,6 +21300,9 @@ var usePagination = function usePagination(props) {
|
|
21297
21300
|
* 如果手动禁用分页,则禁用前端分页,否则启用前端分页
|
21298
21301
|
*/
|
21299
21302
|
var isEnabled = (0,external_vue_namespaceObject.ref)(true);
|
21303
|
+
var totalPage = (0,external_vue_namespaceObject.computed)(function () {
|
21304
|
+
return Math.ceil(pagination.count / pagination.limit);
|
21305
|
+
});
|
21300
21306
|
var setPagination = function setPagination(option) {
|
21301
21307
|
Object.assign(pagination, {
|
21302
21308
|
enabled: !!props.pagination
|
@@ -21304,7 +21310,7 @@ var usePagination = function usePagination(props) {
|
|
21304
21310
|
/**
|
21305
21311
|
* 如果分页组件启用了前端分页,则重置分页组件数据
|
21306
21312
|
*/
|
21307
|
-
if (pagination.current
|
21313
|
+
if (pagination.current > totalPage.value) {
|
21308
21314
|
pagination.current = 1;
|
21309
21315
|
}
|
21310
21316
|
};
|
@@ -21316,7 +21322,7 @@ var usePagination = function usePagination(props) {
|
|
21316
21322
|
return [props.pagination];
|
21317
21323
|
}, function () {
|
21318
21324
|
if (typeof_typeof(props.pagination) === 'object') {
|
21319
|
-
setPagination(props.pagination);
|
21325
|
+
setPagination((0,external_vue_namespaceObject.toRaw)(props.pagination));
|
21320
21326
|
}
|
21321
21327
|
/**
|
21322
21328
|
* 分页组件是否启用
|