eoss 0.1.0-alpha.15 → 0.1.0-alpha.16
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/eoss.common.js +36 -31
- package/lib/index.js +36 -31
- package/lib/login.js +21 -11
- package/lib/qr-code.js +4 -9
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/package.json +1 -1
- package/packages/login/src/login.vue +19 -6
- package/packages/login/src/mixins.js +2 -0
- package/packages/qr-code/src/qr-code.vue +3 -8
- package/packages/theme-chalk/src/login.scss +3 -0
- package/src/index.js +1 -1
package/lib/eoss.common.js
CHANGED
|
@@ -148947,8 +148947,8 @@ src_link.install = function (Vue) {
|
|
|
148947
148947
|
Vue.component(src_link.name, src_link);
|
|
148948
148948
|
};
|
|
148949
148949
|
/* harmony default export */ const packages_link = (src_link);
|
|
148950
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=
|
|
148951
|
-
var
|
|
148950
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
148951
|
+
var loginvue_type_template_id_3f3f8e6a_render = function render() {
|
|
148952
148952
|
var _vm = this,
|
|
148953
148953
|
_c = _vm._self._c;
|
|
148954
148954
|
return _c("div", {
|
|
@@ -148968,7 +148968,12 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
148968
148968
|
}) : _vm._e()];
|
|
148969
148969
|
})], 2), _c("div", {
|
|
148970
148970
|
staticClass: "es-login__warning"
|
|
148971
|
-
}, [_vm.
|
|
148971
|
+
}, [_vm.warningImg ? _c("img", {
|
|
148972
|
+
staticClass: "es-login__warning--image",
|
|
148973
|
+
attrs: {
|
|
148974
|
+
src: _vm.warningImg
|
|
148975
|
+
}
|
|
148976
|
+
}) : [_vm._v("\n " + _vm._s(_vm.warningText) + "\n ")]], 2), _vm.downloads.length > 0 ? _c("es-button", {
|
|
148972
148977
|
staticClass: "es-login__download",
|
|
148973
148978
|
attrs: {
|
|
148974
148979
|
type: "text",
|
|
@@ -149009,15 +149014,18 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149009
149014
|
})])], 1);
|
|
149010
149015
|
}), 0) : _vm._e(), _c("div", {
|
|
149011
149016
|
staticClass: "es-login__content"
|
|
149012
|
-
}, [_vm.
|
|
149013
|
-
|
|
149014
|
-
|
|
149015
|
-
|
|
149016
|
-
|
|
149017
|
+
}, [_vm._t("loginName", function () {
|
|
149018
|
+
return [_vm.mode === "icon" ? _c("div", {
|
|
149019
|
+
staticClass: "es-login__title"
|
|
149020
|
+
}, [_c("span", {
|
|
149021
|
+
staticClass: "es-login__name"
|
|
149022
|
+
}, [_vm._v(_vm._s(_vm.activeLogin.name))])]) : _vm._e()];
|
|
149023
|
+
}), _c(_vm.activeLogin.is, {
|
|
149017
149024
|
ref: "loginComponent",
|
|
149018
149025
|
tag: "component",
|
|
149019
149026
|
attrs: {
|
|
149020
149027
|
identifyingId: _vm.identifyingId,
|
|
149028
|
+
content: _vm.identifyingId,
|
|
149021
149029
|
action: _vm.activeLogin.action,
|
|
149022
149030
|
appName: _vm.appName,
|
|
149023
149031
|
logoogo: _vm.qrLogo,
|
|
@@ -149037,7 +149045,7 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149037
149045
|
identifyingId: _vm.identifyingId,
|
|
149038
149046
|
success: _vm.handleSuccess
|
|
149039
149047
|
}
|
|
149040
|
-
}) : _vm._e()],
|
|
149048
|
+
}) : _vm._e()], 2)]), _vm._t("footer", function () {
|
|
149041
149049
|
return [_vm.copyright && _vm.copyright.length ? _c("div", {
|
|
149042
149050
|
staticClass: "es-login-icp"
|
|
149043
149051
|
}, [_vm._l(_vm.copyright, function (item) {
|
|
@@ -149162,10 +149170,10 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149162
149170
|
}
|
|
149163
149171
|
})], 1)], 2);
|
|
149164
149172
|
};
|
|
149165
|
-
var
|
|
149166
|
-
|
|
149173
|
+
var loginvue_type_template_id_3f3f8e6a_staticRenderFns = [];
|
|
149174
|
+
loginvue_type_template_id_3f3f8e6a_render._withStripped = true;
|
|
149167
149175
|
|
|
149168
|
-
;// ./packages/login/src/login.vue?vue&type=template&id=
|
|
149176
|
+
;// ./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
149169
149177
|
|
|
149170
149178
|
;// ./packages/login/src/mixins.js
|
|
149171
149179
|
/* harmony default export */ const mixins = ({
|
|
@@ -149247,6 +149255,8 @@ loginvue_type_template_id_c39fb1fe_render._withStripped = true;
|
|
|
149247
149255
|
alertContent: '',
|
|
149248
149256
|
// 登录弹窗警告内容
|
|
149249
149257
|
warningText: '',
|
|
149258
|
+
// 登录弹窗警告图片
|
|
149259
|
+
warningImg: '',
|
|
149250
149260
|
// 下载App配置
|
|
149251
149261
|
downloadApp: [],
|
|
149252
149262
|
// 登录框位置
|
|
@@ -150399,12 +150409,12 @@ var LOGIN_TYPES = {
|
|
|
150399
150409
|
* 登录弹窗位置
|
|
150400
150410
|
* @type {String}
|
|
150401
150411
|
* @default 'center'
|
|
150402
|
-
* @options center, left, right
|
|
150412
|
+
* @options center, left, right, 60%
|
|
150403
150413
|
*/
|
|
150404
150414
|
position: {
|
|
150405
150415
|
type: String,
|
|
150406
150416
|
validator: function validator(val) {
|
|
150407
|
-
return ['center', 'left', 'right'].indexOf(val) !== -1;
|
|
150417
|
+
return ['center', 'left', 'right'].indexOf(val) !== -1 || val.indexOf('%') > -1;
|
|
150408
150418
|
},
|
|
150409
150419
|
"default": 'center'
|
|
150410
150420
|
}
|
|
@@ -150865,8 +150875,8 @@ var LOGIN_TYPES = {
|
|
|
150865
150875
|
;
|
|
150866
150876
|
var login_component = (0,componentNormalizer/* default */.A)(
|
|
150867
150877
|
src_loginvue_type_script_lang_js,
|
|
150868
|
-
|
|
150869
|
-
|
|
150878
|
+
loginvue_type_template_id_3f3f8e6a_render,
|
|
150879
|
+
loginvue_type_template_id_3f3f8e6a_staticRenderFns,
|
|
150870
150880
|
false,
|
|
150871
150881
|
null,
|
|
150872
150882
|
null,
|
|
@@ -162477,8 +162487,8 @@ popconfirm.install = function (Vue) {
|
|
|
162477
162487
|
Vue.component(popconfirm.name, popconfirm);
|
|
162478
162488
|
};
|
|
162479
162489
|
/* harmony default export */ const packages_popconfirm = (popconfirm);
|
|
162480
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
162481
|
-
var
|
|
162490
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
162491
|
+
var qr_codevue_type_template_id_583b96ec_render = function render() {
|
|
162482
162492
|
var _vm = this,
|
|
162483
162493
|
_c = _vm._self._c;
|
|
162484
162494
|
return _c("div", {
|
|
@@ -162505,10 +162515,10 @@ var qr_codevue_type_template_id_1647d0fc_render = function render() {
|
|
|
162505
162515
|
}
|
|
162506
162516
|
})]);
|
|
162507
162517
|
};
|
|
162508
|
-
var
|
|
162509
|
-
|
|
162518
|
+
var qr_codevue_type_template_id_583b96ec_staticRenderFns = [];
|
|
162519
|
+
qr_codevue_type_template_id_583b96ec_render._withStripped = true;
|
|
162510
162520
|
|
|
162511
|
-
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
162521
|
+
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
162512
162522
|
|
|
162513
162523
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=script&lang=js
|
|
162514
162524
|
|
|
@@ -162542,8 +162552,7 @@ var TEXT_PADDING = 10;
|
|
|
162542
162552
|
* @required true
|
|
162543
162553
|
*/
|
|
162544
162554
|
content: {
|
|
162545
|
-
type: String
|
|
162546
|
-
required: true
|
|
162555
|
+
type: String
|
|
162547
162556
|
},
|
|
162548
162557
|
/**
|
|
162549
162558
|
* 二维码logo图片地址
|
|
@@ -162633,10 +162642,7 @@ var TEXT_PADDING = 10;
|
|
|
162633
162642
|
},
|
|
162634
162643
|
created: function created() {
|
|
162635
162644
|
// 在创建阶段创建节流函数
|
|
162636
|
-
this.throttledCreateQRCode = (0,throttle_debounce.
|
|
162637
|
-
leading: true,
|
|
162638
|
-
trailing: true
|
|
162639
|
-
});
|
|
162645
|
+
this.throttledCreateQRCode = (0,throttle_debounce.debounce)(300, this.createQRCode);
|
|
162640
162646
|
},
|
|
162641
162647
|
mounted: function mounted() {
|
|
162642
162648
|
var _this3 = this;
|
|
@@ -162696,7 +162702,6 @@ var TEXT_PADDING = 10;
|
|
|
162696
162702
|
var _this5 = this;
|
|
162697
162703
|
// 边界情况检查
|
|
162698
162704
|
if (!this.content) {
|
|
162699
|
-
console.error('QR Code content is required');
|
|
162700
162705
|
return;
|
|
162701
162706
|
}
|
|
162702
162707
|
var qrcodeImg = this.$refs.qrcodeImg;
|
|
@@ -162806,8 +162811,8 @@ var TEXT_PADDING = 10;
|
|
|
162806
162811
|
;
|
|
162807
162812
|
var qr_code_component = (0,componentNormalizer/* default */.A)(
|
|
162808
162813
|
src_qr_codevue_type_script_lang_js,
|
|
162809
|
-
|
|
162810
|
-
|
|
162814
|
+
qr_codevue_type_template_id_583b96ec_render,
|
|
162815
|
+
qr_codevue_type_template_id_583b96ec_staticRenderFns,
|
|
162811
162816
|
false,
|
|
162812
162817
|
null,
|
|
162813
162818
|
null,
|
|
@@ -212149,7 +212154,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
212149
212154
|
install(window.Vue);
|
|
212150
212155
|
}
|
|
212151
212156
|
/* harmony default export */ const src_0 = ({
|
|
212152
|
-
version: '0.1.0-alpha.
|
|
212157
|
+
version: '0.1.0-alpha.16',
|
|
212153
212158
|
install: install,
|
|
212154
212159
|
CollapseTransition: collapse_transition,
|
|
212155
212160
|
Loading: packages_loading/* default */.A,
|
package/lib/index.js
CHANGED
|
@@ -148957,8 +148957,8 @@ src_link.install = function (Vue) {
|
|
|
148957
148957
|
Vue.component(src_link.name, src_link);
|
|
148958
148958
|
};
|
|
148959
148959
|
/* harmony default export */ const packages_link = (src_link);
|
|
148960
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=
|
|
148961
|
-
var
|
|
148960
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
148961
|
+
var loginvue_type_template_id_3f3f8e6a_render = function render() {
|
|
148962
148962
|
var _vm = this,
|
|
148963
148963
|
_c = _vm._self._c;
|
|
148964
148964
|
return _c("div", {
|
|
@@ -148978,7 +148978,12 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
148978
148978
|
}) : _vm._e()];
|
|
148979
148979
|
})], 2), _c("div", {
|
|
148980
148980
|
staticClass: "es-login__warning"
|
|
148981
|
-
}, [_vm.
|
|
148981
|
+
}, [_vm.warningImg ? _c("img", {
|
|
148982
|
+
staticClass: "es-login__warning--image",
|
|
148983
|
+
attrs: {
|
|
148984
|
+
src: _vm.warningImg
|
|
148985
|
+
}
|
|
148986
|
+
}) : [_vm._v("\n " + _vm._s(_vm.warningText) + "\n ")]], 2), _vm.downloads.length > 0 ? _c("es-button", {
|
|
148982
148987
|
staticClass: "es-login__download",
|
|
148983
148988
|
attrs: {
|
|
148984
148989
|
type: "text",
|
|
@@ -149019,15 +149024,18 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149019
149024
|
})])], 1);
|
|
149020
149025
|
}), 0) : _vm._e(), _c("div", {
|
|
149021
149026
|
staticClass: "es-login__content"
|
|
149022
|
-
}, [_vm.
|
|
149023
|
-
|
|
149024
|
-
|
|
149025
|
-
|
|
149026
|
-
|
|
149027
|
+
}, [_vm._t("loginName", function () {
|
|
149028
|
+
return [_vm.mode === "icon" ? _c("div", {
|
|
149029
|
+
staticClass: "es-login__title"
|
|
149030
|
+
}, [_c("span", {
|
|
149031
|
+
staticClass: "es-login__name"
|
|
149032
|
+
}, [_vm._v(_vm._s(_vm.activeLogin.name))])]) : _vm._e()];
|
|
149033
|
+
}), _c(_vm.activeLogin.is, {
|
|
149027
149034
|
ref: "loginComponent",
|
|
149028
149035
|
tag: "component",
|
|
149029
149036
|
attrs: {
|
|
149030
149037
|
identifyingId: _vm.identifyingId,
|
|
149038
|
+
content: _vm.identifyingId,
|
|
149031
149039
|
action: _vm.activeLogin.action,
|
|
149032
149040
|
appName: _vm.appName,
|
|
149033
149041
|
logoogo: _vm.qrLogo,
|
|
@@ -149047,7 +149055,7 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149047
149055
|
identifyingId: _vm.identifyingId,
|
|
149048
149056
|
success: _vm.handleSuccess
|
|
149049
149057
|
}
|
|
149050
|
-
}) : _vm._e()],
|
|
149058
|
+
}) : _vm._e()], 2)]), _vm._t("footer", function () {
|
|
149051
149059
|
return [_vm.copyright && _vm.copyright.length ? _c("div", {
|
|
149052
149060
|
staticClass: "es-login-icp"
|
|
149053
149061
|
}, [_vm._l(_vm.copyright, function (item) {
|
|
@@ -149172,10 +149180,10 @@ var loginvue_type_template_id_c39fb1fe_render = function render() {
|
|
|
149172
149180
|
}
|
|
149173
149181
|
})], 1)], 2);
|
|
149174
149182
|
};
|
|
149175
|
-
var
|
|
149176
|
-
|
|
149183
|
+
var loginvue_type_template_id_3f3f8e6a_staticRenderFns = [];
|
|
149184
|
+
loginvue_type_template_id_3f3f8e6a_render._withStripped = true;
|
|
149177
149185
|
|
|
149178
|
-
;// ./packages/login/src/login.vue?vue&type=template&id=
|
|
149186
|
+
;// ./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
149179
149187
|
|
|
149180
149188
|
;// ./packages/login/src/mixins.js
|
|
149181
149189
|
/* harmony default export */ const mixins = ({
|
|
@@ -149257,6 +149265,8 @@ loginvue_type_template_id_c39fb1fe_render._withStripped = true;
|
|
|
149257
149265
|
alertContent: '',
|
|
149258
149266
|
// 登录弹窗警告内容
|
|
149259
149267
|
warningText: '',
|
|
149268
|
+
// 登录弹窗警告图片
|
|
149269
|
+
warningImg: '',
|
|
149260
149270
|
// 下载App配置
|
|
149261
149271
|
downloadApp: [],
|
|
149262
149272
|
// 登录框位置
|
|
@@ -150409,12 +150419,12 @@ var LOGIN_TYPES = {
|
|
|
150409
150419
|
* 登录弹窗位置
|
|
150410
150420
|
* @type {String}
|
|
150411
150421
|
* @default 'center'
|
|
150412
|
-
* @options center, left, right
|
|
150422
|
+
* @options center, left, right, 60%
|
|
150413
150423
|
*/
|
|
150414
150424
|
position: {
|
|
150415
150425
|
type: String,
|
|
150416
150426
|
validator: function validator(val) {
|
|
150417
|
-
return ['center', 'left', 'right'].indexOf(val) !== -1;
|
|
150427
|
+
return ['center', 'left', 'right'].indexOf(val) !== -1 || val.indexOf('%') > -1;
|
|
150418
150428
|
},
|
|
150419
150429
|
"default": 'center'
|
|
150420
150430
|
}
|
|
@@ -150875,8 +150885,8 @@ var LOGIN_TYPES = {
|
|
|
150875
150885
|
;
|
|
150876
150886
|
var login_component = (0,componentNormalizer/* default */.A)(
|
|
150877
150887
|
src_loginvue_type_script_lang_js,
|
|
150878
|
-
|
|
150879
|
-
|
|
150888
|
+
loginvue_type_template_id_3f3f8e6a_render,
|
|
150889
|
+
loginvue_type_template_id_3f3f8e6a_staticRenderFns,
|
|
150880
150890
|
false,
|
|
150881
150891
|
null,
|
|
150882
150892
|
null,
|
|
@@ -162487,8 +162497,8 @@ popconfirm.install = function (Vue) {
|
|
|
162487
162497
|
Vue.component(popconfirm.name, popconfirm);
|
|
162488
162498
|
};
|
|
162489
162499
|
/* harmony default export */ const packages_popconfirm = (popconfirm);
|
|
162490
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
162491
|
-
var
|
|
162500
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
162501
|
+
var qr_codevue_type_template_id_583b96ec_render = function render() {
|
|
162492
162502
|
var _vm = this,
|
|
162493
162503
|
_c = _vm._self._c;
|
|
162494
162504
|
return _c("div", {
|
|
@@ -162515,10 +162525,10 @@ var qr_codevue_type_template_id_1647d0fc_render = function render() {
|
|
|
162515
162525
|
}
|
|
162516
162526
|
})]);
|
|
162517
162527
|
};
|
|
162518
|
-
var
|
|
162519
|
-
|
|
162528
|
+
var qr_codevue_type_template_id_583b96ec_staticRenderFns = [];
|
|
162529
|
+
qr_codevue_type_template_id_583b96ec_render._withStripped = true;
|
|
162520
162530
|
|
|
162521
|
-
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
162531
|
+
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
162522
162532
|
|
|
162523
162533
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=script&lang=js
|
|
162524
162534
|
|
|
@@ -162552,8 +162562,7 @@ var TEXT_PADDING = 10;
|
|
|
162552
162562
|
* @required true
|
|
162553
162563
|
*/
|
|
162554
162564
|
content: {
|
|
162555
|
-
type: String
|
|
162556
|
-
required: true
|
|
162565
|
+
type: String
|
|
162557
162566
|
},
|
|
162558
162567
|
/**
|
|
162559
162568
|
* 二维码logo图片地址
|
|
@@ -162643,10 +162652,7 @@ var TEXT_PADDING = 10;
|
|
|
162643
162652
|
},
|
|
162644
162653
|
created: function created() {
|
|
162645
162654
|
// 在创建阶段创建节流函数
|
|
162646
|
-
this.throttledCreateQRCode = (0,throttle_debounce.
|
|
162647
|
-
leading: true,
|
|
162648
|
-
trailing: true
|
|
162649
|
-
});
|
|
162655
|
+
this.throttledCreateQRCode = (0,throttle_debounce.debounce)(300, this.createQRCode);
|
|
162650
162656
|
},
|
|
162651
162657
|
mounted: function mounted() {
|
|
162652
162658
|
var _this3 = this;
|
|
@@ -162706,7 +162712,6 @@ var TEXT_PADDING = 10;
|
|
|
162706
162712
|
var _this5 = this;
|
|
162707
162713
|
// 边界情况检查
|
|
162708
162714
|
if (!this.content) {
|
|
162709
|
-
console.error('QR Code content is required');
|
|
162710
162715
|
return;
|
|
162711
162716
|
}
|
|
162712
162717
|
var qrcodeImg = this.$refs.qrcodeImg;
|
|
@@ -162816,8 +162821,8 @@ var TEXT_PADDING = 10;
|
|
|
162816
162821
|
;
|
|
162817
162822
|
var qr_code_component = (0,componentNormalizer/* default */.A)(
|
|
162818
162823
|
src_qr_codevue_type_script_lang_js,
|
|
162819
|
-
|
|
162820
|
-
|
|
162824
|
+
qr_codevue_type_template_id_583b96ec_render,
|
|
162825
|
+
qr_codevue_type_template_id_583b96ec_staticRenderFns,
|
|
162821
162826
|
false,
|
|
162822
162827
|
null,
|
|
162823
162828
|
null,
|
|
@@ -212159,7 +212164,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
212159
212164
|
install(window.Vue);
|
|
212160
212165
|
}
|
|
212161
212166
|
/* harmony default export */ const src_0 = ({
|
|
212162
|
-
version: '0.1.0-alpha.
|
|
212167
|
+
version: '0.1.0-alpha.16',
|
|
212163
212168
|
install: install,
|
|
212164
212169
|
CollapseTransition: collapse_transition,
|
|
212165
212170
|
Loading: packages_loading/* default */.A,
|
package/lib/login.js
CHANGED
|
@@ -33462,7 +33462,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
33462
33462
|
"default": () => (/* binding */ packages_login)
|
|
33463
33463
|
});
|
|
33464
33464
|
|
|
33465
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=
|
|
33465
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
33466
33466
|
var render = function render() {
|
|
33467
33467
|
var _vm = this,
|
|
33468
33468
|
_c = _vm._self._c;
|
|
@@ -33483,7 +33483,12 @@ var render = function render() {
|
|
|
33483
33483
|
}) : _vm._e()];
|
|
33484
33484
|
})], 2), _c("div", {
|
|
33485
33485
|
staticClass: "es-login__warning"
|
|
33486
|
-
}, [_vm.
|
|
33486
|
+
}, [_vm.warningImg ? _c("img", {
|
|
33487
|
+
staticClass: "es-login__warning--image",
|
|
33488
|
+
attrs: {
|
|
33489
|
+
src: _vm.warningImg
|
|
33490
|
+
}
|
|
33491
|
+
}) : [_vm._v("\n " + _vm._s(_vm.warningText) + "\n ")]], 2), _vm.downloads.length > 0 ? _c("es-button", {
|
|
33487
33492
|
staticClass: "es-login__download",
|
|
33488
33493
|
attrs: {
|
|
33489
33494
|
type: "text",
|
|
@@ -33524,15 +33529,18 @@ var render = function render() {
|
|
|
33524
33529
|
})])], 1);
|
|
33525
33530
|
}), 0) : _vm._e(), _c("div", {
|
|
33526
33531
|
staticClass: "es-login__content"
|
|
33527
|
-
}, [_vm.
|
|
33528
|
-
|
|
33529
|
-
|
|
33530
|
-
|
|
33531
|
-
|
|
33532
|
+
}, [_vm._t("loginName", function () {
|
|
33533
|
+
return [_vm.mode === "icon" ? _c("div", {
|
|
33534
|
+
staticClass: "es-login__title"
|
|
33535
|
+
}, [_c("span", {
|
|
33536
|
+
staticClass: "es-login__name"
|
|
33537
|
+
}, [_vm._v(_vm._s(_vm.activeLogin.name))])]) : _vm._e()];
|
|
33538
|
+
}), _c(_vm.activeLogin.is, {
|
|
33532
33539
|
ref: "loginComponent",
|
|
33533
33540
|
tag: "component",
|
|
33534
33541
|
attrs: {
|
|
33535
33542
|
identifyingId: _vm.identifyingId,
|
|
33543
|
+
content: _vm.identifyingId,
|
|
33536
33544
|
action: _vm.activeLogin.action,
|
|
33537
33545
|
appName: _vm.appName,
|
|
33538
33546
|
logoogo: _vm.qrLogo,
|
|
@@ -33552,7 +33560,7 @@ var render = function render() {
|
|
|
33552
33560
|
identifyingId: _vm.identifyingId,
|
|
33553
33561
|
success: _vm.handleSuccess
|
|
33554
33562
|
}
|
|
33555
|
-
}) : _vm._e()],
|
|
33563
|
+
}) : _vm._e()], 2)]), _vm._t("footer", function () {
|
|
33556
33564
|
return [_vm.copyright && _vm.copyright.length ? _c("div", {
|
|
33557
33565
|
staticClass: "es-login-icp"
|
|
33558
33566
|
}, [_vm._l(_vm.copyright, function (item) {
|
|
@@ -33680,7 +33688,7 @@ var render = function render() {
|
|
|
33680
33688
|
var staticRenderFns = [];
|
|
33681
33689
|
render._withStripped = true;
|
|
33682
33690
|
|
|
33683
|
-
;// ./packages/login/src/login.vue?vue&type=template&id=
|
|
33691
|
+
;// ./packages/login/src/login.vue?vue&type=template&id=3f3f8e6a
|
|
33684
33692
|
|
|
33685
33693
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
33686
33694
|
var objectWithoutPropertiesLoose = __webpack_require__(98587);
|
|
@@ -34081,6 +34089,8 @@ var esm_extends = __webpack_require__(58168);
|
|
|
34081
34089
|
alertContent: '',
|
|
34082
34090
|
// 登录弹窗警告内容
|
|
34083
34091
|
warningText: '',
|
|
34092
|
+
// 登录弹窗警告图片
|
|
34093
|
+
warningImg: '',
|
|
34084
34094
|
// 下载App配置
|
|
34085
34095
|
downloadApp: [],
|
|
34086
34096
|
// 登录框位置
|
|
@@ -36074,12 +36084,12 @@ var LOGIN_TYPES = {
|
|
|
36074
36084
|
* 登录弹窗位置
|
|
36075
36085
|
* @type {String}
|
|
36076
36086
|
* @default 'center'
|
|
36077
|
-
* @options center, left, right
|
|
36087
|
+
* @options center, left, right, 60%
|
|
36078
36088
|
*/
|
|
36079
36089
|
position: {
|
|
36080
36090
|
type: String,
|
|
36081
36091
|
validator: function validator(val) {
|
|
36082
|
-
return ['center', 'left', 'right'].indexOf(val) !== -1;
|
|
36092
|
+
return ['center', 'left', 'right'].indexOf(val) !== -1 || val.indexOf('%') > -1;
|
|
36083
36093
|
},
|
|
36084
36094
|
"default": 'center'
|
|
36085
36095
|
}
|
package/lib/qr-code.js
CHANGED
|
@@ -3183,7 +3183,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3183
3183
|
"default": () => (/* binding */ packages_qr_code)
|
|
3184
3184
|
});
|
|
3185
3185
|
|
|
3186
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
3186
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-1!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
3187
3187
|
var render = function render() {
|
|
3188
3188
|
var _vm = this,
|
|
3189
3189
|
_c = _vm._self._c;
|
|
@@ -3214,7 +3214,7 @@ var render = function render() {
|
|
|
3214
3214
|
var staticRenderFns = [];
|
|
3215
3215
|
render._withStripped = true;
|
|
3216
3216
|
|
|
3217
|
-
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=
|
|
3217
|
+
;// ./packages/qr-code/src/qr-code.vue?vue&type=template&id=583b96ec
|
|
3218
3218
|
|
|
3219
3219
|
;// ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3220
3220
|
function _extends() {
|
|
@@ -3261,8 +3261,7 @@ var TEXT_PADDING = 10;
|
|
|
3261
3261
|
* @required true
|
|
3262
3262
|
*/
|
|
3263
3263
|
content: {
|
|
3264
|
-
type: String
|
|
3265
|
-
required: true
|
|
3264
|
+
type: String
|
|
3266
3265
|
},
|
|
3267
3266
|
/**
|
|
3268
3267
|
* 二维码logo图片地址
|
|
@@ -3352,10 +3351,7 @@ var TEXT_PADDING = 10;
|
|
|
3352
3351
|
},
|
|
3353
3352
|
created: function created() {
|
|
3354
3353
|
// 在创建阶段创建节流函数
|
|
3355
|
-
this.throttledCreateQRCode = (0,throttle_debounce.
|
|
3356
|
-
leading: true,
|
|
3357
|
-
trailing: true
|
|
3358
|
-
});
|
|
3354
|
+
this.throttledCreateQRCode = (0,throttle_debounce.debounce)(300, this.createQRCode);
|
|
3359
3355
|
},
|
|
3360
3356
|
mounted: function mounted() {
|
|
3361
3357
|
var _this3 = this;
|
|
@@ -3415,7 +3411,6 @@ var TEXT_PADDING = 10;
|
|
|
3415
3411
|
var _this5 = this;
|
|
3416
3412
|
// 边界情况检查
|
|
3417
3413
|
if (!this.content) {
|
|
3418
|
-
console.error('QR Code content is required');
|
|
3419
3414
|
return;
|
|
3420
3415
|
}
|
|
3421
3416
|
var qrcodeImg = this.$refs.qrcodeImg;
|