Installations
npm install dc-core-vue
Developer Guide
BETA
Typescript
Yes
Module System
CommonJS
Node Version
12.16.3
NPM Version
7.19.1
Score
46.2
Supply Chain
58.1
Quality
74.8
Maintenance
100
Vulnerability
99.3
License
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
773
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
200%
3
Compared to previous month
Last year
-39.5%
104
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Dev Dependencies
17
@typescript-eslint/eslint-plugin@typescript-eslint/parser@vue/cli-plugin-babel@vue/cli-plugin-eslint@vue/cli-plugin-typescript@vue/cli-service@vue/compiler-sfc@vue/eslint-config-prettier@vue/eslint-config-typescripteslinteslint-plugin-prettiereslint-plugin-vueprettiersasssass-loaderless-loadertypescript
Versions
elui-china-area-dht
##使用
更多使用请参考:https://www.yuque.com/cv8igf/gaxplg/btzy5i
原理博客地址:https://juejin.cn/post/6914110923179474952/
elui-china-area-dht会导出ChinaArea()对象,用以进行数据格式转换。里面有所有的省市区地址数据
如:const chinaData = new EluiChinaAreaDht.ChinaArea().chinaAreaflat
<template>
<div class="app">
<!--默认使用-->
<elui-china-area-dht @change="onChange"></elui-china-area-dht>
<!--带isall参数和leave参数示例-->
<elui-china-area-dht isall :leave="2" @change="onChange"></elui-china-area-dht>
</div>
</template>
<script>
import { defineComponent } from 'vue'
import { EluiChinaAreaDht } from 'elui-china-area-dht'
const chinaData = new EluiChinaAreaDht.ChinaArea().chinaAreaflat
export default defineComponent({
components: {
EluiChinaAreaDht,
},
setup() {
function onChange(e) {
const one = chinaData[e[0]]
const two = chinaData[e[1]]
console.log(one, two)
}
return {
onChange,
}
},
})
</script>
No vulnerabilities found.
No security vulnerabilities found.