0.0.12 • Published 5 years ago

more-dapp-component v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

More DApp Component

Vue Component for More DApp

Build Setup

# install dependencies
yarn

# example run at localhost:3000
yarn dev

# build for production with minification
yarn build

# build for library
yarn build_lib

Usage

import Vue from 'vue'
import MoreDAppComponent from 'more-dapp-component'
import 'more-dapp-component/lib/index.css'

Vue.use(MoreDAppComponent)

// your code

Example

<template>
  <page-container>
    <page-title>Page title</page-title>
    <section-container>
      section container
      <section-title>
        title
      </section-title>
      <more-input withClear v-model="message"/>
      <more-button @click="showMessage">show message</more-button>
      <tip types="with-dot container">
        this is tip
        <tip types="highlight">highlight tip</tip>
      </tip>
      <form action="">
        <form-item label="Your company">
          {{ picked }}
        </form-item>
      </form>
      <radio-group name="company" v-model="picked">
        <radio value="more">More</radio>
        <radio value="alibaba">Alibaba</radio>
        <radio value="tencent">Tencent</radio>
      </radio-group>
    </section-container>
  </page-container>
</template>

<script>
  export default {
    name: "app",
    data() {
      return {
        message: null,
        picked: 'more'
      }
    },
    methods: {
      showMessage() {
        const { message } = this
        if (message) {
          this.$message(message)
        } else {
          this.$message('message is required')
        }
      }
    }
  }
</script>
0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago