(source, target, map)
| 1 | import { basic } from '../mixins/basic'; |
| 2 | import { observe } from '../mixins/observer/index'; |
| 3 | function mapKeys(source, target, map) { |
| 4 | Object.keys(map).forEach(key => { |
| 5 | if (source[key]) { |
| 6 | target[map[key]] = source[key]; |
| 7 | } |
| 8 | }); |
| 9 | } |
| 10 | function VantComponent(vantOptions = {}) { |
| 11 | const options = {}; |
| 12 | mapKeys(vantOptions, options, { |