Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0482d4

Browse files
committed
fix: monaco run error with production
1 parent04b9910 commita0482d4

File tree

16 files changed

+1093
-256
lines changed

16 files changed

+1093
-256
lines changed

‎.eslintrc.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = {
2323
],
2424
rules:{
2525
'vue/require-default-prop':'off',
26-
2726
'@typescript-eslint/ban-ts-comment':'off',
2827
'@typescript-eslint/no-explicit-any':'off',
2928
'@typescript-eslint/ban-types':'off',

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
# yarn.lock
1313
# package-lock.json
1414

15+
# Log files
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
pnpm-debug.log*
20+
1521
# IDEs and editors
1622
/.idea
1723
.project

‎.husky/common.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
command_exists () {
3+
command -v"$1">/dev/null2>&1
4+
}
5+
6+
# Workaround for Windows 10, Git Bash and Yarn
7+
if command_exists winpty&&test -t 1;then
8+
exec< /dev/tty
9+
fi

‎.husky/lintstagedrc.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports={
2+
'*.{js,jsx,ts,tsx}':['eslint --fix','prettier --write'],
3+
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}':['prettier --write--parser json'],
4+
'package.json':['prettier --write'],
5+
'*.vue':['eslint --fix','prettier --write','stylelint --fix'],
6+
'*.{scss,less,styl,html}':['stylelint --fix','prettier --write'],
7+
'*.md':['prettier --write']
8+
}

‎.husky/pre-commit‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/sh
22
."$(dirname"$0")/_/husky.sh"
3+
."$(dirname"$0")/common.sh"
34

4-
npx lint-staged
5+
[-n"$CI" ]&&exit 0
6+
7+
# Format and submit code according to lintstagedrc.js configuration
8+
npm run lint:lint-staged
9+
10+
npm run lint:pretty

‎.stylelintignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist/*
2+
/public/*
3+
public/*

‎README.md‎

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Vite2.x + Vue3.x + TypeScriptH5低代码平台
1+
#Vite2.x + Vue3.x + TypeScriptH5 低代码平台
22

33
##技术栈
44

@@ -7,8 +7,8 @@
77
- 前端框架:[Vue 3.x](https://v3.cn.vuejs.org/)
88
- 路由工具:[Vue Router 4.x](https://next.router.vuejs.org/zh/index.html)
99
- 状态管理:[Vuex 4.x](https://next.vuex.vuejs.org/)
10-
-PC端UI 框架:[Element Plus](https://element-plus.org/#/zh-CN)
11-
-H5端UI 框架:[vant](https://vant-contrib.gitee.io/vant/v3/#/zh-CN/)
10+
-PC 端 UI 框架:[Element Plus](https://element-plus.org/#/zh-CN)
11+
-H5 端 UI 框架:[vant](https://vant-contrib.gitee.io/vant/v3/#/zh-CN/)
1212
- CSS 预编译:[Stylus](https://stylus-lang.com/) /[Sass](https://sass.bootcss.com/documentation) /[Less](http://lesscss.cn/)
1313
- HTTP 工具:[Axios](https://axios-http.com/)
1414
- Git Hook 工具:[husky](https://typicode.github.io/husky/#/) +[lint-staged](https://github.com/okonet/lint-staged)
@@ -18,6 +18,7 @@
1818
- 自动部署:[GitHub Actions](https://docs.github.com/cn/actions/learn-github-actions)
1919

2020
###功能清单
21+
2122
-[x] 动态添加页面
2223
-[x] 拖拽式生成组件
2324
-[ ] service worker + indexeddb 实现无服务端的前端交互
@@ -27,9 +28,27 @@
2728
-[ ] 其他...
2829

2930
###简易说明
31+
3032
目前在使用表单时,需要把相关的`表单控件`放到`表单容器`内部,并且需要将`按钮`放到`表单容器`内,
3133
然后再讲`按钮的type`设置为`表单提交按钮`这时候点击提交按钮才会自动收集表单容器内部的所有字段和值
3234

35+
###提交规范
36+
37+
-`feat` 增加新功能
38+
-`fix` 修复问题/BUG
39+
-`style` 代码风格相关无影响运行结果的
40+
-`perf` 优化/性能提升
41+
-`refactor` 重构
42+
-`revert` 撤销修改
43+
-`test` 测试相关
44+
-`docs` 文档/注释
45+
-`build` 对构建系统或者外部依赖项进行了修改
46+
-`chore` 依赖更新/脚手架配置修改等
47+
-`workflow` 工作流改进
48+
-`ci` 持续集成
49+
-`types` 类型定义文件更改
50+
-`wip` 开发中
51+
3352
##快速开始
3453

3554
###安装依赖
@@ -51,4 +70,3 @@ npm run dev
5170
```sh
5271
npm run build
5372
```
54-

‎package.json‎

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@
1212
"format":"prettier --write ./src",
1313
"lint":"eslint ./src --ext .vue,.js,.ts,.tsx",
1414
"lint-fix":"eslint --fix ./src --ext .vue,.js,.ts,.tsx",
15+
"lint:eslint":"eslint\"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
16+
"lint:prettier":"prettier --write --loglevel warn\"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
17+
"lint:stylelint":"stylelint --fix\"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
18+
"lint:lint-staged":"lint-staged -c ./.husky/lintstagedrc.js",
19+
"lint:pretty":"pretty-quick --staged",
1520
"prepare":"husky install"
1621
},
1722
"dependencies": {
1823
"@vant/touch-emulator":"^1.2.0",
19-
"@vueuse/core":"^4.11.0",
20-
"@vueuse/integrations":"^4.11.0",
24+
"@vueuse/core":"^4.11.1",
25+
"@vueuse/integrations":"^4.11.1",
2126
"axios":"^0.21.1",
2227
"dayjs":"^1.10.4",
2328
"dexie":"^3.0.3",
@@ -27,42 +32,47 @@
2732
"normalize.css":"^8.0.1",
2833
"nprogress":"^1.0.0-1",
2934
"qrcode":"^1.4.4",
30-
"vant":"^3.0.16",
31-
"vue":"^3.1.0-beta.3",
35+
"vant":"^3.0.17",
36+
"vue":"^3.1.0-beta.4",
3237
"vue-router":"^4.0.8",
3338
"vuedraggable":"^4.0.1",
34-
"vuex":"^4.0.0"
39+
"vuex":"^4.0.1"
3540
},
3641
"devDependencies": {
3742
"@commitlint/cli":"^12.1.4",
3843
"@commitlint/config-conventional":"^12.1.4",
39-
"@types/node":"^14.17.0",
40-
"@typescript-eslint/eslint-plugin":"^4.24.0",
41-
"@typescript-eslint/parser":"^4.24.0",
44+
"@types/node":"^14.17.1",
45+
"@typescript-eslint/eslint-plugin":"^4.25.0",
46+
"@typescript-eslint/parser":"^4.25.0",
4247
"@vitejs/plugin-legacy":"^1.4.0",
4348
"@vitejs/plugin-vue":"^1.2.2",
4449
"@vitejs/plugin-vue-jsx":"^1.1.4",
45-
"@vue/compiler-sfc":"^3.1.0-beta.3",
50+
"@vue/compiler-sfc":"^3.1.0-beta.4",
4651
"commitizen":"^4.2.4",
4752
"cz-conventional-changelog":"^3.3.0",
4853
"cz-customizable":"^6.3.0",
49-
"eslint":"^7.26.0",
54+
"eslint":"^7.27.0",
5055
"eslint-config-prettier":"^8.3.0",
51-
"eslint-plugin-import":"^2.23.2",
56+
"eslint-plugin-import":"^2.23.3",
5257
"eslint-plugin-prettier":"^3.4.0",
5358
"eslint-plugin-vue":"^7.9.0",
5459
"gh-pages":"^3.1.0",
5560
"husky":"^6.0.0",
5661
"lint-staged":"^10.5.4",
5762
"prettier":"^2.3.0",
58-
"sass":"^1.32.13",
63+
"pretty-quick":"^3.1.0",
64+
"sass":"1.32.13",
65+
"stylelint":"^13.13.1",
66+
"stylelint-config-prettier":"^8.0.2",
67+
"stylelint-config-standard":"^22.0.0",
68+
"stylelint-order":"^4.1.0",
5969
"typescript":"^4.2.4",
60-
"vite":"2.3.3",
61-
"vite-plugin-components":"^0.9.1",
62-
"vite-plugin-style-import":"^0.10.0",
63-
"vite-plugin-windicss":"^0.16.0-beta.17",
70+
"vite":"2.3.4",
71+
"vite-plugin-components":"^0.10.2",
72+
"vite-plugin-style-import":"^0.10.1",
73+
"vite-plugin-windicss":"^0.16.0",
6474
"vue-eslint-parser":"^7.6.0",
65-
"vue-tsc":"^0.1.4",
75+
"vue-tsc":"^0.1.6",
6676
"windicss":"^2.5.14"
6777
},
6878
"repository": {

‎src/packages/base-widgets/checkbox/index.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ export default {
5151
)
5252
},
5353
props:{
54-
modelValue:createEditorInputProp({label:'默认值',defaultValue:[]}),
54+
modelValue:createEditorSelectProp({
55+
label:'默认值',
56+
options:[
57+
{label:'萝卜',val:'radish'},
58+
{label:'青菜',val:'greens'}
59+
],
60+
multiple:true,
61+
defaultValue:[]
62+
}),
5563
name:createEditorInputProp({label:'名称,提交表单的标识符',defaultValue:'checkbox'}),
5664
label:createEditorInputProp({label:'输入框左侧文本',defaultValue:'复选框'}),
5765
options:createEditorTableProp({

‎src/visual-editor/components/right-attribute-panel/components/table-prop-editor/table-prop-edit.service.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const ServiceComponent = defineComponent({
6666

6767
return()=>(
6868
<>
69-
<ElDialogmodelValue={state.showFlag}>
69+
<ElDialogv-model={state.showFlag}>
7070
{{
7171
default:()=>(
7272
<div>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp