refactor: reorganize all components (#8303)

This commit is contained in:
neverland
2021-03-08 11:50:37 +08:00
committed by GitHub
parent 3144a63d2b
commit e540876398
193 changed files with 1307 additions and 400 deletions
@@ -1,18 +1,20 @@
import { PropType } from 'vue';
import { PropType, defineComponent } from 'vue';
import { createNamespace } from '../utils';
import { BORDER_TOP_BOTTOM } from '../utils/constant';
import { useChildren } from '@vant/use';
const [createComponent, bem] = createNamespace('collapse');
const [name, bem] = createNamespace('collapse');
export const COLLAPSE_KEY = Symbol('Collapse');
export const COLLAPSE_KEY = Symbol(name);
export type CollapseProvide = {
toggle: (name: number | string, expanded: boolean) => void;
isExpanded: (name: number | string) => boolean;
};
export default createComponent({
export default defineComponent({
name,
props: {
accordion: Boolean,
modelValue: {
+7
View File
@@ -0,0 +1,7 @@
import { installable } from '../utils';
import _Collapse from './Collapse';
const Collapse = installable(_Collapse);
export default Collapse;
export { Collapse };