n20-common-lib 2.8.12 → 2.8.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n20-common-lib",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"lint": "vue-cli-service lint",
|
|
10
10
|
"build:Jenkins_1": "vue-cli-service build --serverConfig ./server-config-jenkins.jsonc",
|
|
11
11
|
"build:css": "node build_css",
|
|
12
|
+
"build:dev": "vue-cli-service build",
|
|
12
13
|
"build:doc": "node versionInfo.js && vue-cli-service build --testTheme",
|
|
13
14
|
"build:gzip": "vue-cli-service build --gzip",
|
|
14
15
|
"build:js": "vue-cli-service build --formats umd-min --target lib src/index.js --name index --dest lib --analy",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
class="input-w"
|
|
42
42
|
:placeholder="formItem.placeholder || formItem.label"
|
|
43
43
|
:clearable="formItem.clearable === false ? false : true"
|
|
44
|
-
:maxlength="formItem.maxlength||
|
|
44
|
+
:maxlength="formItem.maxlength||inputMaxLength"
|
|
45
45
|
v-bind="formItem"
|
|
46
46
|
@change="value => $emit('valueChange', value, key)"
|
|
47
47
|
/>
|
|
@@ -335,6 +335,10 @@ export default {
|
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
props: {
|
|
338
|
+
inputMaxLength:{
|
|
339
|
+
type:String,
|
|
340
|
+
default:'100'
|
|
341
|
+
},
|
|
338
342
|
value: {
|
|
339
343
|
type: Object
|
|
340
344
|
},
|
|
@@ -182,6 +182,10 @@ export default {
|
|
|
182
182
|
type: String,
|
|
183
183
|
default: ''
|
|
184
184
|
},
|
|
185
|
+
syncRelated: {
|
|
186
|
+
type: Function,
|
|
187
|
+
default: undefined
|
|
188
|
+
},
|
|
185
189
|
asyncRelaNos: {
|
|
186
190
|
type: Boolean,
|
|
187
191
|
default: false
|
|
@@ -582,6 +586,7 @@ export default {
|
|
|
582
586
|
} else {
|
|
583
587
|
this.$router.replace('/')
|
|
584
588
|
}
|
|
589
|
+
this.syncRelated && this.syncRelated()
|
|
585
590
|
})
|
|
586
591
|
},
|
|
587
592
|
// 获取用户基本信息
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
:before-login="beforeLogin"
|
|
7
7
|
:login-types="loginTypes"
|
|
8
8
|
:login-then="loginThen"
|
|
9
|
+
:syncRelated="syncRelated"
|
|
9
10
|
:async-rela-nos="asyncRelaNos"
|
|
10
11
|
:show-forget-btn="showForgetBtn"
|
|
11
12
|
style="display: none"
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
:before-login="beforeLogin"
|
|
26
27
|
:login-types="loginTypes"
|
|
27
28
|
:login-then="loginThen"
|
|
29
|
+
:syncRelated="syncRelated"
|
|
28
30
|
:async-rela-nos="asyncRelaNos"
|
|
29
31
|
:show-image-code="showImageCode"
|
|
30
32
|
:show-forget-btn="showForgetBtn"
|
|
@@ -86,6 +88,10 @@ export default {
|
|
|
86
88
|
type: Object,
|
|
87
89
|
default: undefined
|
|
88
90
|
},
|
|
91
|
+
syncRelated: {
|
|
92
|
+
type: Function,
|
|
93
|
+
default: undefined
|
|
94
|
+
},
|
|
89
95
|
asyncRelaNos: {
|
|
90
96
|
type: Boolean,
|
|
91
97
|
default: false
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:login-types="loginTypes"
|
|
8
8
|
:login-then="loginThen"
|
|
9
9
|
:async-rela-nos="asyncRelaNos"
|
|
10
|
+
:syncRelated="syncRelated"
|
|
10
11
|
:show-forget-btn="showForgetBtn"
|
|
11
12
|
:extra-form="extraForm"
|
|
12
13
|
style="display: none"
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
:login-types="loginTypes"
|
|
88
89
|
:login-then="loginThenT"
|
|
89
90
|
:async-rela-nos="asyncRelaNos"
|
|
91
|
+
:syncRelated="syncRelated"
|
|
90
92
|
:extra-form="extraForm"
|
|
91
93
|
:show-image-code="imgCode"
|
|
92
94
|
:show-forget-btn="showForgetBtn"
|
|
@@ -187,6 +189,10 @@ export default {
|
|
|
187
189
|
type: Object,
|
|
188
190
|
default: undefined
|
|
189
191
|
},
|
|
192
|
+
syncRelated: {
|
|
193
|
+
type: Function,
|
|
194
|
+
default: undefined
|
|
195
|
+
},
|
|
190
196
|
asyncRelaNos: {
|
|
191
197
|
type: Boolean,
|
|
192
198
|
default: false
|