mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
19 lines
393 B
JavaScript
19 lines
393 B
JavaScript
/**
|
|
* Create a component with common options
|
|
*/
|
|
import createBasic from './create-basic';
|
|
import Icon from '../icon';
|
|
import Loading from '../loading';
|
|
import Cell from '../cell';
|
|
import CellGroup from '../cell-group';
|
|
|
|
export default function (sfc) {
|
|
sfc.components = Object.assign(sfc.components || {}, {
|
|
Icon,
|
|
Loading,
|
|
Cell,
|
|
CellGroup
|
|
});
|
|
return createBasic(sfc);
|
|
}
|