mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
refactor: reorganize all components (#8303)
This commit is contained in:
@@ -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
7
src/search/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { installable } from '../utils';
|
||||
import _Search from './Search';
|
||||
|
||||
const Search = installable(_Search);
|
||||
|
||||
export default Search;
|
||||
export { Search };
|
Reference in New Issue
Block a user