wwlocal-ui

A Component Library for Vue.js.

Usage no npm install needed!

<script type="module">
  import wwlocalUi from 'https://cdn.skypack.dev/wwlocal-ui';
</script>

README

wwlocal-ui

Introduction

政务微信linux/mac 桌面端 UI组件库

Usage

  1. Install package [wwlocal-ui]
    npm i -D @tencent/wwlocal-ui
    
  2. Get Started
// 全局注册
import wwlocalUI from 'wwlocal-ui';
Vue.use(wwlocalUI);
import 'wwlocal-ui/lib/wwlocal-ui.css';
// 按需注册
import { WwSearchBar, WwVoiceWatch, WwToast, WwLoading, WwPopover, WwTree, WwDatePicker } from 'wwlocal-ui';
import 'wwlocal-ui/lib/wwlocal-ui.css';
Vue.use(WwSearchBar);
Vue.use(WwVoiceWatch);
Vue.use(WwToast);
Vue.use(WwLoading);
Vue.use(WwPopover);
Vue.use(WwTree);
Vue.use(WwDatePicker);
// 全局注册
<template>
  <div id="app">
    <WwSearchBar v-on:onClear="clearChatListSearchInput"
                            v-on:onChanged="onChanged($event)"
                            :defaultCenter="false"
                            :searchKeyword="searchKeyword"
                            type="white"
                            :inputWidth="220"/>
  </div>
</template>

<script>
export default {};
</script>