refactor(styles): 代码格式

ISSUES CLOSED: \
This commit is contained in:
Soybean
2022-05-28 12:30:17 +08:00
parent 07baac7cf8
commit 8f6d6ce3cb
107 changed files with 110 additions and 1 deletions

View File

@ -44,4 +44,5 @@ const { mode, headerProps, siderVisible, siderWidth, siderCollapsedWidth } = use
const { bool: addMainOverflowHidden, setBool: setAddMainOverflowHidden } = useBoolean();
</script>
<style scoped></style>

View File

@ -5,4 +5,5 @@
<script setup lang="ts">
import { GlobalContent } from '../common';
</script>
<style scoped></style>

View File

@ -49,4 +49,5 @@ function handleAfterEnter() {
emit('hide-main-overflow', false);
}
</script>
<style scoped></style>

View File

@ -5,4 +5,5 @@
</template>
<script setup lang="ts"></script>
<style scoped></style>

View File

@ -12,4 +12,5 @@ import { useThemeStore } from '@/store';
const { isFullscreen, toggle } = useFullscreen();
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -17,4 +17,5 @@ function handleClickLink() {
window.open('https://github.com/honghuangdc/soybean-admin', '_blank');
}
</script>
<style scoped></style>

View File

@ -47,4 +47,5 @@ function dropdownSelect(key: string) {
routerPush({ name: key });
}
</script>
<style scoped></style>

View File

@ -28,4 +28,5 @@ function handleUpdateMenu(_key: string, item: MenuOption) {
routerPush(menuItem.routePath);
}
</script>
<style scoped></style>

View File

@ -11,4 +11,5 @@ import { useAppStore, useThemeStore } from '@/store';
const app = useAppStore();
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -9,4 +9,5 @@ import { useThemeStore } from '@/store';
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -48,4 +48,5 @@ function handleDropdown(optionKey: string) {
}
}
</script>
<style scoped></style>

View File

@ -45,6 +45,7 @@ defineProps<Props>();
const theme = useThemeStore();
</script>
<style scoped>
.global-header {
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);

View File

@ -21,4 +21,5 @@ defineProps<Props>();
const { title } = useAppInfo();
const routeHomePath = routePath('root');
</script>
<style scoped></style>

View File

@ -17,6 +17,7 @@
</template>
<script lang="ts" setup></script>
<style lang="scss" scoped>
.icon {
box-shadow: inset 0 -2px #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px #1e235a66;

View File

@ -134,4 +134,5 @@ onKeyStroke('Enter', handleEnter);
onKeyStroke('ArrowUp', handleUp);
onKeyStroke('ArrowDown', handleDown);
</script>
<style lang="scss" scoped></style>

View File

@ -59,4 +59,5 @@ function handleTo() {
emit('enter');
}
</script>
<style lang="scss" scoped></style>

View File

@ -24,4 +24,5 @@ function handleSearch() {
toggle();
}
</script>
<style lang="scss" scoped></style>

View File

@ -10,4 +10,5 @@ import { useAppStore } from '@/store';
const app = useAppStore();
</script>
<style scoped></style>

View File

@ -42,4 +42,5 @@ const { bool: isHover, setTrue, setFalse } = useBoolean();
const isActive = computed(() => props.routeName === props.activeRouteName);
</script>
<style scoped></style>

View File

@ -73,6 +73,7 @@ watch(
{ immediate: true }
);
</script>
<style scoped>
.drawer-shadow {
box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);

View File

@ -101,4 +101,5 @@ watch(
{ immediate: true }
);
</script>
<style scoped></style>

View File

@ -49,4 +49,5 @@ watch(
{ immediate: true }
);
</script>
<style scoped></style>

View File

@ -17,4 +17,5 @@ const theme = useThemeStore();
const isHorizontalMix = computed(() => theme.layout.mode === 'horizontal-mix');
const showTitle = computed(() => !app.siderCollapse && theme.layout.mode !== 'vertical-mix');
</script>
<style scoped></style>

View File

@ -12,6 +12,7 @@ const theme = useThemeStore();
const isVerticalMix = computed(() => theme.layout.mode === 'vertical-mix');
</script>
<style scoped>
.global-sider {
box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);

View File

@ -19,4 +19,5 @@ function handleRefresh() {
}, 1000);
}
</script>
<style scoped></style>

View File

@ -131,4 +131,5 @@ function handleDropdown(optionKey: string) {
hide();
}
</script>
<style scoped></style>

View File

@ -101,4 +101,5 @@ useEventListener(window, 'beforeunload', () => {
setTabRoutes(tab.tabs);
});
</script>
<style scoped></style>

View File

@ -55,6 +55,7 @@ watch(
// 初始化
init();
</script>
<style scoped>
.global-tab {
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);

View File

@ -15,4 +15,5 @@ import { useAppStore } from '@/store';
const app = useAppStore();
</script>
<style scoped></style>

View File

@ -65,6 +65,7 @@ const layoutConfig: LayoutConfig = {
const activeConfig = computed(() => layoutConfig[props.mode]);
</script>
<style scoped>
.layout-checkbox__shadow {
box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.18);

View File

@ -18,4 +18,5 @@ import { LayoutCheckbox } from './components';
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -70,4 +70,5 @@ import SettingMenu from '../SettingMenu/index.vue';
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -40,4 +40,5 @@ import SettingMenu from '../SettingMenu/index.vue';
const theme = useThemeStore();
</script>
<style scoped></style>

View File

@ -13,4 +13,5 @@ interface Props {
defineProps<Props>();
</script>
<style scoped></style>

View File

@ -23,4 +23,5 @@ const props = withDefaults(defineProps<Props>(), {
const whiteColors = ['#ffffff', '#fff', 'rgb(255,255,255)'];
const isWhite = computed(() => whiteColors.includes(props.color));
</script>
<style scoped></style>

View File

@ -45,4 +45,5 @@ function handleClose() {
emit('close');
}
</script>
<style scoped></style>

View File

@ -26,4 +26,5 @@ const { bool: visible, setTrue: openModal, setFalse: closeModal } = useBoolean()
const isInOther = computed(() => isInTraditionColors(theme.themeColor));
const otherColorBtnType = computed(() => (isInOther.value ? 'primary' : 'default'));
</script>
<style scoped></style>

View File

@ -56,4 +56,5 @@ onUnmounted(() => {
stopHandle();
});
</script>
<style scoped></style>

View File

@ -18,4 +18,5 @@ import { DrawerButton, DarkMode, LayoutMode, ThemeColorSelect, PageFunc, PageVie
const app = useAppStore();
</script>
<style scoped></style>