widget.qw 1.0.87 → 1.0.88

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.
@@ -22417,6 +22417,10 @@ const _sfc_main$2 = {
22417
22417
  onMounted(() => {
22418
22418
  });
22419
22419
  const onSelect = (node) => {
22420
+ if (!node) {
22421
+ emit("select", null);
22422
+ return;
22423
+ }
22420
22424
  if (!props.multiple) {
22421
22425
  data2.selectedNodes = [node];
22422
22426
  emit("select", data2.selectedNodes[0]);
@@ -22420,6 +22420,10 @@ var __async = (__this, __arguments, generator) => {
22420
22420
  vue.onMounted(() => {
22421
22421
  });
22422
22422
  const onSelect = (node) => {
22423
+ if (!node) {
22424
+ emit("select", null);
22425
+ return;
22426
+ }
22423
22427
  if (!props.multiple) {
22424
22428
  data2.selectedNodes = [node];
22425
22429
  emit("select", data2.selectedNodes[0]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.87",
4
+ "version": "1.0.88",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -86,6 +86,11 @@ onMounted(() => {
86
86
  })
87
87
 
88
88
  const onSelect = (node) => {
89
+ if(!node){
90
+ emit('select', null)
91
+ return
92
+ }
93
+
89
94
  if (!props.multiple) {
90
95
  data.selectedNodes = [node]
91
96
  emit('select', data.selectedNodes[0])
Binary file