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, watch, computed, PropType } from 'vue';
import { ref, watch, computed, PropType, defineComponent } from 'vue';
// Utils
import { isNaN } from '../utils/validate/number';
@@ -16,7 +16,7 @@ import {
import { useLinkField } from '../composables/use-link-field';
import { Interceptor, callInterceptor } from '../utils/interceptor';
const [createComponent, bem] = createNamespace('stepper');
const [name, bem] = createNamespace('stepper');
const LONG_PRESS_INTERVAL = 200;
const LONG_PRESS_START_TIME = 600;
@@ -31,7 +31,9 @@ function add(num1: number, num2: number) {
return Math.round((num1 + num2) * cardinal) / cardinal;
}
export default createComponent({
export default defineComponent({
name,
props: {
theme: String,
integer: Boolean,

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

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