diff --git a/package/component/src/component/table/index.less b/package/component/src/component/table/index.less
index 010d1609..f205795c 100644
--- a/package/component/src/component/table/index.less
+++ b/package/component/src/component/table/index.less
@@ -305,6 +305,11 @@
right: -1px;
}
+.layui-table-tool-self {
+ display: flex;
+ align-items: center;
+}
+
.layui-table-col-set {
position: absolute;
right: 0;
diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue
index d4b8209b..3fb5ce4b 100644
--- a/package/component/src/component/table/index.vue
+++ b/package/component/src/component/table/index.vue
@@ -682,6 +682,12 @@ const showToolbar = (toolbarName: string) => {
return props.defaultToolbar;
};
+const toolbarStyle = (toolbarName: string) => {
+ if (props.defaultToolbar instanceof Array) {
+ return { order: props.defaultToolbar.indexOf(toolbarName) } as StyleValue;
+ }
+}
+
onBeforeUnmount(() => {
window.onresize = null;
});
@@ -696,8 +702,9 @@ onBeforeUnmount(() => {