diff --git a/.eslintrc.js b/.eslintrc.js index bb7ea0b..0bf1591 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,10 +2,5 @@ process.env.ESLINT_TSCONFIG = 'tsconfig.json' module.exports = { - extends: '@antfu', - rules: { - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - }, + extends: '@chansee97/eslint-config-vue', } diff --git a/build/plugins/vue.ts b/build/plugins/vue.ts index b9f4d43..0db90fa 100644 --- a/build/plugins/vue.ts +++ b/build/plugins/vue.ts @@ -5,6 +5,10 @@ import vueJsx from '@vitejs/plugin-vue-jsx' // https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx import VueDevTools from 'vite-plugin-vue-devtools' // https://github.com/webfansplz/vite-plugin-vue-devtools -const plugins = [vue(), vueJsx(), VueDevTools()] +const plugins = [vue({ + script: { + defineModel: true, + }, +}), vueJsx(), VueDevTools()] export default plugins diff --git a/package.json b/package.json index eae451a..1b77599 100644 --- a/package.json +++ b/package.json @@ -52,24 +52,22 @@ } }, "dependencies": { - "@vueuse/core": "^10.1.2", + "@vueuse/core": "^10.2.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", "axios": "^1.4.0", "crypto-js": "^4.1.1", "echarts": "^5.4.2", - "md-editor-v3": "^2.9.3", + "md-editor-v3": "^4.2.0", "pinia": "^2.1.3", "pinia-plugin-persist": "^1.0.0", - "qs": "^6.11.1", + "qs": "^6.11.2", "vue": "^3.3.4", "vue-qr": "^4.0.9", "vue-router": "^4.2.2" }, "devDependencies": { - "@antfu/eslint-config": "^0.39.5", - "@chansee97/commitlint-config": "^0.3.3", - "@chansee97/eslint-config-vue": "^0.3.3", + "@chansee97/eslint-config-vue": "^0.3.5", "@commitlint/cli": "^17.6.5", "@commitlint/config-conventional": "^17.6.5", "@iconify-json/icon-park-outline": "^1.1.11", diff --git a/src/components/custom/Editor/MdEditor.vue b/src/components/custom/Editor/MdEditor.vue new file mode 100644 index 0000000..d1645b6 --- /dev/null +++ b/src/components/custom/Editor/MdEditor.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/components/custom/Editor/RichEditor.vue b/src/components/custom/Editor/RichEditor.vue new file mode 100644 index 0000000..4f9577f --- /dev/null +++ b/src/components/custom/Editor/RichEditor.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/components/custom/Editor/index.ts b/src/components/custom/Editor/index.ts new file mode 100644 index 0000000..ccce941 --- /dev/null +++ b/src/components/custom/Editor/index.ts @@ -0,0 +1,4 @@ +import MdEditor from './MdEditor.vue' +import RichEditor from './RichEditor.vue' + +export { MdEditor, RichEditor } diff --git a/src/views/plugin/editor/md/index.vue b/src/views/plugin/editor/md/index.vue index 55c69f9..95d2452 100644 --- a/src/views/plugin/editor/md/index.vue +++ b/src/views/plugin/editor/md/index.vue @@ -1,15 +1,10 @@