Skip to content

Commit

Permalink
refactor(styles): 代码格式
Browse files Browse the repository at this point in the history
ISSUES CLOSED: \
  • Loading branch information
honghuangdc committed May 28, 2022
1 parent 07baac7 commit 8f6d6ce
Show file tree
Hide file tree
Showing 107 changed files with 110 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/App.vue
Expand Up @@ -20,4 +20,5 @@ const theme = useThemeStore();
subscribeStore();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/business/LoadingEmptyWrapper.vue
Expand Up @@ -91,4 +91,5 @@ onUnmounted(() => {
stopHandle();
});
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/business/LoginAgreement.vue
Expand Up @@ -44,4 +44,5 @@ function handleClickPolicy() {
emit('click-policy');
}
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/common/DarkModeContainer.vue
Expand Up @@ -15,4 +15,5 @@ withDefaults(defineProps<Props>(), {
inverted: false
});
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/common/DarkModeSwitch.vue
Expand Up @@ -36,4 +36,5 @@ function handleSwitch() {
darkMode.value = !darkMode.value;
}
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/common/HoverContainer.vue
Expand Up @@ -41,4 +41,5 @@ const computedClass = computed(() =>
[props.contentClass, props.inverted ? 'hover:bg-primary' : 'hover:bg-[#f6f6f6]'].join(' ')
);
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/common/SystemLogo.vue
Expand Up @@ -13,4 +13,5 @@ withDefaults(defineProps<Props>(), {
fill: false
});
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/custom/BetterScroll.vue
Expand Up @@ -44,4 +44,5 @@ onMounted(() => {
defineExpose({ instance });
</script>

<style scoped></style>
2 changes: 2 additions & 0 deletions src/components/custom/CountTo.vue
Expand Up @@ -106,3 +106,5 @@ onMounted(() => {
}
});
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/custom/IconSelect.vue
Expand Up @@ -66,6 +66,7 @@ function handleChange(iconItem: string) {
modelValue.value = iconItem;
}
</script>

<style lang="scss" scoped>
:deep(.n-input-wrapper) {
padding-right: 0;
Expand Down
1 change: 1 addition & 0 deletions src/components/custom/ImageVerify.vue
Expand Up @@ -36,4 +36,5 @@ watch(imgCode, newValue => {
defineExpose({ getImgCode });
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/components/custom/WebSiteLink.vue
Expand Up @@ -17,4 +17,5 @@ interface Props {
defineProps<Props>();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/BasicLayout/index.vue
Expand Up @@ -44,4 +44,5 @@ const { mode, headerProps, siderVisible, siderWidth, siderCollapsedWidth } = use
const { bool: addMainOverflowHidden, setBool: setAddMainOverflowHidden } = useBoolean();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/BlankLayout/index.vue
Expand Up @@ -5,4 +5,5 @@
<script setup lang="ts">
import { GlobalContent } from '../common';
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalContent/index.vue
Expand Up @@ -49,4 +49,5 @@ function handleAfterEnter() {
emit('hide-main-overflow', false);
}
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalFooter/index.vue
Expand Up @@ -5,4 +5,5 @@
</template>

<script setup lang="ts"></script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/components/FullScreen.vue
Expand Up @@ -12,4 +12,5 @@ import { useThemeStore } from '@/store';
const { isFullscreen, toggle } = useFullscreen();
const theme = useThemeStore();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/components/GithubSite.vue
Expand Up @@ -17,4 +17,5 @@ function handleClickLink() {
window.open('https://github.com/honghuangdc/soybean-admin', '_blank');
}
</script>

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

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/components/HeaderMenu.vue
Expand Up @@ -28,4 +28,5 @@ function handleUpdateMenu(_key: string, item: MenuOption) {
routerPush(menuItem.routePath);
}
</script>

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

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/components/ThemeMode.vue
Expand Up @@ -9,4 +9,5 @@ import { useThemeStore } from '@/store';
const theme = useThemeStore();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/components/UserAvatar.vue
Expand Up @@ -48,4 +48,5 @@ function handleDropdown(optionKey: string) {
}
}
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalHeader/index.vue
Expand Up @@ -45,6 +45,7 @@ defineProps<Props>();
const theme = useThemeStore();
</script>

<style scoped>
.global-header {
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);
Expand Down
1 change: 1 addition & 0 deletions src/layouts/common/GlobalLogo/index.vue
Expand Up @@ -21,4 +21,5 @@ defineProps<Props>();
const { title } = useAppInfo();
const routeHomePath = routePath('root');
</script>

<style scoped></style>
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/layouts/common/GlobalSearch/components/SearchModal.vue
Expand Up @@ -134,4 +134,5 @@ onKeyStroke('Enter', handleEnter);
onKeyStroke('ArrowUp', handleUp);
onKeyStroke('ArrowDown', handleDown);
</script>

<style lang="scss" scoped></style>
Expand Up @@ -59,4 +59,5 @@ function handleTo() {
emit('enter');
}
</script>
<style lang="scss" scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalSearch/index.vue
Expand Up @@ -24,4 +24,5 @@ function handleSearch() {
toggle();
}
</script>

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

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

<style scoped></style>
Expand Up @@ -73,6 +73,7 @@ watch(
{ immediate: true }
);
</script>

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

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

<style scoped></style>
Expand Up @@ -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>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalSider/index.vue
Expand Up @@ -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%);
Expand Down
Expand Up @@ -19,4 +19,5 @@ function handleRefresh() {
}, 1000);
}
</script>

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

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

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/GlobalTab/index.vue
Expand Up @@ -55,6 +55,7 @@ watch(
// 初始化
init();
</script>

<style scoped>
.global-tab {
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);
Expand Down
Expand Up @@ -15,4 +15,5 @@ import { useAppStore } from '@/store';
const app = useAppStore();
</script>

<style scoped></style>
Expand Up @@ -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);
Expand Down
Expand Up @@ -18,4 +18,5 @@ import { LayoutCheckbox } from './components';
const theme = useThemeStore();
</script>

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

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

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

<style scoped></style>
Expand Up @@ -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>
Expand Up @@ -45,4 +45,5 @@ function handleClose() {
emit('close');
}
</script>

<style scoped></style>
Expand Up @@ -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>
Expand Up @@ -56,4 +56,5 @@ onUnmounted(() => {
stopHandle();
});
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/layouts/common/SettingDrawer/index.vue
Expand Up @@ -18,4 +18,5 @@ import { DrawerButton, DarkMode, LayoutMode, ThemeColorSelect, PageFunc, PageVie

const app = useAppStore();
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/about/components/DevDependency.vue
Expand Up @@ -13,4 +13,5 @@ import { pkgJson } from './model';

const { devDependencies } = pkgJson;
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/about/components/ProDependency.vue
Expand Up @@ -13,4 +13,5 @@ import { pkgJson } from './model';

const { dependencies } = pkgJson;
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/about/components/ProjectInfo.vue
Expand Up @@ -23,4 +23,5 @@ import { pkgJson } from './model';
const { version } = pkgJson;
const latestBuildTime = PROJECT_BUILD_TIME;
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/about/components/ProjectIntroduction.vue
Expand Up @@ -8,4 +8,5 @@
</template>

<script setup lang="ts"></script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/about/index.vue
Expand Up @@ -10,4 +10,5 @@
<script setup lang="ts">
import { ProjectIntroduction, ProjectInfo, ProDependency, DevDependency } from './components';
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/auth-demo/permission/index.vue
Expand Up @@ -62,4 +62,5 @@ watch(
}
);
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/auth-demo/super/index.vue
Expand Up @@ -5,4 +5,5 @@
</template>

<script setup lang="ts"></script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/component/button/index.vue
Expand Up @@ -572,4 +572,5 @@ const buttonExample: ButtonExample[] = [
}
];
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/component/card/index.vue
Expand Up @@ -38,4 +38,5 @@
</template>

<script setup lang="ts"></script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/component/table/index.vue
Expand Up @@ -80,4 +80,5 @@ onMounted(() => {
getDataSource();
});
</script>

<style scoped></style>
Expand Up @@ -134,4 +134,5 @@ const tableData: TableData[] = [
}
];
</script>

<style scoped></style>
Expand Up @@ -21,4 +21,5 @@ const props = withDefaults(defineProps<Props>(), {

const gradientStyle = computed(() => `linear-gradient(to bottom right, ${props.startColor}, ${props.endColor})`);
</script>

<style scoped></style>
1 change: 1 addition & 0 deletions src/views/dashboard/analysis/components/DataCard/index.vue
Expand Up @@ -65,4 +65,5 @@ const cardData: CardData[] = [
}
];
</script>

<style scoped></style>

0 comments on commit 8f6d6ce

Please sign in to comment.