@yoooloo42/joker 1.0.190 → 1.0.192

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/dist/index.esm.js CHANGED
@@ -22153,6 +22153,40 @@ var request = {
22153
22153
  ly0: ly0request
22154
22154
  };
22155
22155
 
22156
+ // <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
22157
+ function fun() {
22158
+ !function (e, t) {
22159
+ e.WxLogin = function (e) {
22160
+ var r = "default";
22161
+ true === e.self_redirect ? r = "true" : false === e.self_redirect && (r = "false");
22162
+ var i = t.createElement("iframe"),
22163
+ n = "https://open.weixin.qq.com/connect/qrconnect?appid=" + e.appid + "&scope=" + e.scope + "&redirect_uri=" + e.redirect_uri + "&state=" + e.state + "&login_type=jssdk&self_redirect=" + r + "&styletype=" + (e.styletype || "") + "&sizetype=" + (e.sizetype || "") + "&bgcolor=" + (e.bgcolor || "") + "&rst=" + (e.rst || "");
22164
+ n += e.style ? "&style=" + e.style : "", n += e.href ? "&href=" + e.href : "", n += "en" === e.lang ? "&lang=en" : "", n += 1 === e.stylelite ? "&stylelite=1" : "", n += 0 === e.fast_login ? "&fast_login=0" : "", i.src = n, i.frameBorder = "0", i.allowTransparency = "true", i.scrolling = "no", i.width = "300px", i.height = "400px";
22165
+ var l = t.getElementById(e.id);
22166
+ l.innerHTML = "", l.appendChild(i);
22167
+ };
22168
+ }(window, document);
22169
+ }
22170
+ function run(para) {
22171
+ // para.elementId
22172
+ // para.redirect_uri
22173
+ // para.appid
22174
+
22175
+ // 生成二维码图片
22176
+ fun();
22177
+ new WxLogin({
22178
+ self_redirect: true,
22179
+ id: para.elementId,
22180
+ appid: para.appid,
22181
+ scope: "snsapi_login",
22182
+ redirect_uri: encodeURIComponent(para.redirect_uri),
22183
+ href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDIwMHB4O30KLmltcG93ZXJCb3ggLnRpdGxlIHtkaXNwbGF5OiBub25lO30KLmltcG93ZXJCb3ggLmluZm8ge3dpZHRoOiAyMDBweDt9Ci5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0KLmltcG93ZXJCb3ggLnN0YXR1cyB7dGV4dC1hbGlnbjogY2VudGVyO30="
22184
+ });
22185
+ }
22186
+ var WeChat = {
22187
+ WxLogin: run
22188
+ };
22189
+
22156
22190
  // 引用标准:GB/T 2260
22157
22191
 
22158
22192
  /**
@@ -24354,7 +24388,7 @@ const scopeThis_box = reactive(props.scopeThis);
24354
24388
  return (_ctx, _cache) => {
24355
24389
  const _component_el_dialog = resolveComponent("el-dialog");
24356
24390
 
24357
- return (formProps_box.popup && formProps_box.popup.visible)
24391
+ return (formProps_box.popup)
24358
24392
  ? (openBlock(), createBlock(_component_el_dialog, {
24359
24393
  key: 0,
24360
24394
  modelValue: formProps_box.popup.visible,
@@ -42463,7 +42497,7 @@ const scopeThis_box = reactive(props.scopeThis);
42463
42497
  return (_ctx, _cache) => {
42464
42498
  const _component_el_dialog = resolveComponent("el-dialog");
42465
42499
 
42466
- return (tableProps_box.popup.visible)
42500
+ return (tableProps_box.popup)
42467
42501
  ? (openBlock(), createBlock(_component_el_dialog, {
42468
42502
  key: 0,
42469
42503
  modelValue: tableProps_box.popup.visible,
@@ -45376,8 +45410,9 @@ var index = {
45376
45410
  },
45377
45411
  FileSaver,
45378
45412
  request,
45413
+ WeChat,
45379
45414
  withTable
45380
45415
  };
45381
45416
 
45382
- export { FileSaver, index as default, request, withTable };
45417
+ export { FileSaver, WeChat, index as default, request, withTable };
45383
45418
  //# sourceMappingURL=index.esm.js.map