gcs-ui-lib 1.0.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/.env.development +5 -0
- package/.env.production +7 -0
- package/.eslintrc.js +5 -0
- package/README.md +97 -0
- package/_webpack.config.js +135 -0
- package/babel.config.js +16 -0
- package/lib/demo.html +10 -0
- package/lib/fonts/SIMSUN.5e0c362c.5e0c362c.ttf +0 -0
- package/lib/fonts/element-icons.535877f5.535877f5.woff +0 -0
- package/lib/fonts/element-icons.732389de.732389de.ttf +0 -0
- package/lib/fonts/iconfont.09d221ee.09d221ee.woff +0 -0
- package/lib/fonts/iconfont.1c4bfacc.1c4bfacc.ttf +0 -0
- package/lib/fonts/iconfont.a6f34dc7.a6f34dc7.woff2 +0 -0
- package/lib/fonts/iconfont.f4c32765.f4c32765.ttf +0 -0
- package/lib/gcs-ui-lib.common.js +106776 -0
- package/lib/gcs-ui-lib.css +3 -0
- package/lib/gcs-ui-lib.umd.js +106786 -0
- package/lib/gcs-ui-lib.umd.min.js +330 -0
- package/lib/img/bankbackground(1).e1f6e40f.jpg +0 -0
- package/lib/img/busibackground(2).7e09bf1f.jpg +0 -0
- package/lib/img/document.193a282d.svg +8 -0
- package/lib/img/folder.8e019792.svg +9 -0
- package/lib/img/icon.fc86764f.gif +0 -0
- package/npm +1 -0
- package/package.json +101 -0
- package/packages/AutoFillDetail/index.js +7 -0
- package/packages/AutoFillDetail/src/components/fillDetail.vue +188 -0
- package/packages/AutoFillDetail/src/demo/index.vue +18 -0
- package/packages/AutoFillDetail/src/main.vue +283 -0
- package/packages/AutoFillDetection/index.js +7 -0
- package/packages/AutoFillDetection/src/components/FillInfo.vue +36 -0
- package/packages/AutoFillDetection/src/components/HandEntred.vue +226 -0
- package/packages/AutoFillDetection/src/components/RuleHit.vue +105 -0
- package/packages/AutoFillDetection/src/components/SelectEntries.vue +192 -0
- package/packages/AutoFillDetection/src/components/config.js +359 -0
- package/packages/AutoFillDetection/src/demo/index.vue +18 -0
- package/packages/AutoFillDetection/src/main.vue +130 -0
- package/packages/AutoFillList/index.js +7 -0
- package/packages/AutoFillList/src/components/ImportRules.vue +407 -0
- package/packages/AutoFillList/src/components/ImportRulesDialog.vue +40 -0
- package/packages/AutoFillList/src/components/config.js +616 -0
- package/packages/AutoFillList/src/demo/index.vue +28 -0
- package/packages/AutoFillList/src/main.vue +559 -0
- package/packages/AutoFillRuleHistory/index.js +7 -0
- package/packages/AutoFillRuleHistory/src/demo/index.vue +23 -0
- package/packages/AutoFillRuleHistory/src/main.vue +422 -0
- package/packages/AutoFillService/index.js +7 -0
- package/packages/AutoFillService/src/components/BudgetAccountDialogForSetting.vue +588 -0
- package/packages/AutoFillService/src/components/BudgetAccountSettingDialog.vue +377 -0
- package/packages/AutoFillService/src/components/ConditionGroup.vue +413 -0
- package/packages/AutoFillService/src/components/CustomInput.vue +191 -0
- package/packages/AutoFillService/src/components/FillComponent.vue +371 -0
- package/packages/AutoFillService/src/components/SelectBudgetAccountDialog.vue +161 -0
- package/packages/AutoFillService/src/components/SelectDialog.vue +211 -0
- package/packages/AutoFillService/src/components/basic.vue +308 -0
- package/packages/AutoFillService/src/components/config.js +549 -0
- package/packages/AutoFillService/src/components/fillDetail.vue +145 -0
- package/packages/AutoFillService/src/components/fillRules.vue +787 -0
- package/packages/AutoFillService/src/components/paymentCategory.vue +297 -0
- package/packages/AutoFillService/src/components/paymentCategoryT.vue +292 -0
- package/packages/AutoFillService/src/customTemplate/FillBigDecimal.vue +50 -0
- package/packages/AutoFillService/src/customTemplate/FillDate.vue +54 -0
- package/packages/AutoFillService/src/customTemplate/FillInput.vue +33 -0
- package/packages/AutoFillService/src/customTemplate/FillMultiSelect.vue +70 -0
- package/packages/AutoFillService/src/customTemplate/FillSelect.vue +72 -0
- package/packages/AutoFillService/src/demo/index.vue +30 -0
- package/packages/AutoFillService/src/main.vue +432 -0
- package/packages/Bank/index.js +7 -0
- package/packages/Bank/src/demo/index.vue +18 -0
- package/packages/Bank/src/main.vue +70 -0
- package/packages/BranchBank/index.js +7 -0
- package/packages/BranchBank/src/demo/index.vue +18 -0
- package/packages/BranchBank/src/main.vue +97 -0
- package/packages/ConfigurableForm/index.js +7 -0
- package/packages/ConfigurableForm/src/components/config.js +63 -0
- package/packages/ConfigurableForm/src/components/detail.vue +158 -0
- package/packages/ConfigurableForm/src/demo/index.vue +279 -0
- package/packages/ConfigurableForm/src/main.vue +529 -0
- package/packages/DynamicForm/index.js +7 -0
- package/packages/DynamicForm/src/components/Amount.vue +51 -0
- package/packages/DynamicForm/src/components/AmountRange.vue +76 -0
- package/packages/DynamicForm/src/components/CheckboxGroup.vue +63 -0
- package/packages/DynamicForm/src/components/DMY.vue +126 -0
- package/packages/DynamicForm/src/components/Date.vue +51 -0
- package/packages/DynamicForm/src/components/DateRange.vue +51 -0
- package/packages/DynamicForm/src/components/Dialog.vue +247 -0
- package/packages/DynamicForm/src/components/Input.vue +48 -0
- package/packages/DynamicForm/src/components/InputNumber.vue +69 -0
- package/packages/DynamicForm/src/components/InputNumberRange.vue +47 -0
- package/packages/DynamicForm/src/components/LazySelect.vue +311 -0
- package/packages/DynamicForm/src/components/RadioGroup.vue +43 -0
- package/packages/DynamicForm/src/components/Rate.vue +57 -0
- package/packages/DynamicForm/src/components/Select.vue +307 -0
- package/packages/DynamicForm/src/components/Switch.vue +32 -0
- package/packages/DynamicForm/src/components/Textarea.vue +58 -0
- package/packages/DynamicForm/src/components/TimeSelect.vue +61 -0
- package/packages/DynamicForm/src/components/unitTreeSelect.vue +141 -0
- package/packages/DynamicForm/src/components/urlLinkInput.vue +100 -0
- package/packages/DynamicForm/src/demo/index.vue +486 -0
- package/packages/DynamicForm/src/fileUpload.js +232 -0
- package/packages/DynamicForm/src/formConfig.js +2910 -0
- package/packages/DynamicForm/src/helpers.js +18 -0
- package/packages/DynamicForm/src/main.vue +1095 -0
- package/packages/FileImport/index.js +7 -0
- package/packages/FileImport/src/demo/index.vue +29 -0
- package/packages/FileImport/src/main.vue +306 -0
- package/packages/MultiCurrencyStatistics/index.js +7 -0
- package/packages/MultiCurrencyStatistics/src/demo/index.vue +320 -0
- package/packages/MultiCurrencyStatistics/src/main.vue +200 -0
- package/packages/SelectTicket/index.js +7 -0
- package/packages/SelectTicket/src/Tree/index.vue +13 -0
- package/packages/SelectTicket/src/demo/index.vue +139 -0
- package/packages/SelectTicket/src/header.js +276 -0
- package/packages/SelectTicket/src/main.vue +581 -0
- package/packages/SelectTicket/src/printDialog/dialogO.vue +116 -0
- package/packages/SelectTicket/src/printDialog/index.vue +69 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/README.MD +6 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/mixins/index.js +35 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/obverse.vue +768 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/overview.vue +115 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/printList.vue +127 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/reverse.vue +205 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation//351/231/204/345/212/240/344/277/235/350/257/201/344/277/241/346/201/257/345/255/227/346/256/265/345/257/271/347/205/247.md +246 -0
- package/packages/SelectTicket/src/ticketDetail/dialog.vue +73 -0
- package/packages/SelectTicket/src/ticketDetail/img/bankbackground(1).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/busibackground(2).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon.gif +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon2.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/noData.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/index.vue +188 -0
- package/packages/SelectTreeUnit/index.js +7 -0
- package/packages/SelectTreeUnit/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnit/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnit/src/Tree/index.vue +239 -0
- package/packages/SelectTreeUnit/src/demo/index.vue +219 -0
- package/packages/SelectTreeUnit/src/forEachs.js +16 -0
- package/packages/SelectTreeUnit/src/main.vue +1136 -0
- package/packages/SelectTreeUnitForm/index.js +7 -0
- package/packages/SelectTreeUnitForm/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnitForm/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnitForm/src/Tree/index.vue +254 -0
- package/packages/SelectTreeUnitForm/src/demo/index.vue +230 -0
- package/packages/SelectTreeUnitForm/src/forEachs.js +16 -0
- package/packages/SelectTreeUnitForm/src/main.vue +1068 -0
- package/packages/StreamRefill/index.js +7 -0
- package/packages/StreamRefill/src/components/FillBigDecimal.vue +50 -0
- package/packages/StreamRefill/src/components/FillDate.vue +56 -0
- package/packages/StreamRefill/src/components/FillInput.vue +36 -0
- package/packages/StreamRefill/src/components/FillMultiSelect.vue +54 -0
- package/packages/StreamRefill/src/components/FillSelect.vue +51 -0
- package/packages/StreamRefill/src/demo/index.vue +254 -0
- package/packages/StreamRefill/src/main.vue +335 -0
- package/packages/Trade/index.js +7 -0
- package/packages/Trade/src/components/all/index.vue +913 -0
- package/packages/Trade/src/components/dynamicColumnMixin.js +69 -0
- package/packages/Trade/src/components/getDCloumn.js +15 -0
- package/packages/Trade/src/components/i18n.json +3337 -0
- package/packages/Trade/src/components/pendingEvent/index.vue +934 -0
- package/packages/Trade/src/components/server-config.js +60 -0
- package/packages/Trade/src/components/setUnitName.js +10 -0
- package/packages/Trade/src/components/specialHandle.js +171 -0
- package/packages/Trade/src/components/topendingTabs.js +21 -0
- package/packages/Trade/src/demo/index.vue +43 -0
- package/packages/Trade/src/main.vue +86 -0
- package/packages/ValidateQuota/index.js +58 -0
- package/packages/ValidateQuota/src/demo/index.vue +190 -0
- package/packages/ValidateQuota/src/main.vue +71 -0
- package/packages/ZipImport/index.js +7 -0
- package/packages/ZipImport/src/demo/index.vue +139 -0
- package/packages/ZipImport/src/main.vue +330 -0
- package/packages/approvel/index.js +8 -0
- package/packages/approvel/src/demo/index.vue +28 -0
- package/packages/approvel/src/main.vue +26 -0
- package/packages/approvel/src/progress.vue +167 -0
- package/packages/approvel/src/url.json +29 -0
- package/packages/extends/ElSelect.vue +180 -0
- package/packages/imgs/list-select.png +0 -0
- package/packages/imgs/list-unselect.png +0 -0
- package/packages/imgs/list.png +0 -0
- package/packages/imgs/tree-select.png +0 -0
- package/packages/imgs/tree-unselect.png +0 -0
- package/packages/imgs/tree.png +0 -0
- package/packages/inputTag/index.js +7 -0
- package/packages/inputTag/src/demo/index.vue +355 -0
- package/packages/inputTag/src/main.vue +502 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +19 -0
- package/src/App.vue +61 -0
- package/src/api/aims.js +8 -0
- package/src/api/common.js +254 -0
- package/src/api/fileApi.js +33 -0
- package/src/api/setting.js +249 -0
- package/src/config/appSettings.js +12 -0
- package/src/config/favicon.ico +0 -0
- package/src/css/autoFill.scss +252 -0
- package/src/css/selectTreeUnit.scss +254 -0
- package/src/filter/filter.js +1 -0
- package/src/filter/index.js +274 -0
- package/src/fonts/demo.css +539 -0
- package/src/fonts/iconfont.css +21 -0
- package/src/fonts/iconfont.js +1 -0
- package/src/fonts/iconfont.json +23 -0
- package/src/fonts/iconfont.ttf +0 -0
- package/src/index.js +161 -0
- package/src/locale/format.js +47 -0
- package/src/locale/index.js +48 -0
- package/src/locale/lang/cn2hk.json +1270 -0
- package/src/locale/lang/en.js +73 -0
- package/src/locale/lang/es.js +7 -0
- package/src/locale/lang/index.js +66 -0
- package/src/locale/lang/ja.js +7 -0
- package/src/locale/lang/zh.js +74 -0
- package/src/locale/lang/zht.js +27 -0
- package/src/main.js +49 -0
- package/src/preview/page/Aside/index.vue +60 -0
- package/src/preview/router.js +107 -0
- package/src/utils/auth.js +12 -0
- package/src/utils/directive/asciiWidth.js +107 -0
- package/src/utils/directive/clickOutside.js +21 -0
- package/src/utils/directive/vtitle.js +140 -0
- package/src/utils/excel.js +538 -0
- package/src/utils/index.js +581 -0
- package/src/utils/request.js +157 -0
- package/src/utils/requestCache.js +68 -0
- package/src/utils/session.js +36 -0
- package/src/utils/thems.js +62 -0
- package/src/utils/token.js +26 -0
- package/src/utils/tools.js +317 -0
- package/src/utils/utils.js +513 -0
- package/types/favicon.ico +0 -0
- package/vue.config.js +49 -0
package/.env.development
ADDED
package/.env.production
ADDED
package/.eslintrc.js
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# nstc_middleware
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
yarn install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Compiles and hot-reloads for development
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
yarn serve
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Compiles and minifies for production
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
yarn build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Compiles and minifies for npm publish
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
npm run lib
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Lints and fixes files
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
yarn lint
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Customize configuration
|
|
34
|
+
|
|
35
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
36
|
+
|
|
37
|
+
# 公共模块说明文件
|
|
38
|
+
|
|
39
|
+
## npm 上传包所需内容
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
var npm="u/p/e:nstc/Ninestar123456/chenlu@nstc.com.cn";
|
|
43
|
+
username: nstc
|
|
44
|
+
password: *******
|
|
45
|
+
email: chenlu@nstc.com.cn
|
|
46
|
+
|
|
47
|
+
上传步骤:
|
|
48
|
+
|
|
49
|
+
1、跟换到 npm config set registry https://registry.npmjs.org
|
|
50
|
+
2、确定包名不重复
|
|
51
|
+
3、登录npm:npm login
|
|
52
|
+
4、根据提示输入,用户信息
|
|
53
|
+
5、运行命令行 npm run lib 构建库文件
|
|
54
|
+
6、上传:npm publish。
|
|
55
|
+
|
|
56
|
+
注:每次发布package.json 中的 version的值一定要不一样!!!
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## 目录说明、规则说明
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
packages:公共组件
|
|
64
|
+
public: 预览工程的入口页面
|
|
65
|
+
/src/
|
|
66
|
+
api: 后端接口api
|
|
67
|
+
mixins:混入js
|
|
68
|
+
preview: 预览
|
|
69
|
+
config:配置
|
|
70
|
+
locale:语言包
|
|
71
|
+
theme:样式包
|
|
72
|
+
theme1:主题1
|
|
73
|
+
styles:样式
|
|
74
|
+
layout:布局
|
|
75
|
+
icons:图标
|
|
76
|
+
img:图片
|
|
77
|
+
js:js文件
|
|
78
|
+
utils:工具包
|
|
79
|
+
directive:指令包
|
|
80
|
+
store:vuex 状态管理
|
|
81
|
+
vendor:导入导出
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 使用淘宝镜像
|
|
86
|
+
### 背景
|
|
87
|
+
npm从国外下载, 很慢。
|
|
88
|
+
|
|
89
|
+
采用淘宝镜像,从国内下载, 较快
|
|
90
|
+
###设置淘宝镜像
|
|
91
|
+
npm config set registry http://registry.npm.taobao.org/
|
|
92
|
+
|
|
93
|
+
查看: npm get registry
|
|
94
|
+
###写法变化:
|
|
95
|
+
npm login -> npm adduser --registry http://registry.npmjs.org
|
|
96
|
+
|
|
97
|
+
npm publish --registry http://registry.npmjs.org
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
const path = require("path");
|
|
3
|
+
/**
|
|
4
|
+
* https://github.com/neutrinojs/webpack-chain
|
|
5
|
+
* config.merge([module.exports])
|
|
6
|
+
*/
|
|
7
|
+
const ARGV = process.argv
|
|
8
|
+
const NAME = process.env.VUE_APP_NAME
|
|
9
|
+
const NODE_ENV = process.env.NODE_ENV
|
|
10
|
+
|
|
11
|
+
process.env.VUE_APP_TestProduction = NODE_ENV === 'production' || ARGV.includes('--test')
|
|
12
|
+
|
|
13
|
+
/** webpack配置 */
|
|
14
|
+
const chainConfig = {
|
|
15
|
+
output: {
|
|
16
|
+
library: `${NAME}-[name]`,
|
|
17
|
+
libraryTarget: 'umd', // 把微应用打包成 umd 库格式
|
|
18
|
+
jsonpFunction: `webpackJsonp_${NAME}`,
|
|
19
|
+
/* 浏览器调试时文件映射路径问题 */
|
|
20
|
+
devtoolModuleFilenameTemplate: info => {
|
|
21
|
+
const { resourcePath, hash } = info
|
|
22
|
+
if (resourcePath === 'index.vue') {
|
|
23
|
+
return `webpack:///${resourcePath}?${Math.random()}`
|
|
24
|
+
} else {
|
|
25
|
+
return `webpack:///${resourcePath}?${hash}`
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
resolve: {
|
|
30
|
+
/* 路径别名 */
|
|
31
|
+
alias: {
|
|
32
|
+
'@': path.join(__dirname, 'src'),
|
|
33
|
+
'^': path.join(__dirname, 'packages')
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
/* 外部加载的模块,会忽略项目中再次引入 */
|
|
37
|
+
externals: {
|
|
38
|
+
// vue: 'Vue',
|
|
39
|
+
},
|
|
40
|
+
/* 独立打包第三方组件 */
|
|
41
|
+
optimization: {
|
|
42
|
+
splitChunks: {
|
|
43
|
+
cacheGroups: {
|
|
44
|
+
chartsg: {
|
|
45
|
+
name: 'chartsg',
|
|
46
|
+
test: module => {
|
|
47
|
+
return /echarts|zrender/.test(module.context)
|
|
48
|
+
},
|
|
49
|
+
priority: 10
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
/* different from webpack.config.js */
|
|
55
|
+
plugin: {
|
|
56
|
+
/* 生成稳定的模块id */
|
|
57
|
+
'hex-hash': {
|
|
58
|
+
plugin: require('webpack').HashedModuleIdsPlugin,
|
|
59
|
+
args: [
|
|
60
|
+
{
|
|
61
|
+
hashDigest: 'hex',
|
|
62
|
+
hashDigestLength: 8
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
/* 自动加载模块,并注册到全局 */
|
|
67
|
+
provide: {
|
|
68
|
+
plugin: require('webpack').ProvidePlugin,
|
|
69
|
+
args: [
|
|
70
|
+
{
|
|
71
|
+
_: 'lodash'
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* 使用gzip压缩 */
|
|
79
|
+
if (ARGV.includes('--gzip')) {
|
|
80
|
+
chainConfig.plugin['compression-gzip'] = {
|
|
81
|
+
plugin: require('compression-webpack-plugin'),
|
|
82
|
+
args: [
|
|
83
|
+
{
|
|
84
|
+
filename: '[path].gz[query]',
|
|
85
|
+
algorithm: 'gzip',
|
|
86
|
+
test: /\.(js|css|json|txt|svg)(\?.*)?$/i,
|
|
87
|
+
threshold: 2048,
|
|
88
|
+
minRatio: 0.8
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* 启动矩形式树状结构分析,并浏览器打开 */
|
|
95
|
+
if (ARGV.includes('--analy')) {
|
|
96
|
+
chainConfig.plugin['analyzer'] = {
|
|
97
|
+
plugin: require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* 查看无效代码 */
|
|
102
|
+
if (ARGV.includes('--seecode')) {
|
|
103
|
+
chainConfig.plugin['see-deadcode'] = {
|
|
104
|
+
plugin: require('webpack-deadcode-plugin'),
|
|
105
|
+
args: [
|
|
106
|
+
{
|
|
107
|
+
patterns: ['src/**/*.(js|jsx|css|vue|less)'],
|
|
108
|
+
exclude: ['**/*_.(js|jsx)']
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let _module = {}
|
|
115
|
+
if (process.env.NODE_ENV === 'production') {
|
|
116
|
+
// 生产环境去掉n20-common-lib样式,共门户的n20-common-lib样式,减少样式的重复引用、覆盖
|
|
117
|
+
_module.externals = {
|
|
118
|
+
'n20-common-lib/style/index.css': false,
|
|
119
|
+
// 新增全局排除
|
|
120
|
+
'vue': 'vue',
|
|
121
|
+
'n20-common-lib': 'n20-common-lib', // 添加基础库全局排除
|
|
122
|
+
'element-ui': 'element-ui'
|
|
123
|
+
}
|
|
124
|
+
// 生产环境去掉对登录页、门户框架的引用
|
|
125
|
+
_module.externals['n20-common-lib/src/components/Layout/index.vue'] = 'undefined'
|
|
126
|
+
_module.externals['n20-common-lib/src/components/LoginTemporary/index.vue'] = 'undefined'
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** module配置 */
|
|
130
|
+
const ureConfig = _module
|
|
131
|
+
|
|
132
|
+
module.exports = {
|
|
133
|
+
ureConfig,
|
|
134
|
+
chainConfig
|
|
135
|
+
}
|
package/babel.config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
['@vue/app', {
|
|
4
|
+
useBuiltIns: 'entry',
|
|
5
|
+
polyfills: [
|
|
6
|
+
'es.promise',
|
|
7
|
+
'es.symbol'
|
|
8
|
+
]
|
|
9
|
+
}]
|
|
10
|
+
],
|
|
11
|
+
plugins: [
|
|
12
|
+
'@babel/plugin-proposal-optional-chaining', // 添加这个插件支持可选链
|
|
13
|
+
"@babel/plugin-transform-dynamic-import",
|
|
14
|
+
"@babel/plugin-transform-modules-commonjs"
|
|
15
|
+
]
|
|
16
|
+
}
|
package/lib/demo.html
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|