vary-ui 3.21.59 → 3.21.60
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-cd6nLjLn.js → Loading-BbLWtuW5.js} +2 -2
- package/dist/{Wrap-BXw4DS1q.js → Wrap-Bz5zyUL3.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 -3
- 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 +30 -53
- package/dist/lib/TableColumn/TableColumn.js +1 -1
- package/dist/types/lib/Table/Table.vue.d.ts +0 -36
- package/dist/vary-ui.js +5 -5
- package/package.json +1 -1
- /package/dist/{_plugin-vue_export-helper-CzElMObC.js → _plugin-vue_export-helper-DHfgb4ce.js} +0 -0
- /package/dist/{config-ChShjSUx.js → config-me5lgqIx.js} +0 -0
- /package/dist/{utils-B_6DLEXZ.js → utils-C-seGVif.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-DHfgb4ce.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-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-C-seGVif.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-DHfgb4ce.js';
|
|
5
|
+
import '../../config-me5lgqIx.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-DHfgb4ce.js';
|
|
4
|
+
import '../../config-me5lgqIx.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-C-seGVif.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-Bz5zyUL3.js';
|
|
7
|
+
import { c as config } from '../../config-me5lgqIx.js';
|
|
8
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-DHfgb4ce.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-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-DHfgb4ce.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-Bz5zyUL3.js';
|
|
3
|
+
import { c as isFun } from '../../utils-C-seGVif.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-BbLWtuW5.js';
|
|
3
|
+
import { c as config } from '../../config-me5lgqIx.js';
|
|
4
|
+
import '../../_plugin-vue_export-helper-DHfgb4ce.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-C-seGVif.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-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-me5lgqIx.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.js';
|
|
5
|
+
import '../../utils-C-seGVif.js';
|
|
6
6
|
import '../Popover/Popover.js';
|
|
7
|
-
import '../../Wrap-
|
|
7
|
+
import '../../Wrap-Bz5zyUL3.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-BbLWtuW5.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-C-seGVif.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-me5lgqIx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-DHfgb4ce.js';
|
|
4
|
+
import '../../config-me5lgqIx.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-DHfgb4ce.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-C-seGVif.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* note:
|
|
@@ -57,7 +57,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
emit: _emit,
|
|
58
58
|
expose: _expose
|
|
59
59
|
}) {
|
|
60
|
-
// console.log(_slots.default())
|
|
61
60
|
const rootRef = shallowRef(null);
|
|
62
61
|
const bodyRef = shallowRef(null);
|
|
63
62
|
const thumbXRef = shallowRef(null);
|
|
@@ -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-C-seGVif.js';
|
|
3
3
|
import Popover from '../Popover/Popover.js';
|
|
4
|
-
import { W as Wrap } from '../../Wrap-
|
|
4
|
+
import { W as Wrap } from '../../Wrap-Bz5zyUL3.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-me5lgqIx.js';
|
|
9
|
+
import { L as Loading } from '../../Loading-BbLWtuW5.js';
|
|
10
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.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-DHfgb4ce.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-C-seGVif.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-DHfgb4ce.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-DHfgb4ce.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
|
-
import { defineComponent,
|
|
2
|
-
import { k as debounce, m as matchChildrenCoponent } from '../../utils-
|
|
1
|
+
import { defineComponent, ref, shallowRef, reactive, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { k as debounce, m as matchChildrenCoponent } from '../../utils-C-seGVif.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-me5lgqIx.js';
|
|
7
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-DHfgb4ce.js';
|
|
8
8
|
|
|
9
9
|
let colKey = 0;
|
|
10
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -69,26 +69,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
type: String,
|
|
70
70
|
default: ""
|
|
71
71
|
},
|
|
72
|
-
maxHeight: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: ""
|
|
75
|
-
},
|
|
76
|
-
minHeight: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: ""
|
|
79
|
-
},
|
|
80
72
|
width: {
|
|
81
73
|
type: String,
|
|
82
74
|
default: ""
|
|
83
75
|
},
|
|
84
|
-
maxWidth: {
|
|
85
|
-
type: String,
|
|
86
|
-
default: ""
|
|
87
|
-
},
|
|
88
|
-
minWidth: {
|
|
89
|
-
type: String,
|
|
90
|
-
default: ""
|
|
91
|
-
},
|
|
92
76
|
autoSelectRowOnClick: {
|
|
93
77
|
type: Boolean,
|
|
94
78
|
default: false
|
|
@@ -135,22 +119,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
119
|
attrs: _attrs,
|
|
136
120
|
expose: _expose
|
|
137
121
|
}) {
|
|
138
|
-
|
|
139
|
-
const openDebug = _attrs.debug !== undefined; // 只要不是undefined就设置为true
|
|
122
|
+
const debug = _attrs.debug !== undefined; // 只要不是undefined就设置为true
|
|
140
123
|
const rootRef = ref(null);
|
|
141
124
|
// 启用选中功能时, 保存选中的行key
|
|
142
125
|
const selectedRowMap = ref({});
|
|
143
|
-
|
|
144
|
-
console.log('updateSelectedRowMap', selection);
|
|
126
|
+
function updateSelectedRowMap(selection) {
|
|
145
127
|
selectedRowMap.value = {}; // 清空selectedRowMap
|
|
146
128
|
selection.forEach(r => {
|
|
147
129
|
const key = getRowKey(r);
|
|
148
130
|
selectedRowMap.value[key] = r;
|
|
149
131
|
});
|
|
150
|
-
}
|
|
132
|
+
}
|
|
151
133
|
// 如果selection不为空, 则更新selectedRowMap
|
|
152
134
|
if (_props.selection.length > 0) {
|
|
153
|
-
updateSelectedRowMap();
|
|
135
|
+
updateSelectedRowMap(_props.selection);
|
|
154
136
|
}
|
|
155
137
|
const showLeftShadow = ref(false); // 是否显示左浮动表格的阴影
|
|
156
138
|
const showRightShadow = ref(false); // 是否显示右浮动表格的阴影
|
|
@@ -283,7 +265,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
265
|
}, 200);
|
|
284
266
|
function mapSize() {
|
|
285
267
|
const rootWidth = rootRef.value.getBoundingClientRect().width;
|
|
286
|
-
console.log(rootRef.value);
|
|
287
268
|
const initTableWidth = Math.max(needWidth, rootWidth);
|
|
288
269
|
if (needWidth <= rootWidth) {
|
|
289
270
|
// 如果最大宽度小于根宽度, 则设置为根宽度
|
|
@@ -295,14 +276,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
276
|
showFixedColumn.value = true; // 固定列显示
|
|
296
277
|
showRightShadow.value = true; // 右边阴影显示
|
|
297
278
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
279
|
+
debug && console.log('各列原宽度', mainColumns.value.map(c => c._maxWidth + 'px'));
|
|
280
|
+
debug && console.log('视图宽度', rootWidth);
|
|
281
|
+
debug && console.log('表格需要的宽度', needWidth);
|
|
282
|
+
debug && console.log('最终使用的宽度', initTableWidth);
|
|
283
|
+
debug && console.log('固定列的总宽度', fixedWidthTotal);
|
|
284
|
+
debug && console.log('需要分配的宽度', initTableWidth - needWidth);
|
|
285
|
+
debug && console.log('需要分配的列数', flexColumnTotal);
|
|
286
|
+
debug && console.log('每列需要增加的宽度', Math.floor((initTableWidth - needWidth) / flexColumnTotal));
|
|
306
287
|
const splitWidth = Math.floor((initTableWidth - needWidth) / flexColumnTotal);
|
|
307
288
|
defineWidth.value = initTableWidth;
|
|
308
289
|
nextTick(() => {
|
|
@@ -326,7 +307,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
326
307
|
total += parseInt(colWidthTmp[ci] + '');
|
|
327
308
|
// console.log(ci, thEles[ci], tdEles[ci], thWidth, tdWidth, colWidthTmp[ci])
|
|
328
309
|
});
|
|
329
|
-
|
|
310
|
+
debug && console.log('colWidthTmp', colWidthTmp, total, initTableWidth);
|
|
330
311
|
if (total < initTableWidth) {
|
|
331
312
|
// 如果计算的总宽度小于预想宽度
|
|
332
313
|
const index = mainColumns.value.findIndex(c => !c.width); // 找到第一个没有width的列
|
|
@@ -469,7 +450,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
469
450
|
});
|
|
470
451
|
});
|
|
471
452
|
watch(() => _props.data, () => {
|
|
472
|
-
console.log('data changed');
|
|
473
453
|
init();
|
|
474
454
|
nextTick(() => {
|
|
475
455
|
initStyle();
|
|
@@ -486,7 +466,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
486
466
|
deep: true
|
|
487
467
|
});
|
|
488
468
|
watch(() => _props.selection, (newVal, oldVal) => {
|
|
489
|
-
|
|
469
|
+
// 获取newVal的key列表
|
|
470
|
+
const newKeys = newVal.map(r => getRowKey(r)).sort().join(',');
|
|
471
|
+
// 获取oldVal的key列表
|
|
472
|
+
const oldKeys = Object.keys(selectedRowMap.value).sort().join(',');
|
|
473
|
+
if (newKeys !== oldKeys) {
|
|
474
|
+
updateSelectedRowMap(newVal);
|
|
475
|
+
}
|
|
490
476
|
}, {
|
|
491
477
|
deep: true
|
|
492
478
|
});
|
|
@@ -551,7 +537,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
551
537
|
sortFields.prop = c.prop;
|
|
552
538
|
sortFields.order = "desc";
|
|
553
539
|
}
|
|
554
|
-
// console.log(sortFields);
|
|
555
540
|
_emit("sort-change", sortFields.prop, sortFields.order, c, ci);
|
|
556
541
|
}
|
|
557
542
|
}, [createVNode("span", {
|
|
@@ -572,7 +557,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
572
557
|
"v_table_th--fix-width": c.width && c.width !== 'minimal'
|
|
573
558
|
}],
|
|
574
559
|
"onContextmenu": e => {
|
|
575
|
-
console.log('onContextmenu', e);
|
|
560
|
+
debug && console.log('onContextmenu', e);
|
|
576
561
|
if (_props.bodyMenu.enable) {
|
|
577
562
|
openContextMenu(e, {
|
|
578
563
|
menus: _props.headMenu.menus,
|
|
@@ -598,7 +583,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
598
583
|
}) {
|
|
599
584
|
const rowKey = getRowKey(r);
|
|
600
585
|
let body = null;
|
|
601
|
-
console.log('renderTd', c.td);
|
|
602
586
|
if (c.td) {
|
|
603
587
|
body = c.td({
|
|
604
588
|
row: r,
|
|
@@ -624,9 +608,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
624
608
|
"v_table_td--fix-width": c.width && c.width !== 'minimal'
|
|
625
609
|
}],
|
|
626
610
|
"onMouseenter": e => {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
611
|
+
if (!_props.hover) return;
|
|
612
|
+
currentRowIndex.value = ri;
|
|
613
|
+
currentColIndex.value = ci;
|
|
630
614
|
},
|
|
631
615
|
"onClick": e => {
|
|
632
616
|
cellClick({
|
|
@@ -690,19 +674,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
690
674
|
* @param data 菜单数据
|
|
691
675
|
*/
|
|
692
676
|
function emitMenuClick(command, data) {
|
|
693
|
-
console.log('emitMenuClick', command, data);
|
|
694
677
|
_emit("menu-click", Object.assign({
|
|
695
678
|
command
|
|
696
679
|
}, data));
|
|
697
680
|
}
|
|
698
681
|
function rowClick(p) {
|
|
699
682
|
// 点击行事件
|
|
700
|
-
// console.log('rowClick', p)
|
|
701
683
|
_emit("row-click", p);
|
|
702
684
|
}
|
|
703
685
|
function cellClick(p) {
|
|
704
686
|
// 点击单元格事件
|
|
705
|
-
// console.log('cellClick', p)
|
|
706
687
|
if (_props.autoSelectRowOnClick) {
|
|
707
688
|
// 点击行时只选中当前行
|
|
708
689
|
setRowSelection(p.row, true, true);
|
|
@@ -722,7 +703,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
722
703
|
"v_table--full-border": _props.border == 'full',
|
|
723
704
|
"v_table--enable_scroll": _props.scrollX,
|
|
724
705
|
'v_table--layout-fixed': defineWidth.value > 0,
|
|
725
|
-
'v_table--debug':
|
|
706
|
+
'v_table--debug': debug
|
|
726
707
|
}],
|
|
727
708
|
"onMouseleave": () => {
|
|
728
709
|
currentRowIndex.value = -1;
|
|
@@ -730,11 +711,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
730
711
|
},
|
|
731
712
|
"style": {
|
|
732
713
|
height: _props.height,
|
|
733
|
-
width: _props.width
|
|
734
|
-
maxHeight: _props.maxHeight,
|
|
735
|
-
minHeight: _props.minHeight,
|
|
736
|
-
maxWidth: _props.maxWidth,
|
|
737
|
-
minWidth: _props.minWidth
|
|
714
|
+
width: _props.width
|
|
738
715
|
}
|
|
739
716
|
}, [createVNode("div", {
|
|
740
717
|
"class": ['v_table_menu', {
|
|
@@ -80,26 +80,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
type: StringConstructor;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
|
-
maxHeight: {
|
|
84
|
-
type: StringConstructor;
|
|
85
|
-
default: string;
|
|
86
|
-
};
|
|
87
|
-
minHeight: {
|
|
88
|
-
type: StringConstructor;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
83
|
width: {
|
|
92
84
|
type: StringConstructor;
|
|
93
85
|
default: string;
|
|
94
86
|
};
|
|
95
|
-
maxWidth: {
|
|
96
|
-
type: StringConstructor;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
minWidth: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
87
|
autoSelectRowOnClick: {
|
|
104
88
|
type: BooleanConstructor;
|
|
105
89
|
default: boolean;
|
|
@@ -184,26 +168,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
184
168
|
type: StringConstructor;
|
|
185
169
|
default: string;
|
|
186
170
|
};
|
|
187
|
-
maxHeight: {
|
|
188
|
-
type: StringConstructor;
|
|
189
|
-
default: string;
|
|
190
|
-
};
|
|
191
|
-
minHeight: {
|
|
192
|
-
type: StringConstructor;
|
|
193
|
-
default: string;
|
|
194
|
-
};
|
|
195
171
|
width: {
|
|
196
172
|
type: StringConstructor;
|
|
197
173
|
default: string;
|
|
198
174
|
};
|
|
199
|
-
maxWidth: {
|
|
200
|
-
type: StringConstructor;
|
|
201
|
-
default: string;
|
|
202
|
-
};
|
|
203
|
-
minWidth: {
|
|
204
|
-
type: StringConstructor;
|
|
205
|
-
default: string;
|
|
206
|
-
};
|
|
207
175
|
autoSelectRowOnClick: {
|
|
208
176
|
type: BooleanConstructor;
|
|
209
177
|
default: boolean;
|
|
@@ -250,11 +218,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
250
218
|
scrollX: boolean;
|
|
251
219
|
scrollY: boolean;
|
|
252
220
|
height: string;
|
|
253
|
-
maxHeight: string;
|
|
254
|
-
minHeight: string;
|
|
255
221
|
width: string;
|
|
256
|
-
maxWidth: string;
|
|
257
|
-
minWidth: string;
|
|
258
222
|
autoSelectRowOnClick: boolean;
|
|
259
223
|
autoToggleRowOnClick: boolean;
|
|
260
224
|
headMenu: MenuConfig;
|
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-DHfgb4ce.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-me5lgqIx.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-C-seGVif.js';
|
|
32
|
+
import { L as Loading } from './Loading-BbLWtuW5.js';
|
|
33
|
+
import './Wrap-Bz5zyUL3.js';
|
|
34
34
|
|
|
35
35
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
36
36
|
props: {
|
package/package.json
CHANGED
/package/dist/{_plugin-vue_export-helper-CzElMObC.js → _plugin-vue_export-helper-DHfgb4ce.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|