This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
Release v1.0.0-alpha.2
Pre-release
Pre-release
Overview of this new release:
- Use computed classes to replace the dependency of classnames
const rootClasses = computed(() => ({ 'at-xxx': true, [`xxx-${props.xxx}`]: Boolean(props.xxx) }))
- Use
class
andstyle
to replace the props ofclassName
andcustomStyle
The props// before <at-card className="custom-class" customStyle="height: 20px;">...</at-card> // NOW <at-card class="custom-class" style="height: 20px;">...</at-card>
class
andstyle
will be merged to theattrs
of the component's root node:setup(props, { slots, attrs }) { h(View, mergeProps(attrs, { class: rootClasses.value }), slots.default()) }
- and some other minor fixes