qing-element-world-area
Element UI 世界地图国家和地区数据(含港澳台)
454
| Install | |
|---|---|
npm install qing-element-world-area |
|
| Latest Version: | 1.0.5 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | May 15, 2024 |
| Links: | GitHub · npm |
Maintainer: qingfengai
Element UI 世界国家和地区数据
安装
npm install qing-element-world-area -S
使用
import { worldData, CodeToText, TextToCode } from 'qing-element-world-area'
服务端用法:
const { worldData, CodeToText, TextToCode } = require('qing-element-world-area/dist/app.commonjs')
worldData是世界国家和地区数据(包含联合国成员国和观察员国,中国含港澳台)CodeToText是个大对象,属性是英文,属性值是汉字TextToCode是个大对象,属性是汉字,属性值是英文
- 世界国家和地区:
<template> <div id="app"> <el-select v-model="currentForm.map_name" placeholder="请选择" @change="handleChange" filterable clearable > <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" > {{ item.label }} </el-option> </el-select> </div> </template> <script> import { worldData } from 'qing-element-world-area' export default { data () { return { options: worldData, selectedOptions: [] } }, methods: { handleChange (value) { console.log(value) } } } </script>
开发过程
npm run dev 是开发
npm run build + npm run build-commonjs + npm run docs 是准备发布
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.5 | ^2.6.11 | MIT | |
| 1.0.4 | ^2.6.11 | MIT | |
| 1.0.3 | ^2.6.11 | MIT | |
| 1.0.2 | ^2.6.11 | MIT | |
| 1.0.1 | ^2.6.11 | MIT | |
| 1.0.0 | ^2.6.11 | MIT |