Skip to content

Commit ba560a3

Browse files
committed
style: remove not use mixins
1 parent 3aeeeb2 commit ba560a3

File tree

5 files changed

+0
-53
lines changed

5 files changed

+0
-53
lines changed

components/_util/BaseMixin2.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

components/form/FormItem.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import PropTypes from '../_util/vue-types';
55
import Row from '../grid/Row';
66
import type { ColProps } from '../grid/Col';
77
import { filterEmpty } from '../_util/props-util';
8-
import BaseMixin from '../_util/BaseMixin';
98
import { validateRules as validateRulesUtil } from './utils/validateUtil';
109
import { getNamePath } from './utils/valueUtil';
1110
import { toArray } from './utils/typeUtil';
@@ -97,7 +96,6 @@ const defaultItemNamePrefixCls = 'form_item';
9796

9897
export default defineComponent({
9998
name: 'AFormItem',
100-
mixins: [BaseMixin],
10199
inheritAttrs: false,
102100
__ANT_NEW_FORM_ITEM: true,
103101
props: formItemProps,

components/slider/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { CSSProperties, VNodeTypes, PropType } from 'vue';
22
import { computed, ref, defineComponent } from 'vue';
3-
import BaseMixin from '../_util/BaseMixin';
43
import VcSlider from '../vc-slider/src/Slider';
54
import VcRange from '../vc-slider/src/Range';
65
import VcHandle from '../vc-slider/src/Handle';
@@ -75,7 +74,6 @@ export type Visibles = { [index: number]: boolean };
7574

7675
const Slider = defineComponent({
7776
name: 'ASlider',
78-
mixins: [BaseMixin],
7977
inheritAttrs: false,
8078
props: {
8179
...sliderProps(),

components/vc-image/src/Image.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { ImgHTMLAttributes, CSSProperties } from 'vue';
22
import { ref, watch, defineComponent, computed, onMounted } from 'vue';
33
import isNumber from 'lodash-es/isNumber';
4-
5-
import BaseMixin from '../../_util/BaseMixin';
64
import cn from '../../_util/classNames';
75
import PropTypes from '../../_util/vue-types';
86
import { getOffset } from '../../vc-util/Dom/css';
@@ -61,7 +59,6 @@ const mergeDefaultValue = <T extends object>(obj: T, defaultValues: object): T =
6159
let uuid = 0;
6260
const ImageInternal = defineComponent({
6361
name: 'Image',
64-
mixins: [BaseMixin],
6562
inheritAttrs: false,
6663
props: imageProps,
6764
emits: ['click'],

components/vc-steps/Steps.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import PropTypes from '../_util/vue-types';
2-
import BaseMixin from '../_util/BaseMixin';
32
import { filterEmpty } from '../_util/props-util';
43
import { cloneElement } from '../_util/vnode';
54
import { defineComponent } from 'vue';
@@ -24,7 +23,6 @@ export type ProgressDotRender = (info: {
2423

2524
export default defineComponent({
2625
name: 'Steps',
27-
mixins: [BaseMixin],
2826
props: {
2927
type: PropTypes.string.def('default'),
3028
prefixCls: PropTypes.string.def('vc-steps'),

0 commit comments

Comments
 (0)