bxs-tools-ui 3.2.0 → 3.2.1
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/es/index.css +1 -1
- package/es/index.js +16 -15
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.js +9 -8
- package/lib/index.css +1 -1
- package/lib/index.js +16 -15
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -8
- package/package.json +1 -1
- package/packages/index.ts +1 -1
- package/packages/share-sheet/constant.js +7 -2
- package/packages/share-sheet/demo/index.vue +14 -14
- package/packages/share-sheet/index.css +5 -18
- package/packages/share-sheet/index.vue +4 -4
package/es/index.js
CHANGED
|
@@ -23061,7 +23061,7 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
|
23061
23061
|
return C === undefined || (S = anObject(C)[SPECIES$7]) == undefined ? defaultConstructor : aFunction(S);
|
|
23062
23062
|
};
|
|
23063
23063
|
|
|
23064
|
-
var isIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23064
|
+
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23065
23065
|
|
|
23066
23066
|
var location$1 = global_1.location;
|
|
23067
23067
|
var set$2 = global_1.setImmediate;
|
|
@@ -23126,7 +23126,7 @@ if (!set$2 || !clear) {
|
|
|
23126
23126
|
};
|
|
23127
23127
|
// Browsers with MessageChannel, includes WebWorkers
|
|
23128
23128
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
23129
|
-
} else if (MessageChannel && !isIos) {
|
|
23129
|
+
} else if (MessageChannel && !isIos$1) {
|
|
23130
23130
|
channel = new MessageChannel();
|
|
23131
23131
|
port = channel.port2;
|
|
23132
23132
|
channel.port1.onmessage = listener;
|
|
@@ -23195,7 +23195,7 @@ if (!queueMicrotask) {
|
|
|
23195
23195
|
process$2.nextTick(flush);
|
|
23196
23196
|
};
|
|
23197
23197
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
23198
|
-
} else if (MutationObserver$1 && !isIos) {
|
|
23198
|
+
} else if (MutationObserver$1 && !isIos$1) {
|
|
23199
23199
|
toggle = true;
|
|
23200
23200
|
node = document.createTextNode('');
|
|
23201
23201
|
new MutationObserver$1(flush).observe(node, { characterData: true });
|
|
@@ -28398,7 +28398,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
28398
28398
|
|
|
28399
28399
|
var userAgent$1 = getBuiltIn$1('navigator', 'userAgent') || '';
|
|
28400
28400
|
|
|
28401
|
-
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28401
|
+
var isIos$1$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28402
28402
|
|
|
28403
28403
|
var location$1$1 = global_1$1.location;
|
|
28404
28404
|
var set$3 = global_1$1.setImmediate;
|
|
@@ -28463,7 +28463,7 @@ if (!set$3 || !clear$1) {
|
|
|
28463
28463
|
};
|
|
28464
28464
|
// Browsers with MessageChannel, includes WebWorkers
|
|
28465
28465
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
28466
|
-
} else if (MessageChannel$1 && !isIos$1) {
|
|
28466
|
+
} else if (MessageChannel$1 && !isIos$1$1) {
|
|
28467
28467
|
channel$1 = new MessageChannel$1();
|
|
28468
28468
|
port$1 = channel$1.port2;
|
|
28469
28469
|
channel$1.port1.onmessage = listener$1;
|
|
@@ -28532,7 +28532,7 @@ if (!queueMicrotask$1) {
|
|
|
28532
28532
|
process$5.nextTick(flush$1);
|
|
28533
28533
|
};
|
|
28534
28534
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
28535
|
-
} else if (MutationObserver$2 && !isIos$1) {
|
|
28535
|
+
} else if (MutationObserver$2 && !isIos$1$1) {
|
|
28536
28536
|
toggle$1 = true;
|
|
28537
28537
|
node$1 = document.createTextNode('');
|
|
28538
28538
|
new MutationObserver$2(flush$1).observe(node$1, { characterData: true });
|
|
@@ -47865,6 +47865,9 @@ var __vue_component__$1 = /*#__PURE__*/normalizeComponent$1({
|
|
|
47865
47865
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
47866
47866
|
}, __vue_inject_styles__$1, __vue_script__$1);
|
|
47867
47867
|
|
|
47868
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
47869
|
+
isIos = _Jax$parseUaString.isIos;
|
|
47870
|
+
_Jax$parseUaString.isAndroid;
|
|
47868
47871
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
47869
47872
|
var EXPIRE_ENUM = [{
|
|
47870
47873
|
value: 'NEVER',
|
|
@@ -47909,8 +47912,8 @@ var ACTION_ENUM = [{
|
|
|
47909
47912
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
47910
47913
|
}, {
|
|
47911
47914
|
action: 'system_share',
|
|
47912
|
-
actionName: '
|
|
47913
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
47915
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
47916
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
47914
47917
|
}, {
|
|
47915
47918
|
action: 'generatePoster',
|
|
47916
47919
|
actionName: '生成海报',
|
|
@@ -48255,8 +48258,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48255
48258
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48256
48259
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48257
48260
|
}, [_c('div', {
|
|
48258
|
-
staticClass: "bxt-share-wrapper"
|
|
48259
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48261
|
+
staticClass: "bxt-share-wrapper"
|
|
48260
48262
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48261
48263
|
return _c('figure', {
|
|
48262
48264
|
key: o.action,
|
|
@@ -48272,12 +48274,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48272
48274
|
"src": o.actionIcon,
|
|
48273
48275
|
"alt": "icon"
|
|
48274
48276
|
}
|
|
48275
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48277
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48276
48278
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
48277
48279
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48278
48280
|
}, [_c('div', {
|
|
48279
|
-
staticClass: "bxt-share-wrapper"
|
|
48280
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48281
|
+
staticClass: "bxt-share-wrapper"
|
|
48281
48282
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48282
48283
|
return _c('figure', {
|
|
48283
48284
|
key: o.action,
|
|
@@ -48293,7 +48294,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48293
48294
|
"src": o.actionIcon,
|
|
48294
48295
|
"alt": "icon"
|
|
48295
48296
|
}
|
|
48296
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48297
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48297
48298
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
48298
48299
|
staticClass: "bxt-fooer"
|
|
48299
48300
|
}, [_c('div', {
|
|
@@ -48350,7 +48351,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48350
48351
|
install(window.Vue);
|
|
48351
48352
|
}
|
|
48352
48353
|
const index = {
|
|
48353
|
-
version: '3.2.
|
|
48354
|
+
version: '3.2.1',
|
|
48354
48355
|
install: install
|
|
48355
48356
|
};
|
|
48356
48357
|
|
package/es/share-sheet/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px}.bxt-share-sheet .bxt-explain-title{padding:15px 21px}.bxt-share-sheet .bxt-explain-text{padding:12px 15px}.bxt-share-sheet .bxt-explain-text .bxt-explain-text-content{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;width:100%}.bxt-share-sheet .bxt-explain-text--copy{padding:12px 15px}.bxt-share-sheet .bxt-explain-text--copy .bxt-explain-text-wrapper{background:#f5f5f5;border-radius:6px;padding:12px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper{
|
|
1
|
+
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px}.bxt-share-sheet .bxt-explain-title{padding:15px 21px}.bxt-share-sheet .bxt-explain-text{padding:12px 15px}.bxt-share-sheet .bxt-explain-text .bxt-explain-text-content{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;width:100%}.bxt-share-sheet .bxt-explain-text--copy{padding:12px 15px}.bxt-share-sheet .bxt-explain-text--copy .bxt-explain-text-wrapper{background:#f5f5f5;border-radius:6px;padding:12px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper{overflow:auto;padding:20px 15px;white-space:nowrap}.bxt-share-sheet .bxt-share .bxt-share-wrapper::-webkit-scrollbar{display:none}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure{display:inline-block;text-align:center;width:21.3333vw}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{background:#f3f7f9;border-radius:50px;height:50px;margin:0 auto;overflow:hidden;width:50px}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image img{display:block;margin:0 auto;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure figcaption{color:#666;font-size:12px;height:15px;line-height:15px;margin-top:5px;text-align:center;white-space:nowrap;width:100%}.bxt-share-sheet .bxt-fooer:after{content:"";display:block;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.bxt-share-sheet .bxt-fooer{font-size:15px;line-height:18px;padding:16px 15px;text-align:center}.bxt-share-sheet .bxt-bottom-border{overflow:hidden;position:relative}.bxt-share-sheet .bxt-bottom-border:before{border-bottom:1px solid #e5e5e5;bottom:0;content:"";left:15px;position:absolute;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left center;transform-origin:left center;width:200%}
|
package/es/share-sheet/index.js
CHANGED
|
@@ -8540,6 +8540,9 @@ memoize(function (params) {
|
|
|
8540
8540
|
return QS.stringify(params);
|
|
8541
8541
|
});
|
|
8542
8542
|
|
|
8543
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
8544
|
+
isIos = _Jax$parseUaString.isIos;
|
|
8545
|
+
_Jax$parseUaString.isAndroid;
|
|
8543
8546
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
8544
8547
|
var EXPIRE_ENUM = [{
|
|
8545
8548
|
value: 'NEVER',
|
|
@@ -8584,8 +8587,8 @@ var ACTION_ENUM = [{
|
|
|
8584
8587
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
8585
8588
|
}, {
|
|
8586
8589
|
action: 'system_share',
|
|
8587
|
-
actionName: '
|
|
8588
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8590
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
8591
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8589
8592
|
}, {
|
|
8590
8593
|
action: 'generatePoster',
|
|
8591
8594
|
actionName: '生成海报',
|
|
@@ -8942,8 +8945,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8942
8945
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8943
8946
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8944
8947
|
}, [_c('div', {
|
|
8945
|
-
staticClass: "bxt-share-wrapper"
|
|
8946
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
8948
|
+
staticClass: "bxt-share-wrapper"
|
|
8947
8949
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
8948
8950
|
return _c('figure', {
|
|
8949
8951
|
key: o.action,
|
|
@@ -8959,12 +8961,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8959
8961
|
"src": o.actionIcon,
|
|
8960
8962
|
"alt": "icon"
|
|
8961
8963
|
}
|
|
8962
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
8964
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
8963
8965
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
8964
8966
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8965
8967
|
}, [_c('div', {
|
|
8966
|
-
staticClass: "bxt-share-wrapper"
|
|
8967
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
8968
|
+
staticClass: "bxt-share-wrapper"
|
|
8968
8969
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
8969
8970
|
return _c('figure', {
|
|
8970
8971
|
key: o.action,
|
|
@@ -8980,7 +8981,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8980
8981
|
"src": o.actionIcon,
|
|
8981
8982
|
"alt": "icon"
|
|
8982
8983
|
}
|
|
8983
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
8984
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
8984
8985
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
8985
8986
|
staticClass: "bxt-fooer"
|
|
8986
8987
|
}, [_c('div', {
|