mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
test: update transfer snap
This commit is contained in:
parent
ae0acb73ea
commit
1850d04eed
@ -1 +1 @@
|
||||
Subproject commit 55b555db9f1598318c402df2132ff05bc491c473
|
||||
Subproject commit aab758ee2c072e350f2cc6140f8293ce8d9c7c9e
|
@ -128,7 +128,7 @@ export default {
|
||||
onMouseenter={onMouseleave}
|
||||
>
|
||||
<VcCheckbox {...checkboxProps} class={checkboxClass} ref="vcCheckbox" />
|
||||
{children !== undefined && <span>{children}</span>}
|
||||
{children.length ? <span>{children}</span> : null}
|
||||
</label>
|
||||
);
|
||||
},
|
||||
|
@ -64,12 +64,12 @@ const Switch = {
|
||||
const loadingIcon = loading ? <LoadingOutlined class={`${prefixCls}-loading-icon`} /> : null;
|
||||
const switchProps = {
|
||||
...restProps,
|
||||
...$attrs,
|
||||
prefixCls,
|
||||
loadingIcon,
|
||||
checkedChildren: getComponent(this, 'checkedChildren'),
|
||||
unCheckedChildren: getComponent(this, 'unCheckedChildren'),
|
||||
disabled: disabled || loading,
|
||||
...$attrs,
|
||||
class: classes,
|
||||
ref: this.saveRef,
|
||||
};
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,12 @@
|
||||
import classNames from 'classnames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { isValidElement, initDefaultProps, splitAttrs, findDOMNode } from '../_util/props-util';
|
||||
import {
|
||||
isValidElement,
|
||||
initDefaultProps,
|
||||
splitAttrs,
|
||||
findDOMNode,
|
||||
filterEmpty,
|
||||
} from '../_util/props-util';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import Checkbox from '../checkbox';
|
||||
import Search from './search';
|
||||
@ -55,7 +61,7 @@ export const TransferListProps = {
|
||||
|
||||
function renderListNode(renderList, props) {
|
||||
let bodyContent = renderList ? renderList(props) : null;
|
||||
const customize = !!bodyContent;
|
||||
const customize = !!bodyContent && filterEmpty(bodyContent).length > 0;
|
||||
if (!customize) {
|
||||
bodyContent = defaultRenderList(props);
|
||||
}
|
||||
|
@ -85,6 +85,8 @@ export default {
|
||||
loadingIcon,
|
||||
defaultChecked,
|
||||
autofocus,
|
||||
checkedChildren,
|
||||
unCheckedChildren,
|
||||
...restProps
|
||||
} = getOptionProps(this);
|
||||
const checked = this.stateChecked;
|
||||
|
@ -4,7 +4,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import demo from '../antdv-demo/docs/space/demo/index';
|
||||
import demo from '../antdv-demo/docs/transfer/demo/tree-transfer';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
Loading…
Reference in New Issue
Block a user