vary-ui 3.22.6 → 3.22.7

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.
Files changed (36) hide show
  1. package/dist/{Loading-D2EKKVv8.js → Loading-DHBUHbEf.js} +2 -2
  2. package/dist/{Wrap-COnCnup_.js → Wrap-BTaVaBPq.js} +1 -1
  3. package/dist/lib/Button/Button.js +2 -2
  4. package/dist/lib/Card/Card.js +2 -2
  5. package/dist/lib/Checkbox/Checkbox.js +2 -2
  6. package/dist/lib/CheckboxGroup/CheckboxGroup.js +2 -2
  7. package/dist/lib/Confirm/Confirm.js +2 -2
  8. package/dist/lib/Date/Date.js +4 -4
  9. package/dist/lib/Dialog/Dialog.js +1 -1
  10. package/dist/lib/Divider/Divider.js +1 -1
  11. package/dist/lib/Form/Form.js +2 -2
  12. package/dist/lib/FormItem/FormItem.js +3 -3
  13. package/dist/lib/Input/Input.js +4 -4
  14. package/dist/lib/Link/Link.js +2 -2
  15. package/dist/lib/Loading/Loading.js +3 -3
  16. package/dist/lib/Menu/Menu.js +2 -2
  17. package/dist/lib/Message/Message.js +2 -2
  18. package/dist/lib/Pagination/Pagination.js +6 -6
  19. package/dist/lib/Popover/Popover.js +2 -2
  20. package/dist/lib/Radio/Radio.js +2 -2
  21. package/dist/lib/RadioButton/RadioButton.js +2 -2
  22. package/dist/lib/RadioGroup/RadioGroup.js +1 -1
  23. package/dist/lib/Scene/Scene.js +1 -1
  24. package/dist/lib/Scroll/Scroll.js +2 -2
  25. package/dist/lib/Select/Select.js +6 -6
  26. package/dist/lib/Skeleton/Skeleton.js +1 -1
  27. package/dist/lib/Tab/Tab.js +2 -2
  28. package/dist/lib/TabPanel/TabPanel.js +1 -1
  29. package/dist/lib/Table/Table.js +34 -26
  30. package/dist/lib/TableColumn/TableColumn.js +1 -1
  31. package/dist/vary-ui.js +6 -6
  32. package/package.json +1 -1
  33. /package/dist/{_plugin-vue_export-helper-DgG6qUS3.js → _plugin-vue_export-helper-D-x43h3i.js} +0 -0
  34. /package/dist/{_tslib-DQRjy92I.js → _tslib-Cr-cI6Nu.js} +0 -0
  35. /package/dist/{config-DPPlVIeO.js → config-BP1eDKTh.js} +0 -0
  36. /package/dist/{utils-DlFoypiE.js → utils-BKZVDLCZ.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, onMounted, createVNode } from 'vue';
2
- import { c as config } from './config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from './_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from './config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _a;
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from './_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
3
  import { Icon } from '@iconify/vue';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, createVNode, createTextVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, ref, createVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, provide, computed, createVNode } from 'vue';
2
- import { i as isArray } from '../../utils-DlFoypiE.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { i as isArray } from '../../utils-BKZVDLCZ.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, createVNode, createApp, h } from 'vue';
2
2
  import Button from '../Button/Button.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
4
- import '../../config-DPPlVIeO.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
+ import '../../config-BP1eDKTh.js';
5
5
  import '@iconify/vue';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, shallowRef, ref, reactive, watch, createVNode, createTextVNode } from 'vue';
2
- import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-DlFoypiE.js';
2
+ import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-BKZVDLCZ.js';
3
3
  import Popover from '../Popover/Popover.js';
4
4
  import Scroll from '../Scroll/Scroll.js';
5
5
  import Link from '../Link/Link.js';
6
- import { W as Wrap } from '../../Wrap-COnCnup_.js';
7
- import { c as config } from '../../config-DPPlVIeO.js';
8
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
6
+ import { W as Wrap } from '../../Wrap-BTaVaBPq.js';
7
+ import { c as config } from '../../config-BP1eDKTh.js';
8
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
9
9
 
10
10
  const weeks = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
11
11
  const months = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"].map((r, i) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, onMounted, onBeforeUnmount, createVNode, createTextVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-DQRjy92I.js';
2
+ import { _ as __awaiter } from '../../_tslib-Cr-cI6Nu.js';
3
3
  import Schema from 'async-validator';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, inject, computed, ref, onMounted, onUnmounted, provide, createVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-DQRjy92I.js';
3
- import { c as config } from '../../config-DPPlVIeO.js';
2
+ import { _ as __awaiter } from '../../_tslib-Cr-cI6Nu.js';
3
+ import { c as config } from '../../config-BP1eDKTh.js';
4
4
  import Schema from 'async-validator';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, inject, watch, createVNode } from 'vue';
2
- import { W as Wrap } from '../../Wrap-COnCnup_.js';
3
- import { c as isFun } from '../../utils-DlFoypiE.js';
4
- import { c as config } from '../../config-DPPlVIeO.js';
5
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { W as Wrap } from '../../Wrap-BTaVaBPq.js';
3
+ import { c as isFun } from '../../utils-BKZVDLCZ.js';
4
+ import { c as config } from '../../config-BP1eDKTh.js';
5
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { shallowRef, createApp, h } from 'vue';
2
- import { L as Loading } from '../../Loading-D2EKKVv8.js';
3
- import { c as config } from '../../config-DPPlVIeO.js';
4
- import '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { L as Loading } from '../../Loading-DHBUHbEf.js';
3
+ import { c as config } from '../../config-BP1eDKTh.js';
4
+ import '../../_plugin-vue_export-helper-D-x43h3i.js';
5
5
 
6
6
  const defaultOptions = {
7
7
  lock: false,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, createVNode } from 'vue';
2
- import { k as debounce } from '../../utils-DlFoypiE.js';
2
+ import { k as debounce } from '../../utils-BKZVDLCZ.js';
3
3
  import Scroll from '../Scroll/Scroll.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, h, createApp } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = defineComponent({
6
6
  props: {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent, ref, watch, createVNode, createTextVNode } from 'vue';
2
2
  import Select from '../Select/Select.js';
3
- import { c as config } from '../../config-DPPlVIeO.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
5
- import '../../_tslib-DQRjy92I.js';
6
- import '../../utils-DlFoypiE.js';
3
+ import { c as config } from '../../config-BP1eDKTh.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
5
+ import '../../_tslib-Cr-cI6Nu.js';
6
+ import '../../utils-BKZVDLCZ.js';
7
7
  import '../Popover/Popover.js';
8
- import '../../Wrap-COnCnup_.js';
8
+ import '../../Wrap-BTaVaBPq.js';
9
9
  import '../Input/Input.js';
10
10
  import '../Checkbox/Checkbox.js';
11
11
  import '../Scroll/Scroll.js';
12
- import '../../Loading-D2EKKVv8.js';
12
+ import '../../Loading-DHBUHbEf.js';
13
13
 
14
14
  var _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, shallowRef, ref, watch, onMounted, onBeforeUnmount, createVNode, nextTick } from 'vue';
2
- import { t as throttle } from '../../utils-DlFoypiE.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { t as throttle } from '../../utils-BKZVDLCZ.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, computed, createVNode } from 'vue';
2
- import { c as config } from '../../config-DPPlVIeO.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { c as config } from '../../config-BP1eDKTh.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, provide, computed, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, renderSlot } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /*@__PURE__*/ defineComponent({
5
5
  __name: 'Scene',
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, shallowRef, ref, onMounted, nextTick, onBeforeUnmount, createVNode } from 'vue';
2
- import { k as debounce } from '../../utils-DlFoypiE.js';
3
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { k as debounce } from '../../utils-BKZVDLCZ.js';
3
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
4
4
 
5
5
  /**
6
6
  * note:
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, ref, shallowRef, reactive, watch, onMounted, createVNode, createTextVNode, nextTick, isVNode } from 'vue';
2
- import { _ as __awaiter } from '../../_tslib-DQRjy92I.js';
3
- import { i as isArray, a as isObject, k as debounce } from '../../utils-DlFoypiE.js';
2
+ import { _ as __awaiter } from '../../_tslib-Cr-cI6Nu.js';
3
+ import { i as isArray, a as isObject, k as debounce } from '../../utils-BKZVDLCZ.js';
4
4
  import Popover from '../Popover/Popover.js';
5
- import { W as Wrap } from '../../Wrap-COnCnup_.js';
5
+ import { W as Wrap } from '../../Wrap-BTaVaBPq.js';
6
6
  import Input from '../Input/Input.js';
7
7
  import Checkbox from '../Checkbox/Checkbox.js';
8
8
  import Scroll from '../Scroll/Scroll.js';
9
- import { c as config } from '../../config-DPPlVIeO.js';
10
- import { L as Loading } from '../../Loading-D2EKKVv8.js';
11
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
9
+ import { c as config } from '../../config-BP1eDKTh.js';
10
+ import { L as Loading } from '../../Loading-DHBUHbEf.js';
11
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
12
12
 
13
13
  /**
14
14
  关于远程搜索:
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, onBeforeUnmount, createVNode } from 'vue';
2
- import { m as matchChildrenCoponent } from '../../utils-DlFoypiE.js';
2
+ import { m as matchChildrenCoponent } from '../../utils-BKZVDLCZ.js';
3
3
  import TabPanel from '../TabPanel/TabPanel.js';
4
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
4
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
5
5
 
6
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createVNode } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  setup(_props, {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, shallowRef, reactive, computed, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
2
- import { k as debounce, m as matchChildrenCoponent, t as throttle } from '../../utils-DlFoypiE.js';
2
+ import { k as debounce, m as matchChildrenCoponent, t as throttle } from '../../utils-BKZVDLCZ.js';
3
3
  import Checkbox from '../Checkbox/Checkbox.js';
4
4
  import Scroll from '../Scroll/Scroll.js';
5
5
  import TableColumn from '../TableColumn/TableColumn.js';
6
- import { c as config } from '../../config-DPPlVIeO.js';
7
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
6
+ import { c as config } from '../../config-BP1eDKTh.js';
7
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
8
8
 
9
9
  let colKey = 0;
10
10
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -496,8 +496,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
496
496
  function emitSelectionChange() {
497
497
  debug && console.log("emitSelectionChange", selectedRowMap.value);
498
498
  const selection = Object.values(selectedRowMap.value);
499
+ const partial = Object.values(partialRowMap.value);
499
500
  _emit("update:selection", selection);
500
- _emit("selection-change", selection);
501
+ _emit("selection-change", selection, partial);
502
+ }
503
+ function findChildrenAndSelect(data, select) {
504
+ for (const row of data) {
505
+ const rowKey = getRowKey(row);
506
+ if (select) {
507
+ selectedRowMap.value[rowKey] = row;
508
+ } else {
509
+ delete selectedRowMap.value[rowKey];
510
+ }
511
+ if (_props.bindLevel) {
512
+ const children = processedData.value.filter(d => d._parentId == rowKey);
513
+ if (children.length > 0) {
514
+ findChildrenAndSelect(children, select);
515
+ }
516
+ }
517
+ }
501
518
  }
502
519
  function upperUpdate() {
503
520
  // 向上遍历更新
@@ -567,24 +584,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
567
584
  // 添加选中
568
585
  findChildrenAndSelect([row], true);
569
586
  }
587
+ upperUpdate();
570
588
  emitSelectionChange();
571
589
  }
572
- function findChildrenAndSelect(data, select) {
573
- for (const row of data) {
574
- const rowKey = getRowKey(row);
575
- if (select) {
576
- selectedRowMap.value[rowKey] = row;
577
- } else {
578
- delete selectedRowMap.value[rowKey];
579
- }
580
- if (_props.bindLevel) {
581
- const children = processedData.value.filter(d => d._parentId == rowKey);
582
- if (children.length > 0) {
583
- findChildrenAndSelect(children, select);
584
- }
585
- }
586
- }
587
- }
588
590
  /**
589
591
  * 设置某一行的选中状态
590
592
  * @param row 行数据
@@ -592,12 +594,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
592
594
  * @param clearAll 是否清空所有选中的行
593
595
  */
594
596
  function setRowSelection(row, selected) {
595
- getRowKey(row);
596
597
  if (selected) {
597
598
  findChildrenAndSelect([row], true);
598
599
  } else {
599
600
  findChildrenAndSelect([row], false);
600
601
  }
602
+ upperUpdate();
601
603
  emitSelectionChange();
602
604
  }
603
605
  /**
@@ -762,6 +764,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
762
764
  });
763
765
  onMounted(() => {
764
766
  initData();
767
+ console.log("watch data 1", _props.autoExpandAll);
768
+ if (_props.autoExpandAll) {
769
+ expandAll();
770
+ }
765
771
  // 如果selection不为空, 则更新selectedRowMap
766
772
  if (_props.selection.length > 0) {
767
773
  findChildrenAndSelect(_props.selection, true);
@@ -772,13 +778,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
772
778
  if (rootRef.value) {
773
779
  ro.observe(rootRef.value);
774
780
  }
775
- if (_props.autoExpandAll) {
776
- expandAll();
777
- }
778
781
  });
779
782
  });
780
783
  watch(() => _props.data, () => {
781
784
  initData();
785
+ console.log("watch data 2", _props.autoExpandAll);
786
+ if (_props.autoExpandAll) {
787
+ expandAll();
788
+ }
789
+ selectedRowMap.value = {};
790
+ partialRowMap.value = {};
782
791
  if (_props.selection.length > 0) {
783
792
  findChildrenAndSelect(_props.selection, true);
784
793
  upperUpdate();
@@ -860,7 +869,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
860
869
  // 取消全选
861
870
  toggleAllSelection(false);
862
871
  }
863
- _emit("selection-change", Object.values(selectedRowMap.value));
872
+ emitSelectionChange();
864
873
  }
865
874
  }, null);
866
875
  } else {
@@ -1102,7 +1111,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1102
1111
  toggleRowSelection(row);
1103
1112
  }
1104
1113
  }
1105
- upperUpdate();
1106
1114
  _emit("row-click", Object.assign(Object.assign({}, p), {
1107
1115
  cell: p.row[p.column.prop],
1108
1116
  $event: e
@@ -1,5 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DgG6qUS3.js';
2
+ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-D-x43h3i.js';
3
3
 
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  props: {
package/dist/vary-ui.js CHANGED
@@ -17,7 +17,7 @@ import Scroll from './lib/Scroll/Scroll.js';
17
17
  import Select from './lib/Select/Select.js';
18
18
  import Skeleton from './lib/Skeleton/Skeleton.js';
19
19
  import { defineComponent, ref, watch, createVNode, onMounted, onBeforeUnmount, createTextVNode } from 'vue';
20
- import { _ as _export_sfc } from './_plugin-vue_export-helper-DgG6qUS3.js';
20
+ import { _ as _export_sfc } from './_plugin-vue_export-helper-D-x43h3i.js';
21
21
  import Tab from './lib/Tab/Tab.js';
22
22
  import Table from './lib/Table/Table.js';
23
23
  import TableColumn from './lib/TableColumn/TableColumn.js';
@@ -30,11 +30,11 @@ import createConfirm from './lib/Confirm/Confirm.js';
30
30
  import './lib/Loading/Loading.js';
31
31
  import { Icon } from '@iconify/vue';
32
32
  export { Icon } from '@iconify/vue';
33
- export { k as debounce, i as isArray, b as isBoolean, d as isDate, f as isDateTime, c as isFun, h as isMonth, j as isNumber, a as isObject, e as isTime, g as isYear, m as matchChildrenCoponent, n as now, t as throttle } from './utils-DlFoypiE.js';
34
- import { s as setConfig } from './config-DPPlVIeO.js';
35
- import { L as Loading } from './Loading-D2EKKVv8.js';
36
- import './Wrap-COnCnup_.js';
37
- import './_tslib-DQRjy92I.js';
33
+ export { k as debounce, i as isArray, b as isBoolean, d as isDate, f as isDateTime, c as isFun, h as isMonth, j as isNumber, a as isObject, e as isTime, g as isYear, m as matchChildrenCoponent, n as now, t as throttle } from './utils-BKZVDLCZ.js';
34
+ import { s as setConfig } from './config-BP1eDKTh.js';
35
+ import { L as Loading } from './Loading-DHBUHbEf.js';
36
+ import './Wrap-BTaVaBPq.js';
37
+ import './_tslib-Cr-cI6Nu.js';
38
38
  import 'async-validator';
39
39
 
40
40
  var _sfc_main$2 = /* @__PURE__ */ defineComponent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vary-ui",
3
- "version": "3.22.6",
3
+ "version": "3.22.7",
4
4
  "description": "vary-ui base vue3",
5
5
  "homepage": "https://varyui.com",
6
6
  "main": "dist/vary-ui.js",
File without changes
File without changes
File without changes