eoss-ui 0.5.62 → 0.5.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/lib/button-group.js +11 -5
- package/lib/button.js +4 -2
- package/lib/checkbox-group.js +4 -2
- package/lib/data-table-form.js +4 -2
- package/lib/data-table.js +4 -2
- package/lib/date-picker.js +4 -2
- package/lib/dialog.js +4 -2
- package/lib/eoss-ui.common.js +543 -412
- package/lib/flow-group.js +4 -2
- package/lib/flow-list.js +4 -2
- package/lib/flow.js +156 -126
- package/lib/form.js +9 -4
- package/lib/handle-user.js +4 -2
- package/lib/handler.js +7 -5
- package/lib/icon.js +4 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -2
- package/lib/input.js +4 -2
- package/lib/label.js +2 -2
- package/lib/login.js +127 -61
- package/lib/main.js +193 -159
- package/lib/menu.js +2 -2
- package/lib/nav.js +4 -2
- package/lib/page.js +4 -2
- package/lib/player.js +4 -2
- package/lib/qr-code.js +13 -13
- package/lib/radio-group.js +4 -2
- package/lib/retrial-auth.js +4 -2
- package/lib/select-ganged.js +4 -2
- package/lib/select.js +4 -2
- package/lib/selector-panel.js +4 -2
- package/lib/selector.js +4 -2
- package/lib/sizer.js +4 -2
- package/lib/steps.js +4 -2
- package/lib/switch.js +4 -2
- package/lib/table-form.js +4 -2
- package/lib/tabs.js +4 -2
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/qr-code.css +1 -1
- package/lib/tips.js +4 -2
- package/lib/tree-group.js +4 -2
- package/lib/tree.js +4 -2
- package/lib/upload.js +4 -2
- package/lib/utils/util.js +4 -2
- package/lib/wujie.js +4 -2
- package/lib/wxlogin.js +4 -2
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +7 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +32 -4
- package/packages/form/src/main.vue +3 -0
- package/packages/handler/src/main.vue +1 -1
- package/packages/label/src/main.vue +2 -2
- package/packages/login/src/main.vue +53 -33
- package/packages/main/src/main.vue +21 -15
- package/packages/main/src/userinfo.vue +165 -150
- package/packages/menu/src/main.vue +2 -2
- package/packages/qr-code/src/main.vue +10 -5
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/qr-code.css +1 -1
- package/packages/theme-chalk/src/form.scss +5 -3
- package/packages/theme-chalk/src/login.scss +6 -0
- package/packages/theme-chalk/src/menu.scss +1 -1
- package/packages/theme-chalk/src/qr-code.scss +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +4 -1
- package/CHANGELOG.md +0 -929
package/lib/button-group.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
|
@@ -3614,7 +3616,7 @@ function normalizeComponent(
|
|
|
3614
3616
|
// ESM COMPAT FLAG
|
|
3615
3617
|
__webpack_require__.r(__webpack_exports__);
|
|
3616
3618
|
|
|
3617
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=
|
|
3619
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
|
|
3618
3620
|
var render = function () {
|
|
3619
3621
|
var _vm = this
|
|
3620
3622
|
var _h = _vm.$createElement
|
|
@@ -3756,7 +3758,7 @@ var staticRenderFns = []
|
|
|
3756
3758
|
render._withStripped = true
|
|
3757
3759
|
|
|
3758
3760
|
|
|
3759
|
-
// CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=
|
|
3761
|
+
// CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
|
|
3760
3762
|
|
|
3761
3763
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3762
3764
|
var util = __webpack_require__(0);
|
|
@@ -3860,6 +3862,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
3860
3862
|
size: {
|
|
3861
3863
|
type: String,
|
|
3862
3864
|
default: 'mini'
|
|
3865
|
+
},
|
|
3866
|
+
placement: {
|
|
3867
|
+
type: String,
|
|
3868
|
+
default: 'bottom'
|
|
3863
3869
|
}
|
|
3864
3870
|
},
|
|
3865
3871
|
computed: {
|
|
@@ -3867,7 +3873,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
3867
3873
|
return this.getBtns();
|
|
3868
3874
|
},
|
|
3869
3875
|
showBtns: function showBtns() {
|
|
3870
|
-
return this.btns.slice(0, this.length - 1);
|
|
3876
|
+
return this.btns.length > this.length ? this.btns.slice(0, this.length - 1) : this.btns;
|
|
3871
3877
|
},
|
|
3872
3878
|
other: function other() {
|
|
3873
3879
|
var btns = this.length > 0 && (this.btns.length > this.length || this.length == 1) ? this.btns.slice(this.length - 1, this.btns.length) : [];
|
package/lib/button.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/checkbox-group.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
package/lib/data-table-form.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
package/lib/data-table.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
package/lib/date-picker.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/dialog.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|