refactor(styles): 代码格式
ISSUES CLOSED: \
This commit is contained in:
parent
07baac7cf8
commit
8f6d6ce3cb
@ -20,4 +20,5 @@ const theme = useThemeStore();
|
||||
|
||||
subscribeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -91,4 +91,5 @@ onUnmounted(() => {
|
||||
stopHandle();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -44,4 +44,5 @@ function handleClickPolicy() {
|
||||
emit('click-policy');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -15,4 +15,5 @@ withDefaults(defineProps<Props>(), {
|
||||
inverted: false
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -36,4 +36,5 @@ function handleSwitch() {
|
||||
darkMode.value = !darkMode.value;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -41,4 +41,5 @@ const computedClass = computed(() =>
|
||||
[props.contentClass, props.inverted ? 'hover:bg-primary' : 'hover:bg-[#f6f6f6]'].join(' ')
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -13,4 +13,5 @@ withDefaults(defineProps<Props>(), {
|
||||
fill: false
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -44,4 +44,5 @@ onMounted(() => {
|
||||
|
||||
defineExpose({ instance });
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -106,3 +106,5 @@ onMounted(() => {
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -66,6 +66,7 @@ function handleChange(iconItem: string) {
|
||||
modelValue.value = iconItem;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
:deep(.n-input-wrapper) {
|
||||
padding-right: 0;
|
||||
|
@ -36,4 +36,5 @@ watch(imgCode, newValue => {
|
||||
|
||||
defineExpose({ getImgCode });
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -17,4 +17,5 @@ interface Props {
|
||||
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -44,4 +44,5 @@ const { mode, headerProps, siderVisible, siderWidth, siderCollapsedWidth } = use
|
||||
|
||||
const { bool: addMainOverflowHidden, setBool: setAddMainOverflowHidden } = useBoolean();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
<script setup lang="ts">
|
||||
import { GlobalContent } from '../common';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -49,4 +49,5 @@ function handleAfterEnter() {
|
||||
emit('hide-main-overflow', false);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -12,4 +12,5 @@ import { useThemeStore } from '@/store';
|
||||
const { isFullscreen, toggle } = useFullscreen();
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -17,4 +17,5 @@ function handleClickLink() {
|
||||
window.open('https://github.com/honghuangdc/soybean-admin', '_blank');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -47,4 +47,5 @@ function dropdownSelect(key: string) {
|
||||
routerPush({ name: key });
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -28,4 +28,5 @@ function handleUpdateMenu(_key: string, item: MenuOption) {
|
||||
routerPush(menuItem.routePath);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -11,4 +11,5 @@ import { useAppStore, useThemeStore } from '@/store';
|
||||
const app = useAppStore();
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -9,4 +9,5 @@ import { useThemeStore } from '@/store';
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -48,4 +48,5 @@ function handleDropdown(optionKey: string) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -45,6 +45,7 @@ defineProps<Props>();
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.global-header {
|
||||
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);
|
||||
|
@ -21,4 +21,5 @@ defineProps<Props>();
|
||||
const { title } = useAppInfo();
|
||||
const routeHomePath = routePath('root');
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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;
|
||||
|
@ -134,4 +134,5 @@ onKeyStroke('Enter', handleEnter);
|
||||
onKeyStroke('ArrowUp', handleUp);
|
||||
onKeyStroke('ArrowDown', handleDown);
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
@ -59,4 +59,5 @@ function handleTo() {
|
||||
emit('enter');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
@ -24,4 +24,5 @@ function handleSearch() {
|
||||
toggle();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
@ -10,4 +10,5 @@ import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -42,4 +42,5 @@ const { bool: isHover, setTrue, setFalse } = useBoolean();
|
||||
|
||||
const isActive = computed(() => props.routeName === props.activeRouteName);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -73,6 +73,7 @@ watch(
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.drawer-shadow {
|
||||
box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);
|
||||
|
@ -101,4 +101,5 @@ watch(
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -49,4 +49,5 @@ watch(
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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>
|
||||
|
@ -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%);
|
||||
|
@ -19,4 +19,5 @@ function handleRefresh() {
|
||||
}, 1000);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -131,4 +131,5 @@ function handleDropdown(optionKey: string) {
|
||||
hide();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -101,4 +101,5 @@ useEventListener(window, 'beforeunload', () => {
|
||||
setTabRoutes(tab.tabs);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -55,6 +55,7 @@ watch(
|
||||
// 初始化
|
||||
init();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.global-tab {
|
||||
box-shadow: 0 1px 2px rgb(0 21 41 / 8%);
|
||||
|
@ -15,4 +15,5 @@ import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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);
|
||||
|
@ -18,4 +18,5 @@ import { LayoutCheckbox } from './components';
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -70,4 +70,5 @@ import SettingMenu from '../SettingMenu/index.vue';
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -40,4 +40,5 @@ import SettingMenu from '../SettingMenu/index.vue';
|
||||
|
||||
const theme = useThemeStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -13,4 +13,5 @@ interface Props {
|
||||
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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>
|
||||
|
@ -45,4 +45,5 @@ function handleClose() {
|
||||
emit('close');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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>
|
||||
|
@ -56,4 +56,5 @@ onUnmounted(() => {
|
||||
stopHandle();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -18,4 +18,5 @@ import { DrawerButton, DarkMode, LayoutMode, ThemeColorSelect, PageFunc, PageVie
|
||||
|
||||
const app = useAppStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -13,4 +13,5 @@ import { pkgJson } from './model';
|
||||
|
||||
const { devDependencies } = pkgJson;
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -13,4 +13,5 @@ import { pkgJson } from './model';
|
||||
|
||||
const { dependencies } = pkgJson;
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -23,4 +23,5 @@ import { pkgJson } from './model';
|
||||
const { version } = pkgJson;
|
||||
const latestBuildTime = PROJECT_BUILD_TIME;
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -8,4 +8,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -10,4 +10,5 @@
|
||||
<script setup lang="ts">
|
||||
import { ProjectIntroduction, ProjectInfo, ProDependency, DevDependency } from './components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -62,4 +62,5 @@ watch(
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -572,4 +572,5 @@ const buttonExample: ButtonExample[] = [
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -38,4 +38,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -80,4 +80,5 @@ onMounted(() => {
|
||||
getDataSource();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -134,4 +134,5 @@ const tableData: TableData[] = [
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -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>
|
||||
|
@ -65,4 +65,5 @@ const cardData: CardData[] = [
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -186,4 +186,5 @@ const { domRef: pieRef } = useEcharts(
|
||||
darkMode
|
||||
);
|
||||
</script>
|
||||
<style></style>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -9,4 +9,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { TopChart, DataCard, BottomPart } from './components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -44,4 +44,5 @@ const statisticData: StatisticData[] = [
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -21,4 +21,5 @@ interface Props {
|
||||
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -38,4 +38,5 @@ function handleOpenSite() {
|
||||
window.open(props.site, '_blank');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -141,4 +141,5 @@ const shortcuts: Shortcuts[] = [
|
||||
{ id: 5, label: '图表', icon: 'mdi:chart-areaspline', iconColor: '#8aca6b' }
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -4,7 +4,9 @@
|
||||
<workbench-main />
|
||||
</n-space>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { WorkbenchHeader, WorkbenchMain } from './components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -7,4 +7,5 @@
|
||||
<script setup lang="ts">
|
||||
const src = 'https://www.naiveui.com/zh-CN/os-theme/docs/introduction';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -7,4 +7,5 @@
|
||||
<script setup lang="ts">
|
||||
const src = 'https://vitejs.cn/';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -7,4 +7,5 @@
|
||||
<script setup lang="ts">
|
||||
const src = 'https://staging-cn.vuejs.org/';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -7,4 +7,5 @@
|
||||
<script setup lang="ts">
|
||||
const src = 'https://v3.cn.vuejs.org/';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -5,4 +5,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -29,4 +29,5 @@ function handleCopy() {
|
||||
window.$message?.success(`复制成功:${source.value}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -46,4 +46,5 @@ onUnmounted(() => {
|
||||
stopHandle();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -32,6 +32,7 @@ onMounted(() => {
|
||||
renderWangEditor();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:deep(.w-e-toolbar) {
|
||||
background: inherit !important;
|
||||
|
@ -50,4 +50,5 @@ const selectValue = ref('');
|
||||
|
||||
const customIcons = [CustomActivity, CustomAtSign, CustomCast, CustomChrome, CustomCopy, CustomWind];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -24,4 +24,5 @@ onMounted(() => {
|
||||
renderBaiduMap();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -26,4 +26,5 @@ onMounted(() => {
|
||||
renderBaiduMap();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -26,4 +26,5 @@ onMounted(() => {
|
||||
renderBaiduMap();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -25,4 +25,5 @@ const maps: Map[] = [
|
||||
{ id: 'tencent', label: '腾讯地图', component: TencentMap }
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -35,4 +35,5 @@ function printImage() {
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -113,4 +113,5 @@ const swiperExample: SwiperExample[] = [
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -34,4 +34,5 @@ onUnmounted(() => {
|
||||
destroyXgPlayer();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -25,4 +25,5 @@ defineProps<Props>();
|
||||
|
||||
const routeHomePath = routeName('root');
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -57,4 +57,5 @@ function handleSubmit(e: MouseEvent) {
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -76,4 +76,5 @@ function handleSubmit(e: MouseEvent) {
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -37,4 +37,5 @@ withDefaults(defineProps<Props>(), {
|
||||
endColor: '#120fc4'
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -31,4 +31,5 @@ withDefaults(defineProps<Props>(), {
|
||||
endColor: '#120fc4'
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -24,4 +24,5 @@ const props = defineProps<Props>();
|
||||
const lightColor = computed(() => getColorPalette(props.themeColor, 3));
|
||||
const darkColor = computed(() => getColorPalette(props.themeColor, 6));
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -43,4 +43,5 @@ function login(userName: string, password: string) {
|
||||
emit('login', { userName, password });
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -10,4 +10,5 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -75,4 +75,5 @@ function handleLoginOtherAccount(param: { userName: string; password: string })
|
||||
login(userName, password);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user