@smart100/spu-web-plugin 0.0.13 → 0.0.15

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.
@@ -1,4 +1,4 @@
1
- var version = "0.0.13";
1
+ var version = "0.0.15";
2
2
 
3
3
  function ownKeys(e, r) {
4
4
  var t = Object.keys(e);
@@ -8023,21 +8023,21 @@ var globalOptions = {
8023
8023
  var install = function install(app, options) {
8024
8024
  // console.log(app)
8025
8025
  // console.log(app.version)
8026
- console.log('options', options);
8026
+ console.log('@smart100/spu-web-plugin options', options);
8027
8027
  merge$2(globalOptions, options);
8028
- console.log('globalOptions', globalOptions);
8028
+ console.log('@smart100/spu-web-plugin globalOptions', globalOptions);
8029
8029
  // if (install.installed) return
8030
8030
  // install.installed = true
8031
8031
  // debugger
8032
- if (app) {
8033
- var version = Number(app.version.split('.')[0]);
8034
- if (version < 3) {
8035
- console.error('This plugin requires Vue 3');
8036
- return false;
8037
- }
8038
- } else {
8039
- console.error('This plugin requires Vue App Instance');
8040
- }
8032
+ // if (app) {
8033
+ // const version = Number(app.version.split('.')[0])
8034
+ // if (version < 3) {
8035
+ // console.error('This plugin requires Vue 3')
8036
+ // return false
8037
+ // }
8038
+ // } else {
8039
+ // console.error('This plugin requires Vue App Instance')
8040
+ // }
8041
8041
  initStorageProxy(globalOptions);
8042
8042
  initAxios(globalOptions);
8043
8043
  initSpuConfig(globalOptions);
@@ -43561,7 +43561,7 @@ var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAA
43561
43561
 
43562
43562
  // console.log(icon_csv)
43563
43563
  var renderTemplate = (function (ele) {
43564
- return "\n<style>\n:host {\n display: block;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0px;\n right: 0px;\n bottom: 0px;\n z-index: 1;\n}\n\n.hide {\n display: none!important;\n}\n\n.spu-expandexp {\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n overflow: auto;\n}\n\n\n.modal {\n width: 80%;\n max-width: 800px;\n min-width: 500px;\n margin: 50px auto 0;\n border-radius: 2px;\n overflow: hidden;\n}\n.modal-th {\n height: 40px;\n background-color: #409eff;\n}\n.modal-th .title {\n float: left;\n line-height: 40px;\n color: #fff;\n font-size: 16px;\n margin-left: 16px;\n}\n.modal-th .close {\n float: right;\n line-height: 40px;\n height: 40px;\n width: 40px;\n color: #fff;\n font-size: 16px;\n text-align: center;\n cursor: pointer;\n}\n.modal-tb {\n padding: 16px;\n background-color: #fff;\n}\n\n.export {}\n.export-wait {\n line-height: 32px;\n height: 32px;\n text-align: center;\n background-color: rgba(255, 73, 73, .1);\n color: #333;\n}\n.export-wait span {\n color: red;\n margin: 0 4px;\n}\n.export-tit {\n line-height: 32px;\n height: 32px;\n}\n\n.export-sel {\n margin-bottom: 12px;\n}\n.export-sel-title {\n margin-bottom: 12px;\n}\n.export-sel-con {\n display: flex;\n}\n.export-sel-con-item {\n display: flex;\n align-items: center;\n margin-right: 32px;\n cursor: pointer;\n}\n.export-sel-con-item label {\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n}\n.export-sel-con-item input {\n cursor: pointer;\n margin: 4px;\n}\n\n.export-section-wrap {}\n.export-section {\n border: 1px solid #ddd;\n padding: 12px;\n}\n\n.export-file {\n height: 28px;\n line-height: 28px;\n display: flex;\n justify-content: space-between;\n // margin-bottom: 12px;\n}\n.export-file-l {\n flex: 1;\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.export-file-l-img {\n flex: none;\n display: block;\n height: 20px;\n width: 20px;\n margin-right: 4px;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n}\n.export-file-l-img.excel {\n background-image: url(".concat(img$3, ");\n}\n.export-file-l-img.csv {\n background-image: url(").concat(img$2, ");\n}\n.export-file-l-img.pdf {\n background-image: url(").concat(img$1, ");\n}\n.export-file-l-img.zip {\n background-image: url(").concat(img, ");\n}\n.export-file-l-filename {\n flex: 1;\n}\n.export-file-l-filesize {\n flex: none;\n}\n.export-file-r {\n display: flex;\n width: 80px;\n flex-direction: row-reverse;\n}\n.export-file-r-download {\n line-height: 26px;\n border-radius: 3px;\n background-color: #67c23a;\n border: 1px solid #67c23a;\n color: #fff;\n padding: 0 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.export-file-r-download:hover {\n background: #85ce61;\n border-color: #85ce61;\n}\n.export-file-r-cancel {\n line-height: 26px;\n width: 26px;\n border-radius: 14px;\n color: #f56c6c;\n background: #fef0f0;\n border: 1px solid #fbc4c4;\n text-align: center;\n font-size: 14px;\n cursor: pointer;\n}\n.export-file-r-cancel:hover {\n background: #f56c6c;\n border-color: #f56c6c;\n color: #fff;\n}\n\n\n\n.export-progress {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 30px;\n}\n.export-progress-outer {\n flex: 1;\n height: 8px;\n background-color: #EBEEF5;\n overflow: hidden;\n position: relative;\n vertical-align: middle;\n}\n.export-progress-inner {\n animation-duration: 3s;\n height: 100%;\n width: 0;\n background-color: #417AE7;\n -webkit-transition: width .6s ease;\n transition: width .6s ease;\n}\n.export-progress-inner.error {\n background: red;\n}\n.export-progress-inner.success {\n background: #67C23A;\n}\n.export-progress-text {\n flex: none;\n width: 50px;\n font-size: 14px;\n line-height: 30px;\n text-align: right;\n}\n\n\n\n.export-result {\n height: 28px;\n line-height: 28px;\n text-align: right;\n font-size: 12px;\n padding: 0px 8px;\n}\n.export-result.error {\n background: #fdf1ef;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.export-result.success {\n background: #e5f7f3;\n}\n\n\n.export-tip {\n height: 28px;\n line-height: 28px;\n margin-top: 8px;\n font-size: 12px;\n text-align: right;\n color: #999;\n}\n\n.export-btnwrap {\n margin-top: 12px;\n display: flex;\n flex-direction: row-reverse;\n}\n.btn {\n line-height: 38px;\n line-height: 38px;\n border: 1px solid #409eff;\n background-color: #409eff;\n border-radius: 5px;\n color: #fff;\n padding: 0 20px;\n font-size: 16px;\n cursor: pointer;\n}\n.btn:hover {\n background: #66b1ff;\n border-color: #66b1ff;\n}\n</style>\n\n <div class=\"spu-expandexp\">\n <div class=\"modal\">\n <div class=\"modal-th\">\n <div class=\"title\">\n \u6570\u636E\u5BFC\u51FA\n </div>\n <div class=\"close\">\n x\n </div>\n </div>\n <div class=\"modal-tb\">\n <div class=\"export\">\n <div class=\"export-wait hide\">\n \u5BFC\u51FA\u7B49\u5F85\u961F\u5217\u4E2D\uFF1A\u8FD8\u6709<span></span>\u4F4D\uFF0C\u8BF7\u8010\u5FC3\u7A0D\u7B49...\n </div>\n\n <div class=\"export-sel hide\">\n <div class=\"export-sel-title\">\u8BF7\u9009\u62E9\u5BFC\u51FA\u5185\u5BB9</div>\n <div class=\"export-sel-con\"></div>\n </div>\n\n <div class=\"export-section-wrap hide\">\n <div class=\"export-tit\"></div>\n <div class=\"export-section\">\n <div class=\"export-file\">\n <div class=\"export-file-l\">\n <div class=\"export-file-l-img\"></div>\n <span class=\"export-file-l-filename\"></span>\n <span class=\"export-file-l-filesize\"></span>\n </div>\n <div class=\"export-file-r\">\n <div class=\"export-file-r-download hide\">\u4E0B\u8F7D</div>\n <div class=\"export-file-r-cancel hide\">x</div>\n </div>\n </div>\n\n <div class=\"export-progress\">\n <div class=\"export-progress-outer\">\n <div class=\"export-progress-inner\"></div>\n </div>\n <div class=\"export-progress-text\"></div>\n </div>\n\n <div class=\"export-result hide\"></div>\n\n <div class=\"export-tip hide\">\u60A8\u53EF\u4EE5\u968F\u65F6\u5173\u95ED\u8BE5\u5F39\u6846\uFF0C\u4E4B\u540E\u5728\u5BFC\u5165\u5BFC\u51FA\u5217\u8868\u4E2D\u67E5\u770B\u7ED3\u679C\u3002</div>\n </div>\n </div>\n\n <div class=\"export-btnwrap\">\n <div class=\"btn\">\u5BFC\u51FA</div>\n </div>\n\n </div>\n </div>\n </div>\n </div>\n ");
43564
+ return "\n<style>\n:host {\n display: block;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0px;\n right: 0px;\n bottom: 0px;\n z-index: 9000;\n}\n\n.hide {\n display: none!important;\n}\n\n.spu-expandexp {\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n overflow: auto;\n}\n\n\n.modal {\n width: 80%;\n max-width: 800px;\n min-width: 500px;\n margin: 50px auto 0;\n border-radius: 2px;\n overflow: hidden;\n}\n.modal-th {\n height: 40px;\n background-color: #409eff;\n}\n.modal-th .title {\n float: left;\n line-height: 40px;\n color: #fff;\n font-size: 16px;\n margin-left: 16px;\n}\n.modal-th .close {\n float: right;\n line-height: 40px;\n height: 40px;\n width: 40px;\n color: #fff;\n font-size: 16px;\n text-align: center;\n cursor: pointer;\n}\n.modal-tb {\n padding: 16px;\n background-color: #fff;\n}\n\n.export {}\n.export-wait {\n line-height: 32px;\n height: 32px;\n text-align: center;\n background-color: rgba(255, 73, 73, .1);\n color: #333;\n}\n.export-wait span {\n color: red;\n margin: 0 4px;\n}\n.export-tit {\n line-height: 32px;\n height: 32px;\n}\n\n.export-sel {\n margin-bottom: 12px;\n}\n.export-sel-title {\n margin-bottom: 12px;\n}\n.export-sel-con {\n display: flex;\n}\n.export-sel-con-item {\n display: flex;\n align-items: center;\n margin-right: 32px;\n cursor: pointer;\n}\n.export-sel-con-item label {\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n}\n.export-sel-con-item input {\n cursor: pointer;\n margin: 4px;\n}\n\n.export-section-wrap {}\n.export-section {\n border: 1px solid #ddd;\n padding: 12px;\n}\n\n.export-file {\n height: 28px;\n line-height: 28px;\n display: flex;\n justify-content: space-between;\n // margin-bottom: 12px;\n}\n.export-file-l {\n flex: 1;\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n.export-file-l-img {\n flex: none;\n display: block;\n height: 20px;\n width: 20px;\n margin-right: 4px;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n}\n.export-file-l-img.excel {\n background-image: url(".concat(img$3, ");\n}\n.export-file-l-img.csv {\n background-image: url(").concat(img$2, ");\n}\n.export-file-l-img.pdf {\n background-image: url(").concat(img$1, ");\n}\n.export-file-l-img.zip {\n background-image: url(").concat(img, ");\n}\n.export-file-l-filename {\n flex: 1;\n}\n.export-file-l-filesize {\n flex: none;\n}\n.export-file-r {\n display: flex;\n width: 80px;\n flex-direction: row-reverse;\n}\n.export-file-r-download {\n line-height: 26px;\n border-radius: 3px;\n background-color: #67c23a;\n border: 1px solid #67c23a;\n color: #fff;\n padding: 0 12px;\n font-size: 14px;\n cursor: pointer;\n}\n.export-file-r-download:hover {\n background: #85ce61;\n border-color: #85ce61;\n}\n.export-file-r-cancel {\n line-height: 26px;\n width: 26px;\n border-radius: 14px;\n color: #f56c6c;\n background: #fef0f0;\n border: 1px solid #fbc4c4;\n text-align: center;\n font-size: 14px;\n cursor: pointer;\n}\n.export-file-r-cancel:hover {\n background: #f56c6c;\n border-color: #f56c6c;\n color: #fff;\n}\n\n\n\n.export-progress {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 30px;\n}\n.export-progress-outer {\n flex: 1;\n height: 8px;\n background-color: #EBEEF5;\n overflow: hidden;\n position: relative;\n vertical-align: middle;\n}\n.export-progress-inner {\n animation-duration: 3s;\n height: 100%;\n width: 0;\n background-color: #417AE7;\n -webkit-transition: width .6s ease;\n transition: width .6s ease;\n}\n.export-progress-inner.error {\n background: red;\n}\n.export-progress-inner.success {\n background: #67C23A;\n}\n.export-progress-text {\n flex: none;\n width: 50px;\n font-size: 14px;\n line-height: 30px;\n text-align: right;\n}\n\n\n\n.export-result {\n height: 28px;\n line-height: 28px;\n text-align: right;\n font-size: 12px;\n padding: 0px 8px;\n}\n.export-result.error {\n background: #fdf1ef;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.export-result.success {\n background: #e5f7f3;\n}\n\n\n.export-tip {\n height: 28px;\n line-height: 28px;\n margin-top: 8px;\n font-size: 12px;\n text-align: right;\n color: #999;\n}\n\n.export-btnwrap {\n margin-top: 12px;\n display: flex;\n flex-direction: row-reverse;\n}\n.btn {\n line-height: 38px;\n line-height: 38px;\n border: 1px solid #409eff;\n background-color: #409eff;\n border-radius: 5px;\n color: #fff;\n padding: 0 20px;\n font-size: 16px;\n cursor: pointer;\n}\n.btn:hover {\n background: #66b1ff;\n border-color: #66b1ff;\n}\n</style>\n\n <div class=\"spu-expandexp\">\n <div class=\"modal\">\n <div class=\"modal-th\">\n <div class=\"title\">\n \u6570\u636E\u5BFC\u51FA\n </div>\n <div class=\"close\">\n x\n </div>\n </div>\n <div class=\"modal-tb\">\n <div class=\"export\">\n <div class=\"export-wait hide\">\n \u5BFC\u51FA\u7B49\u5F85\u961F\u5217\u4E2D\uFF1A\u8FD8\u6709<span></span>\u4F4D\uFF0C\u8BF7\u8010\u5FC3\u7A0D\u7B49...\n </div>\n\n <div class=\"export-sel hide\">\n <div class=\"export-sel-title\">\u8BF7\u9009\u62E9\u5BFC\u51FA\u5185\u5BB9</div>\n <div class=\"export-sel-con\"></div>\n </div>\n\n <div class=\"export-section-wrap hide\">\n <div class=\"export-tit\"></div>\n <div class=\"export-section\">\n <div class=\"export-file\">\n <div class=\"export-file-l\">\n <div class=\"export-file-l-img\"></div>\n <span class=\"export-file-l-filename\"></span>\n <span class=\"export-file-l-filesize\"></span>\n </div>\n <div class=\"export-file-r\">\n <div class=\"export-file-r-download hide\">\u4E0B\u8F7D</div>\n <div class=\"export-file-r-cancel hide\">x</div>\n </div>\n </div>\n\n <div class=\"export-progress\">\n <div class=\"export-progress-outer\">\n <div class=\"export-progress-inner\"></div>\n </div>\n <div class=\"export-progress-text\"></div>\n </div>\n\n <div class=\"export-result hide\"></div>\n\n <div class=\"export-tip hide\">\u60A8\u53EF\u4EE5\u968F\u65F6\u5173\u95ED\u8BE5\u5F39\u6846\uFF0C\u4E4B\u540E\u5728\u5BFC\u5165\u5BFC\u51FA\u5217\u8868\u4E2D\u67E5\u770B\u7ED3\u679C\u3002</div>\n </div>\n </div>\n\n <div class=\"export-btnwrap\">\n <div class=\"btn\">\u5BFC\u51FA</div>\n </div>\n\n </div>\n </div>\n </div>\n </div>\n ");
43565
43565
  });
43566
43566
 
43567
43567
  var Step = /*#__PURE__*/function () {
@@ -43995,8 +43995,6 @@ var SpuExpandexp = /*#__PURE__*/function (_HTMLElement) {
43995
43995
  }
43996
43996
  });
43997
43997
  } else {
43998
- this.data.filewatermark = '0';
43999
- this.data.iscompress = '0';
44000
43998
  apaasAxios.post('/api/expandexp/global/searchExpGloConfig', {
44001
43999
  key: 'export-config-switch',
44002
44000
  tenantcode: login.getUser('tenantcode'),
@@ -44018,22 +44016,26 @@ var SpuExpandexp = /*#__PURE__*/function (_HTMLElement) {
44018
44016
  if (_this5.data.expandStatus === '1') {
44019
44017
  _this5.data.exportcontentArray = ['excel'];
44020
44018
  _this5.data.exportcontent = 'excel';
44021
- }
44022
- // 获取文件水印开关
44023
- apaasAxios.post('/api/expandexp/global/searchWatermarkConfig', '', {
44024
- isShowLoading: false
44025
- }).then(function (res) {
44026
- var _res$data2;
44027
- if (res.code === 200 && res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.configjson) {
44028
- _this5.data.filewatermarkGlobalConfig = JSON.parse(res.data.configjson).isWatermark === '1' ? '1' : '0';
44029
- } else {
44019
+ _this5.data.filewatermark = '0';
44020
+ _this5.data.iscompress = '0';
44021
+ } else if (_this5.data.expandStatus === '2') {
44022
+ _this5.data.iscompress = '1';
44023
+ // 获取文件水印开关
44024
+ apaasAxios.post('/api/expandexp/global/searchWatermarkConfig', '', {
44025
+ isShowLoading: false
44026
+ }).then(function (res) {
44027
+ var _res$data2;
44028
+ if (res.code === 200 && res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.configjson) {
44029
+ _this5.data.filewatermarkGlobalConfig = JSON.parse(res.data.configjson).isWatermark === '1' ? '1' : '0';
44030
+ } else {
44031
+ _this5.data.filewatermarkGlobalConfig = '0';
44032
+ }
44033
+ })["catch"](function () {
44030
44034
  _this5.data.filewatermarkGlobalConfig = '0';
44031
- }
44032
- })["catch"](function () {
44033
- _this5.data.filewatermarkGlobalConfig = '0';
44034
- })["finally"](function () {
44035
- _this5.data.filewatermark = _this5.data.filewatermarkGlobalConfig === '1' ? '1' : '0';
44036
- });
44035
+ })["finally"](function () {
44036
+ _this5.data.filewatermark = _this5.data.filewatermarkGlobalConfig === '1' ? '1' : '0';
44037
+ });
44038
+ }
44037
44039
  });
44038
44040
  }
44039
44041
  case 5:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart100/spu-web-plugin",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "rollup -c -w",
@@ -51,7 +51,6 @@ export default class SpuExpandexp extends HTMLElement {
51
51
  imagesizepercolumn: '5',
52
52
  imageheightcm: '2',
53
53
 
54
-
55
54
  expandStatus: '1', // 1普通导出(没有做图片导出服务) 2服务端导出(做了图片导出服务未SPU化) 3安装了图片导出SPU
56
55
  filewatermarkGlobalConfig: '0', // 全局文件水印开关
57
56
  exportcontentArray: ['excel', 'link', 'photo'], // 当 expandStatus = 2 | 3时才显示导出内容给用户选择
@@ -342,8 +341,6 @@ export default class SpuExpandexp extends HTMLElement {
342
341
  }
343
342
  })
344
343
  } else {
345
- this.data.filewatermark = '0'
346
- this.data.iscompress = '0'
347
344
  apaasAxios
348
345
  .post('/api/expandexp/global/searchExpGloConfig', {
349
346
  key: 'export-config-switch',
@@ -368,25 +365,29 @@ export default class SpuExpandexp extends HTMLElement {
368
365
  if (this.data.expandStatus === '1') {
369
366
  this.data.exportcontentArray = ['excel']
370
367
  this.data.exportcontent = 'excel'
371
- }
372
-
373
- // 获取文件水印开关
374
- apaasAxios
375
- .post('/api/expandexp/global/searchWatermarkConfig', '', {
376
- isShowLoading: false
377
- })
378
- .then((res: any) => {
379
- if (res.code === 200 && res?.data?.configjson) {
380
- this.data.filewatermarkGlobalConfig = JSON.parse(res.data.configjson).isWatermark === '1' ? '1' : '0'
381
- } else {
368
+ this.data.filewatermark = '0'
369
+ this.data.iscompress = '0'
370
+ } else if (this.data.expandStatus === '2') {
371
+ this.data.iscompress = '1'
372
+
373
+ // 获取文件水印开关
374
+ apaasAxios
375
+ .post('/api/expandexp/global/searchWatermarkConfig', '', {
376
+ isShowLoading: false
377
+ })
378
+ .then((res: any) => {
379
+ if (res.code === 200 && res?.data?.configjson) {
380
+ this.data.filewatermarkGlobalConfig = JSON.parse(res.data.configjson).isWatermark === '1' ? '1' : '0'
381
+ } else {
382
+ this.data.filewatermarkGlobalConfig = '0'
383
+ }
384
+ })
385
+ .catch(() => {
382
386
  this.data.filewatermarkGlobalConfig = '0'
383
- }
384
- })
385
- .catch(() => {
386
- this.data.filewatermarkGlobalConfig = '0'
387
- }).finally(() => {
388
- this.data.filewatermark = this.data.filewatermarkGlobalConfig === '1' ? '1' : '0'
389
- })
387
+ }).finally(() => {
388
+ this.data.filewatermark = this.data.filewatermarkGlobalConfig === '1' ? '1' : '0'
389
+ })
390
+ }
390
391
  })
391
392
  }
392
393
  }
@@ -19,7 +19,7 @@ export default (ele: SpuExpandexp) => {
19
19
  left: 0px;
20
20
  right: 0px;
21
21
  bottom: 0px;
22
- z-index: 1;
22
+ z-index: 9000;
23
23
  }
24
24
 
25
25
  .hide {
package/src/install.ts CHANGED
@@ -22,23 +22,23 @@ let isInstall = false
22
22
  const install = (app: any, options: SPUWebPluginOptions) => {
23
23
  // console.log(app)
24
24
  // console.log(app.version)
25
- console.log('options', options)
25
+ console.log('@smart100/spu-web-plugin options', options)
26
26
  merge(globalOptions, options)
27
- console.log('globalOptions', globalOptions)
27
+ console.log('@smart100/spu-web-plugin globalOptions', globalOptions)
28
28
 
29
29
  // if (install.installed) return
30
30
  // install.installed = true
31
31
  // debugger
32
32
 
33
- if (app) {
34
- const version = Number(app.version.split('.')[0])
35
- if (version < 3) {
36
- console.error('This plugin requires Vue 3')
37
- return false
38
- }
39
- } else {
40
- console.error('This plugin requires Vue App Instance')
41
- }
33
+ // if (app) {
34
+ // const version = Number(app.version.split('.')[0])
35
+ // if (version < 3) {
36
+ // console.error('This plugin requires Vue 3')
37
+ // return false
38
+ // }
39
+ // } else {
40
+ // console.error('This plugin requires Vue App Instance')
41
+ // }
42
42
 
43
43
 
44
44
  initStorageProxy(globalOptions)