Giter Club home page Giter Club logo

v-region's Issues

Error upon direct usage

image

Thanks for the library! But I just got an error message when I tried to use it in my project, if you can take a look that'll be helpful!

I'm assuming that this error has something to do with the v-dropdown dependency, but I'm not sure at this point on how exactly to fix it, and this error message popped up after I imported the package and:

import vRegion from 'v-region';

Vue.use(vRegion);

in the Vue file:

<v-region :ui="true" />

如何自定义样式?

在引入该组件后,无法自定义样式,例如选择器的高度,字体大小等等。并且通过设置
<v-region
@values="selectLogs"
class="xxxxxx"
/>

也无法重置样式。

项目如何启动

clone到本地,install之后,npm run dev启动服务,在浏览器中打开一直报404,麻烦问一下,项目在本地如何跑起来?

不能自定义省市数据

省市数据要根据政府网站最新数据更新,下载了2020年的政府公布的,有些信息跟当前打包的内容不对称

v-region.js 有 1.3M,太大了

v-region.js 有 1.3M,太大了,在项目里只是地址选择功能就引入这么大一个 js 文件,会被领导砍的啊。

请问有没有计划更新一下数据源

之前在使用时,可以看到有“广东东莞441900”和“中山442000”的镇级数据与一般的9位不同是12位(最后有未删尽的000);但"**-喀什-巴楚县-三岔口镇" 却为653130103001,不是9为且不是没删最后000而是001.

最近又看到有些区县下本来应该有镇级数据的,但实际是没有的,例如山东-济南-商丘,下面的没有镇级可选.

之前选用此组件也是欣喜有4位级联.我简单了解应该只需要更新下数据源等少量操作即可改善.我看本项目已经14个月未更新了,所以请问是否有此计划?谢谢.

搜索不够智能

目前搜索只能搜索当前区块的数据,不能全局搜索。

有面板收起事件吗

我用的RegionGroup,用户点击每一级行政区都会产生一个 change 事件,而且用户可以选择任意级别行政区。我们希望在用户完成他的选择之后(面板收起)再进行动作而不是 每次change 都执行,查看文档没找到对应的事件消息,请指教,多谢!

如果两次重新赋值:seleced,则点击"X"不能清除选择的

如果单击两次"reset"按钮,则清除按钮“X”不能全部清除,测试代码如下:

 <template>
  <div id="app">
    <v-region :town="true" :ui="true"
              @values="regionChange"
              :selected="selected">
    </v-region>
    <el-button @click="changeSelected">reset</el-button>
  </div>
</template>
<script>
  import Vue from 'vue'
  import vRegion from 'v-region';

  Vue.use(vRegion);

  export default {
    data() {
      return {
        selected: {
          province: '350000',
          city: '350100',
          area: '350104',
          town: '350104008'
        },
      };
    },
    methods: {
      regionChange(d) {
        console.log(2, d);
      },
      changeSelected() {
        console.log(0, JSON.stringify(this.selected))
        this.selected = {
          province: '350000',
          city: '350100',
          area: '350104',
          town: '350104008',
        }
        console.log(1, this.selected)
      },
    }
  }
</script>

下拉列表的层级

你好,点击下拉后,省市区选择框的 z-index 无法设置吗?
我用的dialog,点击选择后,省市区在dialog的下面,无法选择。

山东省济南市下缺少高新区选项

控件在使用时,没有山东省济南市下的高新区及其下面的街道信息数据;
但是,在搜索js时,在里面可以找到高新区下的街道数据;

help

如何用行政编码拿到对应行政单位名称

撤销莱芜市

由于莱芜市已并入济南市,希望更新插件!!

多级下拉选项全部完成后更换省份时县区和乡镇数据未清理并可选且返回错误数据

在第一次把下拉的四级选项全部选完后,变更省份级选项,发现乡镇级(第四级)选项还是上次的数据,并且这时候可以选择,返回的数据比如

{
    "province": {
        "key": "340000",
        "value": "安徽省"
    },
    "town": {
        "key": "210224102",
        "value": "广鹿岛镇"
    }
}

广鹿岛镇 本来是辽宁省大连市长海县的,把省份改成安徽之后,直接选乡镇,可以选出以上错误结果。

继续选择市(第二)级,第四级的数据依旧未更改,直接选第四级,依然可以选出如下错误结果

{
    "province": {
        "key": "340000",
        "value": "安徽省"
    },
    "city": {
        "key": "340500",
        "value": "马鞍山市"
    },
    "town": {
        "key": "210224102",
        "value": "广鹿岛镇"
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.