Skip to content

Commit

Permalink
v1.1.0: 修复联级数据问题,同时解决内置日期选择卡顿问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyerl committed Apr 11, 2018
1 parent d491df6 commit 0d695b5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/vue-awesome-picker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-awesome-picker.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-awesome-picker",
"description": "A Vue.js Picker Component",
"version": "1.0.6",
"version": "1.1.0",
"author": "Fyerl <[email protected]>",
"license": "MIT",
"private": false,
Expand Down
10 changes: 5 additions & 5 deletions src/lib/vue-awesome-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default {
swipeTime: {
type: Number,
default: 1800
},
}
},
data () {
return {
Expand Down Expand Up @@ -134,7 +134,7 @@ export default {
default:
data = this.data; break
}
return data.slice()
return [...data]
},
_anchorGetter () {
Expand Down Expand Up @@ -162,14 +162,14 @@ export default {
}
return index
})
return anchor.slice()
return [...anchor]
},
show () {
this.display = true
if (!this.wheels.length || this.dataChange) {
this.dataType === DATA_CASCADE && this._updatePickerData()
this.$nextTick(() => {
this.dataType === DATA_CASCADE && this._updatePickerData()
const wheelWrapper = this.$refs.wheelWrapper
this.pickerData.forEach((item, index) => {
this._createWheel(wheelWrapper, index).enable()
Expand Down Expand Up @@ -268,7 +268,7 @@ export default {
},
_updatePickerData (wheelIndex = 0) {
let data = this.proxyData.slice()
let data = [...this.proxyData]
let i = 0
while (data) {
if (i >= wheelIndex) {
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CACHE_NAME = 'vap-cache-6'
const CACHE_NAME = 'vap-cache-7'
const cacheUrls = [
'./',
'./dist/vue-awesome-picker.js',
Expand Down

0 comments on commit 0d695b5

Please sign in to comment.