Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@import scss 官方已不推荐使用,修改为 @use #527

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ErrorMessage/403.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const router = useRouter();
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/ErrorMessage/404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const router = useRouter();
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/ErrorMessage/500.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const router = useRouter();
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/ImportExcel/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,5 @@ defineExpose({
});
</script>
<style lang="scss" scoped>
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/Loading/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<script setup lang="ts" name="Loading"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/SelectFilter/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ const select = (item: SelectDataProps, option: OptionsProps) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/SelectIcon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ const iconsList = computed((): { [key: string]: any } => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/TreeFilter/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ defineExpose({ treeData, treeAllData, treeRef });
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/components/WangEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ defineExpose({
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/LayoutClassic/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ const activeMenu = computed(() => (route.meta.activeMenu ? route.meta.activeMenu
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/LayoutColumns/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ const changeSubMenu = (item: Menu.MenuOptions) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/LayoutTransverse/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ const handleClickMenu = (subItem: Menu.MenuOptions) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/LayoutVertical/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ const activeMenu = computed(() => (route.meta.activeMenu ? route.meta.activeMenu
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/components/Footer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
</template>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/components/Main/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ onBeforeUnmount(() => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/components/Tabs/components/MoreButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ const closeAllTab = () => {
</script>

<style scoped lang="scss">
@import "../index.scss";
@use "../index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/components/Tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ const tabRemove = (fullPath: TabPaneName) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/layouts/components/ThemeDrawer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,5 @@ mittBus.on("openThemeDrawer", () => (drawerVisible.value = true));
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/batchImport/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ const batchAdd = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/draggable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ let gridList = ref([
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/guide/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ const driverObj = driver({
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/selectFilter/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ const filterData = [
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/selectIcon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ const iconValue = ref("");
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/svgIcon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ import SvgIcon from "@/components/SvgIcon/index.vue";
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/treeFilter/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ const changeTreeFilter1 = (val: string[]) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/uploadFile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ const submit = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/assembly/wangEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ const dialogVisible = ref(false);
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/auth/button/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ const { BUTTONS } = useAuthButtons();
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/auth/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const handleToLogin = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/dashboard/dataVisualize/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ const tab = [
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/dataScreen/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ onBeforeUnmount(() => {
});
</script>
<style lang="scss" scoped>
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/copyDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ const data = ref<string>("我是被复制的内容 🍒 🍉 🍊");
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/debounceDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const debounceClick = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/dragDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<script setup lang="ts" name="dragDirect"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/longpressDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const longpress = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/throttleDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const throttleClick = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/directives/watermarkDirect/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<script setup lang="ts" name="watermarkDirect"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/columnChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,5 @@ const option: ECOption = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/lineChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ const option: ECOption = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/nestedChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ const option: ECOption = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/pieChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ const option: ECOption = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/radarChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ const option: ECOption = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/echarts/waterChart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,5 @@ const option = {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/form/basicForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ const onSubmit = () => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/form/dynamicForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ const resetForm = (formEl: FormInstance | undefined) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/form/proForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ const options = ref({
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/form/validateForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ const resetForm = (formEl: FormInstance | undefined) => {
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<script setup lang="ts" name="home"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/link/bing/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<script setup lang="ts" name="bing"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/link/docs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<script setup lang="ts" name="docs"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/link/gitee/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<script setup lang="ts" name="gitee"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/link/github/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<script setup lang="ts" name="github"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/link/juejin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
<script setup lang="ts" name="juejin"></script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
2 changes: 1 addition & 1 deletion src/views/login/components/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ onBeforeUnmount(() => {
</script>

<style scoped lang="scss">
@import "../index.scss";
@use "../index";
</style>
7 changes: 6 additions & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ import SwitchDark from "@/components/SwitchDark/index.vue";
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";

// 全局样式生效
// .login-box {
// background-color: $primary-color;
// }
</style>
2 changes: 1 addition & 1 deletion src/views/menu/menu1/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const value = ref<string>("");
</script>

<style scoped lang="scss">
@import "./index.scss";
@use "./index";
</style>
Loading