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
+7 -3
View File
@@ -7,19 +7,21 @@ import {
nextTick,
PropType,
onMounted,
defineComponent,
} from 'vue';
// Utils
import { deepClone } from '../utils/deep-clone';
import { pick, createNamespace, ComponentInstance } from '../utils';
import { pickerProps } from '../picker/Picker';
// Composables
import { useExpose } from '../composables/use-expose';
// Components
import Picker, { pickerProps } from '../picker';
import Picker from '../picker';
const [createComponent, bem] = createNamespace('area');
const [name, bem] = createNamespace('area');
const EMPTY_CODE = '000000';
@@ -40,7 +42,9 @@ export type AreaColumnOption = {
type ColumnType = 'province' | 'county' | 'city';
export default createComponent({
export default defineComponent({
name,
props: {
...pickerProps,
value: String,
+8
View File
@@ -0,0 +1,8 @@
import { installable } from '../utils';
import _Area from './Area';
const Area = installable(_Area);
export default Area;
export { Area };
export type { AreaList, AreaColumnOption } from './Area';