aha-bem

1.0.0 • Public • Published

aha-bem

Happy using BEM in the tag.

Usage

Example Effect

<!-- *.vue -->
<template>
  <div b:header>
    <div e:left>
      <div b:user m:light>
        <div e:user-top>
          <img e:avatar m:hover m:selected src="" alt="" />
        </div>
        <div e:user-bottom></div>
      </div>
    </div>
  </div>
</template>

parse after

<!-- *.vue -->
<template>
  <div class="header " b:header>
    <div class=" header__left " e:left>
      <div class="user user--light " b:user m:light>
        <div class=" user__user-top " e:user-top>
          <img
            class=" user__avatar user__avatar--hover user__avatar--selected "
            e:avatar
            m:hover
            m:selected
            src=""
            alt=""
          />
        </div>
        <div class=" user__user-bottom " e:user-bottom></div>
      </div>
    </div>
  </div>
</template>

Package Sidebar

Install

npm i aha-bem

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

18.5 kB

Total Files

8

Last publish

Collaborators

  • kesion