初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
+160
View File
@@ -0,0 +1,160 @@
{
"mldong-art-design-dialog": {
"prefix": "dialog",
"body": [
"<template>",
" <Dialog> 我是弹窗内容 </Dialog>",
"</template>",
"<script setup lang=\"tsx\">",
" import { useDialog } from '@/components/dialog'",
" import { CrudMethods } from '@/components/crud'",
" const record = ref<any>({})",
" const crudApi = ref<CrudMethods>()",
" const [Dialog, dialogApi] = useDialog({",
" title: '我是标题',",
" width: '50%'",
" })",
" defineExpose({",
" show({ data, getCrudApi }: { data: any; getCrudApi: () => CrudMethods }) {",
" record.value = data",
" crudApi.value = getCrudApi()",
" dialogApi.open()",
" }",
" })",
"</script>",
"<style lang=\"scss\" scoped></style>",
""
],
"description": "生成mldong-art-design dialog模板"
},
"mldong-art-design-dialog-drawer": {
"prefix": "drawer",
"body": [
"<template>",
" <Dialog> 我是弹窗内容 </Dialog>",
"</template>",
"<script setup lang=\"tsx\">",
" import { useDialog } from '@/components/dialog'",
" import { CrudMethods } from '@/components/crud'",
" const record = ref<any>({})",
" const crudApi = ref<CrudMethods>()",
" const [Dialog, dialogApi] = useDialog({",
" title: '我是标题',",
" width: '50%',",
" dialogType: 'drawer'",
" })",
" defineExpose({",
" show({ data, getCrudApi }: { data: any; getCrudApi: () => CrudMethods }) {",
" record.value = data",
" crudApi.value = getCrudApi()",
" dialogApi.open()",
" }",
" })",
"</script>",
"<style lang=\"scss\" scoped></style>",
""
],
"description": "生成mldong-art-design dialog-drawer模板"
},
"mldong-art-design-dialog-form": {
"prefix": "dialog-form",
"body": [
"<template>",
" <Dialog>",
" <BasicForm />",
" </Dialog>",
"</template>",
"<script setup lang=\"tsx\">",
" import { useDialog } from '@/components/dialog'",
" import { CrudMethods } from '@/components/crud'",
" import { useForm } from '@/components/form'",
" const record = ref<any>({})",
" const crudApi = ref<CrudMethods>()",
" const [Dialog, dialogApi] = useDialog({",
" title: '我是标题',",
" width: '50%',",
" onConfirm() {",
" formApi.validate().then(async () => {",
" const values = await formApi.getValues()",
" console.log(values)",
" })",
" }",
" })",
" const [BasicForm, formApi] = useForm({",
" labelWidth: '120px',",
" schema: [",
" {",
" prop: 'name',",
" label: '姓名',",
" component: 'Input',",
" rules: [{ required: true, message: '请输入姓名' }]",
" }",
" ]",
" })",
" defineExpose({",
" show({ data, getCrudApi }: { data: any; getCrudApi: () => CrudMethods }) {",
" record.value = data",
" crudApi.value = getCrudApi()",
" dialogApi.open()",
" nextTick(() => {",
" formApi.setValues(record.value)",
" })",
" }",
" })",
"</script>",
"<style lang=\"scss\" scoped></style>"
],
"description": "生成mldong-art-design dialog-form模板"
},
"mldong-art-design-drawer-form": {
"prefix": "drawer-form",
"body": [
"<template>",
" <Dialog>",
" <BasicForm />",
" </Dialog>",
"</template>",
"<script setup lang=\"tsx\">",
" import { useDialog } from '@/components/dialog'",
" import { CrudMethods } from '@/components/crud'",
" import { useForm } from '@/components/form'",
" const record = ref<any>({})",
" const crudApi = ref<CrudMethods>()",
" const [Dialog, dialogApi] = useDialog({",
" title: '我是标题',",
" width: '50%',",
" dialogType: 'drawer',",
" onConfirm() {",
" formApi.validate().then(async () => {",
" const values = await formApi.getValues()",
" console.log(values)",
" })",
" }",
" })",
" const [BasicForm, formApi] = useForm({",
" labelWidth: '120px',",
" schema: [",
" {",
" prop: 'name',",
" label: '姓名',",
" component: 'Input',",
" rules: [{ required: true, message: '请输入姓名' }]",
" }",
" ]",
" })",
" defineExpose({",
" show({ data, getCrudApi }: { data: any; getCrudApi: () => CrudMethods }) {",
" record.value = data",
" crudApi.value = getCrudApi()",
" dialogApi.open()",
" nextTick(() => {",
" formApi.setValues(record.value)",
" })",
" }",
" })",
"</script>",
"<style lang=\"scss\" scoped></style>"
],
"description": "生成mldong-art-design drawer-form模板"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"recommendations": [
"vue.volar",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"lokalise.i18n-ally",
"bradlc.vscode-tailwindcss"
]
}
+20
View File
@@ -0,0 +1,20 @@
{
"volar.inlayHints.eventArgumentInInlineHandlers": true,
"i18n-ally.localesPaths": ["src/locales", "src/locales/langs"],
"editor.formatOnSave": true, // 启用保存时自动格式化
"editor.defaultFormatter": "esbenp.prettier-vscode", // 设置默认格式化工具为 Prettier
"css.lint.unknownAtRules": "ignore",
"i18n-ally.enabledParsers": ["json"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh",
"i18n-ally.enabledFrameworks": ["vue", "react"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
} // 设置默认格式化工具为 Prettier
}