vary-ui 3.21.43 → 3.21.45
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-BM1xOptN.js → Loading-BW4CXK_f.js} +2 -2
- package/dist/{Wrap-pqdtxJYO.js → Wrap-CfGMFv4O.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 +51 -44
- package/dist/lib/TableColumn/TableColumn.js +1 -1
- package/dist/types/index.d.ts +37 -0
- package/dist/types/lib/Button/Button.vue.d.ts +105 -0
- package/dist/types/lib/Card/Card.vue.d.ts +41 -0
- package/dist/types/lib/Checkbox/Checkbox.vue.d.ts +71 -0
- package/dist/types/lib/CheckboxGroup/CheckboxGroup.vue.d.ts +36 -0
- package/dist/types/lib/Confirm/Confirm.d.ts +11 -0
- package/dist/types/lib/Confirm/Confirm.vue.d.ts +62 -0
- package/dist/types/lib/Date/Date.vue.d.ts +133 -0
- package/dist/types/lib/Dialog/Dialog.vue.d.ts +64 -0
- package/dist/types/lib/Divider/Divider.vue.d.ts +33 -0
- package/dist/types/lib/Field/Field.vue.d.ts +86 -0
- package/dist/types/lib/Form/Form.vue.d.ts +59 -0
- package/dist/types/lib/Input/Input.vue.d.ts +104 -0
- package/dist/types/lib/Link/Link.vue.d.ts +78 -0
- package/dist/types/lib/Loading/Loading.d.ts +12 -0
- package/dist/types/lib/Loading/Loading.vue.d.ts +68 -0
- package/dist/types/lib/Menu/Menu.vue.d.ts +72 -0
- package/dist/types/lib/Message/Message.d.ts +8 -0
- package/dist/types/lib/Message/Message.vue.d.ts +34 -0
- package/dist/types/lib/Pagination/Pagination.vue.d.ts +94 -0
- package/dist/types/lib/Popover/Popover.vue.d.ts +47 -0
- package/dist/types/lib/Preview/Preview.d.ts +7 -0
- package/dist/types/lib/Preview/Preview.vue.d.ts +44 -0
- package/dist/types/lib/Radio/Radio.vue.d.ts +62 -0
- package/dist/types/lib/RadioGroup/RadioGroup.vue.d.ts +44 -0
- package/dist/types/lib/Scene/Scene.vue.d.ts +162 -0
- package/dist/types/lib/Scroll/Scroll.vue.d.ts +95 -0
- package/dist/types/lib/Select/Select.vue.d.ts +256 -0
- package/dist/types/lib/Skeleton/Skeleton.vue.d.ts +23 -0
- package/dist/types/lib/Switch/Switch.vue.d.ts +17 -0
- package/dist/types/lib/Tab/Tab.vue.d.ts +40 -0
- package/dist/types/lib/TabPanel/TabPanel.vue.d.ts +2 -0
- package/dist/types/lib/Table/Table.vue.d.ts +161 -0
- package/dist/types/lib/TableColumn/TableColumn.vue.d.ts +51 -0
- package/dist/types/lib/Tree/Tree.vue.d.ts +63 -0
- package/dist/types/lib/Wrap/Wrap.vue.d.ts +23 -0
- package/dist/types/lib/config.d.ts +17 -0
- package/dist/types/lib/utils.d.ts +26 -0
- package/dist/types/src/main.d.ts +3 -0
- package/dist/types/src/router/index.d.ts +2 -0
- package/dist/types/src/utils/markdown.d.ts +3 -0
- package/dist/types/src/utils/register-components.d.ts +2 -0
- package/dist/vary-ui.css +1 -1
- package/dist/vary-ui.js +5 -5
- package/package.json +2 -2
- package/readme.md +21 -0
- /package/dist/{_plugin-vue_export-helper-Cmxtm5vy.js → _plugin-vue_export-helper-K-2OxozI.js} +0 -0
- /package/dist/{config-DxEkIn_z.js → config-DbBnZZ91.js} +0 -0
- /package/dist/{utils-B6mA3T3g.js → utils-rcFFbQOV.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from './_plugin-vue_export-helper-K-2OxozI.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-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-rcFFbQOV.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-K-2OxozI.js';
|
|
5
|
+
import '../../config-DbBnZZ91.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-K-2OxozI.js';
|
|
4
|
+
import '../../config-DbBnZZ91.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-rcFFbQOV.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-CfGMFv4O.js';
|
|
7
|
+
import { c as config } from '../../config-DbBnZZ91.js';
|
|
8
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-K-2OxozI.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-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-K-2OxozI.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-CfGMFv4O.js';
|
|
3
|
+
import { c as isFun } from '../../utils-rcFFbQOV.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-BW4CXK_f.js';
|
|
3
|
+
import { c as config } from '../../config-DbBnZZ91.js';
|
|
4
|
+
import '../../_plugin-vue_export-helper-K-2OxozI.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-rcFFbQOV.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-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-DbBnZZ91.js';
|
|
4
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.js';
|
|
5
|
+
import '../../utils-rcFFbQOV.js';
|
|
6
6
|
import '../Popover/Popover.js';
|
|
7
|
-
import '../../Wrap-
|
|
7
|
+
import '../../Wrap-CfGMFv4O.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-BW4CXK_f.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-rcFFbQOV.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-DbBnZZ91.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-K-2OxozI.js';
|
|
4
|
+
import '../../config-DbBnZZ91.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-K-2OxozI.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-rcFFbQOV.js';
|
|
3
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-rcFFbQOV.js';
|
|
3
3
|
import Popover from '../Popover/Popover.js';
|
|
4
|
-
import { W as Wrap } from '../../Wrap-
|
|
4
|
+
import { W as Wrap } from '../../Wrap-CfGMFv4O.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-DbBnZZ91.js';
|
|
9
|
+
import { L as Loading } from '../../Loading-BW4CXK_f.js';
|
|
10
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.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-K-2OxozI.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-rcFFbQOV.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-K-2OxozI.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-K-2OxozI.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, ref, reactive, shallowRef,
|
|
2
|
-
import { k as debounce, m as matchChildrenCoponent } from '../../utils-
|
|
1
|
+
import { defineComponent, ref, reactive, shallowRef, nextTick, onMounted, watch, onBeforeMount, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { k as debounce, m as matchChildrenCoponent } from '../../utils-rcFFbQOV.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-DbBnZZ91.js';
|
|
7
|
+
import { _ as _export_sfc } from '../../_plugin-vue_export-helper-K-2OxozI.js';
|
|
8
8
|
|
|
9
9
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
props: {
|
|
@@ -100,6 +100,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
const scrollBodyLeftRef = shallowRef(null);
|
|
101
101
|
const scrollBodyRightRef = shallowRef(null);
|
|
102
102
|
const scrollBodyMainRef = shallowRef(null);
|
|
103
|
+
const debug = ref(false);
|
|
103
104
|
const showFixedColumn = ref(false);
|
|
104
105
|
let initTableWidth = 0;
|
|
105
106
|
const sortFields = reactive(Object.assign({
|
|
@@ -123,12 +124,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
124
|
const ths = headMainRef.value.querySelectorAll('th');
|
|
124
125
|
bodyMainRef.value.querySelector('tr').querySelectorAll('td').forEach((el, index) => {
|
|
125
126
|
const tdWidth = el.getBoundingClientRect().width;
|
|
126
|
-
|
|
127
|
+
ths[index].getBoundingClientRect().width;
|
|
127
128
|
// console.log('col', index, ths[index], el, thWidth, tdWidth)
|
|
128
|
-
colWidthTmp[index] = Math.max(tdWidth, thWidth) + 'px'
|
|
129
|
-
|
|
129
|
+
// colWidthTmp[index] = Math.max(tdWidth, thWidth) + 'px'
|
|
130
|
+
colWidthTmp[index] = tdWidth + 'px';
|
|
130
131
|
});
|
|
131
|
-
|
|
132
|
+
console.log('colWidthTmp', colWidthTmp);
|
|
132
133
|
colsWidth.value = colWidthTmp;
|
|
133
134
|
}
|
|
134
135
|
function mapRawHeight() {
|
|
@@ -162,10 +163,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
163
|
showRightShadow.value = true;
|
|
163
164
|
showFixedColumn.value = true;
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
nextTick(() => {
|
|
167
|
+
mapColWidth();
|
|
168
|
+
mapRawHeight();
|
|
169
|
+
});
|
|
169
170
|
const rect = scrollBodyMainRef.value.rect().top;
|
|
170
171
|
scrollBodyLeftRef.value && scrollBodyLeftRef.value.scrollTo(0, rect.top);
|
|
171
172
|
scrollBodyRightRef.value && scrollBodyRightRef.value.scrollTo(0, rect.top);
|
|
@@ -173,32 +174,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
174
|
const ro = typeof window === "object" ? new ResizeObserver(entries => {
|
|
174
175
|
// console.log("size observer change");
|
|
175
176
|
// 如果元素尺寸发生变化, 重新计算列宽
|
|
176
|
-
|
|
177
|
+
nextTick(() => {
|
|
178
|
+
computedSizeDebounce();
|
|
179
|
+
});
|
|
177
180
|
}) : null;
|
|
178
181
|
function initStyle() {
|
|
179
|
-
//
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
// 再同步表格的宽度
|
|
183
|
+
const rootWidth = rootRef.value.getBoundingClientRect().width;
|
|
184
|
+
// console.log('rootWidth', rootWidth)
|
|
185
|
+
const mainBodyWidth = bodyMainRef.value.getBoundingClientRect().width;
|
|
186
|
+
const mainHeadWidth = headMainRef.value.getBoundingClientRect().width;
|
|
187
|
+
// console.log('mainBodyWidth', mainBodyWidth)
|
|
188
|
+
initTableWidth = Math.max(mainBodyWidth, mainHeadWidth);
|
|
189
|
+
// console.log('initTableWidth', initTableWidth, 'rootWidth', rootWidth)
|
|
190
|
+
if (initTableWidth <= rootWidth) {
|
|
191
|
+
// 如果最大宽度小于根宽度, 则设置为根宽度
|
|
192
|
+
defineWidth.value = rootWidth;
|
|
193
|
+
showFixedColumn.value = false;
|
|
194
|
+
showRightShadow.value = false;
|
|
195
|
+
showLeftShadow.value = false;
|
|
196
|
+
} else {
|
|
197
|
+
// 如果最大宽度大于根宽度, 则设置为最大宽度
|
|
198
|
+
defineWidth.value = initTableWidth;
|
|
199
|
+
showFixedColumn.value = true;
|
|
200
|
+
showRightShadow.value = true;
|
|
201
|
+
}
|
|
182
202
|
nextTick(() => {
|
|
183
|
-
//
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
const mainBodyWidth = bodyMainRef.value.getBoundingClientRect().width;
|
|
187
|
-
// console.log('mainBodyWidth', mainBodyWidth)
|
|
188
|
-
initTableWidth = mainBodyWidth;
|
|
189
|
-
// console.log('initTableWidth', initTableWidth, 'rootWidth', rootWidth)
|
|
190
|
-
if (initTableWidth <= rootWidth) {
|
|
191
|
-
// 如果最大宽度小于根宽度, 则设置为根宽度
|
|
192
|
-
defineWidth.value = rootWidth;
|
|
193
|
-
showFixedColumn.value = false;
|
|
194
|
-
showRightShadow.value = false;
|
|
195
|
-
showLeftShadow.value = false;
|
|
196
|
-
} else {
|
|
197
|
-
// 如果最大宽度大于根宽度, 则设置为最大宽度
|
|
198
|
-
defineWidth.value = initTableWidth;
|
|
199
|
-
showFixedColumn.value = true;
|
|
200
|
-
showRightShadow.value = true;
|
|
201
|
-
}
|
|
203
|
+
// 先同步列的宽度
|
|
204
|
+
mapColWidth();
|
|
205
|
+
mapRawHeight();
|
|
202
206
|
});
|
|
203
207
|
}
|
|
204
208
|
_expose({
|
|
@@ -358,8 +362,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
358
362
|
ri,
|
|
359
363
|
ci
|
|
360
364
|
}) {
|
|
361
|
-
var _a;
|
|
362
|
-
(_a = c.width) === null || _a === void 0 ? void 0 : _a.toString();
|
|
363
365
|
if (!_props.rowKey) {
|
|
364
366
|
console.error("table component miss rowKey prop");
|
|
365
367
|
}
|
|
@@ -450,6 +452,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
450
452
|
const normalColumns = [];
|
|
451
453
|
// 分离列
|
|
452
454
|
mergeColumns.forEach(c => {
|
|
455
|
+
// 处理c.width为纯数字的情况, 如果是纯数字就加上px单位, 否则就保持原有规则
|
|
456
|
+
c.width = /^\d+$/.test(c.width + '') ? c.width + "px" : c.width;
|
|
453
457
|
if (c.fixed === "left") {
|
|
454
458
|
fixedLeftColumns.push(c);
|
|
455
459
|
} else if (c.fixed === "right") {
|
|
@@ -481,7 +485,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
481
485
|
"v_table--border": _props.border,
|
|
482
486
|
"v_table--full-border": _props.fullBorder,
|
|
483
487
|
"v_table--enable_scroll": _props.scrollX,
|
|
484
|
-
'v_table--layout-fixed': defineWidth.value > 0
|
|
488
|
+
'v_table--layout-fixed': defineWidth.value > 0,
|
|
489
|
+
'v_table--debug': debug.value
|
|
485
490
|
}],
|
|
486
491
|
"onMouseleave": () => {
|
|
487
492
|
currentRowIndex.value = -1;
|
|
@@ -535,13 +540,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
535
540
|
return createVNode("col", {
|
|
536
541
|
"class": [{
|
|
537
542
|
"v_table_col--hover": currentColIndex.value === ci
|
|
538
|
-
}]
|
|
539
|
-
"width": c.width || colsWidth.value[ci]
|
|
543
|
+
}]
|
|
540
544
|
}, null);
|
|
541
545
|
})]), createVNode("thead", null, [createVNode("tr", null, [mainColumns.map((c, ci) => createVNode("th", {
|
|
542
546
|
"class": ["v_table_th", {
|
|
543
|
-
"v_table_th--minimal": c.minimal || c.prop == "selection"
|
|
544
|
-
}]
|
|
547
|
+
"v_table_th--minimal": c.width == 'minimal' || c.prop == "selection"
|
|
548
|
+
}],
|
|
549
|
+
"style": {
|
|
550
|
+
width: colsWidth.value[ci]
|
|
551
|
+
}
|
|
545
552
|
}, [renderTh({
|
|
546
553
|
c,
|
|
547
554
|
ci
|
|
@@ -670,7 +677,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
670
677
|
"class": [{
|
|
671
678
|
"v_table_col--hover": currentColIndex.value === ci
|
|
672
679
|
}],
|
|
673
|
-
"width": c.width
|
|
680
|
+
"width": c.width == 'minimal' ? '' : c.width
|
|
674
681
|
}, null))]), createVNode("tbody", null, [_props.data.map((r, ri) => createVNode("tr", {
|
|
675
682
|
"key": getRowKey(r),
|
|
676
683
|
"class": [{
|
|
@@ -685,7 +692,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
685
692
|
}, [mainColumns.map((c, ci) => {
|
|
686
693
|
return createVNode("td", {
|
|
687
694
|
"class": ["v_table_td", {
|
|
688
|
-
"v_table_td--minimal": c.minimal || c.prop == "selection"
|
|
695
|
+
"v_table_td--minimal": c.width == 'minimal' || c.prop == "selection"
|
|
689
696
|
}],
|
|
690
697
|
"onMouseenter": () => {
|
|
691
698
|
if (!_props.hover) return;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Plugin } from "vue";
|
|
2
|
+
import Button from "./lib/Button/Button.vue";
|
|
3
|
+
import Card from "./lib/Card/Card.vue";
|
|
4
|
+
import Checkbox from "./lib/Checkbox/Checkbox.vue";
|
|
5
|
+
import CheckboxGroup from "./lib/CheckboxGroup/CheckboxGroup.vue";
|
|
6
|
+
import Date from "./lib/Date/Date.vue";
|
|
7
|
+
import Dialog from "./lib/Dialog/Dialog.vue";
|
|
8
|
+
import Divider from "./lib/Divider/Divider.vue";
|
|
9
|
+
import Form from "./lib/Form/Form.vue";
|
|
10
|
+
import Field from "./lib/Field/Field.vue";
|
|
11
|
+
import Input from "./lib/Input/Input.vue";
|
|
12
|
+
import Link from "./lib/Link/Link.vue";
|
|
13
|
+
import Menu from "./lib/Menu/Menu.vue";
|
|
14
|
+
import Pagination from "./lib/Pagination/Pagination.vue";
|
|
15
|
+
import Popover from "./lib/Popover/Popover.vue";
|
|
16
|
+
import Scene from "./lib/Scene/Scene.vue";
|
|
17
|
+
import Scroll from "./lib/Scroll/Scroll.vue";
|
|
18
|
+
import Select from "./lib/Select/Select.vue";
|
|
19
|
+
import Skeleton from "./lib/Skeleton/Skeleton.vue";
|
|
20
|
+
import Switch from "./lib/Switch/Switch.vue";
|
|
21
|
+
import Tab from "./lib/Tab/Tab.vue";
|
|
22
|
+
import Table from "./lib/Table/Table.vue";
|
|
23
|
+
import TableColumn from "./lib/TableColumn/TableColumn.vue";
|
|
24
|
+
import TabPanel from "./lib/TabPanel/TabPanel.vue";
|
|
25
|
+
import Tree from "./lib/Tree/Tree.vue";
|
|
26
|
+
import Radio from "./lib/Radio/Radio.vue";
|
|
27
|
+
import RadioGroup from "./lib/RadioGroup/RadioGroup.vue";
|
|
28
|
+
import Message from "./lib/Message/Message";
|
|
29
|
+
import Confirm from "./lib/Confirm/Confirm";
|
|
30
|
+
import Loading from "./lib/Loading/Loading";
|
|
31
|
+
import Preview from "./lib/Preview/Preview";
|
|
32
|
+
export { Scene, Card, Dialog, Divider, Button, Link, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Select, Date, Tab, TabPanel, Table, TableColumn, Menu, Scroll, Skeleton, Switch, Pagination, Popover, Preview, Form, Field, Tree, Message, Confirm, Loading, };
|
|
33
|
+
export * from "./lib/utils";
|
|
34
|
+
import "./src/styles/root.scss";
|
|
35
|
+
import "./icomoon/style.css";
|
|
36
|
+
declare const VaryUI: Plugin;
|
|
37
|
+
export default VaryUI;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
primary: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
defalut: boolean;
|
|
9
|
+
};
|
|
10
|
+
success: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
defalut: boolean;
|
|
13
|
+
};
|
|
14
|
+
danger: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
defalut: boolean;
|
|
17
|
+
};
|
|
18
|
+
warning: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
defalut: boolean;
|
|
21
|
+
};
|
|
22
|
+
info: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
defalut: boolean;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
defalut: boolean;
|
|
29
|
+
};
|
|
30
|
+
border: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
defalut: boolean;
|
|
33
|
+
};
|
|
34
|
+
plain: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
defalut: boolean;
|
|
37
|
+
};
|
|
38
|
+
round: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
defalut: boolean;
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
defalut: string;
|
|
45
|
+
};
|
|
46
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
type: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
primary: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
defalut: boolean;
|
|
54
|
+
};
|
|
55
|
+
success: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
defalut: boolean;
|
|
58
|
+
};
|
|
59
|
+
danger: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
defalut: boolean;
|
|
62
|
+
};
|
|
63
|
+
warning: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
defalut: boolean;
|
|
66
|
+
};
|
|
67
|
+
info: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
defalut: boolean;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
defalut: boolean;
|
|
74
|
+
};
|
|
75
|
+
border: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
defalut: boolean;
|
|
78
|
+
};
|
|
79
|
+
plain: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
defalut: boolean;
|
|
82
|
+
};
|
|
83
|
+
round: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
defalut: boolean;
|
|
86
|
+
};
|
|
87
|
+
size: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
defalut: string;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
onClick?: (...args: any[]) => any;
|
|
93
|
+
}>, {
|
|
94
|
+
type: string;
|
|
95
|
+
primary: boolean;
|
|
96
|
+
success: boolean;
|
|
97
|
+
danger: boolean;
|
|
98
|
+
warning: boolean;
|
|
99
|
+
info: boolean;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
border: boolean;
|
|
102
|
+
plain: boolean;
|
|
103
|
+
round: boolean;
|
|
104
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
export default _default;
|