yks-element 1.3.7 → 1.3.9
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/lib/bin/pack.js +13 -14
- package/lib/theme-chalk/common.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/tinymce.css +1 -1
- package/lib/yks.js +1 -1
- package/package.json +1 -1
package/lib/bin/pack.js
CHANGED
|
@@ -17,40 +17,39 @@ const NPM_APP_PRE_URL = 'https://glpre.yks365.net'
|
|
|
17
17
|
const NPM_APP_PROD_URL = 'https://gl.yks365.net'
|
|
18
18
|
const packages = require('../../package.json')
|
|
19
19
|
|
|
20
|
-
const getConfig = (version) => {
|
|
20
|
+
const getConfig = (version, url) => {
|
|
21
|
+
const cdn = url || NPM_APP_CDN_URL
|
|
21
22
|
let cdnConfigs = [
|
|
22
23
|
{
|
|
23
24
|
name: 'vue',
|
|
24
25
|
library: 'Vue',
|
|
25
|
-
js: `${
|
|
26
|
-
dev: `${
|
|
26
|
+
js: `${cdn}/cdn/vue.min@2.6.11.js`,
|
|
27
|
+
dev: `${cdn}/cdn/vue@2.6.11.js`,
|
|
27
28
|
css: ''
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
name: 'vuex',
|
|
31
32
|
library: 'Vuex',
|
|
32
|
-
js: `${
|
|
33
|
+
js: `${cdn}/cdn/vuex.min@3.3.0.js`,
|
|
33
34
|
css: ''
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
name: 'vue-router',
|
|
37
38
|
library: 'VueRouter',
|
|
38
|
-
js: `${
|
|
39
|
+
js: `${cdn}/cdn/vue-router@3.5.3.js`,
|
|
39
40
|
css: ''
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
name: 'axios',
|
|
43
44
|
library: 'axios',
|
|
44
|
-
js: `${
|
|
45
|
+
js: `${cdn}/cdn/axios.min@0.19.2.js`,
|
|
45
46
|
css: ''
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
name: 'yks-element',
|
|
49
50
|
library: 'YKSEMENT',
|
|
50
|
-
js: `${
|
|
51
|
-
css: `${
|
|
52
|
-
version || packages.version
|
|
53
|
-
}/theme-chalk/index.css`
|
|
51
|
+
js: `${cdn}/yks-element/${version || packages.version}/yks.js`,
|
|
52
|
+
css: `${cdn}/yks-element/${version || packages.version}/theme-chalk/index.css`
|
|
54
53
|
},
|
|
55
54
|
{
|
|
56
55
|
name: 'lodash',
|
|
@@ -60,13 +59,13 @@ const getConfig = (version) => {
|
|
|
60
59
|
amd: 'lodash',
|
|
61
60
|
root: '_'
|
|
62
61
|
},
|
|
63
|
-
js: `${
|
|
62
|
+
js: `${cdn}/cdn/lodash.min@4.17.15.js`,
|
|
64
63
|
css: ''
|
|
65
64
|
},
|
|
66
65
|
{
|
|
67
66
|
name: 'echarts',
|
|
68
67
|
library: 'echarts',
|
|
69
|
-
js: `${
|
|
68
|
+
js: `${cdn}/cdn/echarts.min@4.7.0.js`,
|
|
70
69
|
css: ''
|
|
71
70
|
}
|
|
72
71
|
]
|
|
@@ -82,8 +81,8 @@ const externals = () => {
|
|
|
82
81
|
return externals
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
const cdn = (env, version) => {
|
|
86
|
-
const cdnConfig = getConfig(version)
|
|
84
|
+
const cdn = (env, version, url) => {
|
|
85
|
+
const cdnConfig = getConfig(version, url)
|
|
87
86
|
const js = []
|
|
88
87
|
const css = []
|
|
89
88
|
cdnConfig.forEach((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.yks-html--format,.yks-text-wrap{word-break:break-all;white-space:normal}*{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.yks-tc{text-align:center}.yks-tr{text-align:right}.yks-tl{text-align:left}.yks-text-ellipsis{text-overflow:ellipsis;white-space:nowrap!important;overflow:hidden}.yks-text-ellipsis span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.yks-text-clip{text-overflow:clip;white-space:nowrap;overflow:hidden}.yks-text-wrap{word-wrap:break-word}.yks-multi-ellipsis{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.yks-multi-2{-webkit-line-clamp:2}.yks-multi-3{-webkit-line-clamp:3}.yks-multi-4{-webkit-line-clamp:4}.yks-w_60{width:60px!important}.yks-w_80{width:80px!important}.yks-w_100{width:100px!important}.yks-w_120{width:120px!important}.yks-w_140{width:140px!important}.yks-w_160{width:160px!important}.yks-w_210{width:210px!important}.yks-w_270{width:270px!important}.yks-w_330{width:310px!important}.yks-flex{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.yks-flex.v-end{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.yks-flex.h-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.yks-flex.h-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.yks-flex.h-around{-ms-flex-pack:distribute;justify-content:space-around}.yks-flex.h-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.yks-flex.h-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.yks-flex.f-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.yks-flex .flex-1{-webkit-box-flex:1;-ms-flex:1;flex:1}.yks-ml10{margin-left:10px}.yks-mt10{margin-top:10px}.yks-mr10{margin-right:10px}.yks-mb10{margin-bottom:10px}.yks-mb20{margin-bottom:20px}.yks-mt20{margin-top:20px}.yks-fs-12{font-size:12px}.yks-primary{color:#3b7cec!important}.yks-success{color:#4de2b3!important}.yks-warning{color:#ffba00!important}.yks-info{color:#8998ac!important}.yks-danger{color:#f5222d!important}.yks-disabled{cursor:no-drop!important;opacity:.5!important}.el-dialog__title{font-weight:700}.yks-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yks-html--format{word-wrap:break-word}.yks-html--format img{max-height:200px;width:auto;max-width:90%;-o-object-fit:scale-down;object-fit:scale-down}.yks-html--format table{border:1px solid #bbb;border-bottom:unset}.yks-html--format table td,.yks-html--format table th{border-left:1px solid #bbb;border-bottom:1px solid #bbb}.yks-html--format table td:first-child,.yks-html--format table th:first-child{border-left:unset}.yks-html--format div,.yks-html--format h1,.yks-html--format h2,.yks-html--format h3,.yks-html--format h4,.yks-html--format p,.yks-html--format span{padding:0;margin:0;min-height:20px;line-height:20px;word-wrap:break-word;word-break:break-all;white-space:normal}.yks-html--format input{width:24px;height:24px;margin:0 5px;padding:0;border-radius:4px;text-align:center;color:#2980ff;border:1px solid #dcdfe6;background-color:transparent}.tox-tinymce-inline{z-index:100!important}
|
|
1
|
+
@charset "UTF-8";.yks-html--format,.yks-text-wrap{word-break:break-all;white-space:normal}*{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.yks-tc{text-align:center}.yks-tr{text-align:right}.yks-tl{text-align:left}.yks-text-ellipsis{text-overflow:ellipsis;white-space:nowrap!important;overflow:hidden}.yks-text-ellipsis span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.yks-text-clip{text-overflow:clip;white-space:nowrap;overflow:hidden}.yks-text-wrap{word-wrap:break-word}.yks-multi-ellipsis{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.yks-multi-2{-webkit-line-clamp:2}.yks-multi-3{-webkit-line-clamp:3}.yks-multi-4{-webkit-line-clamp:4}.yks-w_60{width:60px!important}.yks-w_80{width:80px!important}.yks-w_100{width:100px!important}.yks-w_120{width:120px!important}.yks-w_140{width:140px!important}.yks-w_160{width:160px!important}.yks-w_210{width:210px!important}.yks-w_270{width:270px!important}.yks-w_330{width:310px!important}.yks-flex{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.yks-flex.v-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.yks-flex.v-end{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.yks-flex.h-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.yks-flex.h-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.yks-flex.h-around{-ms-flex-pack:distribute;justify-content:space-around}.yks-flex.h-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.yks-flex.h-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.yks-flex.f-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.yks-flex .flex-1{-webkit-box-flex:1;-ms-flex:1;flex:1}.yks-ml10{margin-left:10px}.yks-mt10{margin-top:10px}.yks-mr10{margin-right:10px}.yks-mb10{margin-bottom:10px}.yks-mb20{margin-bottom:20px}.yks-mt20{margin-top:20px}.yks-fs-12{font-size:12px}.yks-primary{color:#3b7cec!important}.yks-success{color:#4de2b3!important}.yks-warning{color:#ffba00!important}.yks-info{color:#8998ac!important}.yks-danger{color:#f5222d!important}.yks-disabled{cursor:no-drop!important;opacity:.5!important}.el-dialog__title{font-weight:700}.yks-noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yks-html--format{word-wrap:break-word}.yks-html--format img{max-height:200px;width:auto;max-width:90%;-o-object-fit:scale-down;object-fit:scale-down}.yks-html--format table{border:1px solid #bbb;border-bottom:unset}.yks-html--format table td,.yks-html--format table th{border-left:1px solid #bbb;border-bottom:1px solid #bbb}.yks-html--format table td:first-child,.yks-html--format table th:first-child{border-left:unset}.yks-html--format div,.yks-html--format h1,.yks-html--format h2,.yks-html--format h3,.yks-html--format h4,.yks-html--format p,.yks-html--format span{padding:0;margin:0;min-height:20px;line-height:20px;word-wrap:break-word;word-break:break-all;white-space:normal}.yks-html--format input{width:24px;height:24px;margin:0 5px;padding:0;border-radius:4px;text-align:center;color:#2980ff;border:1px solid #dcdfe6;background-color:transparent}.yks-html--format ol,.yks-html--format ul{display:block;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0;-webkit-padding-start:40px;padding-inline-start:40px}.yks-html--format ol{list-style-type:decimal}.yks-html--format ul{list-style-type:disc}.yks-html--format li{display:list-item;text-align:-webkit-match-parent;list-style-type:inherit}.yks-html--format li::marker{unicode-bidi:-webkit-isolate;unicode-bidi:-moz-isolate;unicode-bidi:isolate;font-variant-numeric:tabular-nums;text-transform:none;text-indent:0!important;text-align:start!important;-moz-text-align-last:start!important;text-align-last:start!important;content:unset}.tox-tinymce-inline{z-index:100!important}
|