widget.qw 1.0.81 → 1.0.82
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/.env.development +9 -9
- package/.env.production +8 -8
- package/README.md +75 -75
- package/build/style.css +471 -471
- package/build/widget.qw.es.js +55 -56
- package/build/widget.qw.umd.js +55 -56
- package/index.html +17 -17
- package/package.json +47 -47
- package/src/App.vue +26 -26
- package/src/api/index.js +165 -165
- package/src/components/AuditBar.vue +396 -396
- package/src/components/BillCard.vue +164 -164
- package/src/components/CascaderPicker.vue +132 -132
- package/src/components/CascaderPop.vue +371 -371
- package/src/components/CheckGroup.vue +113 -113
- package/src/components/DatetimePicker/DatetimePop.vue +342 -342
- package/src/components/DatetimePicker/index.vue +124 -124
- package/src/components/DayDropdown.vue +56 -56
- package/src/components/FilePicker.vue +169 -169
- package/src/components/Input.vue +80 -80
- package/src/components/MonthDropdown.vue +51 -51
- package/src/components/MultiPicker.vue +123 -123
- package/src/components/ObjsEditor.vue +334 -334
- package/src/components/SecretNotify.js +5 -5
- package/src/components/Sheet.vue +92 -92
- package/src/components/SingleApiPicker.vue +108 -108
- package/src/components/SinglePicker.vue +102 -102
- package/src/components/SingleUserSelector.vue +425 -425
- package/src/components/Switch.vue +64 -64
- package/src/components/TreePicker.vue +113 -113
- package/src/components/UserPicker.vue +106 -106
- package/src/components/UserProfile.vue +129 -129
- package/src/components/UsersPicker.vue +118 -118
- package/src/components/YearDropdown.vue +59 -59
- package/src/components/data_selector.vue +303 -303
- package/src/components/image_picker.vue +123 -123
- package/src/components/images_picker.vue +195 -195
- package/src/components/index.js +162 -162
- package/src/components/mult_list_selector.vue +155 -155
- package/src/components/subdepartment_selector.vue +481 -481
- package/src/components/user_selector.vue +639 -639
- package/src/components/widget/DataPop.vue +95 -95
- package/src/components/widget/TreePop.vue +88 -88
- package/src/components/widget/UserPop.vue +347 -347
- package/src/env.d.ts +8 -8
- package/src/main.js +117 -117
- package/src/router/index.ts +173 -173
- package/src/util/array_util.js +32 -32
- package/src/util/auth_util.js +72 -73
- package/src/util/bool_util.js +5 -5
- package/src/util/bus.js +1 -1
- package/src/util/cache_util.js +18 -18
- package/src/util/errer_code.js +6 -6
- package/src/util/eval_util.js +19 -19
- package/src/util/icon_util.js +36 -36
- package/src/util/image_util.js +27 -27
- package/src/util/index.js +57 -57
- package/src/util/num_util.js +70 -70
- package/src/util/obj_util.js +28 -28
- package/src/util/request.js +73 -73
- package/src/util/request_json.js +71 -71
- package/src/util/request_json_mute.js +65 -65
- package/src/util/request_upload.js +79 -79
- package/src/util/route_util.js +31 -31
- package/src/util/str_util.js +143 -143
- package/src/util/time_util.js +406 -406
- package/src/util/toast_util.js +24 -24
- package/src/util/tree_util.js +153 -153
- package/src/util/uuid_util.js +9 -9
- package/src/util/validate.js +182 -182
- package/src/util/vue_filter.js +223 -223
- package/src/views/auditbar/index.vue +78 -78
- package/src/views/billcard/index.vue +48 -48
- package/src/views/cascaderpop/index.vue +90 -90
- package/src/views/checkgroup/index.vue +35 -35
- package/src/views/dataSelector/index.vue +48 -48
- package/src/views/datetimepicker/index.vue +34 -34
- package/src/views/daydropdown/index.vue +31 -31
- package/src/views/filepicker/index.vue +32 -32
- package/src/views/imagepicker/index.vue +31 -31
- package/src/views/imagespicker/index.vue +37 -37
- package/src/views/input/index.vue +35 -35
- package/src/views/monthdropdown/index.vue +31 -31
- package/src/views/multListSelector/index.vue +61 -61
- package/src/views/multipicker/index.vue +36 -36
- package/src/views/objseditor/index.vue +277 -277
- package/src/views/productSelector/index.vue +35 -35
- package/src/views/projectpicker/index.vue +41 -41
- package/src/views/secretnotify/index.vue +27 -27
- package/src/views/sheet/index.vue +45 -45
- package/src/views/singlepicker/index.vue +35 -35
- package/src/views/subdepartmentSelector/index.vue +40 -40
- package/src/views/switch/index.vue +34 -34
- package/src/views/treepicker/index.vue +41 -41
- package/src/views/userSelector/index.vue +54 -54
- package/src/views/userSelectorNew/index.vue +45 -45
- package/src/views/userpicker/index.vue +43 -43
- package/src/views/userprofile/index.vue +30 -30
- package/src/views/userspicker/index.vue +43 -43
- package/src/views/yeardropdown/index.vue +32 -32
- package/src/vm/index.js +1 -1
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
- package/vite.config.ts +122 -122
package/vite.config.ts
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import { defineConfig, loadEnv } from 'vite'
|
|
2
|
-
import vue from "@vitejs/plugin-vue";
|
|
3
|
-
import styleImport, { VantResolve } from "vite-plugin-style-import";
|
|
4
|
-
import { resolve } from "path"; // 主要用于alias文件路径别名
|
|
5
|
-
//vite版require
|
|
6
|
-
import requireTransform from "vite-plugin-require-transform";
|
|
7
|
-
const path = require("path");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export default defineConfig(({ mode }) => {
|
|
11
|
-
const env = loadEnv(mode, process.cwd(), "");
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
build: {
|
|
15
|
-
outDir: 'build',
|
|
16
|
-
target: 'es2015',
|
|
17
|
-
// minify: 'esbuild',
|
|
18
|
-
minify: false,
|
|
19
|
-
cssTarget: 'chrome80',
|
|
20
|
-
chunkSizeWarningLimit: 2000,
|
|
21
|
-
lib: {
|
|
22
|
-
entry: path.resolve(__dirname, "./src/components/index.js"), //指定组件编译入口文件
|
|
23
|
-
name: "widget.qw",
|
|
24
|
-
fileName: "widget.qw",
|
|
25
|
-
},
|
|
26
|
-
rollupOptions: {
|
|
27
|
-
// 确保外部化处理那些你不想打包进库的依赖
|
|
28
|
-
external: ["vue"],
|
|
29
|
-
output: {
|
|
30
|
-
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
31
|
-
globals: {
|
|
32
|
-
vue: "Vue",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
}, // rollup打包配置
|
|
36
|
-
},
|
|
37
|
-
//打包配置,一定要加,否则路径不对,找不到js/css文件
|
|
38
|
-
//作用:打包index.html中的js/css文件前加相对路径./
|
|
39
|
-
base: "./",
|
|
40
|
-
// 如果需要在客户端代码中注入非VITE_前缀的变量
|
|
41
|
-
define: {},
|
|
42
|
-
resolve: {
|
|
43
|
-
// 配置路径别名
|
|
44
|
-
alias: {
|
|
45
|
-
"@": path.resolve(__dirname, "./src"),
|
|
46
|
-
"*": resolve(""),
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
plugins: [
|
|
50
|
-
vue(),
|
|
51
|
-
// 引入vant的样式依赖
|
|
52
|
-
// styleImport({
|
|
53
|
-
// resolves: [VantResolve()],
|
|
54
|
-
// libs: [
|
|
55
|
-
// {
|
|
56
|
-
// libraryName: 'vant',
|
|
57
|
-
// esModule: true,
|
|
58
|
-
// resolveStyle: (name) => `../es/${name}/style`,
|
|
59
|
-
// },
|
|
60
|
-
// ],
|
|
61
|
-
// }),
|
|
62
|
-
//vite版require配置
|
|
63
|
-
requireTransform({
|
|
64
|
-
fileRegex: /.ts$|.vue$/,
|
|
65
|
-
}),
|
|
66
|
-
],
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
// export default {
|
|
71
|
-
// build: {
|
|
72
|
-
// outDir: 'build',
|
|
73
|
-
// target: 'es2015',
|
|
74
|
-
// // minify: 'esbuild',
|
|
75
|
-
// minify: false,
|
|
76
|
-
// cssTarget: 'chrome80',
|
|
77
|
-
// chunkSizeWarningLimit: 2000,
|
|
78
|
-
// lib: {
|
|
79
|
-
// entry: path.resolve(__dirname, "./src/components/index.js"), //指定组件编译入口文件
|
|
80
|
-
// name: "widget.qw",
|
|
81
|
-
// fileName: "widget.qw",
|
|
82
|
-
// },
|
|
83
|
-
// rollupOptions: {
|
|
84
|
-
// // 确保外部化处理那些你不想打包进库的依赖
|
|
85
|
-
// external: ["vue"],
|
|
86
|
-
// output: {
|
|
87
|
-
// // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
88
|
-
// globals: {
|
|
89
|
-
// vue: "Vue",
|
|
90
|
-
// },
|
|
91
|
-
// },
|
|
92
|
-
// }, // rollup打包配置
|
|
93
|
-
// },
|
|
94
|
-
// //打包配置,一定要加,否则路径不对,找不到js/css文件
|
|
95
|
-
// //作用:打包index.html中的js/css文件前加相对路径./
|
|
96
|
-
// base: "./",
|
|
97
|
-
// resolve: {
|
|
98
|
-
// // 配置路径别名
|
|
99
|
-
// alias: {
|
|
100
|
-
// "@": path.resolve(__dirname, "./src"),
|
|
101
|
-
// "*": resolve(""),
|
|
102
|
-
// },
|
|
103
|
-
// },
|
|
104
|
-
// plugins: [
|
|
105
|
-
// vue(),
|
|
106
|
-
// // 引入vant的样式依赖
|
|
107
|
-
// // styleImport({
|
|
108
|
-
// // resolves: [VantResolve()],
|
|
109
|
-
// // libs: [
|
|
110
|
-
// // {
|
|
111
|
-
// // libraryName: 'vant',
|
|
112
|
-
// // esModule: true,
|
|
113
|
-
// // resolveStyle: (name) => `../es/${name}/style`,
|
|
114
|
-
// // },
|
|
115
|
-
// // ],
|
|
116
|
-
// // }),
|
|
117
|
-
// //vite版require配置
|
|
118
|
-
// requireTransform({
|
|
119
|
-
// fileRegex: /.ts$|.vue$/,
|
|
120
|
-
// }),
|
|
121
|
-
// ],
|
|
122
|
-
// };
|
|
1
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
2
|
+
import vue from "@vitejs/plugin-vue";
|
|
3
|
+
import styleImport, { VantResolve } from "vite-plugin-style-import";
|
|
4
|
+
import { resolve } from "path"; // 主要用于alias文件路径别名
|
|
5
|
+
//vite版require
|
|
6
|
+
import requireTransform from "vite-plugin-require-transform";
|
|
7
|
+
const path = require("path");
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export default defineConfig(({ mode }) => {
|
|
11
|
+
const env = loadEnv(mode, process.cwd(), "");
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
build: {
|
|
15
|
+
outDir: 'build',
|
|
16
|
+
target: 'es2015',
|
|
17
|
+
// minify: 'esbuild',
|
|
18
|
+
minify: false,
|
|
19
|
+
cssTarget: 'chrome80',
|
|
20
|
+
chunkSizeWarningLimit: 2000,
|
|
21
|
+
lib: {
|
|
22
|
+
entry: path.resolve(__dirname, "./src/components/index.js"), //指定组件编译入口文件
|
|
23
|
+
name: "widget.qw",
|
|
24
|
+
fileName: "widget.qw",
|
|
25
|
+
},
|
|
26
|
+
rollupOptions: {
|
|
27
|
+
// 确保外部化处理那些你不想打包进库的依赖
|
|
28
|
+
external: ["vue"],
|
|
29
|
+
output: {
|
|
30
|
+
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
31
|
+
globals: {
|
|
32
|
+
vue: "Vue",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}, // rollup打包配置
|
|
36
|
+
},
|
|
37
|
+
//打包配置,一定要加,否则路径不对,找不到js/css文件
|
|
38
|
+
//作用:打包index.html中的js/css文件前加相对路径./
|
|
39
|
+
base: "./",
|
|
40
|
+
// 如果需要在客户端代码中注入非VITE_前缀的变量
|
|
41
|
+
define: {},
|
|
42
|
+
resolve: {
|
|
43
|
+
// 配置路径别名
|
|
44
|
+
alias: {
|
|
45
|
+
"@": path.resolve(__dirname, "./src"),
|
|
46
|
+
"*": resolve(""),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
plugins: [
|
|
50
|
+
vue(),
|
|
51
|
+
// 引入vant的样式依赖
|
|
52
|
+
// styleImport({
|
|
53
|
+
// resolves: [VantResolve()],
|
|
54
|
+
// libs: [
|
|
55
|
+
// {
|
|
56
|
+
// libraryName: 'vant',
|
|
57
|
+
// esModule: true,
|
|
58
|
+
// resolveStyle: (name) => `../es/${name}/style`,
|
|
59
|
+
// },
|
|
60
|
+
// ],
|
|
61
|
+
// }),
|
|
62
|
+
//vite版require配置
|
|
63
|
+
requireTransform({
|
|
64
|
+
fileRegex: /.ts$|.vue$/,
|
|
65
|
+
}),
|
|
66
|
+
],
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
// export default {
|
|
71
|
+
// build: {
|
|
72
|
+
// outDir: 'build',
|
|
73
|
+
// target: 'es2015',
|
|
74
|
+
// // minify: 'esbuild',
|
|
75
|
+
// minify: false,
|
|
76
|
+
// cssTarget: 'chrome80',
|
|
77
|
+
// chunkSizeWarningLimit: 2000,
|
|
78
|
+
// lib: {
|
|
79
|
+
// entry: path.resolve(__dirname, "./src/components/index.js"), //指定组件编译入口文件
|
|
80
|
+
// name: "widget.qw",
|
|
81
|
+
// fileName: "widget.qw",
|
|
82
|
+
// },
|
|
83
|
+
// rollupOptions: {
|
|
84
|
+
// // 确保外部化处理那些你不想打包进库的依赖
|
|
85
|
+
// external: ["vue"],
|
|
86
|
+
// output: {
|
|
87
|
+
// // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
88
|
+
// globals: {
|
|
89
|
+
// vue: "Vue",
|
|
90
|
+
// },
|
|
91
|
+
// },
|
|
92
|
+
// }, // rollup打包配置
|
|
93
|
+
// },
|
|
94
|
+
// //打包配置,一定要加,否则路径不对,找不到js/css文件
|
|
95
|
+
// //作用:打包index.html中的js/css文件前加相对路径./
|
|
96
|
+
// base: "./",
|
|
97
|
+
// resolve: {
|
|
98
|
+
// // 配置路径别名
|
|
99
|
+
// alias: {
|
|
100
|
+
// "@": path.resolve(__dirname, "./src"),
|
|
101
|
+
// "*": resolve(""),
|
|
102
|
+
// },
|
|
103
|
+
// },
|
|
104
|
+
// plugins: [
|
|
105
|
+
// vue(),
|
|
106
|
+
// // 引入vant的样式依赖
|
|
107
|
+
// // styleImport({
|
|
108
|
+
// // resolves: [VantResolve()],
|
|
109
|
+
// // libs: [
|
|
110
|
+
// // {
|
|
111
|
+
// // libraryName: 'vant',
|
|
112
|
+
// // esModule: true,
|
|
113
|
+
// // resolveStyle: (name) => `../es/${name}/style`,
|
|
114
|
+
// // },
|
|
115
|
+
// // ],
|
|
116
|
+
// // }),
|
|
117
|
+
// //vite版require配置
|
|
118
|
+
// requireTransform({
|
|
119
|
+
// fileRegex: /.ts$|.vue$/,
|
|
120
|
+
// }),
|
|
121
|
+
// ],
|
|
122
|
+
// };
|