custom-variant-form 2.2.9 → 2.3.1

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/dist/demo.html ADDED
@@ -0,0 +1,10 @@
1
+ <meta charset="utf-8">
2
+ <title>VFormRender demo</title>
3
+ <script src="./VFormRender.umd.js"></script>
4
+
5
+ <link rel="stylesheet" href="./VFormRender.css">
6
+
7
+
8
+ <script>
9
+ console.log(VFormRender)
10
+ </script>
package/package.json CHANGED
@@ -1,12 +1,40 @@
1
1
  {
2
2
  "name": "custom-variant-form",
3
- "version": "2.2.9",
3
+ "version": "2.3.1",
4
4
  "private": false,
5
+ "description": "拖拽式可视化表单设计器,支持自定义组件扩展",
6
+ "main": "dist/VFormDesigner.common.js",
7
+ "module": "dist/VFormDesigner.umd.js",
8
+ "files": [
9
+ "dist",
10
+ "src",
11
+ "install.js",
12
+ "install-render.js"
13
+ ],
14
+ "keywords": [
15
+ "vue",
16
+ "form",
17
+ "designer",
18
+ "form-builder",
19
+ "form-designer",
20
+ "vue-form",
21
+ "element-ui"
22
+ ],
23
+ "author": "miaotang122",
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/your-username/custom-variant-form.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/your-username/custom-variant-form/issues"
31
+ },
32
+ "homepage": "https://github.com/your-username/custom-variant-form#readme",
5
33
  "scripts": {
6
34
  "serve": "vue-cli-service serve --open src/main.js",
7
35
  "build": "vue-cli-service build --report --dest dist/build",
8
- "lib": "vue-cli-service build --report --target lib --dest dist/lib --name VFormDesigner install.js",
9
- "lib-render": "vue-cli-service build --report --target lib --dest dist/lib-render --name VFormRender install-render.js",
36
+ "lib": "vue-cli-service build --report --target lib --dest dist --name VFormDesigner install.js",
37
+ "lib-render": "vue-cli-service build --report --target lib --dest dist --name VFormRender install-render.js",
10
38
  "lint": "vue-cli-service lint"
11
39
  },
12
40
  "dependencies": {
@@ -51,6 +79,6 @@
51
79
  "browserslist": [
52
80
  "> 1%",
53
81
  "last 2 versions",
54
- "not dead"
82
+ "not ie <= 8"
55
83
  ]
56
84
  }
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- '@vue/cli-plugin-babel/preset'
4
- ]
5
- }
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="renderer" content="webkit">
7
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
9
- <title><%= htmlWebpackPlugin.options.title %></title>
10
- </head>
11
- <body>
12
- <noscript>
13
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14
- </noscript>
15
-
16
- <div id="app"></div>
17
- <!-- built files will be auto injected -->
18
- </body>
19
- </html>
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="renderer" content="webkit">
7
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
- <!-- 禁止浏览器缓存index.html begin -->
9
- <meta http-equiv="Expires" content="0">
10
- <meta http-equiv="Pragma" content="no-cache">
11
- <meta http-equiv="Cache-control" content="no-cache">
12
- <meta http-equiv="Cache" content="no-cache">
13
- <!-- 禁止浏览器缓存index.html end -->
14
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
15
- <title><%= htmlWebpackPlugin.options.title %></title>
16
- <link rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/theme-chalk/index.min.css">
17
- </head>
18
- <body>
19
- <noscript>
20
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
21
- </noscript>
22
- <div id="app"></div>
23
- <!-- built files will be auto injected -->
24
-
25
- <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
26
- <script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/index.min.js"></script>
27
- </body>
28
- </html>
package/jsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "######": "本文件用于解决IDEA无法识别Vue项目@符号的问题",
3
- "compilerOptions": {
4
- "baseUrl": "./",
5
- "paths": {
6
- "@/*": ["src/*"]
7
- }
8
- },
9
- "exclude": ["node_modules", "dist"]
10
- }
Binary file
package/public/index.html DELETED
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="renderer" content="webkit">
7
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
9
- <title><%= htmlWebpackPlugin.options.title %></title>
10
- </head>
11
- <body>
12
- <noscript>
13
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14
- </noscript>
15
-
16
- <div id="app"></div>
17
- <!-- built files will be auto injected -->
18
- </body>
19
- </html>
package/vue.config.js DELETED
@@ -1,93 +0,0 @@
1
- 'use strict'
2
-
3
- const path = require('path')
4
- const IS_PROD = process.env.NODE_ENV === 'production'
5
-
6
- function resolve (dir) {
7
- return path.join(__dirname, dir)
8
- }
9
-
10
- const npmConfigArgv = (process.env.npm_config_argv === undefined) ? null : JSON.parse(process.env.npm_config_argv)
11
- /*
12
- console.log('npm config: ', npmConfigArgv)
13
- const procArgv = process.argv
14
- console.log('npm config: ', procArgv)
15
- */
16
- let buildProdFlag = false
17
- if (!!npmConfigArgv) {
18
- npmConfigArgv.original.forEach(cItem => {
19
- if (cItem === 'build') {
20
- buildProdFlag = true
21
- }
22
- })
23
- }
24
-
25
- const mvdir = require('mvdir');
26
- if (IS_PROD && buildProdFlag) {
27
- mvdir('index_template/index_prod.html', 'public/index.html', { copy: true });
28
- } else {
29
- mvdir('index_template/index_dev.html', 'public/index.html', { copy: true });
30
- }
31
-
32
-
33
- module.exports = {
34
- publicPath: './',
35
- assetsDir: './',
36
-
37
- /* 开启vue运行时模板编译功能!! */
38
- runtimeCompiler: true,
39
-
40
- lintOnSave: false,
41
-
42
- productionSourceMap: false,
43
-
44
- /* 指定node_modules目录中需要做babel转译的依赖库 */
45
- transpileDependencies: [
46
- 'element-ui', 'vuedraggable',
47
- ],
48
-
49
- css: {
50
- loaderOptions: {
51
- scss: {
52
- /* 自动引入全局scss文件 */
53
- prependData: `
54
- @import "./src/styles/global.scss";
55
- `
56
- }
57
- }
58
- },
59
-
60
- configureWebpack: (config) => {
61
- config.devtool = 'source-map'
62
- config.output.libraryExport = 'default' /* 解决import UMD打包文件时, 组件install方法执行报错的问题!! */
63
-
64
- if (IS_PROD && buildProdFlag) { /* 仅生产环境使用 */
65
- /* CDN打包,需要修改index.html加入CDN资源 */
66
- config.externals = {
67
- 'vue': 'Vue',
68
- 'element-ui': 'ELEMENT',
69
- //'quill': 'Quill',
70
- }
71
- }
72
- },
73
-
74
- chainWebpack: config => {
75
- /* 配置svg图标自动加载 begin */
76
- config.module
77
- .rule('svg')
78
- .exclude.add(resolve('src/icons'))
79
- .end()
80
- config.module
81
- .rule('icons')
82
- .test(/\.svg$/)
83
- .include.add(resolve('src/icons'))
84
- .end()
85
- .use('svg-sprite-loader')
86
- .loader('svg-sprite-loader')
87
- .options({
88
- symbolId: 'icon-[name]'
89
- })
90
- /* 配置svg图标自动加载 end */
91
- },
92
-
93
- }