vue-lazy-cascader 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,15 +24,25 @@ yarn add vue-lazy-cascader
24
24
  pnpm install vue-lazy-cascader --save
25
25
  ```
26
26
 
27
+ ## Changelog
28
+ [更新日志](./CHANGELOG.md)
29
+
27
30
  ## Usage
28
31
 
29
- - [es模块示例](./src/components/VueLazyCascaderExample.vue)
32
+ - es模块示例
33
+ - [代码](./src/components/VueLazyCascaderExample.vue)
34
+
35
+ - [demo](https://jyj1202.github.io/vue-lazy-cascader/)
30
36
 
31
37
  ```javascript
32
38
  import VueLazyCascader from "vue-lazy-cascader";
33
39
  ```
34
40
 
35
- - [直接script引入示例](./example/index.html)
41
+
42
+ - 直接script引入示例
43
+ - [代码](./public/vue-lazy-cascader.html)
44
+
45
+ - [demo](https://jyj1202.github.io/vue-lazy-cascader/vue-lazy-cascader.html)
36
46
 
37
47
  ## Tip
38
48
  - 由于该组件并未打包element-ui相关组件,所以使用时,必须已经安装element-ui。
@@ -1606,7 +1606,7 @@ if (typeof window !== 'undefined') {
1606
1606
  // Indicate to webpack that this file can be concatenated
1607
1607
  /* harmony default export */ var setPublicPath = (null);
1608
1608
 
1609
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@6.11.0_vue-template-compiler@2.6.14_webpack@5.91.0/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@6.11.0_vue-template-compiler@2.6.14_webpack@5.91.0/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/cascader/src/cascader.vue?vue&type=template&id=9227611e
1609
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@6.11.0_vue-template-compiler@2.6.14_webpack@5.91.0/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@6.11.0_vue-template-compiler@2.6.14_webpack@5.91.0/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/cascader/src/cascader.vue?vue&type=template&id=2dd9cd90
1610
1610
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(function () { return _vm.toggleDropDownVisible(false); }),expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:[
1611
1611
  'el-cascader',
1612
1612
  _vm.realSize && ("el-cascader--" + _vm.realSize),
@@ -7381,7 +7381,10 @@ const InputSizeMap = {
7381
7381
  */
7382
7382
  remoteSearchResolve(inputValue) {
7383
7383
  const resolve = data => {
7384
- if (isEmpty(data)) return;
7384
+ if (isEmpty(data)) {
7385
+ this.getSuggestions();
7386
+ return;
7387
+ }
7385
7388
  // 1.获取已经加载的节点value list
7386
7389
  const loadedFlattedNodesVals = this.panel.getFlattedNodes(false).map(n => n.value);
7387
7390