Skip to content

Commit 728bfe6

Browse files
committed
style: remove not use code
1 parent 722f3f2 commit 728bfe6

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

components/card/Card.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Row from '../row';
55
import Col from '../col';
66
import PropTypes from '../_util/vue-types';
77
import { flattenChildren, isEmptyElement } from '../_util/props-util';
8-
import BaseMixin from '../_util/BaseMixin';
98
import type { SizeType } from '../config-provider';
109
import isPlainObject from 'lodash-es/isPlainObject';
1110
import useConfigInject from '../_util/hooks/useConfigInject';
@@ -51,7 +50,6 @@ export type CardProps = Partial<ExtractPropTypes<ReturnType<typeof cardProps>>>;
5150

5251
const Card = defineComponent({
5352
name: 'ACard',
54-
mixins: [BaseMixin],
5553
props: cardProps(),
5654
slots: ['title', 'extra', 'tabBarExtraContent', 'actions', 'cover', 'customTab'],
5755
setup(props, { slots }) {

components/input/Password.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import EyeOutlined from '@ant-design/icons-vue/EyeOutlined';
66
import EyeInvisibleOutlined from '@ant-design/icons-vue/EyeInvisibleOutlined';
77
import type { InputProps } from './inputProps';
88
import inputProps from './inputProps';
9-
import PropTypes from '../_util/vue-types';
10-
import BaseMixin from '../_util/BaseMixin';
119
import { computed, defineComponent, ref } from 'vue';
1210
import useConfigInject from '../_util/hooks/useConfigInject';
1311
import omit from '../_util/omit';
@@ -20,13 +18,12 @@ const defaultIconRender = (visible: boolean) =>
2018
visible ? <EyeOutlined /> : <EyeInvisibleOutlined />;
2119
export default defineComponent({
2220
name: 'AInputPassword',
23-
mixins: [BaseMixin],
2421
inheritAttrs: false,
2522
props: {
2623
...inputProps(),
2724
prefixCls: String,
2825
inputPrefixCls: String,
29-
action: PropTypes.string.def('click'),
26+
action: { type: String, default: 'click' },
3027
visibilityToggle: { type: Boolean, default: true },
3128
iconRender: Function,
3229
},

components/input/ResizableTextArea.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import classNames from '../_util/classNames';
1414
import calculateNodeHeight from './calculateNodeHeight';
1515
import raf from '../_util/raf';
1616
import warning from '../_util/warning';
17-
import BaseMixin from '../_util/BaseMixin';
1817
import antInput from '../_util/antInputDirective';
1918
import omit from '../_util/omit';
2019
import { textAreaProps } from './inputProps';
@@ -25,7 +24,6 @@ const RESIZE_STATUS_RESIZED = 2;
2524

2625
const ResizableTextArea = defineComponent({
2726
name: 'ResizableTextArea',
28-
mixins: [BaseMixin],
2927
inheritAttrs: false,
3028
props: textAreaProps(),
3129
setup(props, { attrs, emit, expose }) {

0 commit comments

Comments
 (0)