Skip to content

Commit 62c2d26

Browse files
authored
chore: remove getphonenumber on demo (#2225)
* chore: remove getphonenumber on demo * test: update snapshot
1 parent f6ab6fb commit 62c2d26

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/dialog/_example/button/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Component({
99
content: '告知当前状态、信息和解决方法等内容。',
1010
cancelBtn: '取消',
1111
confirmBtn: {
12-
openType: 'getPhoneNumber',
13-
content: '获取手机',
12+
openType: 'share',
13+
content: '分享给朋友',
1414
bindgetphonenumber({ detail }) {
1515
console.log(detail);
1616
if (detail.errMsg.includes('fail')) {

src/fab/__test__/__snapshots__/demo.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ exports[`Fab Fab advance demo works fine 1`] = `
55
<t-fab
66
buttonProps="{{
77
Object {
8-
"icon": "call",
9-
"openType": "getPhoneNumber",
8+
"icon": "share",
9+
"openType": "share",
1010
}
1111
}}"
1212
icon="add"
13-
text="获取手机号"
13+
text="分享给朋友"
1414
bind:click="handleClick"
1515
/>
1616
</advance>

src/fab/_example/advance/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Component({
22
data: {
33
fabButton: {
4-
icon: 'call',
5-
openType: 'getPhoneNumber',
4+
icon: 'share',
5+
openType: 'share',
66
},
77
},
88
methods: {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<t-fab icon="add" button-props="{{fabButton}}" bind:click="handleClick" text="获取手机号" />
1+
<t-fab icon="add" button-props="{{fabButton}}" bind:click="handleClick" text="分享给朋友" />

0 commit comments

Comments
 (0)