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/lib/index.js
CHANGED
|
@@ -23043,7 +23043,7 @@
|
|
|
23043
23043
|
return C === undefined || (S = anObject(C)[SPECIES$7]) == undefined ? defaultConstructor : aFunction(S);
|
|
23044
23044
|
};
|
|
23045
23045
|
|
|
23046
|
-
var isIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23046
|
+
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23047
23047
|
|
|
23048
23048
|
var location$1 = global_1.location;
|
|
23049
23049
|
var set$2 = global_1.setImmediate;
|
|
@@ -23108,7 +23108,7 @@
|
|
|
23108
23108
|
};
|
|
23109
23109
|
// Browsers with MessageChannel, includes WebWorkers
|
|
23110
23110
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
23111
|
-
} else if (MessageChannel && !isIos) {
|
|
23111
|
+
} else if (MessageChannel && !isIos$1) {
|
|
23112
23112
|
channel = new MessageChannel();
|
|
23113
23113
|
port = channel.port2;
|
|
23114
23114
|
channel.port1.onmessage = listener;
|
|
@@ -23177,7 +23177,7 @@
|
|
|
23177
23177
|
process$2.nextTick(flush);
|
|
23178
23178
|
};
|
|
23179
23179
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
23180
|
-
} else if (MutationObserver$1 && !isIos) {
|
|
23180
|
+
} else if (MutationObserver$1 && !isIos$1) {
|
|
23181
23181
|
toggle = true;
|
|
23182
23182
|
node = document.createTextNode('');
|
|
23183
23183
|
new MutationObserver$1(flush).observe(node, { characterData: true });
|
|
@@ -28380,7 +28380,7 @@
|
|
|
28380
28380
|
|
|
28381
28381
|
var userAgent$1 = getBuiltIn$1('navigator', 'userAgent') || '';
|
|
28382
28382
|
|
|
28383
|
-
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28383
|
+
var isIos$1$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28384
28384
|
|
|
28385
28385
|
var location$1$1 = global_1$1.location;
|
|
28386
28386
|
var set$3 = global_1$1.setImmediate;
|
|
@@ -28445,7 +28445,7 @@
|
|
|
28445
28445
|
};
|
|
28446
28446
|
// Browsers with MessageChannel, includes WebWorkers
|
|
28447
28447
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
28448
|
-
} else if (MessageChannel$1 && !isIos$1) {
|
|
28448
|
+
} else if (MessageChannel$1 && !isIos$1$1) {
|
|
28449
28449
|
channel$1 = new MessageChannel$1();
|
|
28450
28450
|
port$1 = channel$1.port2;
|
|
28451
28451
|
channel$1.port1.onmessage = listener$1;
|
|
@@ -28514,7 +28514,7 @@
|
|
|
28514
28514
|
process$5.nextTick(flush$1);
|
|
28515
28515
|
};
|
|
28516
28516
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
28517
|
-
} else if (MutationObserver$2 && !isIos$1) {
|
|
28517
|
+
} else if (MutationObserver$2 && !isIos$1$1) {
|
|
28518
28518
|
toggle$1 = true;
|
|
28519
28519
|
node$1 = document.createTextNode('');
|
|
28520
28520
|
new MutationObserver$2(flush$1).observe(node$1, { characterData: true });
|
|
@@ -47847,6 +47847,9 @@
|
|
|
47847
47847
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
47848
47848
|
}, __vue_inject_styles__$1, __vue_script__$1);
|
|
47849
47849
|
|
|
47850
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
47851
|
+
isIos = _Jax$parseUaString.isIos;
|
|
47852
|
+
_Jax$parseUaString.isAndroid;
|
|
47850
47853
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
47851
47854
|
var EXPIRE_ENUM = [{
|
|
47852
47855
|
value: 'NEVER',
|
|
@@ -47891,8 +47894,8 @@
|
|
|
47891
47894
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
47892
47895
|
}, {
|
|
47893
47896
|
action: 'system_share',
|
|
47894
|
-
actionName: '
|
|
47895
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
47897
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
47898
|
+
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'
|
|
47896
47899
|
}, {
|
|
47897
47900
|
action: 'generatePoster',
|
|
47898
47901
|
actionName: '生成海报',
|
|
@@ -48237,8 +48240,7 @@
|
|
|
48237
48240
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48238
48241
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48239
48242
|
}, [_c('div', {
|
|
48240
|
-
staticClass: "bxt-share-wrapper"
|
|
48241
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48243
|
+
staticClass: "bxt-share-wrapper"
|
|
48242
48244
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48243
48245
|
return _c('figure', {
|
|
48244
48246
|
key: o.action,
|
|
@@ -48254,12 +48256,11 @@
|
|
|
48254
48256
|
"src": o.actionIcon,
|
|
48255
48257
|
"alt": "icon"
|
|
48256
48258
|
}
|
|
48257
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48259
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48258
48260
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
48259
48261
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48260
48262
|
}, [_c('div', {
|
|
48261
|
-
staticClass: "bxt-share-wrapper"
|
|
48262
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48263
|
+
staticClass: "bxt-share-wrapper"
|
|
48263
48264
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48264
48265
|
return _c('figure', {
|
|
48265
48266
|
key: o.action,
|
|
@@ -48275,7 +48276,7 @@
|
|
|
48275
48276
|
"src": o.actionIcon,
|
|
48276
48277
|
"alt": "icon"
|
|
48277
48278
|
}
|
|
48278
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48279
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48279
48280
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
48280
48281
|
staticClass: "bxt-fooer"
|
|
48281
48282
|
}, [_c('div', {
|
|
@@ -48332,7 +48333,7 @@
|
|
|
48332
48333
|
install(window.Vue);
|
|
48333
48334
|
}
|
|
48334
48335
|
var index = {
|
|
48335
|
-
version: '3.2.
|
|
48336
|
+
version: '3.2.1',
|
|
48336
48337
|
install: install
|
|
48337
48338
|
};
|
|
48338
48339
|
|
|
@@ -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/lib/share-sheet/index.js
CHANGED
|
@@ -8535,6 +8535,9 @@
|
|
|
8535
8535
|
return QS.stringify(params);
|
|
8536
8536
|
});
|
|
8537
8537
|
|
|
8538
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
8539
|
+
isIos = _Jax$parseUaString.isIos;
|
|
8540
|
+
_Jax$parseUaString.isAndroid;
|
|
8538
8541
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
8539
8542
|
var EXPIRE_ENUM = [{
|
|
8540
8543
|
value: 'NEVER',
|
|
@@ -8579,8 +8582,8 @@
|
|
|
8579
8582
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
8580
8583
|
}, {
|
|
8581
8584
|
action: 'system_share',
|
|
8582
|
-
actionName: '
|
|
8583
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8585
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
8586
|
+
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'
|
|
8584
8587
|
}, {
|
|
8585
8588
|
action: 'generatePoster',
|
|
8586
8589
|
actionName: '生成海报',
|
|
@@ -8937,8 +8940,7 @@
|
|
|
8937
8940
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8938
8941
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8939
8942
|
}, [_c('div', {
|
|
8940
|
-
staticClass: "bxt-share-wrapper"
|
|
8941
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
8943
|
+
staticClass: "bxt-share-wrapper"
|
|
8942
8944
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
8943
8945
|
return _c('figure', {
|
|
8944
8946
|
key: o.action,
|
|
@@ -8954,12 +8956,11 @@
|
|
|
8954
8956
|
"src": o.actionIcon,
|
|
8955
8957
|
"alt": "icon"
|
|
8956
8958
|
}
|
|
8957
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
8959
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
8958
8960
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
8959
8961
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8960
8962
|
}, [_c('div', {
|
|
8961
|
-
staticClass: "bxt-share-wrapper"
|
|
8962
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
8963
|
+
staticClass: "bxt-share-wrapper"
|
|
8963
8964
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
8964
8965
|
return _c('figure', {
|
|
8965
8966
|
key: o.action,
|
|
@@ -8975,7 +8976,7 @@
|
|
|
8975
8976
|
"src": o.actionIcon,
|
|
8976
8977
|
"alt": "icon"
|
|
8977
8978
|
}
|
|
8978
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
8979
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
8979
8980
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
8980
8981
|
staticClass: "bxt-fooer"
|
|
8981
8982
|
}, [_c('div', {
|
package/package.json
CHANGED
package/packages/index.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import Jax from '@bxs/jax';
|
|
2
|
+
export const { isIos, isAndroid } = Jax.parseUaString();
|
|
3
|
+
|
|
1
4
|
const oneDayMillisecond = 24 * 3600 * 1000;
|
|
2
5
|
|
|
3
6
|
export const EXPIRE_ENUM = [
|
|
@@ -32,8 +35,10 @@ export const ACTION_ENUM = [
|
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
37
|
action: 'system_share',
|
|
35
|
-
actionName: '
|
|
36
|
-
actionIcon:
|
|
38
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
39
|
+
actionIcon: isIos
|
|
40
|
+
? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png'
|
|
41
|
+
: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
action: 'generatePoster',
|
|
@@ -61,24 +61,24 @@ export default {
|
|
|
61
61
|
{
|
|
62
62
|
action: 'wechat_timeline',
|
|
63
63
|
...shareInfo()
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
65
|
// {
|
|
66
66
|
// action: 'qq_friends',
|
|
67
67
|
// ...shareInfo()
|
|
68
68
|
// },
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
{
|
|
70
|
+
action: 'shareMiniProgram',
|
|
71
|
+
webPageUrl: 'https://www.winbaoxian.com/', // 兼容低版本的网页链接
|
|
72
|
+
userName: 'gh_db166d39960f', // 小程序原始id
|
|
73
|
+
path: '/pages/result/index?uuid=e21d73a0c20d4900a765237a4907a82b&theme=theme_pbhzczdlw&t=1', // 小程序页面路径
|
|
74
|
+
title: '买保险优选服务', // 小程序消息title
|
|
75
|
+
description: '小程序消息描述信息', // 小程序消息desc
|
|
76
|
+
imageUrl: 'https://img.winbaoxian.com/static/app-zx-rule-pdf/allrule/20250325182134792.png' // 小程序消息封面图片,小于128k
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
action: 'system_share',
|
|
80
|
+
...shareInfo()
|
|
81
|
+
}
|
|
82
82
|
],
|
|
83
83
|
featureActions: [
|
|
84
84
|
{
|
|
@@ -121,28 +121,23 @@
|
|
|
121
121
|
|
|
122
122
|
& .bxt-share {
|
|
123
123
|
& .bxt-share-wrapper {
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: flex-start;
|
|
126
124
|
padding: 20px 15px;
|
|
127
125
|
overflow: auto;
|
|
126
|
+
white-space: nowrap;
|
|
128
127
|
|
|
129
128
|
&::-webkit-scrollbar {
|
|
130
129
|
display: none;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
& figure {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
justify-content: center;
|
|
138
|
-
align-items: center;
|
|
133
|
+
display: inline-block;
|
|
134
|
+
width: 21.3333vw;
|
|
135
|
+
text-align: center;
|
|
139
136
|
|
|
140
137
|
& .bxt-empty-image {
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
justify-content: center;
|
|
144
138
|
width: 50px;
|
|
145
139
|
height: 50px;
|
|
140
|
+
margin: 0 auto;
|
|
146
141
|
background: #f3f7f9;
|
|
147
142
|
border-radius: 50px;
|
|
148
143
|
overflow: hidden;
|
|
@@ -163,17 +158,9 @@
|
|
|
163
158
|
white-space: nowrap;
|
|
164
159
|
color: #666;
|
|
165
160
|
text-align: center;
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
text-overflow: ellipsis;
|
|
168
161
|
}
|
|
169
162
|
}
|
|
170
163
|
}
|
|
171
|
-
|
|
172
|
-
& .bxt-share-wrapper.more {
|
|
173
|
-
& figure {
|
|
174
|
-
flex: 0 0 23%;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
164
|
}
|
|
178
165
|
|
|
179
166
|
& .bxt-fooer {
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
</section>
|
|
37
37
|
<slot name="header"></slot>
|
|
38
38
|
<section v-if="shareOptions.length" class="bxt-share bxt-bottom-border">
|
|
39
|
-
<div class="bxt-share-wrapper"
|
|
39
|
+
<div class="bxt-share-wrapper">
|
|
40
40
|
<figure v-for="o in shareOptions" :key="o.action" @click="onClickShare(o)">
|
|
41
41
|
<div class="bxt-empty-image">
|
|
42
42
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
43
43
|
</div>
|
|
44
|
-
<figcaption>{{ textOverflowEllipsis(o.actionName,
|
|
44
|
+
<figcaption>{{ textOverflowEllipsis(o.actionName, 6) }}</figcaption>
|
|
45
45
|
</figure>
|
|
46
46
|
</div>
|
|
47
47
|
</section>
|
|
48
48
|
<section v-if="actionOptions.length" class="bxt-share bxt-bottom-border">
|
|
49
|
-
<div class="bxt-share-wrapper"
|
|
49
|
+
<div class="bxt-share-wrapper">
|
|
50
50
|
<figure v-for="o in actionOptions" :key="o.action" @click="onClickAction(o)">
|
|
51
51
|
<div class="bxt-empty-image">
|
|
52
52
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
53
53
|
</div>
|
|
54
|
-
<figcaption>{{ textOverflowEllipsis(o.actionName,
|
|
54
|
+
<figcaption>{{ textOverflowEllipsis(o.actionName, 6) }}</figcaption>
|
|
55
55
|
</figure>
|
|
56
56
|
</div>
|
|
57
57
|
</section>
|