@opentinyvue/vue-tree-menu 3.21.0 → 3.22.1

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/lib/index.js CHANGED
@@ -212,10 +212,11 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
212
212
  "onUpdate:modelValue": _cache[1] || (_cache[1] = function($event) {
213
213
  return _ctx.state.filterText = $event;
214
214
  }),
215
+ class: normalizeClass((_ctx.state.isExpand || _ctx.state.isCollapsed) && "is-hidden"),
215
216
  placeholder: _ctx.placeholder || _ctx.t("ui.treeMenu.placeholder"),
216
217
  "prefix-icon": _ctx.searchIcon,
217
218
  clearable: _ctx.state.clearable
218
- }, null, 8, ["modelValue", "placeholder", "prefix-icon", "clearable"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tree, {
219
+ }, null, 8, ["modelValue", "class", "placeholder", "prefix-icon", "clearable"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_tree, {
219
220
  ref: "tree",
220
221
  class: normalizeClass({
221
222
  "tiny-tree-menu__wrap": !_ctx.ellipsis ? _ctx.wrap : false,
@@ -300,7 +301,7 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
300
301
  );
301
302
  }
302
303
  var TreeMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
303
- var version = "3.21.0";
304
+ var version = "3.undefined";
304
305
  TreeMenu.install = function(Vue) {
305
306
  Vue.component(TreeMenu.name, TreeMenu);
306
307
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-tree-menu",
3
- "version": "3.21.0",
3
+ "version": "3.22.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-input": "~3.21.0",
13
- "@opentinyvue/vue-tree": "~3.21.0",
14
- "@opentinyvue/vue-theme": "~3.21.0",
15
- "@opentinyvue/vue-icon": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~3.22.0",
11
+ "@opentinyvue/vue-renderless": "~3.22.0",
12
+ "@opentinyvue/vue-input": "~3.22.0",
13
+ "@opentinyvue/vue-tree": "~3.22.0",
14
+ "@opentinyvue/vue-theme": "~3.22.0",
15
+ "@opentinyvue/vue-icon": "~3.22.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts",
package/src/pc.vue.d.ts CHANGED
@@ -228,15 +228,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
228
228
  }, {
229
229
  ellipsis: boolean;
230
230
  checkStrictly: boolean;
231
+ lazy: boolean;
231
232
  tiny_mode_root: boolean;
232
233
  showTitle: boolean;
233
234
  clearable: boolean;
234
235
  placeholder: string;
236
+ draggable: boolean;
235
237
  wrap: boolean;
236
238
  defaultExpandAll: boolean;
237
- lazy: boolean;
238
239
  accordion: boolean;
239
- draggable: boolean;
240
240
  emptyText: string;
241
241
  expandOnClickNode: boolean;
242
242
  indent: number;