-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e23815b
Showing
15 changed files
with
11,985 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
### VActionSheet | ||
#### 引入方式: | ||
import {VActionSheet} from 'v-actionsheet' | ||
Vue.use(VActionSheet) | ||
|
||
#### 属性: | ||
--------------------------- | ||
属性名 | 类型 | 描述 | ||
-------- | ------- | ------ | ||
menus | Objiect | menus: { | ||
gaodeMap: "高德地图", | ||
baiduMap: "百度地图", | ||
iosMap: "苹果地图" | ||
} | ||
onConfirm | Function | 接受点击的item的值,根据值进行具体操作,完成后隐藏隐藏ActionSheet和蒙层区 | ||
onCancel | Function | 点击蒙层区和“取消”隐藏ActionSheet和蒙层区 | ||
|
||
#### 使用: | ||
this.$actionSheet.show({ | ||
menus: this.menus, | ||
onConfirm: index => this.onConfirm(index), | ||
onCancel: () => this.onCancel() | ||
}); | ||
|
||
##### onConfirm和onCancel函数: | ||
onCancel() { | ||
this.$actionSheet.hide(); //隐藏 | ||
}, | ||
onConfirm(index) { | ||
alert(index); //具体操作 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
console.log("欢迎使用V-ActionSheet") | ||
|
||
import VActionSheet from "./src/plugins/index.js" | ||
|
||
export{ | ||
VActionSheet | ||
} |
Oops, something went wrong.