update steps

pull/9/head
tjz 2018-03-11 12:48:04 +08:00
parent 04e7d12d6b
commit 23225430c3
10 changed files with 137 additions and 151 deletions

View File

@ -23,11 +23,11 @@ You can customize the display for Steps with progress dot style.
return {}
},
methods: {
customDot(dot, params) {
customDot(dot, {index, status}) {
return (
<a-popover>
<template slot="content">
<span>step {params.index} status: {params.status}</span>
<span>step {index} status: {status}</span>
</template>
{dot}
</a-popover>

View File

@ -11,16 +11,16 @@ You can use your own custom icons by setting the property `icon` for `Steps.Step
```html
<template>
<a-steps>
<a-step status="finish" title="Login"}>
<a-step status="finish" title="Login">
<a-icon type="user" slot="icon"/>
</a-step>
<a-step status="finish" title="Verification"}>
<a-step status="finish" title="Verification">
<a-icon type="solution" slot="icon"/>
</a-step>
<a-step status="process" title="Pay"}>
<a-step status="process" title="Pay">
<a-icon type="loading" slot="icon"/>
</a-step>
<a-step status="wait" title="Done"}>
<a-step status="wait" title="Done">
<a-icon type="smile-o" slot="icon"/>
</a-step>
</a-steps>

View File

@ -29,6 +29,11 @@ const md = {
When the task is complicated or has a certain sequence in the series of subtasks, we can decompose it into several steps to make things easier.`,
}
export default {
category: 'Components',
subtitle: '步骤条',
type: 'Navigation',
cols: 1,
title: 'Steps',
render () {
return (
<div>

View File

@ -6,7 +6,7 @@ The whole of the step bar.
| -------- | ----------- | ---- | ------- |
| current | to set the current step, counting from 0. You can overwrite this state by using `status` of `Step` | number | 0 |
| direction | to specify the direction of the step bar, `horizontal` and `vertical` are currently supported | string | `horizontal` |
| progressDot | Steps with progress dot style, customize the progress dot by setting it to a function | Boolean or (iconDot, {index, status, title, description}) => ReactNode | false |
| progressDot | Steps with progress dot style, customize the progress dot by setting it to a function | Boolean or (iconDot, {index, status, title, description}) => vNode | false |
| size | to specify the size of the step bar, `default` and `small` are currently supported | string | `default` |
| status | to specify the status of current step, can be set to one of the following values: `wait` `process` `finish` `error` | string | `process` |

View File

@ -1,6 +1,6 @@
<script>
import PropTypes from '../_util/vue-types'
import { initDefaultProps, getOptionProps, getComponentFromProp } from '../_util/props-util'
import { initDefaultProps, getOptionProps } from '../_util/props-util'
import VcSteps from '../vc-steps'
const getStepsProps = (defaultProps = {}) => {
@ -37,7 +37,7 @@ export default {
<VcSteps
{...stepsProps}
>
{getComponentFromProp(this, 'default')}
{this.$slots.default}
</VcSteps>
)
},

View File

@ -7,7 +7,7 @@
| --- | --- | --- | --- |
| current | 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 `status` 属性覆盖状态 | number | 0 |
| direction | 指定步骤条方向。目前支持水平(`horizontal`)和竖直(`vertical`)两种方向 | string | horizontal |
| progressDot | 点状步骤条,可以设置为一个 function | Boolean or (iconDot, {index, status, title, description}) => ReactNode | false |
| progressDot | 点状步骤条,可以设置为一个 function | Boolean or (iconDot, {index, status, title, description}) => vNode | false |
| size | 指定大小,目前支持普通(`default`)和迷你(`small` | string | default |
| status | 指定当前步骤的状态,可选 `wait` `process` `finish` `error` | string | process |

View File

@ -1,6 +1,6 @@
<script>
import PropTypes from '../_util/vue-types'
import { getOptionProps } from '../_util/props-util'
import { getOptionProps, getComponentFromProp } from '../_util/props-util'
function isString (str) {
return typeof str === 'string'
@ -11,17 +11,11 @@ export default {
props: {
prefixCls: PropTypes.string,
wrapperStyle: PropTypes.object,
// itemWidth: PropTypes.oneOfType([
// PropTypes.number,
// PropTypes.string,
// ]),
itemWidth: PropTypes.string,
status: PropTypes.string,
iconPrefix: PropTypes.string,
icon: PropTypes.node,
// adjustMarginRight: PropTypes.oneOfType([
// PropTypes.number,
// PropTypes.string,
// ]),
adjustMarginRight: PropTypes.string,
stepNumber: PropTypes.string,
description: PropTypes.any,
title: PropTypes.any,
@ -37,9 +31,9 @@ export default {
prefixCls, progressDot, stepNumber, status,
iconPrefix,
} = getOptionProps(this)
const icon = this.icon || this.$slots.icon
const title = this.title || this.$slots.title
const description = this.description || this.$slots.description
const icon = getComponentFromProp(this, 'icon')
const title = getComponentFromProp(this, 'title')
const description = getComponentFromProp(this, 'description')
let iconNode
const iconClassName = {
[`${prefixCls}-icon`]: true,
@ -72,9 +66,9 @@ export default {
},
render () {
const {
prefixCls,
prefixCls, itemWidth,
status = 'wait', icon, tailContent,
...restProps
adjustMarginRight,
} = getOptionProps(this)
const title = this.title || this.$slots.title
@ -86,16 +80,20 @@ export default {
[`${prefixCls}-item-custom`]: icon,
}
const stepProps = {
props: {
...restProps,
},
class: classString,
on: this.$listeners,
}
const stepItemStyle = {}
if (itemWidth) {
stepItemStyle.width = itemWidth
}
if (adjustMarginRight) {
stepItemStyle.marginRight = adjustMarginRight
}
return (
<div
{...stepProps}
style={stepItemStyle}
>
<div class={`${prefixCls}-item-tail`}>
{tailContent}

View File

@ -7,13 +7,9 @@ import {
getOptionProps,
filterEmpty,
getEvents,
getClass,
getStyle,
getValueByProp,
getPropsData,
getComponentFromProp,
} from '../_util/props-util'
import Step from './Step'
import { cloneElement } from '../_util/vnode'
export default {
name: 'Steps',
@ -23,7 +19,6 @@ export default {
iconPrefix: PropTypes.string.def('rc'),
direction: PropTypes.string.def('horizontal'),
labelPlacement: PropTypes.string.def('horizontal'),
children: PropTypes.any,
status: PropTypes.string.def('process'),
size: PropTypes.string.def(''),
progressDot: PropTypes.oneOfType([
@ -40,15 +35,19 @@ export default {
}
},
mounted () {
this.calcStepOffsetWidth()
if (!isFlexSupported()) {
this.setState({
flexSupported: false,
})
}
this.$nextTick(() => {
this.calcStepOffsetWidth()
if (!isFlexSupported()) {
this.setState({
flexSupported: false,
})
}
})
},
updated () {
this.calcStepOffsetWidth()
this.$nextTick(() => {
this.calcStepOffsetWidth()
})
},
beforeDestroy () {
if (this.calcTimeout) {
@ -86,7 +85,6 @@ export default {
const {
prefixCls, direction,
labelPlacement, iconPrefix, status, size, current, progressDot,
...restProps
} = getOptionProps(this)
const { lastStepOffsetWidth, flexSupported } = this
const filteredChildren = filterEmpty(this.$slots.default)
@ -100,9 +98,6 @@ export default {
[`${prefixCls}-dot`]: !!progressDot,
}
const stepsProps = {
attrs: {
...restProps,
},
class: classString,
ref: 'vcStepsRef',
on: this.$listeners,
@ -112,46 +107,34 @@ export default {
{
filteredChildren.map((child, index) => {
const childProps = getPropsData(child)
let className = getClass(child)
// fix tail color
if (status === 'error' && index === current - 1) {
className += ` ${prefixCls}-next-error`
}
let stepStatus = getValueByProp(child, 'status')
if (!stepStatus) {
if (index === current) {
stepStatus = status
} else if (index < current) {
stepStatus = 'finish'
} else {
stepStatus = 'wait'
}
}
const stepStyle = getStyle(child)
if (!flexSupported && direction !== 'vertical' && index !== lastIndex) {
stepStyle.width = `${100 / lastIndex}%`
stepStyle.marginRight = -Math.round(lastStepOffsetWidth / lastIndex + 1)
}
const stepProps = {
props: {
...childProps,
stepNumber: `${index + 1}`,
prefixCls,
iconPrefix,
progressDot,
status: stepStatus,
...childProps,
},
on: getEvents(child),
class: className,
style: stepStyle,
}
return (
<Step {...stepProps}>
<template slot='icon'>{getComponentFromProp(child, 'icon')}</template>
<template slot='description'>{getComponentFromProp(child, 'description')}</template>
<template slot='title'>{getComponentFromProp(child, 'title')}</template>
</Step>
)
if (!flexSupported && direction !== 'vertical' && index !== lastIndex) {
stepProps.props.itemWidth = `${100 / lastIndex}%`
stepProps.props.adjustMarginRight = -Math.round(lastStepOffsetWidth / lastIndex + 1)
}
// fix tail color
if (status === 'error' && index === current - 1) {
stepProps.class = `${prefixCls}-next-error`
}
if (!childProps.status) {
if (index === current) {
stepProps.props.status = status
} else if (index < current) {
stepProps.props.status = 'finish'
} else {
stepProps.props.status = 'wait'
}
}
return cloneElement(child, stepProps)
})
}
</div>

138
package-lock.json generated
View File

@ -569,7 +569,7 @@
},
"babel-cli": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-cli/download/babel-cli-6.26.0.tgz",
"integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=",
"dev": true,
"requires": {
@ -603,7 +603,7 @@
},
"babel-core": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-core/download/babel-core-6.26.0.tgz",
"integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=",
"dev": true,
"requires": {
@ -630,7 +630,7 @@
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"resolved": "http://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz",
"integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=",
"dev": true,
"requires": {
@ -690,7 +690,7 @@
},
"babel-helper-builder-binary-assignment-operator-visitor": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-builder-binary-assignment-operator-visitor/download/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz",
"integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=",
"dev": true,
"requires": {
@ -701,7 +701,7 @@
},
"babel-helper-call-delegate": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-call-delegate/download/babel-helper-call-delegate-6.24.1.tgz",
"integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=",
"dev": true,
"requires": {
@ -713,7 +713,7 @@
},
"babel-helper-define-map": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-define-map/download/babel-helper-define-map-6.26.0.tgz",
"integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=",
"dev": true,
"requires": {
@ -725,7 +725,7 @@
},
"babel-helper-explode-assignable-expression": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-explode-assignable-expression/download/babel-helper-explode-assignable-expression-6.24.1.tgz",
"integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=",
"dev": true,
"requires": {
@ -748,7 +748,7 @@
},
"babel-helper-function-name": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-function-name/download/babel-helper-function-name-6.24.1.tgz",
"integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=",
"dev": true,
"requires": {
@ -761,7 +761,7 @@
},
"babel-helper-get-function-arity": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-get-function-arity/download/babel-helper-get-function-arity-6.24.1.tgz",
"integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=",
"dev": true,
"requires": {
@ -771,7 +771,7 @@
},
"babel-helper-hoist-variables": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-hoist-variables/download/babel-helper-hoist-variables-6.24.1.tgz",
"integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=",
"dev": true,
"requires": {
@ -781,7 +781,7 @@
},
"babel-helper-optimise-call-expression": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-optimise-call-expression/download/babel-helper-optimise-call-expression-6.24.1.tgz",
"integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=",
"dev": true,
"requires": {
@ -791,7 +791,7 @@
},
"babel-helper-regex": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-regex/download/babel-helper-regex-6.26.0.tgz",
"integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=",
"dev": true,
"requires": {
@ -802,7 +802,7 @@
},
"babel-helper-remap-async-to-generator": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-remap-async-to-generator/download/babel-helper-remap-async-to-generator-6.24.1.tgz",
"integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=",
"dev": true,
"requires": {
@ -815,7 +815,7 @@
},
"babel-helper-replace-supers": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-replace-supers/download/babel-helper-replace-supers-6.24.1.tgz",
"integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=",
"dev": true,
"requires": {
@ -829,13 +829,13 @@
},
"babel-helper-vue-jsx-merge-props": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY=",
"dev": true
},
"babel-helpers": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-helpers/download/babel-helpers-6.24.1.tgz",
"integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=",
"dev": true,
"requires": {
@ -865,7 +865,7 @@
},
"babel-plugin-check-es2015-constants": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-check-es2015-constants/download/babel-plugin-check-es2015-constants-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-check-es2015-constants/download/babel-plugin-check-es2015-constants-6.22.0.tgz",
"integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=",
"dev": true,
"requires": {
@ -885,7 +885,7 @@
},
"babel-plugin-syntax-async-functions": {
"version": "6.13.0",
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-async-functions/download/babel-plugin-syntax-async-functions-6.13.0.tgz",
"integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=",
"dev": true
},
@ -903,13 +903,13 @@
},
"babel-plugin-syntax-exponentiation-operator": {
"version": "6.13.0",
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-exponentiation-operator/download/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz",
"integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=",
"dev": true
},
"babel-plugin-syntax-jsx": {
"version": "6.18.0",
"resolved": "https://registry.npm.taobao.org/babel-plugin-syntax-jsx/download/babel-plugin-syntax-jsx-6.18.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-jsx/download/babel-plugin-syntax-jsx-6.18.0.tgz",
"integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=",
"dev": true
},
@ -921,13 +921,13 @@
},
"babel-plugin-syntax-trailing-function-commas": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-syntax-trailing-function-commas/download/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-trailing-function-commas/download/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz",
"integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=",
"dev": true
},
"babel-plugin-transform-async-to-generator": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-async-to-generator/download/babel-plugin-transform-async-to-generator-6.24.1.tgz",
"integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=",
"dev": true,
"requires": {
@ -962,7 +962,7 @@
},
"babel-plugin-transform-es2015-arrow-functions": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-arrow-functions/download/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-arrow-functions/download/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
"integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=",
"dev": true,
"requires": {
@ -971,7 +971,7 @@
},
"babel-plugin-transform-es2015-block-scoped-functions": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-block-scoped-functions/download/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-block-scoped-functions/download/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz",
"integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=",
"dev": true,
"requires": {
@ -980,7 +980,7 @@
},
"babel-plugin-transform-es2015-block-scoping": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-block-scoping/download/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz",
"integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=",
"dev": true,
"requires": {
@ -993,7 +993,7 @@
},
"babel-plugin-transform-es2015-classes": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-classes/download/babel-plugin-transform-es2015-classes-6.24.1.tgz",
"integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=",
"dev": true,
"requires": {
@ -1010,7 +1010,7 @@
},
"babel-plugin-transform-es2015-computed-properties": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-computed-properties/download/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz",
"integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=",
"dev": true,
"requires": {
@ -1020,7 +1020,7 @@
},
"babel-plugin-transform-es2015-destructuring": {
"version": "6.23.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-destructuring/download/babel-plugin-transform-es2015-destructuring-6.23.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-destructuring/download/babel-plugin-transform-es2015-destructuring-6.23.0.tgz",
"integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=",
"dev": true,
"requires": {
@ -1029,7 +1029,7 @@
},
"babel-plugin-transform-es2015-duplicate-keys": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-duplicate-keys/download/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz",
"integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=",
"dev": true,
"requires": {
@ -1039,7 +1039,7 @@
},
"babel-plugin-transform-es2015-for-of": {
"version": "6.23.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-for-of/download/babel-plugin-transform-es2015-for-of-6.23.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-for-of/download/babel-plugin-transform-es2015-for-of-6.23.0.tgz",
"integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=",
"dev": true,
"requires": {
@ -1048,7 +1048,7 @@
},
"babel-plugin-transform-es2015-function-name": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-function-name/download/babel-plugin-transform-es2015-function-name-6.24.1.tgz",
"integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=",
"dev": true,
"requires": {
@ -1059,7 +1059,7 @@
},
"babel-plugin-transform-es2015-literals": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-literals/download/babel-plugin-transform-es2015-literals-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-literals/download/babel-plugin-transform-es2015-literals-6.22.0.tgz",
"integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=",
"dev": true,
"requires": {
@ -1068,7 +1068,7 @@
},
"babel-plugin-transform-es2015-modules-amd": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-amd/download/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz",
"integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=",
"dev": true,
"requires": {
@ -1079,7 +1079,7 @@
},
"babel-plugin-transform-es2015-modules-commonjs": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-commonjs/download/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz",
"integrity": "sha1-DYOUApt9xqvhqX7xgeAHWN0uXYo=",
"dev": true,
"requires": {
@ -1091,7 +1091,7 @@
},
"babel-plugin-transform-es2015-modules-systemjs": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-systemjs/download/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz",
"integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=",
"dev": true,
"requires": {
@ -1102,7 +1102,7 @@
},
"babel-plugin-transform-es2015-modules-umd": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-modules-umd/download/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz",
"integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=",
"dev": true,
"requires": {
@ -1113,7 +1113,7 @@
},
"babel-plugin-transform-es2015-object-super": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-object-super/download/babel-plugin-transform-es2015-object-super-6.24.1.tgz",
"integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=",
"dev": true,
"requires": {
@ -1123,7 +1123,7 @@
},
"babel-plugin-transform-es2015-parameters": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-parameters/download/babel-plugin-transform-es2015-parameters-6.24.1.tgz",
"integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=",
"dev": true,
"requires": {
@ -1137,7 +1137,7 @@
},
"babel-plugin-transform-es2015-shorthand-properties": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-shorthand-properties/download/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz",
"integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=",
"dev": true,
"requires": {
@ -1147,7 +1147,7 @@
},
"babel-plugin-transform-es2015-spread": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-spread/download/babel-plugin-transform-es2015-spread-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-spread/download/babel-plugin-transform-es2015-spread-6.22.0.tgz",
"integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=",
"dev": true,
"requires": {
@ -1156,7 +1156,7 @@
},
"babel-plugin-transform-es2015-sticky-regex": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-sticky-regex/download/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz",
"integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=",
"dev": true,
"requires": {
@ -1167,7 +1167,7 @@
},
"babel-plugin-transform-es2015-template-literals": {
"version": "6.22.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-template-literals/download/babel-plugin-transform-es2015-template-literals-6.22.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-template-literals/download/babel-plugin-transform-es2015-template-literals-6.22.0.tgz",
"integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=",
"dev": true,
"requires": {
@ -1176,7 +1176,7 @@
},
"babel-plugin-transform-es2015-typeof-symbol": {
"version": "6.23.0",
"resolved": "http://registry.npm.sogou/babel-plugin-transform-es2015-typeof-symbol/download/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-typeof-symbol/download/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz",
"integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=",
"dev": true,
"requires": {
@ -1185,7 +1185,7 @@
},
"babel-plugin-transform-es2015-unicode-regex": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-unicode-regex/download/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz",
"integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=",
"dev": true,
"requires": {
@ -1196,7 +1196,7 @@
},
"babel-plugin-transform-exponentiation-operator": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-exponentiation-operator/download/babel-plugin-transform-exponentiation-operator-6.24.1.tgz",
"integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=",
"dev": true,
"requires": {
@ -1217,7 +1217,7 @@
},
"babel-plugin-transform-regenerator": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-regenerator/download/babel-plugin-transform-regenerator-6.26.0.tgz",
"integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=",
"dev": true,
"requires": {
@ -1226,7 +1226,7 @@
},
"babel-plugin-transform-strict-mode": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-strict-mode/download/babel-plugin-transform-strict-mode-6.24.1.tgz",
"integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=",
"dev": true,
"requires": {
@ -1235,9 +1235,9 @@
}
},
"babel-plugin-transform-vue-jsx": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-3.5.0.tgz",
"integrity": "sha1-axrSk1GtdTkZQDZ18L+LKkPhdnE=",
"version": "3.7.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-vue-jsx/download/babel-plugin-transform-vue-jsx-3.7.0.tgz",
"integrity": "sha1-1ASS5mkqNrWU9+mhko9D6Wl0CWA=",
"dev": true,
"requires": {
"esutils": "2.0.2"
@ -1264,7 +1264,7 @@
},
"babel-preset-env": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz",
"resolved": "http://registry.npm.taobao.org/babel-preset-env/download/babel-preset-env-1.6.1.tgz",
"integrity": "sha1-oYtWTMm5r99KrleuPBsNmRiOb0g=",
"dev": true,
"requires": {
@ -1302,7 +1302,7 @@
},
"babel-register": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz",
"resolved": "http://registry.npm.taobao.org/babel-register/download/babel-register-6.26.0.tgz",
"integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=",
"dev": true,
"requires": {
@ -2781,7 +2781,7 @@
},
"de-indent": {
"version": "1.0.2",
"resolved": "http://r.cnpmjs.org/de-indent/download/de-indent-1.0.2.tgz",
"resolved": "http://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz",
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=",
"dev": true
},
@ -4238,7 +4238,7 @@
},
"fs-readdir-recursive": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz",
"resolved": "http://registry.npm.taobao.org/fs-readdir-recursive/download/fs-readdir-recursive-1.1.0.tgz",
"integrity": "sha1-4y/AMKLM7kSmtTcTCNpUvgs5fSc=",
"dev": true
},
@ -5678,7 +5678,7 @@
},
"home-or-tmp": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/home-or-tmp/download/home-or-tmp-2.0.0.tgz",
"resolved": "http://registry.npm.taobao.org/home-or-tmp/download/home-or-tmp-2.0.0.tgz",
"integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=",
"dev": true,
"requires": {
@ -8563,7 +8563,7 @@
},
"output-file-sync": {
"version": "1.1.2",
"resolved": "http://r.cnpmjs.org/output-file-sync/download/output-file-sync-1.1.2.tgz",
"resolved": "http://registry.npm.taobao.org/output-file-sync/download/output-file-sync-1.1.2.tgz",
"integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=",
"dev": true,
"requires": {
@ -10002,7 +10002,7 @@
},
"private": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz",
"resolved": "http://registry.npm.taobao.org/private/download/private-0.1.8.tgz",
"integrity": "sha1-I4Hts2ifelPWUxkAYPz4ItLzaP8=",
"dev": true
},
@ -10333,7 +10333,7 @@
},
"regenerator-transform": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz",
"resolved": "http://registry.npm.taobao.org/regenerator-transform/download/regenerator-transform-0.10.1.tgz",
"integrity": "sha1-HkmWg3Ix2ot/PPQRTXG1aRoGgN0=",
"dev": true,
"requires": {
@ -10362,7 +10362,7 @@
},
"regexpu-core": {
"version": "2.0.0",
"resolved": "http://r.cnpmjs.org/regexpu-core/download/regexpu-core-2.0.0.tgz",
"resolved": "http://registry.npm.taobao.org/regexpu-core/download/regexpu-core-2.0.0.tgz",
"integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=",
"dev": true,
"requires": {
@ -11381,7 +11381,7 @@
},
"source-map-support": {
"version": "0.4.18",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",
"resolved": "http://registry.npm.taobao.org/source-map-support/download/source-map-support-0.4.18.tgz",
"integrity": "sha1-Aoam3ovkJkEzhZTpfM6nXwosWF8=",
"dev": true,
"requires": {
@ -12900,7 +12900,7 @@
},
"user-home": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz",
"resolved": "http://registry.npm.taobao.org/user-home/download/user-home-1.1.1.tgz",
"integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=",
"dev": true
},
@ -12965,7 +12965,7 @@
},
"v8flags": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz",
"resolved": "http://registry.npm.taobao.org/v8flags/download/v8flags-2.1.1.tgz",
"integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=",
"dev": true,
"requires": {
@ -13048,9 +13048,9 @@
"dev": true
},
"vue": {
"version": "2.5.13",
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.5.13.tgz",
"integrity": "sha1-lb0x4g7896fzkjnJqmeHzoz1eOE="
"version": "2.5.15",
"resolved": "http://registry.npm.taobao.org/vue/download/vue-2.5.15.tgz",
"integrity": "sha1-/bZ4Yd3pZ82NG1MRY4Dy8mm0UgI="
},
"vue-antd-md-loader": {
"version": "1.0.2",
@ -13162,7 +13162,7 @@
"integrity": "sha1-ohzpByN5/F+yjh8bRgyCWVswZvQ=",
"requires": {
"clipboard": "1.7.1",
"vue": "2.5.13"
"vue": "2.5.15"
}
},
"vue-eslint-parser": {
@ -13290,9 +13290,9 @@
}
},
"vue-template-compiler": {
"version": "2.5.13",
"resolved": "https://registry.npm.taobao.org/vue-template-compiler/download/vue-template-compiler-2.5.13.tgz",
"integrity": "sha1-EqKqDs1hWKxeXxTSlLCZPzmcPTg=",
"version": "2.5.15",
"resolved": "http://registry.npm.taobao.org/vue-template-compiler/download/vue-template-compiler-2.5.15.tgz",
"integrity": "sha1-zABAl+NxZ76LheoiqyhA2OjMocA=",
"dev": true,
"requires": {
"de-indent": "1.0.2",

View File

@ -30,7 +30,7 @@
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-helper-vue-jsx-merge-props": "^2.0.2",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.1",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
@ -38,9 +38,9 @@
"babel-plugin-transform-decorators": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-env": "^1.6.1",
"chai": "^4.1.2",
"cheerio": "^1.0.0-rc.2",
"css-loader": "^0.28.7",
@ -80,7 +80,7 @@
"vue-antd-md-loader": "^1.0.2",
"vue-loader": "^13.0.5",
"vue-router": "^3.0.1",
"vue-template-compiler": "^2.5.13",
"vue-template-compiler": "^2.5.15",
"webpack": "^3.6.0",
"webpack-chunk-hash": "^0.5.0",
"webpack-dev-server": "^2.8.2",
@ -104,9 +104,9 @@
"omit.js": "^1.0.0",
"shallow-equal": "^1.0.0",
"shallowequal": "^1.0.2",
"vue": "^2.5.13",
"vue": "^2.5.15",
"vue-clipboard2": "0.0.8",
"vue-types": "^1.0.2",
"warning": "^3.0.0"
}
}
}