Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 0d695b5

Browse files
committed
v1.1.0: 修复联级数据问题,同时解决内置日期选择卡顿问题
1 parent d491df6 commit 0d695b5

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

dist/vue-awesome-picker.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-awesome-picker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-awesome-picker",
33
"description": "A Vue.js Picker Component",
4-
"version": "1.0.6",
4+
"version": "1.1.0",
55
"author": "Fyerl <fyerl@foxmail.com>",
66
"license": "MIT",
77
"private": false,

src/lib/vue-awesome-picker.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
swipeTime: {
9696
type: Number,
9797
default: 1800
98-
},
98+
}
9999
},
100100
data () {
101101
return {
@@ -134,7 +134,7 @@ export default {
134134
default:
135135
data = this.data; break
136136
}
137-
return data.slice()
137+
return [...data]
138138
},
139139
140140
_anchorGetter () {
@@ -162,14 +162,14 @@ export default {
162162
}
163163
return index
164164
})
165-
return anchor.slice()
165+
return [...anchor]
166166
},
167167
168168
show () {
169169
this.display = true
170170
if (!this.wheels.length || this.dataChange) {
171+
this.dataType === DATA_CASCADE && this._updatePickerData()
171172
this.$nextTick(() => {
172-
this.dataType === DATA_CASCADE && this._updatePickerData()
173173
const wheelWrapper = this.$refs.wheelWrapper
174174
this.pickerData.forEach((item, index) => {
175175
this._createWheel(wheelWrapper, index).enable()
@@ -268,7 +268,7 @@ export default {
268268
},
269269
270270
_updatePickerData (wheelIndex = 0) {
271-
let data = this.proxyData.slice()
271+
let data = [...this.proxyData]
272272
let i = 0
273273
while (data) {
274274
if (i >= wheelIndex) {

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'vap-cache-6'
1+
const CACHE_NAME = 'vap-cache-7'
22
const cacheUrls = [
33
'./',
44
'./dist/vue-awesome-picker.js',

0 commit comments

Comments
 (0)