Skip to content

Commit 651b988

Browse files
committed
fix: add inheritAttrs
1 parent 30b2420 commit 651b988

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/divider/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export const dividerProps = () => ({
2828
export type DividerProps = Partial<ExtractPropTypes<ReturnType<typeof dividerProps>>>;
2929

3030
const Divider = defineComponent({
31-
compatConfig: { MODE: 3 },
3231
name: 'ADivider',
32+
inheritAttrs: false,
33+
compatConfig: { MODE: 3 },
3334
props: dividerProps(),
3435
setup(props, { slots, attrs }) {
3536
const { prefixCls: prefixClsRef, direction } = useConfigInject('divider', props);

components/style.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import './popconfirm/style';
1616
import './menu/style';
1717
import './mentions/style';
1818
import './dropdown/style';
19-
import './divider/style';
19+
// import './divider/style';
2020
import './card/style';
2121
import './collapse/style';
2222
import './carousel/style';

0 commit comments

Comments
 (0)