@smart100/spu-web-plugin 0.0.27 → 0.0.29
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 +326 -192
- 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.29";
|
|
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,43 @@ 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
|
-
var script, x;
|
|
11577
|
+
var whichDocument, allscript, isload, script, x;
|
|
11578
11578
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11579
11579
|
while (1) switch (_context.prev = _context.next) {
|
|
11580
11580
|
case 0:
|
|
11581
|
-
|
|
11581
|
+
whichDocument = whichWindow.document; // 判断顶部是否已经加载过js
|
|
11582
|
+
allscript = whichDocument.head.getElementsByTagName('script');
|
|
11583
|
+
isload = Array.from(allscript).some(function (item) {
|
|
11584
|
+
// 不判断相等是因为 //open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js 插入前不带 http | https 插入后会自动基于当前地址补全 https
|
|
11585
|
+
if (item.src.includes(url)) {
|
|
11586
|
+
var issameproperty = true;
|
|
11587
|
+
if (property) {
|
|
11588
|
+
for (var x in property) {
|
|
11589
|
+
if (item.getAttribute(x) !== property[x]) {
|
|
11590
|
+
issameproperty = false;
|
|
11591
|
+
}
|
|
11592
|
+
}
|
|
11593
|
+
}
|
|
11594
|
+
return issameproperty;
|
|
11595
|
+
} else {
|
|
11596
|
+
return false;
|
|
11597
|
+
}
|
|
11598
|
+
});
|
|
11599
|
+
if (!isload) {
|
|
11600
|
+
_context.next = 7;
|
|
11601
|
+
break;
|
|
11602
|
+
}
|
|
11603
|
+
console.warn("".concat(url, " \u6587\u4EF6\u5DF2\u52A0\u8F7D\u8FC7\uFF0C\u65E0\u9700\u91CD\u590D\u52A0\u8F7D\u3002"));
|
|
11604
|
+
resolve('success');
|
|
11605
|
+
return _context.abrupt("return");
|
|
11606
|
+
case 7:
|
|
11607
|
+
script = whichDocument.createElement('script');
|
|
11582
11608
|
script.setAttribute('type', 'text/javascript');
|
|
11583
11609
|
script.setAttribute('src', url);
|
|
11584
11610
|
if (property) {
|
|
@@ -11586,14 +11612,14 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11586
11612
|
script.setAttribute(x, property[x]);
|
|
11587
11613
|
}
|
|
11588
11614
|
}
|
|
11589
|
-
|
|
11615
|
+
whichDocument.getElementsByTagName('head')[0].appendChild(script);
|
|
11590
11616
|
script.onload = script.onreadystatechange = function () {
|
|
11591
11617
|
var st = script.readyState;
|
|
11592
11618
|
if (st && st !== 'loaded' && st !== 'complete') return;
|
|
11593
11619
|
script.onload = script.onreadystatechange = null;
|
|
11594
11620
|
resolve('success');
|
|
11595
11621
|
};
|
|
11596
|
-
case
|
|
11622
|
+
case 13:
|
|
11597
11623
|
case "end":
|
|
11598
11624
|
return _context.stop();
|
|
11599
11625
|
}
|
|
@@ -11609,43 +11635,28 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11609
11635
|
value: function config() {
|
|
11610
11636
|
var _this = this;
|
|
11611
11637
|
var jsApiList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11638
|
+
var url = arguments.length > 1 ? arguments[1] : undefined;
|
|
11612
11639
|
// debugger
|
|
11613
11640
|
return new Promise( /*#__PURE__*/function () {
|
|
11614
11641
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(resolve, reject) {
|
|
11615
|
-
var
|
|
11642
|
+
var _signature, wxworksuitedata, signature, topWindow;
|
|
11616
11643
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11617
11644
|
while (1) switch (_context2.prev = _context2.next) {
|
|
11618
11645
|
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
|
-
}
|
|
11646
|
+
_context2.prev = 0;
|
|
11637
11647
|
wxworksuitedata = _this.getData();
|
|
11638
|
-
_context2.next =
|
|
11648
|
+
_context2.next = 4;
|
|
11639
11649
|
return normalAxios$1.post('/api/wxwork/common/getJsapiSignature', {
|
|
11640
11650
|
url: url,
|
|
11641
11651
|
suiteKey: wxworksuitedata.suiteKey,
|
|
11642
11652
|
corpId: wxworksuitedata.corpId
|
|
11643
11653
|
});
|
|
11644
|
-
case
|
|
11654
|
+
case 4:
|
|
11645
11655
|
signature = _context2.sent;
|
|
11646
11656
|
signature = ((_signature = signature) === null || _signature === void 0 || (_signature = _signature.data) === null || _signature === void 0 ? void 0 : _signature.data) || {};
|
|
11647
11657
|
// console.log(signature)
|
|
11648
|
-
|
|
11658
|
+
topWindow = _this.getTopWindow();
|
|
11659
|
+
topWindow.wx.config({
|
|
11649
11660
|
beta: true,
|
|
11650
11661
|
debug: false,
|
|
11651
11662
|
// debug: false,
|
|
@@ -11653,34 +11664,35 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11653
11664
|
timestamp: signature.timestamp,
|
|
11654
11665
|
nonceStr: signature.nonceStr,
|
|
11655
11666
|
signature: signature.signature,
|
|
11656
|
-
jsApiList:
|
|
11667
|
+
jsApiList: cloneDeep(jsApiList) // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
11657
11668
|
// jsApiList: ['getLocation'] // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
|
|
11658
11669
|
});
|
|
11659
11670
|
|
|
11660
|
-
|
|
11671
|
+
topWindow.wx.ready(function (res) {
|
|
11661
11672
|
_this.lastConfigUrl = url;
|
|
11662
|
-
_this.lastConfigJsApiList =
|
|
11663
|
-
console.log('wx.config success'
|
|
11673
|
+
_this.lastConfigJsApiList = cloneDeep(jsApiList);
|
|
11674
|
+
console.log('wx.config success');
|
|
11664
11675
|
resolve('wx.config success');
|
|
11665
11676
|
});
|
|
11666
|
-
|
|
11677
|
+
topWindow.wx.error(function (err) {
|
|
11667
11678
|
console.error('wx.config fail', err);
|
|
11668
|
-
reject(
|
|
11679
|
+
reject(err);
|
|
11669
11680
|
});
|
|
11670
|
-
setTimeout(
|
|
11671
|
-
|
|
11672
|
-
}, 3000)
|
|
11673
|
-
_context2.next =
|
|
11681
|
+
// setTimeout(() => {
|
|
11682
|
+
// reject(new Error('wx.config fail timeout 3000'))
|
|
11683
|
+
// }, 3000)
|
|
11684
|
+
_context2.next = 16;
|
|
11674
11685
|
break;
|
|
11675
|
-
case
|
|
11676
|
-
_context2.prev =
|
|
11677
|
-
_context2.t0 = _context2["catch"](
|
|
11686
|
+
case 12:
|
|
11687
|
+
_context2.prev = 12;
|
|
11688
|
+
_context2.t0 = _context2["catch"](0);
|
|
11689
|
+
console.error('wx.config fail', _context2.t0);
|
|
11678
11690
|
reject(_context2.t0);
|
|
11679
|
-
case
|
|
11691
|
+
case 16:
|
|
11680
11692
|
case "end":
|
|
11681
11693
|
return _context2.stop();
|
|
11682
11694
|
}
|
|
11683
|
-
}, _callee2, null, [[
|
|
11695
|
+
}, _callee2, null, [[0, 12]]);
|
|
11684
11696
|
}));
|
|
11685
11697
|
return function (_x3, _x4) {
|
|
11686
11698
|
return _ref2.apply(this, arguments);
|
|
@@ -11692,185 +11704,225 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11692
11704
|
value: function agentConfig() {
|
|
11693
11705
|
var _this2 = this;
|
|
11694
11706
|
var jsApiList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11707
|
+
var url = arguments.length > 1 ? arguments[1] : undefined;
|
|
11695
11708
|
return new Promise( /*#__PURE__*/function () {
|
|
11696
11709
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve, reject) {
|
|
11697
|
-
var
|
|
11710
|
+
var _signature2, wxworksuitedata, signature, topWindow;
|
|
11698
11711
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11699
11712
|
while (1) switch (_context3.prev = _context3.next) {
|
|
11700
11713
|
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
|
-
}
|
|
11714
|
+
_context3.prev = 0;
|
|
11719
11715
|
wxworksuitedata = _this2.getData();
|
|
11720
|
-
_context3.next =
|
|
11716
|
+
_context3.next = 4;
|
|
11721
11717
|
return normalAxios$1.post('/api/wxwork/common/getSuiteJsapiSignature', {
|
|
11722
11718
|
url: url,
|
|
11723
11719
|
suiteKey: wxworksuitedata.suiteKey,
|
|
11724
11720
|
corpId: wxworksuitedata.corpId
|
|
11725
11721
|
});
|
|
11726
|
-
case
|
|
11722
|
+
case 4:
|
|
11727
11723
|
signature = _context3.sent;
|
|
11728
11724
|
signature = ((_signature2 = signature) === null || _signature2 === void 0 || (_signature2 = _signature2.data) === null || _signature2 === void 0 ? void 0 : _signature2.data) || {};
|
|
11729
|
-
window
|
|
11725
|
+
// agentConfig 和 config 必须在最上层的 window 上注册
|
|
11726
|
+
topWindow = _this2.getTopWindow();
|
|
11727
|
+
topWindow.wx.agentConfig({
|
|
11730
11728
|
corpid: signature.corpid,
|
|
11731
11729
|
agentid: signature.agentid,
|
|
11732
11730
|
timestamp: signature.timestamp,
|
|
11733
11731
|
nonceStr: signature.nonceStr,
|
|
11734
11732
|
signature: signature.signature,
|
|
11735
|
-
jsApiList:
|
|
11733
|
+
jsApiList: cloneDeep(jsApiList),
|
|
11736
11734
|
success: function success(res) {
|
|
11737
11735
|
_this2.lastAgentConfigUrl = url;
|
|
11738
|
-
_this2.lastAgentConfigJsApiList =
|
|
11736
|
+
_this2.lastAgentConfigJsApiList = cloneDeep(jsApiList);
|
|
11739
11737
|
console.log('wx.agentConfig success', res);
|
|
11740
11738
|
resolve('wx.agentConfig success');
|
|
11741
11739
|
},
|
|
11742
11740
|
fail: function fail(error) {
|
|
11743
11741
|
console.error('wx.agentConfig fail', error);
|
|
11744
|
-
reject(
|
|
11742
|
+
reject(error);
|
|
11745
11743
|
}
|
|
11746
11744
|
});
|
|
11747
|
-
_context3.next =
|
|
11745
|
+
_context3.next = 14;
|
|
11748
11746
|
break;
|
|
11749
|
-
case
|
|
11750
|
-
_context3.prev =
|
|
11751
|
-
_context3.t0 = _context3["catch"](
|
|
11747
|
+
case 10:
|
|
11748
|
+
_context3.prev = 10;
|
|
11749
|
+
_context3.t0 = _context3["catch"](0);
|
|
11750
|
+
console.error('wx.agentConfig fail', _context3.t0);
|
|
11752
11751
|
reject(_context3.t0);
|
|
11753
|
-
case
|
|
11752
|
+
case 14:
|
|
11754
11753
|
case "end":
|
|
11755
11754
|
return _context3.stop();
|
|
11756
11755
|
}
|
|
11757
|
-
}, _callee3, null, [[
|
|
11756
|
+
}, _callee3, null, [[0, 10]]);
|
|
11758
11757
|
}));
|
|
11759
11758
|
return function (_x5, _x6) {
|
|
11760
11759
|
return _ref3.apply(this, arguments);
|
|
11761
11760
|
};
|
|
11762
11761
|
}());
|
|
11763
11762
|
}
|
|
11763
|
+
}, {
|
|
11764
|
+
key: "checkSession",
|
|
11765
|
+
value: function checkSession() {
|
|
11766
|
+
var _this3 = this;
|
|
11767
|
+
return new Promise( /*#__PURE__*/function () {
|
|
11768
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(resolve, reject) {
|
|
11769
|
+
var topWWOpenData, topWindow;
|
|
11770
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11771
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
11772
|
+
case 0:
|
|
11773
|
+
topWWOpenData = _this3.getTopWWOpenData();
|
|
11774
|
+
topWindow = _this3.getTopWindow();
|
|
11775
|
+
if (topWWOpenData) {
|
|
11776
|
+
topWWOpenData.checkSession({
|
|
11777
|
+
success: function success() {
|
|
11778
|
+
console.log('open-data 登录态校验成功');
|
|
11779
|
+
resolve({
|
|
11780
|
+
topWindow: topWindow,
|
|
11781
|
+
topWWOpenData: topWWOpenData
|
|
11782
|
+
});
|
|
11783
|
+
},
|
|
11784
|
+
fail: function fail(err) {
|
|
11785
|
+
console.error('open-data 登录态过期');
|
|
11786
|
+
reject(err);
|
|
11787
|
+
}
|
|
11788
|
+
});
|
|
11789
|
+
} else {
|
|
11790
|
+
reject(new Error('不存在 WWOpenData,请排查。'));
|
|
11791
|
+
}
|
|
11792
|
+
case 3:
|
|
11793
|
+
case "end":
|
|
11794
|
+
return _context4.stop();
|
|
11795
|
+
}
|
|
11796
|
+
}, _callee4);
|
|
11797
|
+
}));
|
|
11798
|
+
return function (_x7, _x8) {
|
|
11799
|
+
return _ref4.apply(this, arguments);
|
|
11800
|
+
};
|
|
11801
|
+
}());
|
|
11802
|
+
}
|
|
11764
11803
|
}, {
|
|
11765
11804
|
key: "initFun",
|
|
11766
11805
|
value: function () {
|
|
11767
|
-
var _initFun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11768
|
-
var
|
|
11806
|
+
var _initFun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
11807
|
+
var _this4 = this;
|
|
11769
11808
|
var jsApiList,
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11809
|
+
url,
|
|
11810
|
+
_args6 = arguments;
|
|
11811
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
11812
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
11773
11813
|
case 0:
|
|
11774
|
-
jsApiList =
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11814
|
+
jsApiList = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : [];
|
|
11815
|
+
url = _args6.length > 1 ? _args6[1] : undefined;
|
|
11816
|
+
return _context6.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
11817
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject) {
|
|
11818
|
+
var res;
|
|
11819
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
11820
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
11779
11821
|
case 0:
|
|
11780
|
-
if (
|
|
11781
|
-
|
|
11782
|
-
|
|
11822
|
+
if (!_this4.isHack) {
|
|
11823
|
+
_this4.hack();
|
|
11824
|
+
_this4.isHack = true;
|
|
11783
11825
|
}
|
|
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;
|
|
11826
|
+
if (_this4.isLoadJs) {
|
|
11827
|
+
_context5.next = 26;
|
|
11828
|
+
break;
|
|
11799
11829
|
}
|
|
11800
|
-
if (
|
|
11801
|
-
|
|
11830
|
+
if (!(window.top && window.top !== window)) {
|
|
11831
|
+
_context5.next = 16;
|
|
11802
11832
|
break;
|
|
11803
11833
|
}
|
|
11804
11834
|
if (!isWxworkApp()) {
|
|
11805
|
-
|
|
11835
|
+
_context5.next = 8;
|
|
11806
11836
|
break;
|
|
11807
11837
|
}
|
|
11808
|
-
|
|
11809
|
-
return
|
|
11838
|
+
_context5.next = 6;
|
|
11839
|
+
return _this4.loadJsUrl('//res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js', {
|
|
11810
11840
|
referrerpolicy: 'origin'
|
|
11811
|
-
});
|
|
11812
|
-
case
|
|
11813
|
-
|
|
11841
|
+
}, window.top);
|
|
11842
|
+
case 6:
|
|
11843
|
+
_context5.next = 10;
|
|
11814
11844
|
break;
|
|
11845
|
+
case 8:
|
|
11846
|
+
_context5.next = 10;
|
|
11847
|
+
return _this4.loadJsUrl('//res.wx.qq.com/open/js/jweixin-1.2.0.js', {
|
|
11848
|
+
referrerpolicy: 'origin'
|
|
11849
|
+
}, window.top);
|
|
11815
11850
|
case 10:
|
|
11816
|
-
|
|
11817
|
-
return
|
|
11851
|
+
_context5.next = 12;
|
|
11852
|
+
return _this4.loadJsUrl('//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js', {
|
|
11818
11853
|
referrerpolicy: 'origin'
|
|
11819
|
-
});
|
|
11854
|
+
}, window.top);
|
|
11820
11855
|
case 12:
|
|
11821
|
-
|
|
11822
|
-
return
|
|
11856
|
+
_context5.next = 14;
|
|
11857
|
+
return _this4.loadJsUrl('//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js', {
|
|
11823
11858
|
referrerpolicy: 'origin'
|
|
11824
11859
|
});
|
|
11825
11860
|
case 14:
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
if (
|
|
11830
|
-
|
|
11861
|
+
_context5.next = 25;
|
|
11862
|
+
break;
|
|
11863
|
+
case 16:
|
|
11864
|
+
if (!isWxworkApp()) {
|
|
11865
|
+
_context5.next = 21;
|
|
11831
11866
|
break;
|
|
11832
11867
|
}
|
|
11833
|
-
|
|
11834
|
-
return
|
|
11868
|
+
_context5.next = 19;
|
|
11869
|
+
return _this4.loadJsUrl('//res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js', {
|
|
11870
|
+
referrerpolicy: 'origin'
|
|
11871
|
+
});
|
|
11835
11872
|
case 19:
|
|
11836
|
-
|
|
11837
|
-
|
|
11873
|
+
_context5.next = 23;
|
|
11874
|
+
break;
|
|
11838
11875
|
case 21:
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
_this3.reset();
|
|
11848
|
-
reject(err);
|
|
11849
|
-
}
|
|
11876
|
+
_context5.next = 23;
|
|
11877
|
+
return _this4.loadJsUrl('//res.wx.qq.com/open/js/jweixin-1.2.0.js', {
|
|
11878
|
+
referrerpolicy: 'origin'
|
|
11879
|
+
});
|
|
11880
|
+
case 23:
|
|
11881
|
+
_context5.next = 25;
|
|
11882
|
+
return _this4.loadJsUrl('//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js', {
|
|
11883
|
+
referrerpolicy: 'origin'
|
|
11850
11884
|
});
|
|
11851
|
-
|
|
11885
|
+
case 25:
|
|
11886
|
+
_this4.isLoadJs = true;
|
|
11887
|
+
case 26:
|
|
11888
|
+
_context5.prev = 26;
|
|
11889
|
+
if (!/MicroMessenger/i.test(navigator.userAgent)) {
|
|
11890
|
+
_context5.next = 30;
|
|
11891
|
+
break;
|
|
11892
|
+
}
|
|
11893
|
+
_context5.next = 30;
|
|
11894
|
+
return _this4.config(jsApiList, url);
|
|
11895
|
+
case 30:
|
|
11896
|
+
_context5.next = 32;
|
|
11897
|
+
return _this4.agentConfig(jsApiList, url);
|
|
11898
|
+
case 32:
|
|
11899
|
+
_context5.next = 34;
|
|
11900
|
+
return _this4.checkSession();
|
|
11901
|
+
case 34:
|
|
11902
|
+
res = _context5.sent;
|
|
11903
|
+
resolve(res);
|
|
11904
|
+
_context5.next = 42;
|
|
11852
11905
|
break;
|
|
11853
|
-
case
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
case 28:
|
|
11906
|
+
case 38:
|
|
11907
|
+
_context5.prev = 38;
|
|
11908
|
+
_context5.t0 = _context5["catch"](26);
|
|
11909
|
+
_this4.reset();
|
|
11910
|
+
reject(_context5.t0);
|
|
11911
|
+
case 42:
|
|
11860
11912
|
case "end":
|
|
11861
|
-
return
|
|
11913
|
+
return _context5.stop();
|
|
11862
11914
|
}
|
|
11863
|
-
},
|
|
11915
|
+
}, _callee5, null, [[26, 38]]);
|
|
11864
11916
|
}));
|
|
11865
|
-
return function (
|
|
11866
|
-
return
|
|
11917
|
+
return function (_x9, _x10) {
|
|
11918
|
+
return _ref5.apply(this, arguments);
|
|
11867
11919
|
};
|
|
11868
11920
|
}()));
|
|
11869
|
-
case
|
|
11921
|
+
case 3:
|
|
11870
11922
|
case "end":
|
|
11871
|
-
return
|
|
11923
|
+
return _context6.stop();
|
|
11872
11924
|
}
|
|
11873
|
-
},
|
|
11925
|
+
}, _callee6);
|
|
11874
11926
|
}));
|
|
11875
11927
|
function initFun() {
|
|
11876
11928
|
return _initFun.apply(this, arguments);
|
|
@@ -11880,42 +11932,105 @@ var Jssdk = /*#__PURE__*/function () {
|
|
|
11880
11932
|
}, {
|
|
11881
11933
|
key: "init",
|
|
11882
11934
|
value: function () {
|
|
11883
|
-
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
11935
|
+
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
11936
|
+
var _this5 = this;
|
|
11884
11937
|
var jsApiList,
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11938
|
+
url,
|
|
11939
|
+
isin,
|
|
11940
|
+
res,
|
|
11941
|
+
_res,
|
|
11942
|
+
_args7 = arguments;
|
|
11943
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
11944
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
11888
11945
|
case 0:
|
|
11889
|
-
jsApiList =
|
|
11890
|
-
if (
|
|
11891
|
-
|
|
11946
|
+
jsApiList = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : [];
|
|
11947
|
+
if (this.checkData()) {
|
|
11948
|
+
_context7.next = 3;
|
|
11892
11949
|
break;
|
|
11893
11950
|
}
|
|
11894
|
-
|
|
11951
|
+
throw new Error('The current tenant is not a wxworksuite tenant.');
|
|
11895
11952
|
case 3:
|
|
11896
|
-
|
|
11897
|
-
|
|
11953
|
+
jsApiList = _toConsumableArray(new Set([].concat(_toConsumableArray(this.lastAgentConfigJsApiList), _toConsumableArray(jsApiList))));
|
|
11954
|
+
// const url = location.origin + location.pathname + location.search
|
|
11955
|
+
url = this.getTopUrl();
|
|
11956
|
+
isin = jsApiList.every(function (item) {
|
|
11957
|
+
return _this5.lastAgentConfigJsApiList.some(function (item2) {
|
|
11958
|
+
return item2 === item;
|
|
11959
|
+
});
|
|
11960
|
+
}); // console.log('jsApiList', jsApiList)
|
|
11961
|
+
// console.log('lastAgentConfigJsApiList', this.lastAgentConfigJsApiList)
|
|
11962
|
+
if (!(isin && this.lastAgentConfigUrl === url)) {
|
|
11963
|
+
_context7.next = 20;
|
|
11964
|
+
break;
|
|
11965
|
+
}
|
|
11966
|
+
_context7.prev = 7;
|
|
11967
|
+
_context7.next = 10;
|
|
11968
|
+
return this.checkSession();
|
|
11969
|
+
case 10:
|
|
11970
|
+
res = _context7.sent;
|
|
11971
|
+
return _context7.abrupt("return", res);
|
|
11972
|
+
case 14:
|
|
11973
|
+
_context7.prev = 14;
|
|
11974
|
+
_context7.t0 = _context7["catch"](7);
|
|
11975
|
+
this.reset();
|
|
11976
|
+
throw _context7.t0;
|
|
11977
|
+
case 18:
|
|
11978
|
+
_context7.next = 34;
|
|
11979
|
+
break;
|
|
11980
|
+
case 20:
|
|
11981
|
+
_context7.prev = 20;
|
|
11982
|
+
if (!this.initPro) {
|
|
11983
|
+
_context7.next = 23;
|
|
11984
|
+
break;
|
|
11985
|
+
}
|
|
11986
|
+
return _context7.abrupt("return", this.initPro);
|
|
11987
|
+
case 23:
|
|
11988
|
+
this.initPro = this.initFun(jsApiList, url);
|
|
11989
|
+
_context7.next = 26;
|
|
11898
11990
|
return this.initPro;
|
|
11899
|
-
case
|
|
11900
|
-
|
|
11901
|
-
|
|
11991
|
+
case 26:
|
|
11992
|
+
_res = _context7.sent;
|
|
11993
|
+
this.initPro = null;
|
|
11994
|
+
return _context7.abrupt("return", _res);
|
|
11995
|
+
case 31:
|
|
11996
|
+
_context7.prev = 31;
|
|
11997
|
+
_context7.t1 = _context7["catch"](20);
|
|
11998
|
+
throw _context7.t1;
|
|
11999
|
+
case 34:
|
|
11902
12000
|
case "end":
|
|
11903
|
-
return
|
|
12001
|
+
return _context7.stop();
|
|
11904
12002
|
}
|
|
11905
|
-
},
|
|
12003
|
+
}, _callee7, this, [[7, 14], [20, 31]]);
|
|
11906
12004
|
}));
|
|
11907
12005
|
function init() {
|
|
11908
12006
|
return _init.apply(this, arguments);
|
|
11909
12007
|
}
|
|
11910
12008
|
return init;
|
|
11911
12009
|
}()
|
|
12010
|
+
}, {
|
|
12011
|
+
key: "getTopWWOpenData",
|
|
12012
|
+
value: function getTopWWOpenData() {
|
|
12013
|
+
var _window, _window2;
|
|
12014
|
+
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;
|
|
12015
|
+
}
|
|
12016
|
+
}, {
|
|
12017
|
+
key: "getTopWindow",
|
|
12018
|
+
value: function getTopWindow() {
|
|
12019
|
+
return window.top || window;
|
|
12020
|
+
}
|
|
12021
|
+
}, {
|
|
12022
|
+
key: "getTopUrl",
|
|
12023
|
+
value: function getTopUrl() {
|
|
12024
|
+
var win = this.getTopWindow();
|
|
12025
|
+
return win.location.origin + win.location.pathname + win.location.search;
|
|
12026
|
+
}
|
|
11912
12027
|
}, {
|
|
11913
12028
|
key: "reset",
|
|
11914
12029
|
value: function reset() {
|
|
11915
12030
|
this.lastConfigUrl = '';
|
|
11916
|
-
this.lastConfigJsApiList = [];
|
|
12031
|
+
this.lastConfigJsApiList = ['getLocation'];
|
|
11917
12032
|
this.lastAgentConfigUrl = '';
|
|
11918
|
-
this.lastAgentConfigJsApiList = [];
|
|
12033
|
+
this.lastAgentConfigJsApiList = ['getLocation'];
|
|
11919
12034
|
this.initPro = null;
|
|
11920
12035
|
}
|
|
11921
12036
|
}, {
|
|
@@ -11985,18 +12100,23 @@ var WxworksuiteBaseOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
11985
12100
|
case 0:
|
|
11986
12101
|
_get(_getPrototypeOf(WxworksuiteBaseOpendata.prototype), "connectedCallback", this).call(this);
|
|
11987
12102
|
// console.log('connectedCallback')
|
|
11988
|
-
jssdk.init(
|
|
12103
|
+
jssdk.init().then(function (_ref) {
|
|
12104
|
+
var topWWOpenData = _ref.topWWOpenData;
|
|
11989
12105
|
_this2._isCanUseWxworkSuite = true;
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
12106
|
+
if (_this2.wwopendataRef) {
|
|
12107
|
+
if (topWWOpenData) {
|
|
12108
|
+
topWWOpenData.bind(_this2.wwopendataRef);
|
|
12109
|
+
// WWOpenData.on('update', (event: any) => {
|
|
12110
|
+
// const openid = event.detail.element.getAttribute('openid')
|
|
12111
|
+
// console.log('渲染数据发生变更', event, openid)
|
|
12112
|
+
// })
|
|
12113
|
+
// topWWOpenData.on('error', (event: any) => {
|
|
12114
|
+
// console.error('获取数据失败', event)
|
|
12115
|
+
// })
|
|
12116
|
+
}
|
|
11997
12117
|
}
|
|
11998
12118
|
})["catch"](function (err) {
|
|
11999
|
-
// console.error(err)
|
|
12119
|
+
// console.error('jssdk.init() fail', err)
|
|
12000
12120
|
_this2._isCanUseWxworkSuite = false;
|
|
12001
12121
|
});
|
|
12002
12122
|
case 2:
|
|
@@ -12068,7 +12188,7 @@ var WxworksuiteBaseOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12068
12188
|
}(s$1);
|
|
12069
12189
|
_class$7 = WxworksuiteBaseOpendata;
|
|
12070
12190
|
_class$7.componentName = 'wxworksuite-base-opendata';
|
|
12071
|
-
_class$7.styles = i$4(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n
|
|
12191
|
+
_class$7.styles = i$4(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n :host {}\n "])));
|
|
12072
12192
|
__decorate([n$1({
|
|
12073
12193
|
type: String
|
|
12074
12194
|
})], WxworksuiteBaseOpendata.prototype, "openid", void 0);
|
|
@@ -12206,7 +12326,7 @@ var WxworksuiteOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12206
12326
|
var _this2 = this;
|
|
12207
12327
|
if (this.type === 'expression') {
|
|
12208
12328
|
var _this$wwbaseopendataR;
|
|
12209
|
-
console.log(this.wwbaseopendataRefs)
|
|
12329
|
+
// console.log(this.wwbaseopendataRefs)
|
|
12210
12330
|
var data = {
|
|
12211
12331
|
type: this.type,
|
|
12212
12332
|
openid: this.openid,
|
|
@@ -12278,12 +12398,15 @@ var WxworksuiteOpendata = /*#__PURE__*/function (_LitElement) {
|
|
|
12278
12398
|
window.customElements.define(WxworksuiteOpendata.componentName, WxworksuiteOpendata);
|
|
12279
12399
|
}
|
|
12280
12400
|
}
|
|
12401
|
+
// https://blog.csdn.net/Letasian/article/details/76460882
|
|
12402
|
+
// https://www.jianshu.com/p/b3f01185e55b
|
|
12403
|
+
// https://www.cnblogs.com/benxiaohai-microcosm/p/6928897.html
|
|
12281
12404
|
}]);
|
|
12282
12405
|
return WxworksuiteOpendata;
|
|
12283
12406
|
}(s$1);
|
|
12284
12407
|
_class$6 = WxworksuiteOpendata;
|
|
12285
12408
|
_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
|
|
12409
|
+
_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
12410
|
__decorate([n$1({
|
|
12288
12411
|
type: String
|
|
12289
12412
|
})], WxworksuiteOpendata.prototype, "openid", void 0);
|
|
@@ -12801,7 +12924,7 @@ var WxworksuiteTree = /*#__PURE__*/function (_LitElement) {
|
|
|
12801
12924
|
}(s$1);
|
|
12802
12925
|
_class$5 = WxworksuiteTree;
|
|
12803
12926
|
_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 "])));
|
|
12927
|
+
_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
12928
|
__decorate([n$1({
|
|
12806
12929
|
type: Array
|
|
12807
12930
|
})], WxworksuiteTree.prototype, "list", void 0);
|
|
@@ -12847,7 +12970,7 @@ __decorate([r$1()], WxworksuiteTree.prototype, "_isonelevel", void 0);
|
|
|
12847
12970
|
// father isselected: ${item.isselected}<br />
|
|
12848
12971
|
// father ismulselect: ${this.ismulselect}<br />
|
|
12849
12972
|
|
|
12850
|
-
var _class$4, _templateObject$2, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
12973
|
+
var _class$4, _templateObject$2, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
12851
12974
|
var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
12852
12975
|
_inherits(WxworksuiteTreenode, _LitElement);
|
|
12853
12976
|
var _super = _createSuper(WxworksuiteTreenode);
|
|
@@ -12921,7 +13044,7 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12921
13044
|
_this2 = this,
|
|
12922
13045
|
_this$node2,
|
|
12923
13046
|
_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({
|
|
13047
|
+
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
13048
|
'tree-node': true,
|
|
12926
13049
|
'tree-node-web': this.displaytype === 'web',
|
|
12927
13050
|
'tree-node-mobile': this.displaytype === 'mobile'
|
|
@@ -12935,28 +13058,35 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12935
13058
|
}, e$5({
|
|
12936
13059
|
'tree-node-expand-1': this.node.isexpand,
|
|
12937
13060
|
'tree-node-expand-0': !this.node.isexpand
|
|
12938
|
-
})) : ''), this.
|
|
13061
|
+
})) : ''), this.ismulselect && this.displaytype === 'web' ? x(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n <div\n @click=\"", "\"\n class=", "\n >\n </div>\n "])), function (e) {
|
|
13062
|
+
return _this2.toggle('check');
|
|
13063
|
+
}, e$5({
|
|
13064
|
+
'tree-node-check': true,
|
|
13065
|
+
'tree-node-check-0': this.node.checkstate === '0',
|
|
13066
|
+
'tree-node-check-1': this.node.checkstate === '1',
|
|
13067
|
+
'tree-node-check-2': this.node.checkstate === '2'
|
|
13068
|
+
})) : '', this.clickNode, e$5({
|
|
12939
13069
|
'tree-node-name': true
|
|
12940
|
-
}), this.node.name, this.iswwopendata && this.wwopendatatype || this.node.iswwopendata && this.node.wwopendatatype ? x(
|
|
13070
|
+
}), 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
13071
|
return _this2.toggle('check');
|
|
12942
13072
|
}, e$5({
|
|
12943
13073
|
'tree-node-check': true,
|
|
12944
13074
|
'tree-node-check-0': this.node.checkstate === '0',
|
|
12945
13075
|
'tree-node-check-1': this.node.checkstate === '1',
|
|
12946
13076
|
'tree-node-check-2': this.node.checkstate === '2'
|
|
12947
|
-
})) : '', this.expandicon === 'organization' ? x(
|
|
13077
|
+
})) : '', 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
13078
|
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(
|
|
13079
|
+
}), (_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
13080
|
return _this2.toggle('expand');
|
|
12951
13081
|
}, e$5({
|
|
12952
13082
|
'tree-node-expand-1': this.node.isexpand,
|
|
12953
13083
|
'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(
|
|
13084
|
+
})) : '') : '', (_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
13085
|
display: !this.node.isexpand ? 'none' : 'block'
|
|
12956
13086
|
}), c(this.node.children, function (item) {
|
|
12957
13087
|
return item.id;
|
|
12958
13088
|
}, function (item, index) {
|
|
12959
|
-
return x(
|
|
13089
|
+
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
13090
|
})) : '');
|
|
12961
13091
|
}
|
|
12962
13092
|
}], [{
|
|
@@ -12971,7 +13101,7 @@ var WxworksuiteTreenode = /*#__PURE__*/function (_LitElement) {
|
|
|
12971
13101
|
}(s$1);
|
|
12972
13102
|
_class$4 = WxworksuiteTreenode;
|
|
12973
13103
|
_class$4.componentName = 'wxworksuite-treenode';
|
|
12974
|
-
_class$4.styles = i$4(
|
|
13104
|
+
_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
13105
|
__decorate([n$1({
|
|
12976
13106
|
type: String
|
|
12977
13107
|
})], WxworksuiteTreenode.prototype, "displaytype", void 0);
|
|
@@ -13023,6 +13153,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
|
|
|
13023
13153
|
// normal 正常选中取值
|
|
13024
13154
|
// disable 不能选非末级节点 只能选末级节点 暂不实现
|
|
13025
13155
|
_this.singleselectmode = 'normal';
|
|
13156
|
+
_this._expandicon = 'organization';
|
|
13026
13157
|
_this._list = [];
|
|
13027
13158
|
normalAxios$1.post('/api/teapi/dy-biz/100000000000000000/110000000000000000', {
|
|
13028
13159
|
pl_orgstruct: {
|
|
@@ -13110,7 +13241,7 @@ var WxworksuiteOrganizationpickMobile = /*#__PURE__*/function (_LitElement) {
|
|
|
13110
13241
|
}, {
|
|
13111
13242
|
key: "render",
|
|
13112
13243
|
value: function render() {
|
|
13113
|
-
return x(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n <wxworksuite-tree\n wwopendatatype=\"departmentName\"\n displaytype=\"", "\"\n expandicon=\"
|
|
13244
|
+
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
13245
|
}
|
|
13115
13246
|
}], [{
|
|
13116
13247
|
key: "register",
|
|
@@ -13137,6 +13268,7 @@ __decorate([n$1({
|
|
|
13137
13268
|
__decorate([n$1({
|
|
13138
13269
|
type: String
|
|
13139
13270
|
})], WxworksuiteOrganizationpickMobile.prototype, "singleselectmode", void 0);
|
|
13271
|
+
__decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_expandicon", void 0);
|
|
13140
13272
|
__decorate([r$1()], WxworksuiteOrganizationpickMobile.prototype, "_list", void 0);
|
|
13141
13273
|
|
|
13142
13274
|
var _class$2;
|
|
@@ -13148,6 +13280,7 @@ var WxworksuiteOrganizationpickWeb = /*#__PURE__*/function (_WxworksuiteOrganiza
|
|
|
13148
13280
|
_classCallCheck(this, WxworksuiteOrganizationpickWeb);
|
|
13149
13281
|
_this = _super.apply(this, arguments);
|
|
13150
13282
|
_this.displaytype = 'web';
|
|
13283
|
+
_this._expandicon = 'normal';
|
|
13151
13284
|
return _this;
|
|
13152
13285
|
}
|
|
13153
13286
|
_createClass(WxworksuiteOrganizationpickWeb, null, [{
|
|
@@ -13165,6 +13298,7 @@ _class$2.componentName = 'wxworksuite-organizationpick-web';
|
|
|
13165
13298
|
__decorate([n$1({
|
|
13166
13299
|
type: String
|
|
13167
13300
|
})], WxworksuiteOrganizationpickWeb.prototype, "displaytype", void 0);
|
|
13301
|
+
__decorate([r$1()], WxworksuiteOrganizationpickWeb.prototype, "_expandicon", void 0);
|
|
13168
13302
|
|
|
13169
13303
|
var _class$1, _templateObject, _templateObject2;
|
|
13170
13304
|
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.29",
|
|
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.8",
|
|
42
42
|
"axios": "^1.6.0",
|
|
43
43
|
"co": "^4.6.0",
|
|
44
44
|
"dayjs": "^1.11.10",
|