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

View File

@@ -1,4 +1,4 @@
import { ref, PropType, CSSProperties } from 'vue';
import { ref, PropType, CSSProperties, defineComponent } from 'vue';
// Utils
import {
@@ -17,11 +17,13 @@ import Field from '../field';
// Types
import type { FieldClearTrigger } from '../field/types';
const [createComponent, bem, t] = createNamespace('search');
const [name, bem, t] = createNamespace('search');
export type SearchShape = 'square' | 'round';
export default createComponent({
export default defineComponent({
name,
inheritAttrs: false,
props: {

7
src/search/index.ts Normal file
View File

@@ -0,0 +1,7 @@
import { installable } from '../utils';
import _Search from './Search';
const Search = installable(_Search);
export default Search;
export { Search };