Commit e181c274a2ecf6a1bdfe552db4c282e601ca28af
1 parent
0c8e16ee
refactor: use vant to refactor swiper plugin; zh: 使用 vant 重构轮播图
Showing
6 changed files
with
117 additions
and
174 deletions
front-end/h5/package.json
| ... | ... | @@ -18,7 +18,6 @@ |
| 18 | 18 | "animate.css": "^3.7.2", |
| 19 | 19 | "ant-design-vue": "^1.3.14", |
| 20 | 20 | "core-js": "^2.6.5", |
| 21 | - "cube-ui": "^1.12.31", | |
| 22 | 21 | "element-ui": "^2.9.1", |
| 23 | 22 | "font-awesome": "4.7.0", |
| 24 | 23 | "html2canvas": "^1.0.0-rc.3", |
| ... | ... | @@ -31,6 +30,7 @@ |
| 31 | 30 | "stylus": "^0.54.7", |
| 32 | 31 | "stylus-loader": "^3.0.2", |
| 33 | 32 | "v-click-outside": "^2.1.4", |
| 33 | + "vant": "^2.2.12", | |
| 34 | 34 | "vue": "^2.6.10", |
| 35 | 35 | "vue-i18n": "^8.14.1", |
| 36 | 36 | "vue-quill-editor": "^3.0.6", |
| ... | ... | @@ -56,13 +56,6 @@ |
| 56 | 56 | "sass-loader": "^7.1.0", |
| 57 | 57 | "stylus": "^0.54.5", |
| 58 | 58 | "stylus-loader": "^3.0.2", |
| 59 | - "vue-cli-plugin-cube-ui": "^0.2.5", | |
| 60 | 59 | "vue-template-compiler": "^2.6.10" |
| 61 | - }, | |
| 62 | - "transformModules": { | |
| 63 | - "cube-ui": { | |
| 64 | - "transform": "cube-ui/src/modules/${member}", | |
| 65 | - "kebabCase": true | |
| 66 | - } | |
| 67 | 60 | } |
| 68 | 61 | } | ... | ... |
front-end/h5/src/components/core/editor/canvas/edit.js
| ... | ... | @@ -154,7 +154,10 @@ export default { |
| 154 | 154 | // 添加 class 的原因:与 handleClickCanvasProp 配合, |
| 155 | 155 | // 当点击编辑画布上的其它区域(clickEvent.target.classList 不包含下面的 className)的时候,设置 editingElement=null |
| 156 | 156 | class: 'element-on-edit-canvas', |
| 157 | - props: element.getProps(), // #6 #3 | |
| 157 | + props: { | |
| 158 | + ...element.getProps(), // #6 #3, | |
| 159 | + editorMode: 'edit' | |
| 160 | + }, | |
| 158 | 161 | // nativeOn: { |
| 159 | 162 | // contextmenu: e => { |
| 160 | 163 | // this.bindContextMenu(e) | ... | ... |
front-end/h5/src/components/core/editor/index.js
| ... | ... | @@ -21,26 +21,26 @@ import ExternalLinksOfHeader from '@/components/common/header/links.js' |
| 21 | 21 | import LangSelect from '@/components/common/header/LangSelect.vue' |
| 22 | 22 | import Feedback from '@/components/common/feedback/index' |
| 23 | 23 | |
| 24 | -const sidebarMenus = [ | |
| 25 | - { | |
| 26 | - i18nLabel: 'editor.sidebar.components', | |
| 27 | - label: '组件列表', | |
| 28 | - value: 'pluginList', | |
| 29 | - antIcon: 'bars' | |
| 30 | - }, | |
| 31 | - { | |
| 32 | - i18nLabel: 'editor.sidebar.pages', | |
| 33 | - label: '页面管理', | |
| 34 | - value: 'pageManagement', | |
| 35 | - antIcon: 'snippets' | |
| 36 | - }, | |
| 37 | - { | |
| 38 | - i18nLabel: 'editor.sidebar.templates', | |
| 39 | - label: '免费模板', | |
| 40 | - value: 'freeTemplate', | |
| 41 | - antIcon: 'appstore' | |
| 42 | - } | |
| 43 | -] | |
| 24 | +// const sidebarMenus = [ | |
| 25 | +// { | |
| 26 | +// i18nLabel: 'editor.sidebar.components', | |
| 27 | +// label: '组件列表', | |
| 28 | +// value: 'pluginList', | |
| 29 | +// antIcon: 'bars' | |
| 30 | +// }, | |
| 31 | +// { | |
| 32 | +// i18nLabel: 'editor.sidebar.pages', | |
| 33 | +// label: '页面管理', | |
| 34 | +// value: 'pageManagement', | |
| 35 | +// antIcon: 'snippets' | |
| 36 | +// }, | |
| 37 | +// { | |
| 38 | +// i18nLabel: 'editor.sidebar.templates', | |
| 39 | +// label: '免费模板', | |
| 40 | +// value: 'freeTemplate', | |
| 41 | +// antIcon: 'appstore' | |
| 42 | +// } | |
| 43 | +// ] | |
| 44 | 44 | |
| 45 | 45 | const fixedTools = [ |
| 46 | 46 | { | ... | ... |
front-end/h5/src/components/plugins/lbp-slide.js
| 1 | -import { | |
| 2 | - Slide | |
| 3 | -} from 'cube-ui' | |
| 1 | +import { Swipe, SwipeItem } from 'vant' | |
| 2 | +import 'vant/lib/swipe/style' | |
| 3 | +import 'vant/lib/swipe-item/style' | |
| 4 | 4 | import ImageGallery from '@/components/core/support/image-gallery/gallery.js' |
| 5 | 5 | |
| 6 | 6 | const defaultItems = [ |
| 7 | 7 | { |
| 8 | - // url: 'http://www.didichuxing.com/', | |
| 9 | - image: '//webapp.didistatic.com/static/webapp/shield/cube-ui-examples-slide01.png' | |
| 8 | + image: 'https://img.yzcdn.cn/vant/apple-1.jpg' | |
| 10 | 9 | }, |
| 11 | 10 | { |
| 12 | - // url: 'http://www.didichuxing.com/', | |
| 13 | - image: '//webapp.didistatic.com/static/webapp/shield/cube-ui-examples-slide02.png' | |
| 14 | - }, | |
| 15 | - { | |
| 16 | - // url: 'http://www.didichuxing.com/', | |
| 17 | - image: '//webapp.didistatic.com/static/webapp/shield/cube-ui-examples-slide03.png' | |
| 11 | + image: 'https://img.yzcdn.cn/vant/apple-2.jpg' | |
| 18 | 12 | } |
| 19 | 13 | ] |
| 20 | 14 | |
| 15 | +function getDefaultDataSource () { | |
| 16 | + return { | |
| 17 | + activeIndex: 0, | |
| 18 | + items: defaultItems.slice(0) | |
| 19 | + } | |
| 20 | +} | |
| 21 | + | |
| 21 | 22 | export default { |
| 22 | 23 | name: 'lbp-slide', |
| 23 | - components: { | |
| 24 | - Slide | |
| 25 | - }, | |
| 26 | 24 | props: { |
| 27 | 25 | interval: { |
| 28 | 26 | type: Number, |
| 29 | 27 | default: 4000 |
| 30 | 28 | }, |
| 31 | - items: { | |
| 32 | - type: Array, | |
| 33 | - default: () => defaultItems | |
| 29 | + dataSource: { | |
| 30 | + type: Object, | |
| 31 | + default: () => getDefaultDataSource() | |
| 32 | + }, | |
| 33 | + editorMode: { | |
| 34 | + type: String, | |
| 35 | + default: 'preview' | |
| 36 | + }, | |
| 37 | + activeIndex: { | |
| 38 | + type: Number, | |
| 39 | + default: 0 | |
| 34 | 40 | } |
| 35 | 41 | }, |
| 36 | 42 | editorConfig: { |
| ... | ... | @@ -41,26 +47,30 @@ export default { |
| 41 | 47 | require: true, |
| 42 | 48 | defaultPropValue: 4000 |
| 43 | 49 | }, |
| 44 | - items: { | |
| 50 | + dataSource: { | |
| 45 | 51 | type: 'lbs-slide-items-editor', |
| 46 | 52 | label: '图片列表', |
| 47 | 53 | require: true, |
| 48 | - defaultPropValue: defaultItems | |
| 54 | + defaultPropValue: getDefaultDataSource() | |
| 49 | 55 | } |
| 50 | 56 | }, |
| 51 | 57 | components: { |
| 52 | 58 | 'lbs-slide-items-editor': { |
| 53 | 59 | render () { |
| 54 | - const currentItem = this.value_[this.current - 1] | |
| 60 | + const currentItem = this.innerItems[this.current - 1] || {} | |
| 55 | 61 | return <div> |
| 56 | 62 | { |
| 57 | 63 | <a-pagination |
| 58 | 64 | current={this.current} |
| 59 | 65 | onChange={(page) => { |
| 60 | 66 | this.current = page |
| 67 | + this.$emit('change', { | |
| 68 | + items: this.innerItems, | |
| 69 | + activeIndex: page - 1 | |
| 70 | + }) | |
| 61 | 71 | }} |
| 62 | 72 | size="small" |
| 63 | - total={this.value_.length} | |
| 73 | + total={this.innerItems.length} | |
| 64 | 74 | defaultPageSize={1} |
| 65 | 75 | itemRender={this.itemRender} |
| 66 | 76 | /> |
| ... | ... | @@ -72,34 +82,17 @@ export default { |
| 72 | 82 | currentItem.image = url |
| 73 | 83 | }} |
| 74 | 84 | /> |
| 75 | - {/* { | |
| 76 | - this.value_.map((item, index) => ( | |
| 77 | - <div> | |
| 78 | - <label>图片 {index + 1}</label> | |
| 79 | - <a-textarea value={item.image} onChange={e => { item.image = e.target.value }} autosize={{ minRows: 2, maxRows: 6 }}></a-textarea> | |
| 80 | - <a-button-group size="small"> | |
| 81 | - <a-button type="default" icon="plus" onClick={this.add}/> | |
| 82 | - <a-button type="default" icon="minus" onClick={this.minus}/> | |
| 83 | - </a-button-group> | |
| 84 | - </div> | |
| 85 | - )) | |
| 86 | - } */} | |
| 87 | 85 | </div> |
| 88 | 86 | }, |
| 89 | 87 | props: { |
| 90 | 88 | value: { |
| 91 | - type: Array, | |
| 92 | - default: () => defaultItems | |
| 89 | + type: Object, | |
| 90 | + default: () => getDefaultDataSource() | |
| 93 | 91 | } |
| 94 | 92 | }, |
| 95 | 93 | computed: { |
| 96 | - value_: { | |
| 97 | - get () { | |
| 98 | - return this.value | |
| 99 | - }, | |
| 100 | - set (val) { | |
| 101 | - this.$emit('input', val) | |
| 102 | - } | |
| 94 | + innerItems () { | |
| 95 | + return this.value.items | |
| 103 | 96 | } |
| 104 | 97 | }, |
| 105 | 98 | data: () => ({ |
| ... | ... | @@ -108,27 +101,33 @@ export default { |
| 108 | 101 | methods: { |
| 109 | 102 | itemRender (current, type, originalElement) { |
| 110 | 103 | if (type === 'prev') { |
| 111 | - return <a-button style={{ marginRight: '8px' }} size="small" icon="minus" onClick={this.minus}></a-button> | |
| 104 | + return <a-button style={{ marginRight: '8px' }} size="small" icon="minus" onClick={() => this.minus(current)} disabled={this.innerItems.length === 1}></a-button> | |
| 112 | 105 | } else if (type === 'next') { |
| 113 | 106 | return <a-button style={{ marginLeft: '8px' }} size="small" icon="plus" onClick={this.add}></a-button> |
| 114 | 107 | } |
| 115 | 108 | return originalElement |
| 116 | 109 | }, |
| 117 | 110 | add () { |
| 118 | - console.log(this.value_.length) | |
| 119 | - this.$emit('change', [ | |
| 120 | - ...this.value_, | |
| 121 | - { | |
| 122 | - image: '', | |
| 123 | - value: `选项${this.value_.length + 1}-value`, | |
| 124 | - label: `选项${this.value_.length + 1}-label` | |
| 125 | - } | |
| 126 | - ]) | |
| 111 | + this.$emit('change', { | |
| 112 | + activeIndex: this.innerItems.length, | |
| 113 | + items: [ | |
| 114 | + ...this.innerItems, | |
| 115 | + { | |
| 116 | + image: '', | |
| 117 | + value: `选项${this.innerItems.length + 1}-value`, | |
| 118 | + label: `选项${this.innerItems.length + 1}-label` | |
| 119 | + } | |
| 120 | + ] | |
| 121 | + }) | |
| 127 | 122 | }, |
| 128 | - minus (item, index) { | |
| 129 | - const items = this.value_.slice(0) | |
| 123 | + minus (index) { | |
| 124 | + if (this.innerItems.length === 1) return | |
| 125 | + const items = this.innerItems.slice(0) | |
| 130 | 126 | items.splice(index, 1) |
| 131 | - this.$emit('change', items) | |
| 127 | + this.$emit('change', { | |
| 128 | + items, | |
| 129 | + activeIndex: index > 0 ? index - 1 : 0 | |
| 130 | + }) | |
| 132 | 131 | } |
| 133 | 132 | } |
| 134 | 133 | } |
| ... | ... | @@ -139,10 +138,18 @@ export default { |
| 139 | 138 | methods: { |
| 140 | 139 | |
| 141 | 140 | }, |
| 142 | - | |
| 143 | 141 | render () { |
| 142 | + const { items, activeIndex } = this.dataSource | |
| 144 | 143 | return ( |
| 145 | - <slide data={this.items} interval={+this.interval} /> | |
| 144 | + this.editorMode === 'edit' | |
| 145 | + ? items.length && <img src={items[activeIndex].image} /> | |
| 146 | + : <Swipe autoplay={+this.interval} indicator-color="red"> | |
| 147 | + { | |
| 148 | + items.map(item => ( | |
| 149 | + <SwipeItem><img src={item.image} width="100%" height="100%" /></SwipeItem> | |
| 150 | + )) | |
| 151 | + } | |
| 152 | + </Swipe> | |
| 146 | 153 | ) |
| 147 | 154 | } |
| 148 | 155 | } | ... | ... |
front-end/h5/vue.config.js
front-end/h5/yarn.lock
| ... | ... | @@ -649,6 +649,13 @@ |
| 649 | 649 | core-js "^2.6.5" |
| 650 | 650 | regenerator-runtime "^0.13.2" |
| 651 | 651 | |
| 652 | +"@babel/runtime@7.x": | |
| 653 | + version "7.7.2" | |
| 654 | + resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.7.2.tgz#111a78002a5c25fc8e3361bedc9529c696b85a6a" | |
| 655 | + integrity sha1-ERp4ACpcJfyOM2G+3JUpxpa4Wmo= | |
| 656 | + dependencies: | |
| 657 | + regenerator-runtime "^0.13.2" | |
| 658 | + | |
| 652 | 659 | "@babel/runtime@^7.0.0": |
| 653 | 660 | version "7.6.3" |
| 654 | 661 | resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.6.3.tgz#935122c74c73d2240cafd32ddb5fc2a6cd35cf1f" |
| ... | ... | @@ -838,6 +845,11 @@ |
| 838 | 845 | resolved "https://registry.npm.taobao.org/@types/strip-json-comments/download/@types/strip-json-comments-0.0.30.tgz#9aa30c04db212a9a0649d6ae6fd50accc40748a1" |
| 839 | 846 | integrity sha1-mqMMBNshKpoGSdaub9UKzMQHSKE= |
| 840 | 847 | |
| 848 | +"@vant/icons@1.1.15": | |
| 849 | + version "1.1.15" | |
| 850 | + resolved "https://registry.npm.taobao.org/@vant/icons/download/@vant/icons-1.1.15.tgz#53c51ace21e9992bfeeb2e1ad9094fbf6506d116" | |
| 851 | + integrity sha1-U8UaziHpmSv+6y4a2QlPv2UG0RY= | |
| 852 | + | |
| 841 | 853 | "@vue/babel-helper-vue-jsx-merge-props@^1.0.0": |
| 842 | 854 | version "1.0.0" |
| 843 | 855 | resolved "https://registry.npm.taobao.org/@vue/babel-helper-vue-jsx-merge-props/download/@vue/babel-helper-vue-jsx-merge-props-1.0.0.tgz#048fe579958da408fb7a8b2a3ec050b50a661040" |
| ... | ... | @@ -2101,15 +2113,6 @@ babel-plugin-transform-minify-booleans@^6.8.2: |
| 2101 | 2113 | resolved "https://registry.npm.taobao.org/babel-plugin-transform-minify-booleans/download/babel-plugin-transform-minify-booleans-6.9.4.tgz#acbb3e56a3555dd23928e4b582d285162dd2b198" |
| 2102 | 2114 | integrity sha1-rLs+VqNVXdI5KOS1gtKFFi3SsZg= |
| 2103 | 2115 | |
| 2104 | -babel-plugin-transform-modules@^0.1.1: | |
| 2105 | - version "0.1.1" | |
| 2106 | - resolved "https://registry.npm.taobao.org/babel-plugin-transform-modules/download/babel-plugin-transform-modules-0.1.1.tgz#2a72ced69d85613d953196ae9a86d39f19fd7933" | |
| 2107 | - integrity sha1-KnLO1p2FYT2VMZaumobTnxn9eTM= | |
| 2108 | - dependencies: | |
| 2109 | - lodash.camelcase "^4.3.0" | |
| 2110 | - lodash.kebabcase "^4.1.1" | |
| 2111 | - lodash.snakecase "^4.1.1" | |
| 2112 | - | |
| 2113 | 2116 | babel-plugin-transform-object-rest-spread@^6.26.0: |
| 2114 | 2117 | version "6.26.0" |
| 2115 | 2118 | resolved "https://registry.npm.taobao.org/babel-plugin-transform-object-rest-spread/download/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" |
| ... | ... | @@ -2222,7 +2225,7 @@ babel-register@^6.26.0: |
| 2222 | 2225 | mkdirp "^0.5.1" |
| 2223 | 2226 | source-map-support "^0.4.15" |
| 2224 | 2227 | |
| 2225 | -babel-runtime@6.x, babel-runtime@^6.0.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: | |
| 2228 | +babel-runtime@6.x, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: | |
| 2226 | 2229 | version "6.26.0" |
| 2227 | 2230 | resolved "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" |
| 2228 | 2231 | integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= |
| ... | ... | @@ -2319,13 +2322,6 @@ bcrypt-pbkdf@^1.0.0: |
| 2319 | 2322 | dependencies: |
| 2320 | 2323 | tweetnacl "^0.14.3" |
| 2321 | 2324 | |
| 2322 | -better-scroll@~1.12.6: | |
| 2323 | - version "1.12.6" | |
| 2324 | - resolved "https://registry.npm.taobao.org/better-scroll/download/better-scroll-1.12.6.tgz#7548860f8b8c08c87e5af062e1da6e2c68c98337" | |
| 2325 | - integrity sha1-dUiGD4uMCMh+WvBi4dpuLGjJgzc= | |
| 2326 | - dependencies: | |
| 2327 | - babel-runtime "^6.0.0" | |
| 2328 | - | |
| 2329 | 2325 | bfj@^6.1.1: |
| 2330 | 2326 | version "6.1.2" |
| 2331 | 2327 | resolved "https://registry.npm.taobao.org/bfj/download/bfj-6.1.2.tgz#325c861a822bcb358a41c78a33b8e6e2086dde7f" |
| ... | ... | @@ -3625,14 +3621,6 @@ cssstyle@^1.0.0: |
| 3625 | 3621 | dependencies: |
| 3626 | 3622 | cssom "0.3.x" |
| 3627 | 3623 | |
| 3628 | -cube-ui@^1.12.31: | |
| 3629 | - version "1.12.32" | |
| 3630 | - resolved "https://registry.npm.taobao.org/cube-ui/download/cube-ui-1.12.32.tgz#105389c6a92fb6e06ed1c036498c3c6d78e8de94" | |
| 3631 | - integrity sha1-EFOJxqkvtuBu0cA2SYw8bXjo3pQ= | |
| 3632 | - dependencies: | |
| 3633 | - better-scroll "~1.12.6" | |
| 3634 | - vue-create-api "^0.2.0" | |
| 3635 | - | |
| 3636 | 3624 | current-script-polyfill@^1.0.0: |
| 3637 | 3625 | version "1.0.0" |
| 3638 | 3626 | resolved "https://registry.npm.taobao.org/current-script-polyfill/download/current-script-polyfill-1.0.0.tgz#f31cf7e4f3e218b0726e738ca92a02d3488ef615" |
| ... | ... | @@ -7326,13 +7314,6 @@ load-json-file@^2.0.0: |
| 7326 | 7314 | pify "^2.0.0" |
| 7327 | 7315 | strip-bom "^3.0.0" |
| 7328 | 7316 | |
| 7329 | -load-pkg-config@^1.0.1: | |
| 7330 | - version "1.0.1" | |
| 7331 | - resolved "https://registry.npm.taobao.org/load-pkg-config/download/load-pkg-config-1.0.1.tgz#1a7d78c21bf257e67935e8faa603f4fe519c49a8" | |
| 7332 | - integrity sha1-Gn14whvyV+Z5Nej6pgP0/lGcSag= | |
| 7333 | - dependencies: | |
| 7334 | - resolve-pkg "^1.0.0" | |
| 7335 | - | |
| 7336 | 7317 | loader-fs-cache@^1.0.0: |
| 7337 | 7318 | version "1.0.2" |
| 7338 | 7319 | resolved "https://registry.npm.taobao.org/loader-fs-cache/download/loader-fs-cache-1.0.2.tgz#54cedf6b727e1779fd8f01205f05f6e88706f086" |
| ... | ... | @@ -7386,11 +7367,6 @@ lodash._reinterpolate@^3.0.0: |
| 7386 | 7367 | resolved "https://registry.npm.taobao.org/lodash._reinterpolate/download/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" |
| 7387 | 7368 | integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= |
| 7388 | 7369 | |
| 7389 | -lodash.camelcase@^4.3.0: | |
| 7390 | - version "4.3.0" | |
| 7391 | - resolved "https://registry.npm.taobao.org/lodash.camelcase/download/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" | |
| 7392 | - integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= | |
| 7393 | - | |
| 7394 | 7370 | lodash.clonedeep@^4.5.0: |
| 7395 | 7371 | version "4.5.0" |
| 7396 | 7372 | resolved "https://registry.npm.taobao.org/lodash.clonedeep/download/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" |
| ... | ... | @@ -7426,11 +7402,6 @@ lodash.once@^4.1.1: |
| 7426 | 7402 | resolved "https://registry.npm.taobao.org/lodash.once/download/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" |
| 7427 | 7403 | integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= |
| 7428 | 7404 | |
| 7429 | -lodash.snakecase@^4.1.1: | |
| 7430 | - version "4.1.1" | |
| 7431 | - resolved "https://registry.npm.taobao.org/lodash.snakecase/download/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d" | |
| 7432 | - integrity sha1-OdcUo1NXFHg3rv1ktdy7Fr7Nj40= | |
| 7433 | - | |
| 7434 | 7405 | lodash.some@^4.6.0: |
| 7435 | 7406 | version "4.6.0" |
| 7436 | 7407 | resolved "https://registry.npm.taobao.org/lodash.some/download/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d" |
| ... | ... | @@ -9948,11 +9919,6 @@ resolve-from@^1.0.0: |
| 9948 | 9919 | resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" |
| 9949 | 9920 | integrity sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY= |
| 9950 | 9921 | |
| 9951 | -resolve-from@^2.0.0: | |
| 9952 | - version "2.0.0" | |
| 9953 | - resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" | |
| 9954 | - integrity sha1-lICrIOlP+h2egKgEx+oUdhGWa1c= | |
| 9955 | - | |
| 9956 | 9922 | resolve-from@^3.0.0: |
| 9957 | 9923 | version "3.0.0" |
| 9958 | 9924 | resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" |
| ... | ... | @@ -9963,13 +9929,6 @@ resolve-from@^4.0.0: |
| 9963 | 9929 | resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" |
| 9964 | 9930 | integrity sha1-SrzYUq0y3Xuqv+m0DgCjbbXzkuY= |
| 9965 | 9931 | |
| 9966 | -resolve-pkg@^1.0.0: | |
| 9967 | - version "1.0.0" | |
| 9968 | - resolved "https://registry.npm.taobao.org/resolve-pkg/download/resolve-pkg-1.0.0.tgz#e19a15e78aca2e124461dc92b2e3943ef93494d9" | |
| 9969 | - integrity sha1-4ZoV54rKLhJEYdySsuOUPvk0lNk= | |
| 9970 | - dependencies: | |
| 9971 | - resolve-from "^2.0.0" | |
| 9972 | - | |
| 9973 | 9932 | resolve-url@^0.2.1: |
| 9974 | 9933 | version "0.2.1" |
| 9975 | 9934 | resolved "https://registry.npm.taobao.org/resolve-url/download/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" |
| ... | ... | @@ -11580,6 +11539,16 @@ validate-npm-package-license@^3.0.1: |
| 11580 | 11539 | spdx-correct "^3.0.0" |
| 11581 | 11540 | spdx-expression-parse "^3.0.0" |
| 11582 | 11541 | |
| 11542 | +vant@^2.2.12: | |
| 11543 | + version "2.2.12" | |
| 11544 | + resolved "https://registry.npm.taobao.org/vant/download/vant-2.2.12.tgz?cache=0&sync_timestamp=1573120525026&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvant%2Fdownload%2Fvant-2.2.12.tgz#9d0ee9d60eb66ff52fc84f6cf28541939df84be8" | |
| 11545 | + integrity sha1-nQ7p1g62b/UvyE9s8oVBk534S+g= | |
| 11546 | + dependencies: | |
| 11547 | + "@babel/runtime" "7.x" | |
| 11548 | + "@vant/icons" "1.1.15" | |
| 11549 | + "@vue/babel-helper-vue-jsx-merge-props" "^1.0.0" | |
| 11550 | + vue-lazyload "1.2.3" | |
| 11551 | + | |
| 11583 | 11552 | vary@~1.1.2: |
| 11584 | 11553 | version "1.1.2" |
| 11585 | 11554 | resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" |
| ... | ... | @@ -11604,19 +11573,6 @@ vm-browserify@^1.0.1: |
| 11604 | 11573 | resolved "https://registry.npm.taobao.org/vm-browserify/download/vm-browserify-1.1.2.tgz?cache=0&sync_timestamp=1572870837170&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvm-browserify%2Fdownload%2Fvm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" |
| 11605 | 11574 | integrity sha1-eGQcSIuObKkadfUR56OzKobl3aA= |
| 11606 | 11575 | |
| 11607 | -vue-cli-plugin-cube-ui@^0.2.5: | |
| 11608 | - version "0.2.5" | |
| 11609 | - resolved "https://registry.npm.taobao.org/vue-cli-plugin-cube-ui/download/vue-cli-plugin-cube-ui-0.2.5.tgz#d2fc6a3073142bc10e352c7a73309a334c269aa6" | |
| 11610 | - integrity sha1-0vxqMHMUK8EONSx6czCaM0wmmqY= | |
| 11611 | - dependencies: | |
| 11612 | - webpack-post-compile-plugin "^1.0.0" | |
| 11613 | - webpack-transform-modules-plugin "^0.4.0" | |
| 11614 | - | |
| 11615 | -vue-create-api@^0.2.0: | |
| 11616 | - version "0.2.2" | |
| 11617 | - resolved "https://registry.npm.taobao.org/vue-create-api/download/vue-create-api-0.2.2.tgz#60acb39f7e70932a432509293a1aa087404ec39e" | |
| 11618 | - integrity sha1-YKyzn35wkypDJQkpOhqgh0BOw54= | |
| 11619 | - | |
| 11620 | 11576 | vue-eslint-parser@^2.0.3: |
| 11621 | 11577 | version "2.0.3" |
| 11622 | 11578 | resolved "https://registry.npm.taobao.org/vue-eslint-parser/download/vue-eslint-parser-2.0.3.tgz#c268c96c6d94cfe3d938a5f7593959b0ca3360d1" |
| ... | ... | @@ -11667,6 +11623,11 @@ vue-jest@^3.0.4: |
| 11667 | 11623 | tsconfig "^7.0.0" |
| 11668 | 11624 | vue-template-es2015-compiler "^1.6.0" |
| 11669 | 11625 | |
| 11626 | +vue-lazyload@1.2.3: | |
| 11627 | + version "1.2.3" | |
| 11628 | + resolved "https://registry.npm.taobao.org/vue-lazyload/download/vue-lazyload-1.2.3.tgz#901f9ec15c7e6ca78781a2bae4a343686bdedb2c" | |
| 11629 | + integrity sha1-kB+ewVx+bKeHgaK65KNDaGve2yw= | |
| 11630 | + | |
| 11670 | 11631 | vue-loader@^15.7.0: |
| 11671 | 11632 | version "15.7.2" |
| 11672 | 11633 | resolved "https://registry.npm.taobao.org/vue-loader/download/vue-loader-15.7.2.tgz?cache=0&sync_timestamp=1572672101730&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-loader%2Fdownload%2Fvue-loader-15.7.2.tgz#cc89e2716df87f70fe656c9da9d7f8bec06c73d6" |
| ... | ... | @@ -11887,13 +11848,6 @@ webpack-merge@^4.2.1: |
| 11887 | 11848 | dependencies: |
| 11888 | 11849 | lodash "^4.17.15" |
| 11889 | 11850 | |
| 11890 | -webpack-post-compile-plugin@^1.0.0: | |
| 11891 | - version "1.0.0" | |
| 11892 | - resolved "https://registry.npm.taobao.org/webpack-post-compile-plugin/download/webpack-post-compile-plugin-1.0.0.tgz#a1bae348d4bb6ebcf2bd173cbc695ae8cc825278" | |
| 11893 | - integrity sha1-obrjSNS7brzyvRc8vGla6MyCUng= | |
| 11894 | - dependencies: | |
| 11895 | - micromatch "^3.1.10" | |
| 11896 | - | |
| 11897 | 11851 | webpack-sources@^1.0.1, webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1: |
| 11898 | 11852 | version "1.4.3" |
| 11899 | 11853 | resolved "https://registry.npm.taobao.org/webpack-sources/download/webpack-sources-1.4.3.tgz?cache=0&sync_timestamp=1571747933932&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-sources%2Fdownload%2Fwebpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933" |
| ... | ... | @@ -11902,14 +11856,6 @@ webpack-sources@^1.0.1, webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack- |
| 11902 | 11856 | source-list-map "^2.0.0" |
| 11903 | 11857 | source-map "~0.6.1" |
| 11904 | 11858 | |
| 11905 | -webpack-transform-modules-plugin@^0.4.0: | |
| 11906 | - version "0.4.4" | |
| 11907 | - resolved "https://registry.npm.taobao.org/webpack-transform-modules-plugin/download/webpack-transform-modules-plugin-0.4.4.tgz#61a3e71b35eac49a5102423a3f66946b66374443" | |
| 11908 | - integrity sha1-YaPnGzXqxJpRAkI6P2aUa2Y3REM= | |
| 11909 | - dependencies: | |
| 11910 | - babel-plugin-transform-modules "^0.1.1" | |
| 11911 | - load-pkg-config "^1.0.1" | |
| 11912 | - | |
| 11913 | 11859 | webpack@^2.7.0: |
| 11914 | 11860 | version "2.7.0" |
| 11915 | 11861 | resolved "https://registry.npm.taobao.org/webpack/download/webpack-2.7.0.tgz?cache=0&sync_timestamp=1572505869157&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack%2Fdownload%2Fwebpack-2.7.0.tgz#b2a1226804373ffd3d03ea9c6bd525067034f6b1" | ... | ... |