Skip to content

Commit db4148a

Browse files
committed
feat: remove Step __legacy
1 parent 21cf533 commit db4148a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/vc-steps/Step.tsx

+7-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { CSSProperties, ExtractPropTypes } from 'vue';
33
import { defineComponent } from 'vue';
44
import type { EventHandler } from '../_util/EventInterface';
55
import classNames from '../_util/classNames';
6-
import warning from '../_util/warning';
76
import type { VueNode } from '../_util/type';
87
import { booleanType, stringType, functionType } from '../_util/type';
98
import type { StepIconRender, Status } from './interface';
@@ -52,13 +51,13 @@ export default defineComponent({
5251
emit('click', e);
5352
emit('stepClick', props.stepIndex);
5453
};
55-
if (props.__legacy !== false) {
56-
warning(
57-
false,
58-
'Steps',
59-
'Step is deprecated, and not support inline type. Please use `items` directly. ',
60-
);
61-
}
54+
// if (props.__legacy !== false) {
55+
// warning(
56+
// false,
57+
// 'Steps',
58+
// 'Step is deprecated, and not support inline type. Please use `items` directly. ',
59+
// );
60+
// }
6261
const renderIconNode = ({ icon, title, description }) => {
6362
const {
6463
prefixCls,

0 commit comments

Comments
 (0)