wwlocal-ui
v0.0.14
Published
A Component Library for Vue.js.
Downloads
19
Keywords
Readme
wwlocal-ui
Introduction
政务微信linux/mac 桌面端 UI组件库
Usage
- Install package [wwlocal-ui]
npm i -D @tencent/wwlocal-ui
- 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>