Skip to content

Commit

Permalink
feat: popper的popperClass支持obect和array (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchun committed Apr 8, 2022
1 parent 5e88daa commit dc7122c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/popper/popper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default defineComponent({
updateVirtualRect,
);
const popperClass = computed(() =>
[prefixCls, props.popperClass].filter(Boolean).join(' '),
[prefixCls, props.popperClass].filter(Boolean),
);

const renderTrigger = () => {
Expand Down
5 changes: 1 addition & 4 deletions components/popper/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ export const popperProps = {
type: Boolean,
default: true,
},
popperClass: {
type: String,
default: '',
},
popperClass: [String, Array, Object] as PropType<string | [] | object>,
showAfter: {
type: Number,
default: 0,
Expand Down

0 comments on commit dc7122c

Please sign in to comment.