doway-coms 1.1.63 → 1.1.64
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 +1 -1
- package/packages/index.js +9 -0
- package/packages/utils/store.js +0 -17
package/package.json
CHANGED
package/packages/index.js
CHANGED
|
@@ -86,6 +86,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
86
86
|
install(window.Vue);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
import XEUtils from 'xe-utils'
|
|
89
90
|
//表单输入框验证
|
|
90
91
|
import {
|
|
91
92
|
extend,
|
|
@@ -96,6 +97,14 @@ import {
|
|
|
96
97
|
Object.keys(rules).forEach(rule => {
|
|
97
98
|
extend(rule, rules[rule])
|
|
98
99
|
})
|
|
100
|
+
|
|
101
|
+
extend('gt', (value, min) => {
|
|
102
|
+
if (XEUtils.toNumber(value) > min) {
|
|
103
|
+
return true
|
|
104
|
+
}
|
|
105
|
+
return `必须大于${min}`
|
|
106
|
+
})
|
|
107
|
+
|
|
99
108
|
localize({
|
|
100
109
|
en: {
|
|
101
110
|
messages: {
|
package/packages/utils/store.js
CHANGED
|
@@ -46,23 +46,6 @@ export default new Vuex.Store({
|
|
|
46
46
|
let newRoutePath =
|
|
47
47
|
tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
|
|
48
48
|
history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
|
|
49
|
-
// let keepAliveComp =
|
|
50
|
-
// tabInfo.rootComp.$children[0].$refs.routerView.$vnode.parent
|
|
51
|
-
// .componentInstance
|
|
52
|
-
|
|
53
|
-
// for (let cacheKey in keepAliveComp.cache) {
|
|
54
|
-
// if (
|
|
55
|
-
// keepAliveComp.cache[cacheKey].componentInstance._uid ===
|
|
56
|
-
// tabInfo.compUid
|
|
57
|
-
// ) {
|
|
58
|
-
// keepAliveComp.cache[newRoutePath] = keepAliveComp.cache[cacheKey]
|
|
59
|
-
// keepAliveComp.keyToCache = newRoutePath
|
|
60
|
-
// XEUtils.remove(keepAliveComp.keys, loopKey => loopKey === cacheKey)
|
|
61
|
-
// delete keepAliveComp.cache[cacheKey]
|
|
62
|
-
// keepAliveComp.keys.push(newRoutePath)
|
|
63
|
-
// break
|
|
64
|
-
// }
|
|
65
|
-
// }
|
|
66
49
|
}
|
|
67
50
|
//通知父应用修改Tab标签文字描述
|
|
68
51
|
if(window.$wujie){
|