Skip to content
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
Compare
Choose a tag to compare
@b2nil b2nil released this 15 Sep 16:15
· 373 commits to master since this 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 and style to replace the props of className and customStyle
    // before
    <at-card className="custom-class" customStyle="height: 20px;">...</at-card>
    
    // NOW
    <at-card class="custom-class" style="height: 20px;">...</at-card>
    The props 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())
    }
  • and some other minor fixes