yqform-edit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +20 -0
- package/LICENSE +21 -0
- package/README.md +27 -0
- package/dist/demo.html +10 -0
- package/dist/fonts/element-icons.535877f5.woff +0 -0
- package/dist/fonts/element-icons.732389de.ttf +0 -0
- package/dist/yqform-edit.common.js +73796 -0
- package/dist/yqform-edit.css +1 -0
- package/dist/yqform-edit.umd.js +73806 -0
- package/dist/yqform-edit.umd.min.js +23 -0
- package/package.json +59 -0
- package/src/App.vue +126 -0
- package/src/assets/global.scss +12 -0
- package/src/assets/images/content/add.png +0 -0
- package/src/assets/images/content/arrow-left.png +0 -0
- package/src/assets/images/content/arrow-right.png +0 -0
- package/src/assets/images/content/delete.png +0 -0
- package/src/assets/images/content/edit.png +0 -0
- package/src/assets/images/content/electricity.png +0 -0
- package/src/assets/images/content/item_plus.png +0 -0
- package/src/assets/images/content/radio_checked.png +0 -0
- package/src/assets/images/content/radio_uncheck.png +0 -0
- package/src/assets/images/content/slider_btn.png +0 -0
- package/src/assets/images/content/wifi.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/common/content/components/form-item/components/Picker.vue +144 -0
- package/src/components/common/content/components/form-item/form-item.vue +829 -0
- package/src/components/common/content/components/form-item/index.js +5 -0
- package/src/components/common/content/components/input-box/input-box.vue +29 -0
- package/src/components/common/content/content.vue +504 -0
- package/src/components/common/content/index.js +5 -0
- package/src/components/common/rightConfig/formConfig.vue +319 -0
- package/src/components/dynamic-form/components/component-content.vue +530 -0
- package/src/components/dynamic-form/components/component-options.vue +1112 -0
- package/src/components/dynamic-form/components/component-type.vue +588 -0
- package/src/components/dynamic-form/dynamic-form.vue +120 -0
- package/src/components/dynamic-form/index.js +40 -0
- package/src/index.js +69 -0
- package/src/main.js +62 -0
- package/src/store/e7ingForm.js +10 -0
- package/src/store/getters.js +22 -0
- package/src/store/index.js +10 -0
- package/src/store/mutations.js +106 -0
- package/src/store/state.js +321 -0
- package/src/utils/index.js +23 -0
package/.prettierrc
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"arrowParens": "always",
|
|
3
|
+
"bracketSameLine": true,
|
|
4
|
+
"bracketSpacing": true,
|
|
5
|
+
"embeddedLanguageFormatting": "auto",
|
|
6
|
+
"htmlWhitespaceSensitivity": "css",
|
|
7
|
+
"insertPragma": false,
|
|
8
|
+
"jsxSingleQuote": false,
|
|
9
|
+
"printWidth": 120,
|
|
10
|
+
"proseWrap": "never",
|
|
11
|
+
"quoteProps": "as-needed",
|
|
12
|
+
"requirePragma": false,
|
|
13
|
+
"semi": false,
|
|
14
|
+
"singleQuote": true,
|
|
15
|
+
"tabWidth": 2,
|
|
16
|
+
"trailingComma": "all",
|
|
17
|
+
"useTabs": false,
|
|
18
|
+
"vueIndentScriptAndStyle": false,
|
|
19
|
+
"singleAttributePerLine": false
|
|
20
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 heart
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# questionnaire
|
|
2
|
+
|
|
3
|
+
### 项目启动
|
|
4
|
+
|
|
5
|
+
安装依赖:`yarn`
|
|
6
|
+
启动:`npm run serve`
|
|
7
|
+
|
|
8
|
+
### 打包发布
|
|
9
|
+
|
|
10
|
+
打包命令:`npm run lib`
|
|
11
|
+
发布命令: `npm publish`
|
|
12
|
+
|
|
13
|
+
### 自定义事件
|
|
14
|
+
`handleCoverImg`: 用于处理图片的上传,上传图片会在`afterRead`之后触发该自定义事件,将文件对象传递到项目中自行处理,
|
|
15
|
+
所返回的文件对象包含以下属性:
|
|
16
|
+
```javascript
|
|
17
|
+
{
|
|
18
|
+
message: '', // 上传提示信息
|
|
19
|
+
status: '', // 上传状态,done表示已完成
|
|
20
|
+
lastModified: '', // 最后修改时间戳
|
|
21
|
+
lastModifiedDate: '', // 最后修改日期对象
|
|
22
|
+
name: '', // 上传文件名称
|
|
23
|
+
size: '', // 上传文件大小(单位:bytes)
|
|
24
|
+
type: '', // 文件类型
|
|
25
|
+
webkitRelativePath: ''
|
|
26
|
+
}
|
|
27
|
+
```
|
package/dist/demo.html
ADDED
|
Binary file
|
|
Binary file
|