material 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/list/select.js +6 -1
- package/src/list.new/request.js +0 -15
- package/src/list.new/virtual.js +1 -1
package/package.json
CHANGED
package/src/list/select.js
CHANGED
|
@@ -44,7 +44,12 @@ export default {
|
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
getInfoById (id) {
|
|
47
|
-
|
|
47
|
+
// console.log('getInfoById', this.dataStore)
|
|
48
|
+
let info = null
|
|
49
|
+
|
|
50
|
+
if (this.dataStore) info = clone(this.dataStore[id])
|
|
51
|
+
|
|
52
|
+
return info
|
|
48
53
|
},
|
|
49
54
|
|
|
50
55
|
getSelectedInfo () {
|
package/src/list.new/request.js
CHANGED
|
@@ -212,20 +212,5 @@ export default {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
return route
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
storeData (list, more) {
|
|
218
|
-
console.log('storeData', list.length, more)
|
|
219
|
-
if (more !== true) {
|
|
220
|
-
this.dataList = []
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// console.log('storeData', this.dataStore)
|
|
224
|
-
this.dataStore = this.dataStore || {}
|
|
225
|
-
|
|
226
|
-
for (let i = 0; i < list.length; i++) {
|
|
227
|
-
this.dataList.push(list[i][this.dataId])
|
|
228
|
-
this.dataStore[list[i][this.dataId]] = list[i]
|
|
229
|
-
}
|
|
230
215
|
}
|
|
231
216
|
}
|