1.0.0 • Published 2 years ago

mollyhlw-ui v1.0.0

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

说明

WOF-UI 是一款基于 Vue.js 2.0 的前端 UI 组件库,主要用于快速开发 PC 网站中后台产品

安装

cnpm i mollyhlw-ui -S

使用

在src/main.js
import WOFUI from ' mollyhlw-ui';
Vue.use(WOFUI);
import ' mollyhlw-ui/wof-ui.css';

框框

<template>
    <fieldset>
        <legend>{{title}}</legend>
        <slot></slot>
    </fieldset>
</template>
<script>
export default {
    name: 'qfui-kuangkuang',
    props: {
        title: {
            type: String
        }
    },
}
</script>

分页

<wof-row>
  <wof-page :total="10" @changePage="changePageFn"></wof-page>
</wof-row>

<script>
export default {
  methods: {
    changePageFn(n) {
      alert(n)
    }
  }
}
</script>