Merge branch 'main' into base-sard-ui

This commit is contained in:
feige996 2025-06-22 10:09:06 +08:00
commit f500c48482
2 changed files with 34 additions and 22 deletions

30
.vscode/settings.json vendored
View File

@ -56,25 +56,25 @@
"eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" "eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*"
}, },
// // //
"prettier.enable": true, // "prettier.enable": true,
"editor.formatOnSave": true, // "editor.formatOnSave": true,
// // //
"editor.codeActionsOnSave": { // "editor.codeActionsOnSave": {
"source.fixAll": "explicit", // "source.fixAll": "explicit",
"source.fixAll.eslint": "explicit", // "source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit" // "source.fixAll.stylelint": "explicit"
}, // },
// Disable the default formatter, use eslint instead // Disable the default formatter, use eslint instead
// "prettier.enable": false, "prettier.enable": false,
// "editor.formatOnSave": false, "editor.formatOnSave": false,
// Auto fix // Auto fix
// "editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
// "source.fixAll.eslint": "explicit", "source.fixAll.eslint": "explicit",
// "source.organizeImports": "never" "source.organizeImports": "never"
// }, },
// Silent the stylistic rules in you IDE, but still auto fix them // Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [ "eslint.rules.customizations": [

View File

@ -27,12 +27,12 @@
" },", " },",
"}", "}",
"</route>\n", "</route>\n",
"<template>",
" <view class=\"\">$2</view>",
"</template>\n",
"<script lang=\"ts\" setup>", "<script lang=\"ts\" setup>",
"//$3", "//$3",
"</script>\n", "</script>\n",
"<template>",
" <view class=\"\">$2</view>",
"</template>\n",
"<style lang=\"scss\" scoped>", "<style lang=\"scss\" scoped>",
"//$4", "//$4",
"</style>\n", "</style>\n",
@ -41,16 +41,28 @@
"Print unibest style": { "Print unibest style": {
"scope": "vue", "scope": "vue",
"prefix": "st", "prefix": "st",
"body": ["<style lang=\"scss\" scoped>", "//", "</style>\n"], "body": [
"<style lang=\"scss\" scoped>",
"//",
"</style>\n"
],
}, },
"Print unibest script": { "Print unibest script": {
"scope": "vue", "scope": "vue",
"prefix": "sc", "prefix": "sc",
"body": ["<script lang=\"ts\" setup>", "//$3", "</script>\n"], "body": [
"<script lang=\"ts\" setup>",
"//$3",
"</script>\n"
],
}, },
"Print unibest template": { "Print unibest template": {
"scope": "vue", "scope": "vue",
"prefix": "te", "prefix": "te",
"body": ["<template>", " <view class=\"\">$1</view>", "</template>\n"], "body": [
"<template>",
" <view class=\"\">$1</view>",
"</template>\n"
],
}, },
} }