vary-ui 3.21.60 → 3.21.61
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/dist/{Loading-BbLWtuW5.js → Loading-B77BLpR0.js} +2 -2
- package/dist/{Wrap-Bz5zyUL3.js → Wrap-CiLfWOx5.js} +1 -1
- package/dist/lib/Button/Button.js +2 -2
- package/dist/lib/Card/Card.js +2 -2
- package/dist/lib/Checkbox/Checkbox.js +2 -2
- package/dist/lib/CheckboxGroup/CheckboxGroup.js +3 -3
- package/dist/lib/Confirm/Confirm.js +2 -2
- package/dist/lib/Date/Date.js +4 -4
- package/dist/lib/Dialog/Dialog.js +1 -1
- package/dist/lib/Divider/Divider.js +1 -1
- package/dist/lib/Field/Field.js +2 -2
- package/dist/lib/Form/Form.js +1 -1
- package/dist/lib/Input/Input.js +3 -3
- package/dist/lib/Link/Link.js +2 -2
- package/dist/lib/Loading/Loading.js +3 -3
- package/dist/lib/Menu/Menu.js +2 -2
- package/dist/lib/Message/Message.js +2 -2
- package/dist/lib/Pagination/Pagination.js +5 -5
- package/dist/lib/Popover/Popover.js +2 -2
- package/dist/lib/Radio/Radio.js +2 -2
- package/dist/lib/RadioGroup/RadioGroup.js +2 -2
- package/dist/lib/Scene/Scene.js +1 -1
- package/dist/lib/Scroll/Scroll.js +2 -2
- package/dist/lib/Select/Select.js +5 -5
- package/dist/lib/Skeleton/Skeleton.js +1 -1
- package/dist/lib/Tab/Tab.js +2 -2
- package/dist/lib/TabPanel/TabPanel.js +1 -1
- package/dist/lib/Table/Table.js +27 -9
- package/dist/lib/TableColumn/TableColumn.js +1 -1
- package/dist/vary-ui.js +5 -5
- package/package.json +1 -1
- /package/dist/{_plugin-vue_export-helper-DHfgb4ce.js → _plugin-vue_export-helper-99LJS6sQ.js} +0 -0
- /package/dist/{config-me5lgqIx.js → config-B6AmLjb9.js} +0 -0
- /package/dist/{utils-C-seGVif.js → utils-AtwISkPO.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, createVNode } from 'vue';
|
|
2
|
-
import { c as config } from './config-
|
|
3
|
-
import { _ as _export_sfc } from './_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from './config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-99LJS6sQ.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-
|
|
2
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-99LJS6sQ.js';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createVNode } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
console.log(config);
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
package/dist/lib/Card/Card.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, inject, createVNode } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, provide, createVNode } from 'vue';
|
|
2
|
-
import { i as isArray } from '../../utils-
|
|
2
|
+
import { i as isArray } from '../../utils-AtwISkPO.js';
|
|
3
3
|
import Checkbox from '../Checkbox/Checkbox.js';
|
|
4
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
5
|
-
import '../../config-
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
5
|
+
import '../../config-B6AmLjb9.js';
|
|
6
6
|
|
|
7
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
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-
|
|
4
|
-
import '../../config-
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
|
+
import '../../config-B6AmLjb9.js';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
props: {
|
package/dist/lib/Date/Date.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { n as now, e as isTime, g as isYear, h as isMonth, d as isDate, f as isDateTime } from '../../utils-AtwISkPO.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-
|
|
7
|
-
import { c as config } from '../../config-
|
|
8
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
6
|
+
import { W as Wrap } from '../../Wrap-CiLfWOx5.js';
|
|
7
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
8
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
props: {
|
package/dist/lib/Field/Field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, createVNode } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
props: {
|
package/dist/lib/Form/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, provide, createVNode } from 'vue';
|
|
2
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
props: {
|
package/dist/lib/Input/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, createVNode, mergeProps } from 'vue';
|
|
2
|
-
import { W as Wrap } from '../../Wrap-
|
|
3
|
-
import { c as isFun } from '../../utils-
|
|
4
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { W as Wrap } from '../../Wrap-CiLfWOx5.js';
|
|
3
|
+
import { c as isFun } from '../../utils-AtwISkPO.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
inheritAttrs: false,
|
package/dist/lib/Link/Link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createVNode } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
3
|
-
import { c as config } from '../../config-
|
|
4
|
-
import '../../_plugin-vue_export-helper-
|
|
2
|
+
import { L as Loading } from '../../Loading-B77BLpR0.js';
|
|
3
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
4
|
+
import '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
5
5
|
|
|
6
6
|
const defaultOptions = {
|
|
7
7
|
lock: false,
|
package/dist/lib/Menu/Menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, createVNode } from 'vue';
|
|
2
|
-
import { k as debounce } from '../../utils-
|
|
2
|
+
import { k as debounce } from '../../utils-AtwISkPO.js';
|
|
3
3
|
import Scroll from '../Scroll/Scroll.js';
|
|
4
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = defineComponent({
|
|
6
6
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
4
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
5
|
-
import '../../utils-
|
|
3
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
5
|
+
import '../../utils-AtwISkPO.js';
|
|
6
6
|
import '../Popover/Popover.js';
|
|
7
|
-
import '../../Wrap-
|
|
7
|
+
import '../../Wrap-CiLfWOx5.js';
|
|
8
8
|
import '../Input/Input.js';
|
|
9
9
|
import '../Checkbox/Checkbox.js';
|
|
10
10
|
import '../Scroll/Scroll.js';
|
|
11
|
-
import '../../Loading-
|
|
11
|
+
import '../../Loading-B77BLpR0.js';
|
|
12
12
|
|
|
13
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
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-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { t as throttle } from '../../utils-AtwISkPO.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
props: {
|
package/dist/lib/Radio/Radio.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, createVNode, inject } from 'vue';
|
|
2
|
-
import { c as config } from '../../config-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, provide, createVNode } from 'vue';
|
|
2
2
|
import Radio from '../Radio/Radio.js';
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
4
|
-
import '../../config-
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
|
+
import '../../config-B6AmLjb9.js';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
props: {
|
package/dist/lib/Scene/Scene.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
3
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { k as debounce } from '../../utils-AtwISkPO.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* note:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, shallowRef, reactive, watch, createVNode, createTextVNode, isVNode, nextTick } from 'vue';
|
|
2
|
-
import { k as debounce } from '../../utils-
|
|
2
|
+
import { k as debounce } from '../../utils-AtwISkPO.js';
|
|
3
3
|
import Popover from '../Popover/Popover.js';
|
|
4
|
-
import { W as Wrap } from '../../Wrap-
|
|
4
|
+
import { W as Wrap } from '../../Wrap-CiLfWOx5.js';
|
|
5
5
|
import Input from '../Input/Input.js';
|
|
6
6
|
import Checkbox from '../Checkbox/Checkbox.js';
|
|
7
7
|
import Scroll from '../Scroll/Scroll.js';
|
|
8
|
-
import { c as config } from '../../config-
|
|
9
|
-
import { L as Loading } from '../../Loading-
|
|
10
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
8
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
9
|
+
import { L as Loading } from '../../Loading-B77BLpR0.js';
|
|
10
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
11
11
|
|
|
12
12
|
/******************************************************************************
|
|
13
13
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode } from 'vue';
|
|
2
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
props: {
|
package/dist/lib/Tab/Tab.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, onBeforeUnmount, createVNode } from 'vue';
|
|
2
|
-
import { m as matchChildrenCoponent } from '../../utils-
|
|
2
|
+
import { m as matchChildrenCoponent } from '../../utils-AtwISkPO.js';
|
|
3
3
|
import TabPanel from '../TabPanel/TabPanel.js';
|
|
4
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.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-
|
|
2
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
setup(_props, {
|
package/dist/lib/Table/Table.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, shallowRef, reactive, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
|
|
2
|
-
import { k as debounce, m as matchChildrenCoponent } from '../../utils-
|
|
2
|
+
import { k as debounce, m as matchChildrenCoponent } from '../../utils-AtwISkPO.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-
|
|
7
|
-
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-
|
|
6
|
+
import { c as config } from '../../config-B6AmLjb9.js';
|
|
7
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-99LJS6sQ.js';
|
|
8
8
|
|
|
9
9
|
let colKey = 0;
|
|
10
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -179,6 +179,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
179
179
|
const fixedRightColumns = ref([]);
|
|
180
180
|
const mainColumns = ref([]);
|
|
181
181
|
let mergeColumns = [];
|
|
182
|
+
/**
|
|
183
|
+
* 初始化表格, 初始化表格的列, 行数据
|
|
184
|
+
*/
|
|
182
185
|
function init() {
|
|
183
186
|
const list = JSON.parse(JSON.stringify([..._props.data])); // 先从data中获取
|
|
184
187
|
dataList.value = list;
|
|
@@ -261,10 +264,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
264
|
rowsHeight.value = rawHeightTmp;
|
|
262
265
|
}
|
|
263
266
|
const computedSizeDebounce = debounce(function () {
|
|
267
|
+
debug && console.log('computedSizeDebounce');
|
|
264
268
|
mapSize();
|
|
265
269
|
}, 200);
|
|
270
|
+
/**
|
|
271
|
+
* 计算组件最终的宽度
|
|
272
|
+
* 再计算各列宽度
|
|
273
|
+
*/
|
|
266
274
|
function mapSize() {
|
|
267
275
|
const rootWidth = rootRef.value.getBoundingClientRect().width;
|
|
276
|
+
debug && console.log('mapSize', needWidth, rootWidth);
|
|
268
277
|
const initTableWidth = Math.max(needWidth, rootWidth);
|
|
269
278
|
if (needWidth <= rootWidth) {
|
|
270
279
|
// 如果最大宽度小于根宽度, 则设置为根宽度
|
|
@@ -329,6 +338,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
329
338
|
let needWidth = 0; // 表格需要的宽度
|
|
330
339
|
let fixedWidthTotal = 0; // 固定列的总宽度
|
|
331
340
|
let flexColumnTotal = 0; // 可变列的总数量
|
|
341
|
+
/**
|
|
342
|
+
* 计算表格内容需要的实际宽度, 各列的最大宽度, 以及需要分配的列数
|
|
343
|
+
*/
|
|
332
344
|
function initStyle() {
|
|
333
345
|
var _a;
|
|
334
346
|
// 先计算表格各列的宽度
|
|
@@ -336,7 +348,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
348
|
needWidth = 0;
|
|
337
349
|
fixedWidthTotal = 0;
|
|
338
350
|
flexColumnTotal = 0;
|
|
339
|
-
const thEles = headMainRef.value.querySelectorAll('
|
|
351
|
+
const thEles = headMainRef.value.querySelectorAll('col');
|
|
340
352
|
// const tdEles = bodyMainRef.value.querySelector('tr').querySelectorAll('td');
|
|
341
353
|
const tdEles = ((_a = bodyMainRef.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll('col')) || [];
|
|
342
354
|
// 只计算需要的宽度
|
|
@@ -366,9 +378,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
366
378
|
c._maxWidth = maxWidth;
|
|
367
379
|
flexColumnTotal++;
|
|
368
380
|
}
|
|
369
|
-
|
|
381
|
+
debug && console.log('ci', ci, thEles[ci], tdEles[ci], thWidth, tdWidth, 'maxWidth', maxWidth, needWidth);
|
|
370
382
|
});
|
|
371
|
-
|
|
383
|
+
debug && console.log('initStyle result', needWidth, fixedWidthTotal, flexColumnTotal);
|
|
372
384
|
}
|
|
373
385
|
/**
|
|
374
386
|
* 选中状态发生变化时, 更新selection
|
|
@@ -444,15 +456,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
444
456
|
init();
|
|
445
457
|
nextTick(() => {
|
|
446
458
|
initStyle();
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
459
|
+
setTimeout(() => {
|
|
460
|
+
if (rootRef.value) {
|
|
461
|
+
ro.observe(rootRef.value);
|
|
462
|
+
}
|
|
463
|
+
}, 1000);
|
|
450
464
|
});
|
|
451
465
|
});
|
|
452
466
|
watch(() => _props.data, () => {
|
|
453
467
|
init();
|
|
468
|
+
colsWidth.value = [];
|
|
469
|
+
defineWidth.value = 0;
|
|
454
470
|
nextTick(() => {
|
|
455
471
|
initStyle();
|
|
472
|
+
mapSize();
|
|
456
473
|
});
|
|
457
474
|
}, {
|
|
458
475
|
deep: true
|
|
@@ -461,6 +478,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
461
478
|
init();
|
|
462
479
|
nextTick(() => {
|
|
463
480
|
initStyle();
|
|
481
|
+
mapSize();
|
|
464
482
|
});
|
|
465
483
|
}, {
|
|
466
484
|
deep: true
|
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, createApp, h } from 'vue';
|
|
20
|
-
import { _ as _export_sfc } from './_plugin-vue_export-helper-
|
|
20
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-99LJS6sQ.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';
|
|
@@ -27,10 +27,10 @@ import RadioGroup from './lib/RadioGroup/RadioGroup.js';
|
|
|
27
27
|
export { default as Message } from './lib/Message/Message.js';
|
|
28
28
|
export { default as Confirm } from './lib/Confirm/Confirm.js';
|
|
29
29
|
import './lib/Loading/Loading.js';
|
|
30
|
-
import { c as config, s as setConfig } from './config-
|
|
31
|
-
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-
|
|
32
|
-
import { L as Loading } from './Loading-
|
|
33
|
-
import './Wrap-
|
|
30
|
+
import { c as config, s as setConfig } from './config-B6AmLjb9.js';
|
|
31
|
+
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-AtwISkPO.js';
|
|
32
|
+
import { L as Loading } from './Loading-B77BLpR0.js';
|
|
33
|
+
import './Wrap-CiLfWOx5.js';
|
|
34
34
|
|
|
35
35
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
36
36
|
props: {
|
package/package.json
CHANGED
/package/dist/{_plugin-vue_export-helper-DHfgb4ce.js → _plugin-vue_export-helper-99LJS6sQ.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|