refactor(style): remove tailwind css

This commit is contained in:
nebv
2020-10-11 00:05:29 +08:00
parent 66b5616957
commit 03b6025d07
52 changed files with 513 additions and 505 deletions

View File

@@ -65,7 +65,7 @@ export default defineComponent({
return () => (
<>
<Breadcrumb class="layout-breadcrumb flex-grow">
<Breadcrumb class="layout-breadcrumb ">
{() => (
<>
<TransitionGroup name="breadcrumb">

View File

@@ -55,23 +55,17 @@ export default defineComponent({
const isSidebarType = menuType === MenuTypeEnum.SIDEBAR;
return (
<Layout.Header
class={[
'layout-header',
'bg-white flex p-0 px-4 justify-items-center',
unref(headerClass),
]}
>
<Layout.Header class={['layout-header', 'flex p-0 px-4 ', unref(headerClass)]}>
{() => (
<>
<div class="flex-grow flex justify-center items-center">
<div class="layout-header__content ">
{showLogo && !isSidebarType && <Logo class={`layout-header__logo`} />}
{mode !== MenuModeEnum.HORIZONTAL && showBreadCrumb && !splitMenu && (
<LayoutBreadcrumb />
)}
{(mode === MenuModeEnum.HORIZONTAL || splitMenu) && (
<div class={[`layout-header__menu flex-grow `, `justify-${topMenuAlign}`]}>
<div class={[`layout-header__menu `, `justify-${topMenuAlign}`]}>
<LayoutMenu
theme={headerTheme}
splitType={splitMenu ? MenuSplitTyeEnum.TOP : MenuSplitTyeEnum.NONE}

View File

@@ -191,9 +191,17 @@
height: @header-height;
padding: 0 20px 0 0;
color: @white;
background: @white;
align-items: center;
justify-content: space-between;
&__content {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}
&__header--light {
background: @white;
border-bottom: 1px solid @header-light-bottom-border-color;
@@ -334,6 +342,7 @@
margin-left: 20px;
overflow: hidden;
align-items: center;
flex-grow: 1;
}
&__user-dropdown {
@@ -398,4 +407,5 @@
.layout-breadcrumb {
padding: 0 16px;
flex-grow: 1;
}

View File

@@ -1,8 +1,5 @@
<template>
<div
@click="openDrawer"
class="setting-button bg-primary flex justify-center items-center text-white p-4 absolute z-10 cursor-pointer"
>
<div @click="openDrawer" class="setting-button">
<SettingOutlined :spin="true" />
<SettingDrawer @register="register" />
</div>
@@ -26,3 +23,18 @@
},
});
</script>
<style lang="less" scoped>
@import (reference) '../../../design/index.less';
.setting-button {
position: absolute;
z-index: 10;
display: flex;
padding: 10px;
color: @white;
cursor: pointer;
background: @primary-color;
justify-content: center;
align-items: center;
}
</style>