Closed b2nil closed 3 years ago
This PR is mainly intended to:
const rootClasses = computed(() => ({ 'at-xxx': true, }))
class
style
<at-card class="custom-class" style="height: 20px;">...</at-card>
The props of class and style will be merged to the attrs of the component's root node:
setup(props, { slots, attrs }) { h(View, mergeProps(attrs, { class: rootClasses.value }), slots.default()) }
This PR is mainly intended to:
class
andstyle
to replace the props of className and customStyleThe props of
class
andstyle
will be merged to the attrs of the component's root node: