Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. One Component has One Directory end with .mulmc.
    ex) list component in list.mulmc/

  2. If Component is providing many themes, You can implement it to branch in each directory.

    Code Block
    list.mulmc/
      index.vue     // Implement to do branch
      impl.js       // Implement component business logic
      multikart.vue // multikart theme template
      unishop.vue   // unishop theme template
      default.vue   // default theme template
      .
      .
  3. Register your component to *.collection.js .

    Code Block
    {
      [componentId( 'list' )]: registerComponent( () =>
        import( './list.mulmc' )
      ),
    } 
  4. Finally, you can use list component as <reg-list/> .

How it works

Index Branch Component : **/*.

...

mc/index.vue

That component has only a script block<script>...</script> and import theme components in there.

...