test: 测试提交
This commit is contained in:
parent
f1d54bd8d2
commit
efe206ac47
@ -1,40 +1,40 @@
|
|||||||
// @see: https://stylelint.io
|
// @see: https://stylelint.io
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
// 继承某些已有的规则
|
// 继承某些已有的规则
|
||||||
extends: [
|
extends: [
|
||||||
"stylelint-config-standard", // 配置 stylelint 拓展插件
|
"stylelint-config-standard", // 配置 stylelint 拓展插件
|
||||||
"stylelint-config-html/vue", // 配置 vue 中 template 样式格式化
|
"stylelint-config-html/vue", // 配置 vue 中 template 样式格式化
|
||||||
"stylelint-config-standard-scss", // 配置 stylelint scss 插件
|
"stylelint-config-standard-scss", // 配置 stylelint scss 插件
|
||||||
"stylelint-config-recommended-vue/scss", // 配置 vue 中 scss 样式格式化
|
"stylelint-config-recommended-vue/scss", // 配置 vue 中 scss 样式格式化
|
||||||
"stylelint-config-recess-order" // 配置 stylelint css 属性书写顺序插件,
|
"stylelint-config-recess-order" // 配置 stylelint css 属性书写顺序插件,
|
||||||
],
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
// 扫描 .vue/html 文件中的 <style> 标签内的样式
|
// 扫描 .vue/html 文件中的 <style> 标签内的样式
|
||||||
{
|
{
|
||||||
files: ["**/*.{vue,html}"],
|
files: ["**/*.{vue,html}"],
|
||||||
customSyntax: "postcss-html"
|
customSyntax: "postcss-html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
"function-url-quotes": "always", // URL 的引号 "always(必须加上引号)"|"never(没有引号)"
|
"function-url-quotes": "always", // URL 的引号 "always(必须加上引号)"|"never(没有引号)"
|
||||||
"color-hex-length": "long", // 指定 16 进制颜色的简写或扩写 "short(16进制简写)"|"long(16进制扩写)"
|
"color-hex-length": "long", // 指定 16 进制颜色的简写或扩写 "short(16进制简写)"|"long(16进制扩写)"
|
||||||
"rule-empty-line-before": "never", // 要求或禁止在规则之前的空行 "always(规则之前必须始终有一个空行)"|"never(规则前绝不能有空行)"|"always-multi-line(多行规则之前必须始终有一个空行)"|"never-multi-line(多行规则之前绝不能有空行)"
|
"rule-empty-line-before": "never", // 要求或禁止在规则之前的空行 "always(规则之前必须始终有一个空行)"|"never(规则前绝不能有空行)"|"always-multi-line(多行规则之前必须始终有一个空行)"|"never-multi-line(多行规则之前绝不能有空行)"
|
||||||
"font-family-no-missing-generic-family-keyword": null, // 禁止在字体族名称列表中缺少通用字体族关键字
|
"font-family-no-missing-generic-family-keyword": null, // 禁止在字体族名称列表中缺少通用字体族关键字
|
||||||
"scss/at-import-partial-extension": null, // 解决不能使用 @import 引入 scss 文件
|
"scss/at-import-partial-extension": null, // 解决不能使用 @import 引入 scss 文件
|
||||||
"property-no-unknown": null, // 禁止未知的属性
|
"property-no-unknown": null, // 禁止未知的属性
|
||||||
"no-empty-source": null, // 禁止空源码
|
"no-empty-source": null, // 禁止空源码
|
||||||
"selector-class-pattern": null, // 强制选择器类名的格式
|
"selector-class-pattern": null, // 强制选择器类名的格式
|
||||||
"value-no-vendor-prefix": null, // 关闭 vendor-prefix (为了解决多行省略 -webkit-box)
|
"value-no-vendor-prefix": null, // 关闭 vendor-prefix (为了解决多行省略 -webkit-box)
|
||||||
"no-descending-specificity": null, // 不允许较低特异性的选择器出现在覆盖较高特异性的选择器
|
"no-descending-specificity": null, // 不允许较低特异性的选择器出现在覆盖较高特异性的选择器
|
||||||
"value-keyword-case": null, // 解决在 scss 中使用 v-bind 大写单词报错
|
"value-keyword-case": null, // 解决在 scss 中使用 v-bind 大写单词报错
|
||||||
"selector-pseudo-class-no-unknown": [
|
"selector-pseudo-class-no-unknown": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
ignorePseudoClasses: ["global", "v-deep", "deep"]
|
ignorePseudoClasses: ["global", "v-deep", "deep"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
|
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
|
||||||
};
|
};
|
||||||
|
|||||||
52
src/App.vue
52
src/App.vue
@ -1,25 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { loadingPage } from "@/utils/loading-page";
|
import { loadingPage } from "@/utils/loading-page";
|
||||||
import { useThemeMethods } from "@/hooks/useThemeMethods";
|
import { useThemeMethods } from "@/hooks/useThemeMethods";
|
||||||
|
|
||||||
// 初始化主题
|
let a = "123";
|
||||||
const onTheme = () => {
|
|
||||||
let { initTheme } = useThemeMethods();
|
// 初始化主题
|
||||||
initTheme();
|
const onTheme = () => {
|
||||||
};
|
let { initTheme } = useThemeMethods();
|
||||||
onTheme();
|
initTheme();
|
||||||
|
};
|
||||||
// 加载动画
|
onTheme();
|
||||||
loadingPage.start();
|
|
||||||
onMounted(() => {
|
// 加载动画
|
||||||
loadingPage.done(200);
|
loadingPage.start();
|
||||||
});
|
onMounted(() => {
|
||||||
</script>
|
loadingPage.done(200);
|
||||||
|
});
|
||||||
<style lang="scss" scoped></style>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user