Skip to content

Commit

Permalink
docs(picker)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyFoxFN committed May 22, 2018
1 parent 8586ff2 commit 67f7f3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions document/components/docs/en-US/picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ __Notice:__ Cause this component used create-api, so you should read [create-api
{ text: '金箍棒', value: '金箍棒' }]
export default {
mounted () {
this.picker = this.$createPicker({
this.mutiPicker = this.$createPicker({
title: 'Multi-column Picker',
data: [col1Data, col2Data, col3Data],
onSelect: (selectedVal, selectedIndex, selectedText) => {
Expand Down Expand Up @@ -149,7 +149,7 @@ __Notice:__ Cause this component used create-api, so you should read [create-api
{ text: '核心', value: '核心' }, { text: '爆发', value: '爆发'}, { text: '辅助', value: '辅助' }]
export default {
mounted () {
this.picker = this.$createPicker({
this.setDataPicker = this.$createPicker({
title: 'Use SetData',
onSelect: (selectedVal, selectedIndex, selectedText) => {
this.$createDialog({
Expand All @@ -170,8 +170,8 @@ __Notice:__ Cause this component used create-api, so you should read [create-api
},
methods: {
showSetDataPicker () {
this.picker.setData([col1Data, col2Data, col3Data], [1, 2, 3])
this.picker.show()
this.setDataPicker.setData([col1Data, col2Data, col3Data], [1, 2, 3])
this.setDataPicker.show()
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions document/components/docs/zh-CN/picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ __注:__ 由于此组件基于 create-api 实现,所以在使用之前,请
{ text: '金箍棒', value: '金箍棒' }]
export default {
mounted () {
this.picker = this.$createPicker({
this.mutiPicker = this.$createPicker({
title: 'Multi-column Picker',
data: [col1Data, col2Data, col3Data],
onSelect: (selectedVal, selectedIndex, selectedText) => {
Expand Down Expand Up @@ -147,7 +147,7 @@ __注:__ 由于此组件基于 create-api 实现,所以在使用之前,请
{ text: '核心', value: '核心' }, { text: '爆发', value: '爆发'}, { text: '辅助', value: '辅助' }]
export default {
mounted () {
this.picker = this.$createPicker({
this.setDataPicker = this.$createPicker({
title: 'Use SetData',
onSelect: (selectedVal, selectedIndex, selectedText) => {
this.$createDialog({
Expand All @@ -168,8 +168,8 @@ __注:__ 由于此组件基于 create-api 实现,所以在使用之前,请
},
methods: {
showSetDataPicker () {
this.picker.setData([col1Data, col2Data, col3Data], [1, 2, 3])
this.picker.show()
this.setDataPicker.setData([col1Data, col2Data, col3Data], [1, 2, 3])
this.setDataPicker.show()
}
}
}
Expand Down

0 comments on commit 67f7f3b

Please sign in to comment.