@smart100/spu-web-plugin 0.0.27 → 0.0.28
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/spu-web-plugin.mjs +278 -186
- package/package.json +2 -2
package/dist/spu-web-plugin.mjs
CHANGED
|
@@ -708,7 +708,7 @@ function _toPropertyKey$1(arg) {
|
|
|
708
708
|
return typeof key === "symbol" ? key : String(key);
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
var version = "0.0.
|
|
711
|
+
var version = "0.0.28";
|
|
712
712
|
|
|
713
713
|
/** Detect free variable `global` from Node.js. */
|
|
714
714
|
var freeGlobal$2 = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -11546,9 +11546,9 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11546
11546
|
this.isHack = false;
|
|
11547
11547
|
this.isLoadJs = false;
|
|
11548
11548
|
this.lastConfigUrl = '';
|
|
11549
|
-
this.lastConfigJsApiList = [];
|
|
11549
|
+
this.lastConfigJsApiList = ['getLocation'];
|
|
11550
11550
|
this.lastAgentConfigUrl = '';
|
|
11551
|
-
this.lastAgentConfigJsApiList = [];
|
|
11551
|
+
this.lastAgentConfigJsApiList = ['getLocation'];
|
|
11552
11552
|
this.initPro = null;
|
|
11553
11553
|
}
|
|
11554
11554
|
_createClass(Jssdk, [{
|
|
@@ -11568,17 +11568,17 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11568
11568
|
}
|
|
11569
11569
|
};
|
|
11570
11570
|
}
|
|
11571
|
-
// private isFail = false
|
|
11572
11571
|
}, {
|
|
11573
11572
|
key: "loadJsUrl",
|
|
11574
11573
|
value: function loadJsUrl(url, property) {
|
|
11574
|
+
var whichWindow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window;
|
|
11575
11575
|
return new Promise( /*#__PURE__*/function () {
|
|
11576
11576
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
|
11577
11577
|
var script, x;
|
|
11578
11578
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11579
11579
|
while (1) switch (_context.prev = _context.next) {
|
|
11580
11580
|
case 0:
|
|
11581
|
-
script = document.createElement('script');
|
|
11581
|
+
script = whichWindow.document.createElement('script');
|
|
11582
11582
|
script.setAttribute('type', 'text/javascript');
|
|
11583
11583
|
script.setAttribute('src', url);
|
|
11584
11584
|
if (property) {
|
|
@@ -11586,7 +11586,7 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11586
11586
|
script.setAttribute(x, property[x]);
|
|
11587
11587
|
}
|
|
11588
11588
|
}
|
|
11589
|
-
document.getElementsByTagName('head')[0].appendChild(script);
|
|
11589
|
+
whichWindow.document.getElementsByTagName('head')[0].appendChild(script);
|
|
11590
11590
|
script.onload = script.onreadystatechange = function () {
|
|
11591
11591
|
var st = script.readyState;
|
|
11592
11592
|
if (st && st !== 'loaded' && st !== 'complete') return;
|
|
@@ -11609,43 +11609,28 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11609
11609
|
value: function config() {
|
|
11610
11610
|
var _this = this;
|
|
11611
11611
|
var jsApiList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11612
|
+
var url = arguments.length > 1 ? arguments[1] : undefined;
|
|
11612
11613
|
// debugger
|
|
11613
11614
|
return new Promise( /*#__PURE__*/function () {
|
|
11614
11615
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(resolve, reject) {
|
|
11615
|
-
var
|
|
11616
|
+
var _signature, wxworksuitedata, signature, topWindow;
|
|
11616
11617
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11617
11618
|
while (1) switch (_context2.prev = _context2.next) {
|
|
11618
11619
|
case 0:
|
|
11619
|
-
|
|
11620
|
-
isin = jsApiList.every(function (item) {
|
|
11621
|
-
return _this.lastConfigJsApiList.some(function (item2) {
|
|
11622
|
-
return item2 === item;
|
|
11623
|
-
});
|
|
11624
|
-
});
|
|
11625
|
-
if (!(isin && _this.lastConfigUrl === url)) {
|
|
11626
|
-
_context2.next = 5;
|
|
11627
|
-
break;
|
|
11628
|
-
}
|
|
11629
|
-
resolve('wx.config success');
|
|
11630
|
-
return _context2.abrupt("return");
|
|
11631
|
-
case 5:
|
|
11632
|
-
_context2.prev = 5;
|
|
11633
|
-
newJsApiList = [];
|
|
11634
|
-
if (!isin) {
|
|
11635
|
-
newJsApiList = _toConsumableArray(new Set([].concat(_toConsumableArray(_this.lastConfigJsApiList), _toConsumableArray(jsApiList))));
|
|
11636
|
-
}
|
|
11620
|
+
_context2.prev = 0;
|
|
11637
11621
|
wxworksuitedata = _this.getData();
|
|
11638
|
-
_context2.next =
|
|
11622
|
+
_context2.next = 4;
|
|
11639
11623
|
return normalAxios$1.post('/api/wxwork/common/getJsapiSignature', {
|
|
11640
11624
|
url: url,
|
|
11641
11625
|
suiteKey: wxworksuitedata.suiteKey,
|
|
11642
11626
|
corpId: wxworksuitedata.corpId
|
|
11643
11627
|
});
|
|
11644
|
-
case
|
|
11628
|
+
case 4:
|
|
11645
11629
|
signature = _context2.sent;
|
|
11646
11630
|
signature = ((_signature = signature) === null || _signature === void 0 || (_signature = _signature.data) === null || _signature === void 0 ? void 0 : _signature.data) || {};
|
|
11647
11631
|
// console.log(signature)
|
|
11648
|
-
|
|
11632
|
+
topWindow = _this.getTopWindow();
|
|
11633
|
+
topWindow.wx.config({
|
|
11649
11634
|
beta: true,
|
|
11650
11635
|
debug: false,
|
|
11651
11636
|
// debug: false,
|
|
@@ -11653,34 +11638,34 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11653
11638
|
timestamp: signature.timestamp,
|
|
11654
11639
|
nonceStr: signature.nonceStr,
|
|
11655
11640
|
signature: signature.signature,
|
|
11656
|
-
jsApiList:
|
|
11641
|
+
jsApiList: cloneDeep(jsApiList) // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
11657
11642
|
// jsApiList: ['getLocation'] // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
11658
11643
|
});
|
|
11659
11644
|
|
|
11660
|
-
|
|
11645
|
+
topWindow.wx.ready(function (res) {
|
|
11661
11646
|
_this.lastConfigUrl = url;
|
|
11662
|
-
_this.lastConfigJsApiList =
|
|
11663
|
-
console.log('wx.config success'
|
|
11647
|
+
_this.lastConfigJsApiList = cloneDeep(jsApiList);
|
|
11648
|
+
console.log('wx.config success');
|
|
11664
11649
|
resolve('wx.config success');
|
|
11665
11650
|
});
|
|
11666
|
-
|
|
11651
|
+
topWindow.wx.error(function (err) {
|
|
11667
11652
|
console.error('wx.config fail', err);
|
|
11668
|
-
reject(
|
|
11653
|
+
reject(err);
|
|
11669
11654
|
});
|
|
11670
11655
|
setTimeout(function () {
|
|
11671
11656
|
reject(new Error('wx.config fail timeout 3000'));
|
|
11672
11657
|
}, 3000);
|
|
11673
|
-
_context2.next =
|
|
11658
|
+
_context2.next = 16;
|
|
11674
11659
|
break;
|
|
11675
|
-
case
|
|
11676
|
-
_context2.prev =
|
|
11677
|
-
_context2.t0 = _context2["catch"](
|
|
11660
|
+
case 13:
|
|
11661
|
+
_context2.prev = 13;
|
|
11662
|
+
_context2.t0 = _context2["catch"](0);
|
|
11678
11663
|
reject(_context2.t0);
|
|
11679
|
-
case
|
|
11664
|
+
case 16:
|
|
11680
11665
|
case "end":
|
|
11681
11666
|
return _context2.stop();
|
|
11682
11667
|
}
|
|
11683
|
-
}, _callee2, null, [[
|
|
11668
|
+
}, _callee2, null, [[0, 13]]);
|
|
11684
11669
|
}));
|
|
11685
11670
|
return function (_x3, _x4) {
|
|
11686
11671
|
return _ref2.apply(this, arguments);
|
|
@@ -11692,185 +11677,220 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11692
11677
|
value: function agentConfig() {
|
|
11693
11678
|
var _this2 = this;
|
|
11694
11679
|
var jsApiList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11680
|
+
var url = arguments.length > 1 ? arguments[1] : undefined;
|
|
11695
11681
|
return new Promise( /*#__PURE__*/function () {
|
|
11696
11682
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve, reject) {
|
|
11697
|
-
var
|
|
11683
|
+
var _signature2, wxworksuitedata, signature, topWindow;
|
|
11698
11684
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11699
11685
|
while (1) switch (_context3.prev = _context3.next) {
|
|
11700
11686
|
case 0:
|
|
11701
|
-
|
|
11702
|
-
isin = jsApiList.every(function (item) {
|
|
11703
|
-
return _this2.lastAgentConfigJsApiList.some(function (item2) {
|
|
11704
|
-
return item2 === item;
|
|
11705
|
-
});
|
|
11706
|
-
});
|
|
11707
|
-
if (!(isin && _this2.lastAgentConfigUrl === url)) {
|
|
11708
|
-
_context3.next = 5;
|
|
11709
|
-
break;
|
|
11710
|
-
}
|
|
11711
|
-
resolve('wx.agentConfig success');
|
|
11712
|
-
return _context3.abrupt("return");
|
|
11713
|
-
case 5:
|
|
11714
|
-
_context3.prev = 5;
|
|
11715
|
-
newJsApiList = [];
|
|
11716
|
-
if (!isin) {
|
|
11717
|
-
newJsApiList = _toConsumableArray(new Set([].concat(_toConsumableArray(_this2.lastAgentConfigJsApiList), _toConsumableArray(jsApiList))));
|
|
11718
|
-
}
|
|
11687
|
+
_context3.prev = 0;
|
|
11719
11688
|
wxworksuitedata = _this2.getData();
|
|
11720
|
-
_context3.next =
|
|
11689
|
+
_context3.next = 4;
|
|
11721
11690
|
return normalAxios$1.post('/api/wxwork/common/getSuiteJsapiSignature', {
|
|
11722
11691
|
url: url,
|
|
11723
11692
|
suiteKey: wxworksuitedata.suiteKey,
|
|
11724
11693
|
corpId: wxworksuitedata.corpId
|
|
11725
11694
|
});
|
|
11726
|
-
case
|
|
11695
|
+
case 4:
|
|
11727
11696
|
signature = _context3.sent;
|
|
11728
11697
|
signature = ((_signature2 = signature) === null || _signature2 === void 0 || (_signature2 = _signature2.data) === null || _signature2 === void 0 ? void 0 : _signature2.data) || {};
|
|
11729
|
-
window
|
|
11698
|
+
// agentConfig 和 config 必须在最上层的 window 上注册
|
|
11699
|
+
topWindow = _this2.getTopWindow();
|
|
11700
|
+
topWindow.wx.agentConfig({
|
|
11730
11701
|
corpid: signature.corpid,
|
|
11731
11702
|
agentid: signature.agentid,
|
|
11732
11703
|
timestamp: signature.timestamp,
|
|
11733
11704
|
nonceStr: signature.nonceStr,
|
|
11734
11705
|
signature: signature.signature,
|
|
11735
|
-
jsApiList:
|
|
11706
|
+
jsApiList: cloneDeep(jsApiList),
|
|
11736
11707
|
success: function success(res) {
|
|
11737
11708
|
_this2.lastAgentConfigUrl = url;
|
|
11738
|
-
_this2.lastAgentConfigJsApiList =
|
|
11709
|
+
_this2.lastAgentConfigJsApiList = cloneDeep(jsApiList);
|
|
11739
11710
|
console.log('wx.agentConfig success', res);
|
|
11740
11711
|
resolve('wx.agentConfig success');
|
|
11741
11712
|
},
|
|
11742
11713
|
fail: function fail(error) {
|
|
11743
11714
|
console.error('wx.agentConfig fail', error);
|
|
11744
|
-
reject(
|
|
11715
|
+
reject(error);
|
|
11745
11716
|
}
|
|
11746
11717
|
});
|
|
11747
|
-
_context3.next =
|
|
11718
|
+
_context3.next = 13;
|
|
11748
11719
|
break;
|
|
11749
|
-
case
|
|
11750
|
-
_context3.prev =
|
|
11751
|
-
_context3.t0 = _context3["catch"](
|
|
11720
|
+
case 10:
|
|
11721
|
+
_context3.prev = 10;
|
|
11722
|
+
_context3.t0 = _context3["catch"](0);
|
|
11752
11723
|
reject(_context3.t0);
|
|
11753
|
-
case
|
|
11724
|
+
case 13:
|
|
11754
11725
|
case "end":
|
|
11755
11726
|
return _context3.stop();
|
|
11756
11727
|
}
|
|
11757
|
-
}, _callee3, null, [[
|
|
11728
|
+
}, _callee3, null, [[0, 10]]);
|
|
11758
11729
|
}));
|
|
11759
11730
|
return function (_x5, _x6) {
|
|
11760
11731
|
return _ref3.apply(this, arguments);
|
|
11761
11732
|
};
|
|
11762
11733
|
}());
|
|
11763
11734
|
}
|
|
11735
|
+
}, {
|
|
11736
|
+
key: "checkSession",
|
|
11737
|
+
value: function checkSession() {
|
|
11738
|
+
var _this3 = this;
|
|
11739
|
+
return new Promise( /*#__PURE__*/function () {
|
|
11740
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(resolve, reject) {
|
|
11741
|
+
var topWWOpenData, topWindow;
|
|
11742
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11743
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
11744
|
+
case 0:
|
|
11745
|
+
topWWOpenData = _this3.getTopWWOpenData();
|
|
11746
|
+
topWindow = _this3.getTopWindow();
|
|
11747
|
+
if (topWWOpenData) {
|
|
11748
|
+
topWWOpenData.checkSession({
|
|
11749
|
+
success: function success() {
|
|
11750
|
+
console.log('open-data 登录态校验成功');
|
|
11751
|
+
resolve({
|
|
11752
|
+
topWindow: topWindow,
|
|
11753
|
+
topWWOpenData: topWWOpenData
|
|
11754
|
+
});
|
|
11755
|
+
},
|
|
11756
|
+
fail: function fail(err) {
|
|
11757
|
+
console.error('open-data 登录态过期');
|
|
11758
|
+
reject(err);
|
|
11759
|
+
}
|
|
11760
|
+
});
|
|
11761
|
+
} else {
|
|
11762
|
+
reject(new Error('不存在 WWOpenData,请排查。'));
|
|
11763
|
+
}
|
|
11764
|
+
case 3:
|
|
11765
|
+
case "end":
|
|
11766
|
+
return _context4.stop();
|
|
11767
|
+
}
|
|
11768
|
+
}, _callee4);
|
|
11769
|
+
}));
|
|
11770
|
+
return function (_x7, _x8) {
|
|
11771
|
+
return _ref4.apply(this, arguments);
|
|
11772
|
+
};
|
|
11773
|
+
}());
|
|
11774
|
+
}
|
|
11764
11775
|
}, {
|
|
11765
11776
|
key: "initFun",
|
|
11766
11777
|
value: function () {
|
|
11767
|
-
var _initFun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11768
|
-
var
|
|
11778
|
+
var _initFun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
11779
|
+
var _this4 = this;
|
|
11769
11780
|
var jsApiList,
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11781
|
+
url,
|
|
11782
|
+
_args6 = arguments;
|
|
11783
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
11784
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
11773
11785
|
case 0:
|
|
11774
|
-
jsApiList =
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11786
|
+
jsApiList = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : [];
|
|
11787
|
+
url = _args6.length > 1 ? _args6[1] : undefined;
|
|
11788
|
+
return _context6.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
11789
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject) {
|
|
11790
|
+
var res;
|
|
11791
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
11792
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
11779
11793
|
case 0:
|
|
11780
|
-
if (
|
|
11781
|
-
|
|
11782
|
-
|
|
11794
|
+
if (!_this4.isHack) {
|
|
11795
|
+
_this4.hack();
|
|
11796
|
+
_this4.isHack = true;
|
|
11783
11797
|
}
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
// console.log(this.isFail)
|
|
11788
|
-
// if (this.isFail) {
|
|
11789
|
-
// setTimeout(() => {
|
|
11790
|
-
// console.log('setTimeout')
|
|
11791
|
-
// this.isFail = false
|
|
11792
|
-
// }, 500)
|
|
11793
|
-
// reject(new Error('init fail, please wait.'))
|
|
11794
|
-
// return false
|
|
11795
|
-
// }
|
|
11796
|
-
if (!_this3.isHack) {
|
|
11797
|
-
_this3.hack();
|
|
11798
|
-
_this3.isHack = true;
|
|
11798
|
+
if (_this4.isLoadJs) {
|
|
11799
|
+
_context5.next = 24;
|
|
11800
|
+
break;
|
|
11799
11801
|
}
|
|
11800
|
-
if (
|
|
11801
|
-
|
|
11802
|
+
if (!(window.top && window.top !== window)) {
|
|
11803
|
+
_context5.next = 14;
|
|
11802
11804
|
break;
|
|
11803
11805
|
}
|
|
11804
11806
|
if (!isWxworkApp()) {
|
|
11805
|
-
|
|
11807
|
+
_context5.next = 8;
|
|
11806
11808
|
break;
|
|
11807
11809
|
}
|
|
11808
|
-
|
|
11809
|
-
return
|
|
11810
|
+
_context5.next = 6;
|
|
11811
|
+
return _this4.loadJsUrl('//res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js', {
|
|
11810
11812
|
referrerpolicy: 'origin'
|
|
11811
|
-
});
|
|
11812
|
-
case
|
|
11813
|
-
|
|
11813
|
+
}, window.top);
|
|
11814
|
+
case 6:
|
|
11815
|
+
_context5.next = 10;
|
|
11814
11816
|
break;
|
|
11817
|
+
case 8:
|
|
11818
|
+
_context5.next = 10;
|
|
11819
|
+
return _this4.loadJsUrl('//res.wx.qq.com/open/js/jweixin-1.2.0.js', {
|
|
11820
|
+
referrerpolicy: 'origin'
|
|
11821
|
+
}, window.top);
|
|
11815
11822
|
case 10:
|
|
11816
|
-
|
|
11817
|
-
return
|
|
11823
|
+
_context5.next = 12;
|
|
11824
|
+
return _this4.loadJsUrl('//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js', {
|
|
11818
11825
|
referrerpolicy: 'origin'
|
|
11819
11826
|
});
|
|
11820
11827
|
case 12:
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
referrerpolicy: 'origin'
|
|
11824
|
-
});
|
|
11828
|
+
_context5.next = 23;
|
|
11829
|
+
break;
|
|
11825
11830
|
case 14:
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
_context4.prev = 15;
|
|
11829
|
-
if (!/MicroMessenger/i.test(navigator.userAgent)) {
|
|
11830
|
-
_context4.next = 19;
|
|
11831
|
+
if (!isWxworkApp()) {
|
|
11832
|
+
_context5.next = 19;
|
|
11831
11833
|
break;
|
|
11832
11834
|
}
|
|
11833
|
-
|
|
11834
|
-
return
|
|
11835
|
+
_context5.next = 17;
|
|
11836
|
+
return _this4.loadJsUrl('//res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js', {
|
|
11837
|
+
referrerpolicy: 'origin'
|
|
11838
|
+
});
|
|
11839
|
+
case 17:
|
|
11840
|
+
_context5.next = 21;
|
|
11841
|
+
break;
|
|
11835
11842
|
case 19:
|
|
11836
|
-
|
|
11837
|
-
return
|
|
11843
|
+
_context5.next = 21;
|
|
11844
|
+
return _this4.loadJsUrl('//res.wx.qq.com/open/js/jweixin-1.2.0.js', {
|
|
11845
|
+
referrerpolicy: 'origin'
|
|
11846
|
+
});
|
|
11838
11847
|
case 21:
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
resolve('success');
|
|
11843
|
-
},
|
|
11844
|
-
fail: function fail(err) {
|
|
11845
|
-
console.error('open-data 登录态过期');
|
|
11846
|
-
// this.isFail = true
|
|
11847
|
-
_this3.reset();
|
|
11848
|
-
reject(err);
|
|
11849
|
-
}
|
|
11848
|
+
_context5.next = 23;
|
|
11849
|
+
return _this4.loadJsUrl('//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js', {
|
|
11850
|
+
referrerpolicy: 'origin'
|
|
11850
11851
|
});
|
|
11851
|
-
|
|
11852
|
-
|
|
11852
|
+
case 23:
|
|
11853
|
+
_this4.isLoadJs = true;
|
|
11853
11854
|
case 24:
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11855
|
+
_context5.prev = 24;
|
|
11856
|
+
if (!/MicroMessenger/i.test(navigator.userAgent)) {
|
|
11857
|
+
_context5.next = 28;
|
|
11858
|
+
break;
|
|
11859
|
+
}
|
|
11860
|
+
_context5.next = 28;
|
|
11861
|
+
return _this4.config(jsApiList, url);
|
|
11859
11862
|
case 28:
|
|
11863
|
+
_context5.next = 30;
|
|
11864
|
+
return _this4.agentConfig(jsApiList, url);
|
|
11865
|
+
case 30:
|
|
11866
|
+
_context5.next = 32;
|
|
11867
|
+
return _this4.checkSession();
|
|
11868
|
+
case 32:
|
|
11869
|
+
res = _context5.sent;
|
|
11870
|
+
resolve(res);
|
|
11871
|
+
_context5.next = 40;
|
|
11872
|
+
break;
|
|
11873
|
+
case 36:
|
|
11874
|
+
_context5.prev = 36;
|
|
11875
|
+
_context5.t0 = _context5["catch"](24);
|
|
11876
|
+
// this.isFail = true
|
|
11877
|
+
_this4.reset();
|
|
11878
|
+
reject(_context5.t0);
|
|
11879
|
+
case 40:
|
|
11860
11880
|
case "end":
|
|
11861
|
-
return
|
|
11881
|
+
return _context5.stop();
|
|
11862
11882
|
}
|
|
11863
|
-
},
|
|
11883
|
+
}, _callee5, null, [[24, 36]]);
|
|
11864
11884
|
}));
|
|
11865
|
-
return function (
|
|
11866
|
-
return
|
|
11885
|
+
return function (_x9, _x10) {
|
|
11886
|
+
return _ref5.apply(this, arguments);
|
|
11867
11887
|
};
|
|
11868
11888
|
}()));
|
|
11869
|
-
case
|
|
11889
|
+
case 3:
|
|
11870
11890
|
case "end":
|
|
11871
|
-
return
|
|
11891
|
+
return _context6.stop();
|
|
11872
11892
|
}
|
|
11873
|
-
},
|
|
11893
|
+
}, _callee6);
|
|
11874
11894
|
}));
|
|
11875
11895
|
function initFun() {
|
|
11876
11896
|
return _initFun.apply(this, arguments);
|
|
@@ -11880,42 +11900,94 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11880
11900
|
}, {
|
|
11881
11901
|
key: "init",
|
|
11882
11902
|
value: function () {
|
|
11883
|
-
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11903
|
+
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
11904
|
+
var _this5 = this;
|
|
11884
11905
|
var jsApiList,
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11906
|
+
url,
|
|
11907
|
+
isin,
|
|
11908
|
+
res,
|
|
11909
|
+
_res,
|
|
11910
|
+
_args7 = arguments;
|
|
11911
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
11912
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
11888
11913
|
case 0:
|
|
11889
|
-
jsApiList =
|
|
11890
|
-
if (
|
|
11891
|
-
|
|
11914
|
+
jsApiList = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : [];
|
|
11915
|
+
if (this.checkData()) {
|
|
11916
|
+
_context7.next = 3;
|
|
11892
11917
|
break;
|
|
11893
11918
|
}
|
|
11894
|
-
|
|
11919
|
+
throw new Error('The current tenant is not a wxworksuite tenant.');
|
|
11895
11920
|
case 3:
|
|
11896
|
-
|
|
11897
|
-
|
|
11921
|
+
jsApiList = _toConsumableArray(new Set([].concat(_toConsumableArray(this.lastAgentConfigJsApiList), _toConsumableArray(jsApiList))));
|
|
11922
|
+
url = location.origin + location.pathname + location.search;
|
|
11923
|
+
isin = jsApiList.every(function (item) {
|
|
11924
|
+
return _this5.lastAgentConfigJsApiList.some(function (item2) {
|
|
11925
|
+
return item2 === item;
|
|
11926
|
+
});
|
|
11927
|
+
}); // console.log('jsApiList', jsApiList)
|
|
11928
|
+
// console.log('lastAgentConfigJsApiList', this.lastAgentConfigJsApiList)
|
|
11929
|
+
if (!(isin && this.lastAgentConfigUrl === url)) {
|
|
11930
|
+
_context7.next = 20;
|
|
11931
|
+
break;
|
|
11932
|
+
}
|
|
11933
|
+
_context7.prev = 7;
|
|
11934
|
+
_context7.next = 10;
|
|
11935
|
+
return this.checkSession();
|
|
11936
|
+
case 10:
|
|
11937
|
+
res = _context7.sent;
|
|
11938
|
+
return _context7.abrupt("return", res);
|
|
11939
|
+
case 14:
|
|
11940
|
+
_context7.prev = 14;
|
|
11941
|
+
_context7.t0 = _context7["catch"](7);
|
|
11942
|
+
// this.isFail = true
|
|
11943
|
+
this.reset();
|
|
11944
|
+
throw _context7.t0;
|
|
11945
|
+
case 18:
|
|
11946
|
+
_context7.next = 28;
|
|
11947
|
+
break;
|
|
11948
|
+
case 20:
|
|
11949
|
+
if (!this.initPro) {
|
|
11950
|
+
_context7.next = 22;
|
|
11951
|
+
break;
|
|
11952
|
+
}
|
|
11953
|
+
return _context7.abrupt("return", this.initPro);
|
|
11954
|
+
case 22:
|
|
11955
|
+
this.initPro = this.initFun(jsApiList, url);
|
|
11956
|
+
_context7.next = 25;
|
|
11898
11957
|
return this.initPro;
|
|
11899
|
-
case
|
|
11900
|
-
|
|
11901
|
-
|
|
11958
|
+
case 25:
|
|
11959
|
+
_res = _context7.sent;
|
|
11960
|
+
this.initPro = null;
|
|
11961
|
+
return _context7.abrupt("return", _res);
|
|
11962
|
+
case 28:
|
|
11902
11963
|
case "end":
|
|
11903
|
-
return
|
|
11964
|
+
return _context7.stop();
|
|
11904
11965
|
}
|
|
11905
|
-
},
|
|
11966
|
+
}, _callee7, this, [[7, 14]]);
|
|
11906
11967
|
}));
|
|
11907
11968
|
function init() {
|
|
11908
11969
|
return _init.apply(this, arguments);
|
|
11909
11970
|
}
|
|
11910
11971
|
return init;
|
|
11911
11972
|
}()
|
|
11973
|
+
}, {
|
|
11974
|
+
key: "getTopWWOpenData",
|
|
11975
|
+
value: function getTopWWOpenData() {
|
|
11976
|
+
var _window, _window2;
|
|
11977
|
+
return ((_window = window) === null || _window === void 0 || (_window = _window.top) === null || _window === void 0 ? void 0 : _window.WWOpenData) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.WWOpenData) || null;
|
|
11978
|
+
}
|
|
11979
|
+
}, {
|
|
11980
|
+
key: "getTopWindow",
|
|
11981
|
+
value: function getTopWindow() {
|
|
11982
|
+
return window.top || window;
|
|
11983
|
+
}
|
|
11912
11984
|
}, {
|
|
11913
11985
|
key: "reset",
|
|
11914
11986
|
value: function reset() {
|
|
11915
11987
|
this.lastConfigUrl = '';
|
|
11916
|
-
this.lastConfigJsApiList = [];
|
|
11988
|
+
this.lastConfigJsApiList = ['getLocation'];
|
|
11917
11989
|
this.lastAgentConfigUrl = '';
|
|
11918
|
-
this.lastAgentConfigJsApiList = [];
|
|
11990
|
+
this.lastAgentConfigJsApiList = ['getLocation'];
|
|
11919
11991
|
this.initPro = null;
|
|
11920
11992
|
}
|
|
11921
11993
|
}, {
|
|
@@ -11985,18 +12057,24 @@ var WxworksuiteBaseOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
11985
12057
|
case 0:
|
|
11986
12058
|
_get(_getPrototypeOf(WxworksuiteBaseOpendata.prototype), "connectedCallback", this).call(this);
|
|
11987
12059
|
// console.log('connectedCallback')
|
|
11988
|
-
jssdk.init(
|
|
12060
|
+
jssdk.init().then(function (_ref) {
|
|
12061
|
+
var topWWOpenData = _ref.topWWOpenData;
|
|
11989
12062
|
_this2._isCanUseWxworkSuite = true;
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
12063
|
+
if (_this2.wwopendataRef) {
|
|
12064
|
+
if (topWWOpenData) {
|
|
12065
|
+
topWWOpenData.bind(_this2.wwopendataRef);
|
|
12066
|
+
// WWOpenData.on('update', (event: any) => {
|
|
12067
|
+
// const openid = event.detail.element.getAttribute('openid')
|
|
12068
|
+
// console.log('渲染数据发生变更', event, openid)
|
|
12069
|
+
// })
|
|
12070
|
+
// topWWOpenData.on('error', (event: any) => {
|
|
12071
|
+
// console.error('获取数据失败', event)
|
|
12072
|
+
// })
|
|
12073
|
+
}
|
|
11997
12074
|
}
|
|
11998
12075
|
})["catch"](function (err) {
|
|
11999
12076
|
// console.error(err)
|
|
12077
|
+
// console.error('jssdk.init() fail', err)
|
|
12000
12078
|
_this2._isCanUseWxworkSuite = false;
|
|
12001
12079
|
});
|
|
12002
12080
|
case 2:
|
|
@@ -12068,7 +12146,7 @@ var WxworksuiteBaseOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12068
12146
|
}(s$1);
|
|
12069
12147
|
_class$7 = WxworksuiteBaseOpendata;
|
|
12070
12148
|
_class$7.componentName = 'wxworksuite-base-opendata';
|
|
12071
|
-
_class$7.styles = i$4(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n
|
|
12149
|
+
_class$7.styles = i$4(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n :host {}\n "])));
|
|
12072
12150
|
__decorate([n$1({
|
|
12073
12151
|
type: String
|
|
12074
12152
|
})], WxworksuiteBaseOpendata.prototype, "openid", void 0);
|
|
@@ -12206,7 +12284,7 @@ var WxworksuiteOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12206
12284
|
var _this2 = this;
|
|
12207
12285
|
if (this.type === 'expression') {
|
|
12208
12286
|
var _this$wwbaseopendataR;
|
|
12209
|
-
console.log(this.wwbaseopendataRefs)
|
|
12287
|
+
// console.log(this.wwbaseopendataRefs)
|
|
12210
12288
|
var data = {
|
|
12211
12289
|
type: this.type,
|
|
12212
12290
|
openid: this.openid,
|
|
@@ -12278,12 +12356,15 @@ var WxworksuiteOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12278
12356
|
window.customElements.define(WxworksuiteOpendata.componentName, WxworksuiteOpendata);
|
|
12279
12357
|
}
|
|
12280
12358
|
}
|
|
12359
|
+
// https://blog.csdn.net/Letasian/article/details/76460882
|
|
12360
|
+
// https://www.jianshu.com/p/b3f01185e55b
|
|
12361
|
+
// https://www.cnblogs.com/benxiaohai-microcosm/p/6928897.html
|
|
12281
12362
|
}]);
|
|
12282
12363
|
return WxworksuiteOpendata;
|
|
12283
12364
|
}(s$1);
|
|
12284
12365
|
_class$6 = WxworksuiteOpendata;
|
|
12285
12366
|
_class$6.componentName = 'wxworksuite-opendata';
|
|
12286
|
-
_class$6.styles = i$4(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral(["\n :host {\n /* display: inline-block; */\n word-spacing: -1em
|
|
12367
|
+
_class$6.styles = i$4(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral(["\n :host {\n /* display: inline-block; */\n /* word-spacing: -1em; */\n /* letter-spacing: -1em; */\n /* display: flex; */\n }\n "])));
|
|
12287
12368
|
__decorate([n$1({
|
|
12288
12369
|
type: String
|
|
12289
12370
|
})], WxworksuiteOpendata.prototype, "openid", void 0);
|
|
@@ -12801,7 +12882,7 @@ var WxworksuiteTree = /*#__PURE__*/function (_LitElement) {
|
|
|
12801
12882
|
}(s$1);
|
|
12802
12883
|
_class$5 = WxworksuiteTree;
|
|
12803
12884
|
_class$5.componentName = 'wxworksuite-tree';
|
|
12804
|
-
_class$5.styles = i$4(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteral(["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n .tree {\n display: block;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n position: relative;\n }\n .tree-search {\n margin: 8px 0;\n border: 1px solid #F6F6F6;\n background-color: #FFF;\n overflow: hidden;\n border-radius: 16px;\n height: 30px;\n line-height: 30px;\n font-size: 14px;\n padding: 0 12px 0 28px;\n color: #999999;\n background-size: 16px 16px;\n background-position: 8px center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IArs4c6QAAAXpQTFRFAAAAAAAA////qqqqv7+/mZmZqqqqn5+fjo6OmZmZlZWVnZ2dkpKSpKSkmZmZlJSUmZmZm5ubnZ2dl5eXm5ubnJycm5ubmJiYmpqalpaWnZ2dmZmZm5ubmZmZmZmZlpaWmpqam5ubmpqamZmZmJiYl5eXmZmZnJycmpqal5eXmJiYmpqam5ubl5eXmpqamJiYmpqamZmZmpqamZmZmpqamZmZmJiYmZmZnJycmZmZmZmZmpqamZmZmpqamZmZmpqamJiYmpqamZmZmZmZmZmZmZmZmpqamZmZmpqampqamZmZmJiYmZmZmZmZmpqampqamZmZmJiYmZmZmJiYmZmZmZmZmJiYmZmZmpqamZmZmJiYmZmZmZmZmpqamZmZmZmZmpqamZmZmpqamZmZmZmZmZmZmZmZmJiYmZmZmpqamZmZmZmZmpqamZmZmZmZmZmZmZmZmZmZmZmZmZmZmJiYmZmZmZmZmZmZmJiYmZmZmZmZmZmZmpqamZmZU/9+bQAAAH10Uk5TAAEBAwQFBggJCgwNDg4PExQXGhscHyElJicnKCktMjM1ODo8PkBBQ0RHSElKTExNTlBRVVtfYWRkZmlqbG1ub4aLjI+WmJ+goaasrrGys7W3uLm6u7y9wcTFx8vMzM7P0dXW2dve3+Lj4+Tl5ezv8PHy8/X29/n6+/z9/v4sOdMfAAABK0lEQVQYGc3BVztCAQAG4E9DhJSVkZkR2SHK3nuPZJ1Qtsg4re+/6/FIZ9CVC++LP6UtbWgs1+M3jsUHpkSWXRr8wLZHxoTN9ZM38tQOlZ4nhtzFSDG6zih6oNAZS07n4otmIsoxyFSG6YFEhxhthdQGZyDj5bkWGXbe5kHOzyFkzHIcCk7uIuMmUQYFfVgsQloBQ1DZYR3SqngIlQV2Ia2aPqjMsxtphQxCZZv1+HaXKIGC7lE04dscR6HQzn1kNPPKADkfhyGxxSnIjDCoh4TtOemGhOM93gaZ3nhiUo8vOV6R9xbI9Ud4OWhCSl7fEWPXDFggV3tAiserK/4X8qLFLDBggYJzKcyU17UBLWAWGLBASVfR1Gw14JNZYMCIbMxCvAZZ5VvxX3wAF7lDHio0PxcAAAAASUVORK5CYII=);\n /* box-shadow: 0px 0px 2px #ddd; */\n }\n .tree-search input {\n /* display: none; */\n background-color: #FFF;\n line-height: 30px;\n height: 30px;\n border: none;\n outline: none;\n width: 100%;\n padding: 0;\n margin: 0;\n }\n .tree-search input:focus {\n /* outline: none; */\n }\n .tree-con {\n overflow-y: auto;\n }\n .tree-none {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #777;\n font-size: 14px;\n }\n "])));
|
|
12885
|
+
_class$5.styles = i$4(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteral(["\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n .tree {\n display: block;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n position: relative;\n }\n .tree-search {\n margin: 8px 0;\n border: 1px solid #F6F6F6;\n background-color: #FFF;\n overflow: hidden;\n border-radius: 16px;\n height: 30px;\n line-height: 30px;\n font-size: 14px;\n padding: 0 12px 0 28px;\n color: #999999;\n background-size: 16px 16px;\n background-position: 8px center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IArs4c6QAAAXpQTFRFAAAAAAAA////qqqqv7+/mZmZqqqqn5+fjo6OmZmZlZWVnZ2dkpKSpKSkmZmZlJSUmZmZm5ubnZ2dl5eXm5ubnJycm5ubmJiYmpqalpaWnZ2dmZmZm5ubmZmZmZmZlpaWmpqam5ubmpqamZmZmJiYl5eXmZmZnJycmpqal5eXmJiYmpqam5ubl5eXmpqamJiYmpqamZmZmpqamZmZmpqamZmZmJiYmZmZnJycmZmZmZmZmpqamZmZmpqamZmZmpqamJiYmpqamZmZmZmZmZmZmZmZmpqamZmZmpqampqamZmZmJiYmZmZmZmZmpqampqamZmZmJiYmZmZmJiYmZmZmZmZmJiYmZmZmpqamZmZmJiYmZmZmZmZmpqamZmZmZmZmpqamZmZmpqamZmZmZmZmZmZmZmZmJiYmZmZmpqamZmZmZmZmpqamZmZmZmZmZmZmZmZmZmZmZmZmZmZmJiYmZmZmZmZmZmZmJiYmZmZmZmZmZmZmpqamZmZU/9+bQAAAH10Uk5TAAEBAwQFBggJCgwNDg4PExQXGhscHyElJicnKCktMjM1ODo8PkBBQ0RHSElKTExNTlBRVVtfYWRkZmlqbG1ub4aLjI+WmJ+goaasrrGys7W3uLm6u7y9wcTFx8vMzM7P0dXW2dve3+Lj4+Tl5ezv8PHy8/X29/n6+/z9/v4sOdMfAAABK0lEQVQYGc3BVztCAQAG4E9DhJSVkZkR2SHK3nuPZJ1Qtsg4re+/6/FIZ9CVC++LP6UtbWgs1+M3jsUHpkSWXRr8wLZHxoTN9ZM38tQOlZ4nhtzFSDG6zih6oNAZS07n4otmIsoxyFSG6YFEhxhthdQGZyDj5bkWGXbe5kHOzyFkzHIcCk7uIuMmUQYFfVgsQloBQ1DZYR3SqngIlQV2Ia2aPqjMsxtphQxCZZv1+HaXKIGC7lE04dscR6HQzn1kNPPKADkfhyGxxSnIjDCoh4TtOemGhOM93gaZ3nhiUo8vOV6R9xbI9Ud4OWhCSl7fEWPXDFggV3tAiserK/4X8qLFLDBggYJzKcyU17UBLWAWGLBASVfR1Gw14JNZYMCIbMxCvAZZ5VvxX3wAF7lDHio0PxcAAAAASUVORK5CYII=);\n /* box-shadow: 0px 0px 2px #ddd inset; */\n }\n .tree-web .tree-search {\n border-radius: 5px;\n }\n .tree-search input {\n /* display: none; */\n background-color: #FFF;\n line-height: 30px;\n height: 30px;\n border: none;\n outline: none;\n width: 100%;\n padding: 0;\n margin: 0;\n }\n .tree-web .tree-search input {\n font-size: 12px;\n }\n .tree-search input:focus {\n /* outline: none; */\n }\n .tree-con {\n overflow-y: auto;\n }\n .tree-none {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #777;\n font-size: 14px;\n }\n "])));
|
|
12805
12886
|
__decorate([n$1({
|
|
12806
12887
|
type: Array
|
|
12807
12888
|
})], WxworksuiteTree.prototype, "list", void 0);
|
|
@@ -12847,7 +12928,7 @@ __decorate([r$1()], WxworksuiteTree.prototype, "_isonelevel", void 0);
|
|
|
12847
12928
|
// father isselected: ${item.isselected}<br />
|
|
12848
12929
|
// father ismulselect: ${this.ismulselect}<br />
|
|
12849
12930
|
|
|
12850
|
-
var _class$4, _templateObject$2, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
12931
|
+
var _class$4, _templateObject$2, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
12851
12932
|
var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
12852
12933
|
_inherits(WxworksuiteTreenode, _LitElement);
|
|
12853
12934
|
var _super = _createSuper(WxworksuiteTreenode);
|
|
@@ -12921,7 +13002,7 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12921
13002
|
_this2 = this,
|
|
12922
13003
|
_this$node2,
|
|
12923
13004
|
_this$node3;
|
|
12924
|
-
return x(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n <div class=", ">\n <!-- tabindex=\"-1\" -->\n <div class=\"tree-node-line\" class=", ">\n\n ", "\n\n\n <div\n @click=\"", "\"\n class=", "\n >\n <!-- ", " -->\n ", "\n </div>\n\n ", "\n\n ", "\n\n </div>\n\n\n ", "\n </div>\n "])), e$5({
|
|
13005
|
+
return x(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n <div class=", ">\n <!-- tabindex=\"-1\" -->\n <div class=\"tree-node-line\" class=", ">\n\n ", "\n\n ", "\n\n\n <div\n @click=\"", "\"\n class=", "\n >\n <!-- ", " -->\n ", "\n </div>\n\n ", "\n\n ", "\n\n </div>\n\n\n ", "\n </div>\n "])), e$5({
|
|
12925
13006
|
'tree-node': true,
|
|
12926
13007
|
'tree-node-web': this.displaytype === 'web',
|
|
12927
13008
|
'tree-node-mobile': this.displaytype === 'mobile'
|
|
@@ -12935,28 +13016,35 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12935
13016
|
}, e$5({
|
|
12936
13017
|
'tree-node-expand-1': this.node.isexpand,
|
|
12937
13018
|
'tree-node-expand-0': !this.node.isexpand
|
|
12938
|
-
})) : ''), this.
|
|
13019
|
+
})) : ''), this.ismulselect && this.displaytype === 'web' ? x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div\n @click=\"", "\"\n class=", "\n >\n </div>\n "])), function (e) {
|
|
13020
|
+
return _this2.toggle('check');
|
|
13021
|
+
}, e$5({
|
|
13022
|
+
'tree-node-check': true,
|
|
13023
|
+
'tree-node-check-0': this.node.checkstate === '0',
|
|
13024
|
+
'tree-node-check-1': this.node.checkstate === '1',
|
|
13025
|
+
'tree-node-check-2': this.node.checkstate === '2'
|
|
13026
|
+
})) : '', this.clickNode, e$5({
|
|
12939
13027
|
'tree-node-name': true
|
|
12940
|
-
}), this.node.name, this.iswwopendata && this.wwopendatatype || this.node.iswwopendata && this.node.wwopendatatype ? x(
|
|
13028
|
+
}), this.node.name, this.iswwopendata && this.wwopendatatype || this.node.iswwopendata && this.node.wwopendatatype ? x(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n <wxworksuite-opendata\n type=\"", "\"\n openid=\"", "\"\n >\n </wxworksuite-opendata>\n "])), this.node.iswwopendata && this.node.wwopendatatype ? this.node.wwopendatatype : this.wwopendatatype, this.node.name) : x(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["", ""])), this.node.name), this.ismulselect && this.displaytype === 'mobile' ? x(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n <div\n @click=\"", "\"\n class=", "\n >\n </div>\n "])), function (e) {
|
|
12941
13029
|
return _this2.toggle('check');
|
|
12942
13030
|
}, e$5({
|
|
12943
13031
|
'tree-node-check': true,
|
|
12944
13032
|
'tree-node-check-0': this.node.checkstate === '0',
|
|
12945
13033
|
'tree-node-check-1': this.node.checkstate === '1',
|
|
12946
13034
|
'tree-node-check-2': this.node.checkstate === '2'
|
|
12947
|
-
})) : '', this.expandicon === 'organization' ? x(
|
|
13035
|
+
})) : '', this.expandicon === 'organization' ? x(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n <div class=\"tree-node-expand tree-node-expand-left\" style=", ">\n ", "\n </div>\n "])), o$5({
|
|
12948
13036
|
display: this.isonelevel ? 'none' : 'block'
|
|
12949
|
-
}), (_this$node2 = this.node) !== null && _this$node2 !== void 0 && (_this$node2 = _this$node2.children) !== null && _this$node2 !== void 0 && _this$node2.length && this.isrenderchildren ? x(
|
|
13037
|
+
}), (_this$node2 = this.node) !== null && _this$node2 !== void 0 && (_this$node2 = _this$node2.children) !== null && _this$node2 !== void 0 && _this$node2.length && this.isrenderchildren ? x(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n <div\n @click=\"", "\"\n class=", "\n >\n </div>\n "])), function (e) {
|
|
12950
13038
|
return _this2.toggle('expand');
|
|
12951
13039
|
}, e$5({
|
|
12952
13040
|
'tree-node-expand-1': this.node.isexpand,
|
|
12953
13041
|
'tree-node-expand-0': !this.node.isexpand
|
|
12954
|
-
})) : '') : '', (_this$node3 = this.node) !== null && _this$node3 !== void 0 && (_this$node3 = _this$node3.children) !== null && _this$node3 !== void 0 && _this$node3.length && this.isrenderchildren ? x(
|
|
13042
|
+
})) : '') : '', (_this$node3 = this.node) !== null && _this$node3 !== void 0 && (_this$node3 = _this$node3.children) !== null && _this$node3 !== void 0 && _this$node3.length && this.isrenderchildren ? x(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n <div\n class=\"tree-node-children\"\n style=", "\n >\n ", "\n </div>\n "])), o$5({
|
|
12955
13043
|
display: !this.node.isexpand ? 'none' : 'block'
|
|
12956
13044
|
}), c(this.node.children, function (item) {
|
|
12957
13045
|
return item.id;
|
|
12958
13046
|
}, function (item, index) {
|
|
12959
|
-
return x(
|
|
13047
|
+
return x(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n <wxworksuite-treenode\n displaytype=\"", "\"\n expandmode=\"", "\"\n expandicon=\"", "\"\n .node=\"", "\"\n .isonelevel=\"", "\"\n .isrenderchildren=\"", "\"\n .iswwopendata=\"", "\"\n wwopendatatype=\"", "\"\n .ismulselect=\"", "\"\n .updatepoint=\"", "\"\n >\n </wxworksuite-treenode>\n "])), _this2.displaytype, _this2.expandmode, _this2.expandicon, item, _this2.isonelevel, _this2.isrenderchildren, _this2.iswwopendata, _this2.wwopendatatype, _this2.ismulselect, _this2.updatepoint);
|
|
12960
13048
|
})) : '');
|
|
12961
13049
|
}
|
|
12962
13050
|
}], [{
|
|
@@ -12971,7 +13059,7 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12971
13059
|
}(s$1);
|
|
12972
13060
|
_class$4 = WxworksuiteTreenode;
|
|
12973
13061
|
_class$4.componentName = 'wxworksuite-treenode';
|
|
12974
|
-
_class$4.styles = i$4(
|
|
13062
|
+
_class$4.styles = i$4(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n :host {\n display: block;\n }\n\n .tree-node {\n display: block;\n /* border-radius: 10px; */\n background: #fff;\n }\n .tree-node-web {}\n .tree-node-line {\n display: flex;\n width: 100%;\n height: 54px;\n line-height: 54px;\n font-size: 16px;\n align-items: center;\n cursor: pointer;\n box-sizing: border-box;\n border-bottom: 1px solid #F6F6F6;\n padding: 0 12px\n }\n .tree-node-web .tree-node-line {\n font-size: 14px;\n height: 32px;\n line-height: 32px;\n border-bottom: none;\n padding: 0 8px\n }\n .tree-node-line-select {\n background-color: rgba(000, 000, 000, 0.2);\n }\n .tree-node-line:hover {\n background-color: rgba(000, 000, 000, 0.1);\n }\n // .tree-node-line:focus {\n // background-color: rgba(000, 000, 000, 0.1);\n // }\n // .tree-node-line:active {\n // background-color: rgba(000, 000, 000, 0.1);\n // }\n\n .tree-node-org {\n flex: none;\n width: 24px;\n height: 24px;\n background-size: 16px 16px;\n background-position: center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAAQtQTFRFAAAAAID/Inf/Ioj/G4b/F4D/H3r/H4X/HYD/HHv/HIT/G4D/Gn//GYT/GID/F3z/FoP/HXz/HIP/G4D/GoP/GYP/GIL/HID/G4L/GYL/HIL/G4T/G4H/G4X/GoP/GYH/GYP/GoT/GoP/GYT/GoL/GoL/GYX/GYP/GoT/GoP/GYT/GoT/GoT/GoP/GoX/GoX/GoT/GYT/GoT/GYT/GoX/GoX/GYX/GoX/GYX/GYX/GoX/GoX/GoX/GoX/GYX/GYT/GYX/GoX/GoX/GYX/GYX/GoX/GoT/GoX/GYb/GoX/GoX/GoX/GYT/GYX/GoX/GYT/GoX/GoX/GoX/GoX/GoX/GYX/GoX/GoX/GoX/qs3FVQAAAFh0Uk5TAAQPDxMWGRkaGxscHh8gISMjJSYnKSsuLzM3OEFDRkdITU5TWFpcZWxtcHh+iIibnKKmrK60uLq+wMHGx8/T1NXX293e4eLj6evs7vHx8fP19vf4+fz9/ho458UAAAE2SURBVEjH7ZbXVoNAEIYXEmCjsRFRwJ7Ye+911RhLFIwG3v9JpIUzuBJ3LvQq3+U/++2ew3DODCEBkqyo9BdURZZIQkGjQmiF+HyRClOM7qcIgjckDSNoEpEpCpkoOEEhKk5QCRf17Th+wvv+IFfmhSUfsCYgbEBhS0DYhMJ2T/gLQaQPK1BYFxDKh17nePt4RECgtGKa5t2tYRjDPxRJzm/MWE7huzC7e3Ia4rjnIWd7k92F6sfna4Z2a6qrcPQ2kQ2mvYM8oTQWwK4syxroREO2bbcudV2v9PPCwlP68d3VOFp20+h5kRPqoF1OOXqyCaIHToD99c0wGc1EPeF/BA9WxznB44QbUH0sRVEDRIwTZi5emgnXtTiav0/vZ3OpgB4o6JGFHorosYse7PjVAb+c4NafL0Vh7eZJslu0AAAAAElFTkSuQmCC);\n }\n .tree-node-web .tree-node-org {\n width: 20px;\n height: 20px;\n background-size: 14px 14px;\n }\n\n .tree-node-expand {\n flex: none;\n width: 24px;\n height: 24px;\n }\n .tree-node-web .tree-node-expand {\n width: 20px;\n height: 20px;\n }\n .tree-node-expand-left {\n /* margin-left: 8px; */\n }\n .tree-node-web .tree-node-expand-left {\n /* margin-left: 4px; */\n }\n\n .tree-node-expand-1 {\n transition: all 0.3s;\n width: 24px;\n height: 24px;\n background-size: 10px 10px;\n background-position: center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAAXNSR0IArs4c6QAAAE5QTFRFAAAAmZmZnZ2dk5OTlZubmJiYmJiblpaZlZeXl5ealZial5eZlpeZlpiZlpiZl5eZlpeZlpeZlpealpialpeZlpeZlpeZlpeYl5ialpeZUWV/QAAAABl0Uk5TAAUNGik0SktlZW+CoLnP0tXY4O/x8/f7/lzrYIYAAABWSURBVBgZtcFHDoAgAEXBh9h713//i2qMQWDvDL+odwX2GlgUWYFBkRHINgW2jFtxyHPkPKpTzlnyauQ0OK1eLR/T6dEZPEmvW58QsLM0WyLpNKX86AJTcwzl85W+bAAAAABJRU5ErkJggg==);\n }\n .tree-node-web .tree-node-expand-1 {\n width: 20px;\n height: 20px;\n background-size: 8px 8px;\n }\n .tree-node-expand-0 {\n transition: all 0.3s;\n width: 24px;\n height: 24px;\n background-size: 10px 10px;\n background-position: center;\n background-repeat: no-repeat;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAAXNSR0IArs4c6QAAAFRQTFRFAAAAmZmZnZ2dk5OTlZubmJiYmJiblpaZlZeXl5ealZial5eZlpiYlpeZlpiZlpiZl5eZlpeZlpeZlpealpeZlpiZlpeZlpeZlpeZlpeYl5ialpeZ086ZTwAAABt0Uk5TAAUNGik0SktlZW+Cg6C5z9LV2ODh7/Hz9/v+0+Z51wAAAFNJREFUGNON0DkSgCAAQ1FUcFfcF/7972kvcSTla5KJMV9p98lFeMFZvRHgbgQSOoEwZAIZc4H4QiCrFciSiptNK1KTxPjQi0NqcV0ZnXzMzvzlAX8aDeeIcC7nAAAAAElFTkSuQmCC);\n }\n .tree-node-web .tree-node-expand-0 {\n width: 20px;\n height: 20px;\n background-size: 8px 8px;\n }\n\n .tree-node-name {\n flex: 1;\n color: #666;\n display: block;\n white-space: nowrap;\n word-wrap: normal;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n .tree-node-check {\n flex: none;\n width: 30px;\n height: 54px;\n background-size: 18px 18px;\n background-position: center;\n background-repeat: no-repeat;\n }\n .tree-node-web .tree-node-check {\n width: 24px;\n height: 32px;\n background-size: 14px 14px;\n }\n .tree-node-check-1 {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAP9QTFRFAAAAAFX/IID/GIb/F4P/F4f/Gof/GoX/G4T/G4f/GYb/Gob/GoX/G4b/GoX/GoX/GoX/Gob/GoX/Gob/GoX/G4X/HIb/Hof/H4j/MJH/NJP/OJX/O5b/PJf/QJn/QZn/Rpz/SZ7/S5//UKL/UqL/VqX/XKj/Y6v/ZKz/Z63/aq//crP/dLX/erj/fLn/f7r/hL3/hr7/i8H/k8X/mMj/m8n/os3/pc7/qtH/rtP/rtT/sNX/t9j/x+H/2Or/3u3/4u//5vH/6PP/6vP/6/T/7fX/7vb/8Pf/8ff/8vj/8/j/9fn/9/r/9/v/+fz/+vz/+/3//P3//f7//v7/////i2rNLwAAABR0Uk5TAAMIFSEiRFhoaJikxMrN1+v4/v5B0+PEAAABVUlEQVQ4y42U53aDMAyFDSFhb7Xp3k1305XuvdOZtHr/Z6lNgWMT4Pj+4Ro+PCRLhHDSDNsLwjDwbEMjpVJ0J4JckaMro0zLh4L8VgFRrRhGFFsqzzRcKJXb4BgfKuTnlOpCpdxsRQtqZKXniuugODmj4kOtfBYvverrxHm/y546hZwKpn2J2GfGIaQZlTPjF4h4lWRII2Y5M3ZKmZvJxBvELoeOKXM79e9t4qVvZ3odjulR5m46HXgkSN01Djdy5pAyD7PZKCBh6h4Rv7O5DijzNJ//EubQ+hDxYyWxe5R5WQAOypaDrV/Et0VqdplZ4jYY5BsH6NIJnudgmzLvy/xJPT4EbCv3+z+In6tCOGwhmEeY6KsjxswQ03LCmMGayNC0CAlmCRtsFoLvFK9K++x1p5ghXfbSSV1fuUKQKymp4pQrc7mGIdd6JJsYU9PM2qEptMM/OntmUPz7cm0AAAAASUVORK5CYII=);\n }\n .tree-node-check-0 {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAE5QTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxKKmWQAAABp0Uk5TAAECAwUHCAkLDhETGBkaGxwfICEiIyQmKCm9h7L5AAAA20lEQVQ4y42U17KDMAxE14QSSmi2wef/f/Q+pAyTC472UXPGsspKOqjsRr+ntPuxK3WudgHSFsKWgKU9Qe4B1r52kuTqfoVw/0LcAFN1jFQTDO4YuXli8/12E/G3AxOZi/8/KGbih3Kex3ktD/w748B8UbBmhlddxOIKKiLPGgONLtUQJKllUkYTraSFKgdVLFLJqqxWSnX0eain00idh2pG+eTykEte+6Yf2nal8AsKyQaZ0pk+bmqBqZmmsZgGbFsV09LZ1tdkBJulTOa02dx2MGynx3jEcufwDz3UEok9W1hJAAAAAElFTkSuQmCC);\n }\n .tree-node-check-2 {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAASxQTFRFAAAAAFX/IID/GIb/F4P/F4f/Gof/GoX/G4T/G4f/GYb/Gob/GoX/G4b/GoX/GoX/GoX/Gob/GoX/Gob/FnTfFnTgFnThFnXhFnXiFnXjFnbjFnbkFnflFnfmFnjnFnjoFnjpFnnpFnnqF3fmF3joF3npF3nqF3nrF3rrF3rsF3rtF3vtF3vuF3vvF3zvF3zwF33xF33yF370GHvsGHvtGHvuGHzuGHzvGHzwGH3wGH7yGH7zGH70GH71GH/2GID3GID4GIL7GIL8GIP9GYH4GYH5GYL7GYP8GYP9GYT+GoX/N4nnN4vqOIzuOI7wTZfqTprxU5npVJvuVJzuVJ/0osfyosn1o8v5xdz4xd35xd77xd782ur82+r72+v97/X97/b97/b+8/j+////kkh67gAAABR0Uk5TAAMIFSEiRFhoaJikxMrN1+v4/v5B0+PEAAACMElEQVQ4y43UaVeyQBgGYFxyF1zCiCiIyiAxKkpNC1pkGdo322wR//9/eGEGfJHsnO4vnAPXmRlm5nkwLJRkJo+XyuUSns8ksZmJpQsVe5JKIR37aVKEHQmRipB4rmr/SDUXD5tE0Z6ZYiJkCPuXEBMVL9q/phjMmAveAOtkb1eWd/dOLBC8y/n/VQ2IJkuiwPOCKMlawKrwH2P+gsDZjsg9DIaOMxw8cOLOma8Ib7/SgWnyl69jP6+XfDNQaRcVkDmXuZvv8STfN5x8jlQBw+YqaD3H3MXXOJSvC+4YrauSxLJooNPNxZfxVF4WN0/RUBksjwY6Yu7GkdwxR2ioPIZDZG4tPEXR08KWCRGOlSAy2PmPKPqYZw2ISljZe1g6TTpR5JC0bnlfyz7qU7MQ1fcRnM7S6NowioY1WrPQdDhCTG0QRYMagxCOtsDq18n7KLon62i6PNpMS98mmbdp88aQ22jhGXQswOitUVejsBldUWs9uAXuscADBqYqUcu3ITW6XaYkFW5mwb8qwNK7As1evwfm/Zqlha4OjyUdXDpgah1hiW08Pn86zufzY4NdEjoaHAheOnh9gWWobXF9hW9IzabU4FfWxbZqeANVU/8LwVMdRayvbrDsxmpdVDrIBIWASspVWrelKPsHB/uK0upqyExKChUnsExd7R22W632YU/VTWiIRKTMgcsMva9pfd1wCYiUedAwgOtgACSRhvG31vPHJuZlLhu0w+xUO/wHsg0VS5qPp80AAAAASUVORK5CYII=);\n }\n\n .tree-node-children {\n padding-left: 18px;\n }\n .tree-node-web .tree-node-children {\n padding-left: 12px;\n }\n "])));
|
|
12975
13063
|
__decorate([n$1({
|
|
12976
13064
|
type: String
|
|
12977
13065
|
})], WxworksuiteTreenode.prototype, "displaytype", void 0);
|
|
@@ -13023,6 +13111,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
|
|
|
13023
13111
|
// normal 正常选中取值
|
|
13024
13112
|
// disable 不能选非末级节点 只能选末级节点 暂不实现
|
|
13025
13113
|
_this.singleselectmode = 'normal';
|
|
13114
|
+
_this._expandicon = 'organization';
|
|
13026
13115
|
_this._list = [];
|
|
13027
13116
|
normalAxios$1.post('/api/teapi/dy-biz/100000000000000000/110000000000000000', {
|
|
13028
13117
|
pl_orgstruct: {
|
|
@@ -13110,7 +13199,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
|
|
|
13110
13199
|
}, {
|
|
13111
13200
|
key: "render",
|
|
13112
13201
|
value: function render() {
|
|
13113
|
-
return x(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"departmentName\"\n displaytype=\"", "\"\n expandicon=\"
|
|
13202
|
+
return x(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"departmentName\"\n displaytype=\"", "\"\n expandicon=\"", "\"\n .iswwopendata=\"", "\"\n .list=\"", "\"\n .ismulselect=\"", "\"\n singleselectmode=\"", "\"\n mulselectmode=\"", "\"\n @select=\"", "\"\n @check=\"", "\"\n ></wxworksuite-tree>\n "])), this.displaytype, this._expandicon, true, this._list, this.ismulselect, this.singleselectmode, this.mulselectmode, this._handleSelect, this._handleCheck);
|
|
13114
13203
|
}
|
|
13115
13204
|
}], [{
|
|
13116
13205
|
key: "register",
|
|
@@ -13137,6 +13226,7 @@ __decorate([n$1({
|
|
|
13137
13226
|
__decorate([n$1({
|
|
13138
13227
|
type: String
|
|
13139
13228
|
})], WxworksuiteOrganizationpickMobile.prototype, "singleselectmode", void 0);
|
|
13229
|
+
__decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_expandicon", void 0);
|
|
13140
13230
|
__decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_list", void 0);
|
|
13141
13231
|
|
|
13142
13232
|
var _class$2;
|
|
@@ -13148,6 +13238,7 @@ var WxworksuiteOrganizationpickWeb = /*#__PURE__*/function (_WxworksuiteOrganiza
|
|
|
13148
13238
|
_classCallCheck(this, WxworksuiteOrganizationpickWeb);
|
|
13149
13239
|
_this = _super.apply(this, arguments);
|
|
13150
13240
|
_this.displaytype = 'web';
|
|
13241
|
+
_this._expandicon = 'normal';
|
|
13151
13242
|
return _this;
|
|
13152
13243
|
}
|
|
13153
13244
|
_createClass(WxworksuiteOrganizationpickWeb, null, [{
|
|
@@ -13165,6 +13256,7 @@ _class$2.componentName = 'wxworksuite-organizationpick-web';
|
|
|
13165
13256
|
__decorate([n$1({
|
|
13166
13257
|
type: String
|
|
13167
13258
|
})], WxworksuiteOrganizationpickWeb.prototype, "displaytype", void 0);
|
|
13259
|
+
__decorate([r$1()], WxworksuiteOrganizationpickWeb.prototype, "_expandicon", void 0);
|
|
13168
13260
|
|
|
13169
13261
|
var _class$1, _templateObject, _templateObject2;
|
|
13170
13262
|
var WxworksuiteMemberpickMobile = /*#__PURE__*/function (_LitElement) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart100/spu-web-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run build:types && rollup -c -w",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
41
|
-
"@smart100/wxworksuite-plugin": "^0.0.
|
|
41
|
+
"@smart100/wxworksuite-plugin": "^0.0.7",
|
|
42
42
|
"axios": "^1.6.0",
|
|
43
43
|
"co": "^4.6.0",
|
|
44
44
|
"dayjs": "^1.11.10",
|