bxs-tools-ui 3.1.1-alpha.2 → 3.1.2
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 +33 -18
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.js +32 -17
- package/lib/index.css +1 -1
- package/lib/index.js +33 -18
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +32 -17
- package/package.json +1 -1
- package/packages/index.ts +1 -1
- package/packages/share-sheet/demo/index.vue +24 -21
- package/packages/share-sheet/index.css +20 -3
- package/packages/share-sheet/index.vue +29 -10
package/es/index.js
CHANGED
|
@@ -47874,9 +47874,18 @@ const script = {
|
|
|
47874
47874
|
});
|
|
47875
47875
|
}
|
|
47876
47876
|
return options;
|
|
47877
|
+
},
|
|
47878
|
+
actionTypeLength: function actionTypeLength() {
|
|
47879
|
+
return [this.shareOptions, this.actionOptions].filter(function (e) {
|
|
47880
|
+
return e.length;
|
|
47881
|
+
}).length;
|
|
47882
|
+
}
|
|
47883
|
+
},
|
|
47884
|
+
created: function created() {
|
|
47885
|
+
if (this.explainData) {
|
|
47886
|
+
this.onClickCopy(this.explainData);
|
|
47877
47887
|
}
|
|
47878
47888
|
},
|
|
47879
|
-
created: function created() {},
|
|
47880
47889
|
mounted: function mounted() {},
|
|
47881
47890
|
methods: {
|
|
47882
47891
|
textOverflowEllipsis: textOverflowEllipsis,
|
|
@@ -47894,8 +47903,8 @@ const script = {
|
|
|
47894
47903
|
onClickExpire: function onClickExpire(o) {
|
|
47895
47904
|
this.$emit('expire', o);
|
|
47896
47905
|
},
|
|
47897
|
-
|
|
47898
|
-
if (item.copy) {
|
|
47906
|
+
onClickCopy: function onClickCopy(item) {
|
|
47907
|
+
if (item.text && item.copy) {
|
|
47899
47908
|
appBridge.copyString(item.text);
|
|
47900
47909
|
}
|
|
47901
47910
|
},
|
|
@@ -47966,7 +47975,23 @@ var __vue_render__ = function __vue_render__() {
|
|
|
47966
47975
|
$event.stopPropagation();
|
|
47967
47976
|
}
|
|
47968
47977
|
}
|
|
47969
|
-
}, [_vm.
|
|
47978
|
+
}, [_vm.explainData && (_vm.explainData.title || _vm.explainData.text) ? _c('section', {
|
|
47979
|
+
staticClass: "bxt-explain"
|
|
47980
|
+
}, [_vm.explainData.title ? _c('div', {
|
|
47981
|
+
staticClass: "bxt-explain-text bxt-bottom-border"
|
|
47982
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.title) + "\n ")]) : _vm._e(), _vm.explainData.text ? _c('div', {
|
|
47983
|
+
staticClass: "bxt-explain-text bxt-bottom-border",
|
|
47984
|
+
class: [_vm.explainData.copy ? 'bxt-explain-text--copy' : ''],
|
|
47985
|
+
on: {
|
|
47986
|
+
"click": function click($event) {
|
|
47987
|
+
return _vm.onClickCopy(_vm.explainData);
|
|
47988
|
+
}
|
|
47989
|
+
}
|
|
47990
|
+
}, [_c('div', {
|
|
47991
|
+
staticClass: "bxt-explain-text-wrapper"
|
|
47992
|
+
}, [_c('div', {
|
|
47993
|
+
staticClass: "bxt-explain-text-content"
|
|
47994
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])])]) : _vm._e()]) : _vm._e(), _vm.expireData ? _c('section', {
|
|
47970
47995
|
staticClass: "bxt-expire bxt-bottom-border"
|
|
47971
47996
|
}, [_c('div', {
|
|
47972
47997
|
staticClass: "bxt-title"
|
|
@@ -48004,21 +48029,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48004
48029
|
}
|
|
48005
48030
|
}
|
|
48006
48031
|
}, [_vm._v(_vm._s(o.name))]);
|
|
48007
|
-
}), 1)], 1) : _vm._e(), _vm.
|
|
48008
|
-
staticClass: "bxt-explain bxt-bottom-border",
|
|
48009
|
-
class: [_vm.explainData.copy ? 'copy' : '']
|
|
48010
|
-
}, [_c('div', {
|
|
48011
|
-
staticClass: "bxt-explain-text",
|
|
48012
|
-
on: {
|
|
48013
|
-
"click": function click($event) {
|
|
48014
|
-
return _vm.onClickExplain(_vm.explainData);
|
|
48015
|
-
}
|
|
48016
|
-
}
|
|
48017
|
-
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])]) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48032
|
+
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48018
48033
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48019
48034
|
}, [_c('div', {
|
|
48020
48035
|
staticClass: "bxt-share-wrapper",
|
|
48021
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48036
|
+
class: [_vm.shareOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
48022
48037
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48023
48038
|
return _c('figure', {
|
|
48024
48039
|
key: o.action,
|
|
@@ -48039,7 +48054,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48039
48054
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48040
48055
|
}, [_c('div', {
|
|
48041
48056
|
staticClass: "bxt-share-wrapper",
|
|
48042
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48057
|
+
class: [_vm.actionOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
48043
48058
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48044
48059
|
return _c('figure', {
|
|
48045
48060
|
key: o.action,
|
|
@@ -48112,7 +48127,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48112
48127
|
install(window.Vue);
|
|
48113
48128
|
}
|
|
48114
48129
|
const index = {
|
|
48115
|
-
version: '3.1.
|
|
48130
|
+
version: '3.1.2',
|
|
48116
48131
|
install: install
|
|
48117
48132
|
};
|
|
48118
48133
|
|
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
|
|
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{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;overflow:auto;padding:20px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper::-webkit-scrollbar{display:none}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure,.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{background:#f3f7f9;border-radius:50px;height:50px;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;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper.more{-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.bxt-share-sheet .bxt-share .bxt-share-wrapper.more figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 23%;-ms-flex:0 0 23%;flex:0 0 23%}.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
|
@@ -8767,9 +8767,18 @@ const script = {
|
|
|
8767
8767
|
});
|
|
8768
8768
|
}
|
|
8769
8769
|
return options;
|
|
8770
|
+
},
|
|
8771
|
+
actionTypeLength: function actionTypeLength() {
|
|
8772
|
+
return [this.shareOptions, this.actionOptions].filter(function (e) {
|
|
8773
|
+
return e.length;
|
|
8774
|
+
}).length;
|
|
8775
|
+
}
|
|
8776
|
+
},
|
|
8777
|
+
created: function created() {
|
|
8778
|
+
if (this.explainData) {
|
|
8779
|
+
this.onClickCopy(this.explainData);
|
|
8770
8780
|
}
|
|
8771
8781
|
},
|
|
8772
|
-
created: function created() {},
|
|
8773
8782
|
mounted: function mounted() {},
|
|
8774
8783
|
methods: {
|
|
8775
8784
|
textOverflowEllipsis: textOverflowEllipsis,
|
|
@@ -8787,8 +8796,8 @@ const script = {
|
|
|
8787
8796
|
onClickExpire: function onClickExpire(o) {
|
|
8788
8797
|
this.$emit('expire', o);
|
|
8789
8798
|
},
|
|
8790
|
-
|
|
8791
|
-
if (item.copy) {
|
|
8799
|
+
onClickCopy: function onClickCopy(item) {
|
|
8800
|
+
if (item.text && item.copy) {
|
|
8792
8801
|
appBridge.copyString(item.text);
|
|
8793
8802
|
}
|
|
8794
8803
|
},
|
|
@@ -8871,7 +8880,23 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8871
8880
|
$event.stopPropagation();
|
|
8872
8881
|
}
|
|
8873
8882
|
}
|
|
8874
|
-
}, [_vm.
|
|
8883
|
+
}, [_vm.explainData && (_vm.explainData.title || _vm.explainData.text) ? _c('section', {
|
|
8884
|
+
staticClass: "bxt-explain"
|
|
8885
|
+
}, [_vm.explainData.title ? _c('div', {
|
|
8886
|
+
staticClass: "bxt-explain-text bxt-bottom-border"
|
|
8887
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.title) + "\n ")]) : _vm._e(), _vm.explainData.text ? _c('div', {
|
|
8888
|
+
staticClass: "bxt-explain-text bxt-bottom-border",
|
|
8889
|
+
class: [_vm.explainData.copy ? 'bxt-explain-text--copy' : ''],
|
|
8890
|
+
on: {
|
|
8891
|
+
"click": function click($event) {
|
|
8892
|
+
return _vm.onClickCopy(_vm.explainData);
|
|
8893
|
+
}
|
|
8894
|
+
}
|
|
8895
|
+
}, [_c('div', {
|
|
8896
|
+
staticClass: "bxt-explain-text-wrapper"
|
|
8897
|
+
}, [_c('div', {
|
|
8898
|
+
staticClass: "bxt-explain-text-content"
|
|
8899
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])])]) : _vm._e()]) : _vm._e(), _vm.expireData ? _c('section', {
|
|
8875
8900
|
staticClass: "bxt-expire bxt-bottom-border"
|
|
8876
8901
|
}, [_c('div', {
|
|
8877
8902
|
staticClass: "bxt-title"
|
|
@@ -8909,21 +8934,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8909
8934
|
}
|
|
8910
8935
|
}
|
|
8911
8936
|
}, [_vm._v(_vm._s(o.name))]);
|
|
8912
|
-
}), 1)], 1) : _vm._e(), _vm.
|
|
8913
|
-
staticClass: "bxt-explain bxt-bottom-border",
|
|
8914
|
-
class: [_vm.explainData.copy ? 'copy' : '']
|
|
8915
|
-
}, [_c('div', {
|
|
8916
|
-
staticClass: "bxt-explain-text",
|
|
8917
|
-
on: {
|
|
8918
|
-
"click": function click($event) {
|
|
8919
|
-
return _vm.onClickExplain(_vm.explainData);
|
|
8920
|
-
}
|
|
8921
|
-
}
|
|
8922
|
-
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])]) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8937
|
+
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8923
8938
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8924
8939
|
}, [_c('div', {
|
|
8925
8940
|
staticClass: "bxt-share-wrapper",
|
|
8926
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
8941
|
+
class: [_vm.shareOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
8927
8942
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
8928
8943
|
return _c('figure', {
|
|
8929
8944
|
key: o.action,
|
|
@@ -8944,7 +8959,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
8944
8959
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8945
8960
|
}, [_c('div', {
|
|
8946
8961
|
staticClass: "bxt-share-wrapper",
|
|
8947
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
8962
|
+
class: [_vm.actionOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
8948
8963
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
8949
8964
|
return _c('figure', {
|
|
8950
8965
|
key: o.action,
|