vary-ui 3.21.48 → 3.21.50
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-CNtlgmmL.js → Loading-CHvjzGBQ.js} +2 -2
- package/dist/{Wrap-B84wRFlE.js → Wrap-BQbRmjJj.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 +12 -10
- 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-D50IYVqE.js → _plugin-vue_export-helper-BEsJRPvd.js} +0 -0
- /package/dist/{config-BicdQ7EB.js → config-Twa_hIhN.js} +0 -0
- /package/dist/{utils-DJEK7NM_.js → utils-DIWiLPoW.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-BEsJRPvd.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-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-DIWiLPoW.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-BEsJRPvd.js';
|
|
5
|
+
import '../../config-Twa_hIhN.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-BEsJRPvd.js';
|
|
4
|
+
import '../../config-Twa_hIhN.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-DIWiLPoW.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-BQbRmjJj.js';
|
|
7
|
+
import { c as config } from '../../config-Twa_hIhN.js';
|
|
8
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-BEsJRPvd.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-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-BEsJRPvd.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-BQbRmjJj.js';
|
|
3
|
+
import { c as isFun } from '../../utils-DIWiLPoW.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-CHvjzGBQ.js';
|
|
3
|
+
import { c as config } from '../../config-Twa_hIhN.js';
|
|
4
|
+
import '../../_plugin-vue_export-helper-BEsJRPvd.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-DIWiLPoW.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-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-Twa_hIhN.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.js';
|
|
5
|
+
import '../../utils-DIWiLPoW.js';
|
|
6
6
|
import '../Popover/Popover.js';
|
|
7
|
-
import '../../Wrap-
|
|
7
|
+
import '../../Wrap-BQbRmjJj.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-CHvjzGBQ.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-DIWiLPoW.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-Twa_hIhN.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-BEsJRPvd.js';
|
|
4
|
+
import '../../config-Twa_hIhN.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-BEsJRPvd.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-DIWiLPoW.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-DIWiLPoW.js';
|
|
3
3
|
import Popover from '../Popover/Popover.js';
|
|
4
|
-
import { W as Wrap } from '../../Wrap-
|
|
4
|
+
import { W as Wrap } from '../../Wrap-BQbRmjJj.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-Twa_hIhN.js';
|
|
9
|
+
import { L as Loading } from '../../Loading-CHvjzGBQ.js';
|
|
10
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.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-BEsJRPvd.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-DIWiLPoW.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-BEsJRPvd.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-BEsJRPvd.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, reactive, shallowRef, 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-DIWiLPoW.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-Twa_hIhN.js';
|
|
7
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-BEsJRPvd.js';
|
|
8
8
|
|
|
9
9
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
props: {
|
|
@@ -79,7 +79,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
console.warn("Miss Rowkey Prop");
|
|
80
80
|
}
|
|
81
81
|
const rootRef = ref(null);
|
|
82
|
-
ref(0); // 主表的宽度, 需要同步到head的table
|
|
83
82
|
// 启用选中功能时, 保存选中的行key
|
|
84
83
|
const selectedRowMap = reactive({});
|
|
85
84
|
const showLeftShadow = ref(false); // 是否显示左浮动表格的阴影
|
|
@@ -100,7 +99,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
99
|
const scrollBodyLeftRef = shallowRef(null);
|
|
101
100
|
const scrollBodyRightRef = shallowRef(null);
|
|
102
101
|
const scrollBodyMainRef = shallowRef(null);
|
|
103
|
-
const debug = ref(false); // 是否显示调试信息
|
|
104
102
|
const showFixedColumn = ref(false); // 是否显示固定列
|
|
105
103
|
const sortFields = reactive(Object.assign({
|
|
106
104
|
prop: "",
|
|
@@ -276,14 +274,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
276
274
|
needWidth = 0;
|
|
277
275
|
flexColumnTotal = 0;
|
|
278
276
|
const thEles = headMainRef.value.querySelectorAll('th');
|
|
279
|
-
const tdEles = bodyMainRef.value.querySelector('tr').querySelectorAll('td');
|
|
277
|
+
// const tdEles = bodyMainRef.value.querySelector('tr').querySelectorAll('td');
|
|
278
|
+
const tdEles = bodyMainRef.value.querySelectorAll('col');
|
|
280
279
|
// 只计算需要的宽度
|
|
281
280
|
mainColumns.value.forEach((c, ci) => {
|
|
282
281
|
const th = thEles[ci].getBoundingClientRect();
|
|
283
282
|
const thWidth = th.width;
|
|
284
283
|
const td = tdEles[ci].getBoundingClientRect();
|
|
285
284
|
const tdWidth = td.width;
|
|
286
|
-
|
|
285
|
+
// console.log('td', tdEles[ci], tdWidth)
|
|
286
|
+
let maxWidth = Math.ceil(Math.max(thWidth, tdWidth));
|
|
287
287
|
if (c.prop === 'selection') {
|
|
288
288
|
c.width = maxWidth;
|
|
289
289
|
}
|
|
@@ -517,7 +517,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
517
517
|
_emit("cell-click", p);
|
|
518
518
|
}
|
|
519
519
|
return () => {
|
|
520
|
-
console.log('render');
|
|
521
520
|
const size = _props.size || config.size;
|
|
522
521
|
return createVNode("div", {
|
|
523
522
|
"ref": rootRef,
|
|
@@ -527,7 +526,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
527
526
|
"v_table--full-border": _props.border == 'full',
|
|
528
527
|
"v_table--enable_scroll": _props.scrollX,
|
|
529
528
|
'v_table--layout-fixed': defineWidth.value > 0,
|
|
530
|
-
'v_table--debug': debug
|
|
529
|
+
'v_table--debug': _attrs.debug !== undefined
|
|
531
530
|
}],
|
|
532
531
|
"onMouseleave": () => {
|
|
533
532
|
currentRowIndex.value = -1;
|
|
@@ -569,7 +568,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
569
568
|
}), createVNode(Scroll, {
|
|
570
569
|
"ref": scrollHeadMainRef,
|
|
571
570
|
"class": "v_table_head_main",
|
|
572
|
-
"showScrollX": false
|
|
571
|
+
"showScrollX": false,
|
|
572
|
+
"onScroll": e => {
|
|
573
|
+
scrollBodyMainRef.value && scrollBodyMainRef.value.scrollTo(e.left, 0);
|
|
574
|
+
}
|
|
573
575
|
}, {
|
|
574
576
|
default: () => [createVNode("table", {
|
|
575
577
|
"ref": headMainRef,
|
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-BEsJRPvd.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-Twa_hIhN.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-DIWiLPoW.js';
|
|
32
|
+
import { L as Loading } from './Loading-CHvjzGBQ.js';
|
|
33
|
+
import './Wrap-BQbRmjJj.js';
|
|
34
34
|
|
|
35
35
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
36
36
|
props: {
|
package/package.json
CHANGED
/package/dist/{_plugin-vue_export-helper-D50IYVqE.js → _plugin-vue_export-helper-BEsJRPvd.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|