[improvement] Cell: functional (#2729)

This commit is contained in:
neverland
2019-02-13 15:37:11 +08:00
committed by GitHub
parent a08666947f
commit 4aad9add9c
19 changed files with 162 additions and 129 deletions
+3 -2
View File
@@ -1,16 +1,17 @@
import { use, isDef } from '../utils';
import { raf } from '../utils/raf';
import Cell from '../cell';
import CellMixin from '../mixins/cell';
import { cellProps } from '../cell/shared';
import FindParent from '../mixins/find-parent';
const [sfc, bem] = use('collapse-item');
const CELL_SLOTS = ['title', 'icon', 'right-icon'];
export default sfc({
mixins: [CellMixin, FindParent],
mixins: [FindParent],
props: {
...cellProps,
name: [String, Number],
disabled: Boolean,
isLink: {