1.0.15 • Published 4 years ago
saturnus_region_selector v1.0.15
saturnus_region_selector
A region selector based on Vue2, Vuex, element UI
Install
npm i saturnus_region_selector -S
Usage
Global Registration
import Vue from 'vue'
import store from 'vuex' // you must install vuex first
import RegionSelector from 'saturnus_region_selector'
Vue.use(RegionSelector, { store })
Using the component
<region-selector
ref="regionSelector"
@change="changeHandler"
/>
Props
Name | Type | Default | Options | Description |
---|---|---|---|---|
layoutDir | String | horizontal | horizontal | vertical | |
labelWidth | String | 50px | ||
labelAlign | String | right |
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8081
npm run dev
# build for production with minification
npm run build