pull/9/head
tangjinzhou 2018-02-22 15:13:41 +08:00
parent 1ec7df4a85
commit 0cf88eeae3
2 changed files with 1 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export default {
const { prefixCls, shape, size, src, icon } = this const { prefixCls, shape, size, src, icon } = this
return { return {
[`${prefixCls}`]: true, [`${prefixCls}`]: true,
[`${prefixCls}-image`]: !!src && this.state.isImgExist, [`${prefixCls}-image`]: !!src,
[`${prefixCls}-icon`]: !!icon, [`${prefixCls}-icon`]: !!icon,
[`${prefixCls}-${shape}`]: true, [`${prefixCls}-${shape}`]: true,
[`${prefixCls}-lg`]: size === 'large', [`${prefixCls}-lg`]: size === 'large',

View File

@ -1,6 +1,5 @@
<script> <script>
import omit from 'omit.js' import omit from 'omit.js'
import cloneDeep from 'lodash.clonedeep'
import RcMenu, { Divider, ItemGroup, SubMenu } from '../vc-menu' import RcMenu, { Divider, ItemGroup, SubMenu } from '../vc-menu'
import PropTypes from '../_util/vue-types' import PropTypes from '../_util/vue-types'
import animation from '../_util/openAnimation' import animation from '../_util/openAnimation'