vary-ui 3.21.57 → 3.21.59
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-Ce7_Qt6A.js → Loading-cd6nLjLn.js} +2 -2
- package/dist/{Wrap-CTKRkrnV.js → Wrap-BXw4DS1q.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 +6 -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 +26 -14
- package/dist/lib/TableColumn/TableColumn.js +1 -1
- package/dist/types/lib/Scroll/Scroll.vue.d.ts +0 -17
- package/dist/vary-ui.js +5 -5
- package/package.json +1 -1
- /package/dist/{_plugin-vue_export-helper-Dbr522vP.js → _plugin-vue_export-helper-CzElMObC.js} +0 -0
- /package/dist/{config-Bok5XMga.js → config-ChShjSUx.js} +0 -0
- /package/dist/{utils-Db-O4jy_.js → utils-B_6DLEXZ.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-CzElMObC.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-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-B_6DLEXZ.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-CzElMObC.js';
|
|
5
|
+
import '../../config-ChShjSUx.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-CzElMObC.js';
|
|
4
|
+
import '../../config-ChShjSUx.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-B_6DLEXZ.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-BXw4DS1q.js';
|
|
7
|
+
import { c as config } from '../../config-ChShjSUx.js';
|
|
8
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-CzElMObC.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-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-CzElMObC.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-BXw4DS1q.js';
|
|
3
|
+
import { c as isFun } from '../../utils-B_6DLEXZ.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-cd6nLjLn.js';
|
|
3
|
+
import { c as config } from '../../config-ChShjSUx.js';
|
|
4
|
+
import '../../_plugin-vue_export-helper-CzElMObC.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-B_6DLEXZ.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-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-ChShjSUx.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.js';
|
|
5
|
+
import '../../utils-B_6DLEXZ.js';
|
|
6
6
|
import '../Popover/Popover.js';
|
|
7
|
-
import '../../Wrap-
|
|
7
|
+
import '../../Wrap-BXw4DS1q.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-cd6nLjLn.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-B_6DLEXZ.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-ChShjSUx.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-CzElMObC.js';
|
|
4
|
+
import '../../config-ChShjSUx.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-CzElMObC.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-B_6DLEXZ.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* note:
|
|
@@ -19,6 +19,7 @@ import { _ as _export_sfc } from '../../_plugin-vue_export-helper-Dbr522vP.js';
|
|
|
19
19
|
* 为啥要加一层scroll_body
|
|
20
20
|
* 因为slot.default()可能是多个元素, 没有根元素
|
|
21
21
|
*/
|
|
22
|
+
let scrollKey = 0;
|
|
22
23
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
24
|
props: {
|
|
24
25
|
width: {
|
|
@@ -56,6 +57,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
emit: _emit,
|
|
57
58
|
expose: _expose
|
|
58
59
|
}) {
|
|
60
|
+
// console.log(_slots.default())
|
|
59
61
|
const rootRef = shallowRef(null);
|
|
60
62
|
const bodyRef = shallowRef(null);
|
|
61
63
|
const thumbXRef = shallowRef(null);
|
|
@@ -271,6 +273,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
273
|
return () => {
|
|
272
274
|
return createVNode("div", {
|
|
273
275
|
"ref": rootRef,
|
|
276
|
+
"scroll-key": scrollKey++,
|
|
274
277
|
"class": ["v_scroll", {
|
|
275
278
|
v_scroll_enable_y: showScrollY.value,
|
|
276
279
|
v_scroll_enable_x: showScrollX.value
|
|
@@ -416,7 +419,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
419
|
}, [createVNode("div", {
|
|
417
420
|
"ref": bodyRef,
|
|
418
421
|
"class": "v_scroll_body"
|
|
419
|
-
}, [_slots.default
|
|
422
|
+
}, [_slots.default ? _slots.default() : null]), _slots.append && _slots.append(), createVNode("div", {
|
|
420
423
|
"class": ["v_scroll_thumb_y", {
|
|
421
424
|
"v_scroll_thumb_y--show": _props.showScrollY && showScrollY.value
|
|
422
425
|
}]
|
|
@@ -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-B_6DLEXZ.js';
|
|
3
3
|
import Popover from '../Popover/Popover.js';
|
|
4
|
-
import { W as Wrap } from '../../Wrap-
|
|
4
|
+
import { W as Wrap } from '../../Wrap-BXw4DS1q.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-ChShjSUx.js';
|
|
9
|
+
import { L as Loading } from '../../Loading-cd6nLjLn.js';
|
|
10
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.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-CzElMObC.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-B_6DLEXZ.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-CzElMObC.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-CzElMObC.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, getCurrentInstance, 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-B_6DLEXZ.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-ChShjSUx.js';
|
|
7
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-CzElMObC.js';
|
|
8
8
|
|
|
9
9
|
let colKey = 0;
|
|
10
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -267,9 +267,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
267
267
|
fixedRightColumns.value = rightColumns;
|
|
268
268
|
}
|
|
269
269
|
function mapRawHeight() {
|
|
270
|
+
var _a;
|
|
270
271
|
const rawHeightTmp = [];
|
|
271
272
|
const t1 = Array.from(headMainRef.value.querySelectorAll('tr'));
|
|
272
|
-
const t2 = Array.from(bodyMainRef.value.querySelectorAll('tr'));
|
|
273
|
+
const t2 = Array.from(((_a = bodyMainRef.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll('tr')) || []);
|
|
273
274
|
t1.concat(t2).forEach((el, ri) => {
|
|
274
275
|
const rect = el.getBoundingClientRect();
|
|
275
276
|
const height = rect.height;
|
|
@@ -348,6 +349,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
348
349
|
let fixedWidthTotal = 0; // 固定列的总宽度
|
|
349
350
|
let flexColumnTotal = 0; // 可变列的总数量
|
|
350
351
|
function initStyle() {
|
|
352
|
+
var _a;
|
|
351
353
|
// 先计算表格各列的宽度
|
|
352
354
|
// 同步表格的宽度
|
|
353
355
|
needWidth = 0;
|
|
@@ -355,7 +357,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
355
357
|
flexColumnTotal = 0;
|
|
356
358
|
const thEles = headMainRef.value.querySelectorAll('th');
|
|
357
359
|
// const tdEles = bodyMainRef.value.querySelector('tr').querySelectorAll('td');
|
|
358
|
-
const tdEles = bodyMainRef.value.querySelectorAll('col');
|
|
360
|
+
const tdEles = ((_a = bodyMainRef.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll('col')) || [];
|
|
359
361
|
// 只计算需要的宽度
|
|
360
362
|
mainColumns.value.forEach((c, ci) => {
|
|
361
363
|
var _a;
|
|
@@ -467,6 +469,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
467
469
|
});
|
|
468
470
|
});
|
|
469
471
|
watch(() => _props.data, () => {
|
|
472
|
+
console.log('data changed');
|
|
470
473
|
init();
|
|
471
474
|
nextTick(() => {
|
|
472
475
|
initStyle();
|
|
@@ -595,6 +598,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
595
598
|
}) {
|
|
596
599
|
const rowKey = getRowKey(r);
|
|
597
600
|
let body = null;
|
|
601
|
+
console.log('renderTd', c.td);
|
|
598
602
|
if (c.td) {
|
|
599
603
|
body = c.td({
|
|
600
604
|
row: r,
|
|
@@ -613,16 +617,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
613
617
|
}, null);
|
|
614
618
|
} else {
|
|
615
619
|
const ov = r[c.prop];
|
|
616
|
-
body = ov
|
|
620
|
+
body = ov ? String(ov) : _props.placeholder;
|
|
617
621
|
}
|
|
618
622
|
return createVNode("td", {
|
|
619
623
|
"class": ["v_table_td", {
|
|
620
624
|
"v_table_td--fix-width": c.width && c.width !== 'minimal'
|
|
621
625
|
}],
|
|
622
626
|
"onMouseenter": e => {
|
|
623
|
-
if (!_props.hover) return;
|
|
624
|
-
currentRowIndex.value = ri;
|
|
625
|
-
currentColIndex.value = ci;
|
|
627
|
+
// if (!_props.hover) return;
|
|
628
|
+
// currentRowIndex.value = ri;
|
|
629
|
+
// currentColIndex.value = ci;
|
|
626
630
|
},
|
|
627
631
|
"onClick": e => {
|
|
628
632
|
cellClick({
|
|
@@ -752,6 +756,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
752
756
|
}, [
|
|
753
757
|
// 左侧固定表头
|
|
754
758
|
dataList.value.length > 0 && showFixedColumn.value && fixedLeftColumns.value.length > 0 && createVNode(Scroll, {
|
|
759
|
+
"key": 1,
|
|
755
760
|
"ref": scrollHeadLeftRef,
|
|
756
761
|
"class": ["v_table_head_left", {
|
|
757
762
|
"v_table_head_left--show_shadow": showLeftShadow.value
|
|
@@ -774,6 +779,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
774
779
|
ci
|
|
775
780
|
}))])])])]
|
|
776
781
|
}), createVNode(Scroll, {
|
|
782
|
+
"key": 2,
|
|
777
783
|
"ref": scrollHeadMainRef,
|
|
778
784
|
"class": "v_table_head_main",
|
|
779
785
|
"showScrollX": false,
|
|
@@ -799,6 +805,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
799
805
|
}),
|
|
800
806
|
// 右侧固定表头
|
|
801
807
|
dataList.value.length > 0 && showFixedColumn.value && fixedRightColumns.value.length > 0 && createVNode(Scroll, {
|
|
808
|
+
"key": 3,
|
|
802
809
|
"ref": scrollHeadRightRef,
|
|
803
810
|
"class": ["v_table_head_right", {
|
|
804
811
|
"v_table_head_right--show_shadow": showRightShadow.value
|
|
@@ -827,6 +834,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
827
834
|
}, [
|
|
828
835
|
// 左侧固定table
|
|
829
836
|
dataList.value.length > 0 && showFixedColumn.value && fixedLeftColumns.value.length > 0 && createVNode(Scroll, {
|
|
837
|
+
"key": 4,
|
|
830
838
|
"ref": scrollBodyLeftRef,
|
|
831
839
|
"class": ["v_table_body_left", {
|
|
832
840
|
"v_table_body_left--show_shadow": showLeftShadow.value
|
|
@@ -870,7 +878,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
870
878
|
ci
|
|
871
879
|
}))]);
|
|
872
880
|
})])])]
|
|
873
|
-
}),
|
|
881
|
+
}),
|
|
882
|
+
// 主表
|
|
883
|
+
dataList.value.length > 0 ? createVNode(Scroll, {
|
|
884
|
+
"key": 5,
|
|
874
885
|
"ref": scrollBodyMainRef,
|
|
875
886
|
"height": "100%",
|
|
876
887
|
"class": "v_table_body_main",
|
|
@@ -916,12 +927,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
916
927
|
r,
|
|
917
928
|
ri,
|
|
918
929
|
ci
|
|
919
|
-
}))]))])])
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}),
|
|
930
|
+
}))]))])])]
|
|
931
|
+
}) : createVNode("div", {
|
|
932
|
+
"class": "v_table_empty"
|
|
933
|
+
}, [_slots.empty ? _slots.empty() : "Empty Data"]),
|
|
923
934
|
// 右侧固定table
|
|
924
935
|
dataList.value.length > 0 && showFixedColumn.value && fixedRightColumns.value.length > 0 && createVNode(Scroll, {
|
|
936
|
+
"key": 6,
|
|
925
937
|
"ref": scrollBodyRightRef,
|
|
926
938
|
"class": ["v_table_body_right", {
|
|
927
939
|
"v_table_body_right--show_shadow": showRightShadow.value
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* note:
|
|
3
|
-
* outer有个默认的width=100%; 不能有默认的height, height默认情况下要取决于inner的高度, inner又取决于内容
|
|
4
|
-
*
|
|
5
|
-
* 先说height
|
|
6
|
-
* inner的高度取决于自身内容
|
|
7
|
-
* 如果inner的height超过outer的height, 则会自动出现纵向滚动条(这个是默认行为)
|
|
8
|
-
* 用户可以通过style动态设置outer的高度
|
|
9
|
-
*
|
|
10
|
-
* 再说width
|
|
11
|
-
* inner的width默认是auto,
|
|
12
|
-
* 如果inner的width超过outer的width, 则会自动出现横向滚动条
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* 为啥要加一层scroll_body
|
|
16
|
-
* 因为slot.default()可能是多个元素, 没有根元素
|
|
17
|
-
*/
|
|
18
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
2
|
width: {
|
|
20
3
|
type: StringConstructor;
|
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-CzElMObC.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-ChShjSUx.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-B_6DLEXZ.js';
|
|
32
|
+
import { L as Loading } from './Loading-cd6nLjLn.js';
|
|
33
|
+
import './Wrap-BXw4DS1q.js';
|
|
34
34
|
|
|
35
35
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
36
36
|
props: {
|
package/package.json
CHANGED
/package/dist/{_plugin-vue_export-helper-Dbr522vP.js → _plugin-vue_export-helper-CzElMObC.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|