vxe-table 4.18.5 → 4.18.7
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/LICENSE +20 -20
- package/README.en.md +118 -118
- package/README.ja-JP.md +117 -117
- package/README.md +268 -268
- package/README.zh-TW.md +117 -117
- package/es/style.css +1 -1
- package/es/table/src/table.js +54 -0
- package/es/table/src/util.js +3 -4
- package/es/table/style.css +48 -18
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +48 -18
- package/lib/index.common.js +1 -2
- package/lib/index.umd.js +2832 -2732
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +5 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +4 -6
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +48 -18
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +48 -18
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +91 -91
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +43 -43
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +19 -19
- package/packages/grid/src/grid.ts +1768 -1768
- package/packages/grid/src/props.ts +23 -23
- package/packages/index.ts +4 -4
- package/packages/locale/lang/ar-EG.ts +832 -832
- package/packages/locale/lang/de-DE.ts +832 -832
- package/packages/locale/lang/en-US.ts +832 -832
- package/packages/locale/lang/es-ES.ts +832 -832
- package/packages/locale/lang/fr-FR.ts +832 -832
- package/packages/locale/lang/hu-HU.ts +832 -832
- package/packages/locale/lang/hy-AM.ts +832 -832
- package/packages/locale/lang/id-ID.ts +832 -832
- package/packages/locale/lang/it-IT.ts +832 -832
- package/packages/locale/lang/ja-JP.ts +832 -832
- package/packages/locale/lang/ko-KR.ts +832 -832
- package/packages/locale/lang/ms-MY.ts +832 -832
- package/packages/locale/lang/nb-NO.ts +832 -832
- package/packages/locale/lang/pt-BR.ts +832 -832
- package/packages/locale/lang/ru-RU.ts +832 -832
- package/packages/locale/lang/th-TH.ts +832 -832
- package/packages/locale/lang/ug-CN.ts +832 -832
- package/packages/locale/lang/uk-UA.ts +832 -832
- package/packages/locale/lang/uz-UZ.ts +832 -832
- package/packages/locale/lang/vi-VN.ts +832 -832
- package/packages/locale/lang/zh-CHT.ts +832 -832
- package/packages/locale/lang/zh-CN.ts +832 -832
- package/packages/locale/lang/zh-HK.ts +3 -3
- package/packages/locale/lang/zh-MO.ts +3 -3
- package/packages/locale/lang/zh-TC.ts +3 -3
- package/packages/locale/lang/zh-TW.ts +3 -3
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +359 -359
- package/packages/table/module/custom/panel.ts +1331 -1331
- package/packages/table/module/edit/hook.ts +1032 -1032
- package/packages/table/module/export/export-panel.ts +567 -567
- package/packages/table/module/export/hook.ts +1654 -1654
- package/packages/table/module/export/import-panel.ts +266 -266
- package/packages/table/module/export/util.ts +24 -24
- package/packages/table/module/filter/hook.ts +468 -468
- package/packages/table/module/filter/panel.ts +301 -301
- package/packages/table/module/keyboard/hook.ts +495 -495
- package/packages/table/module/menu/hook.ts +325 -325
- package/packages/table/module/menu/panel.ts +201 -201
- package/packages/table/module/validator/hook.ts +631 -631
- package/packages/table/render/index.ts +1440 -1440
- package/packages/table/src/body.ts +932 -932
- package/packages/table/src/cell.ts +1290 -1290
- package/packages/table/src/column.ts +190 -190
- package/packages/table/src/columnInfo.ts +225 -225
- package/packages/table/src/emits.ts +123 -123
- package/packages/table/src/footer.ts +368 -368
- package/packages/table/src/group.ts +59 -59
- package/packages/table/src/header.ts +559 -559
- package/packages/table/src/props.ts +324 -324
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +14004 -13947
- package/packages/table/src/use/cell-view.ts +44 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1064 -1064
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +701 -701
- package/packages/ui/index.ts +530 -530
- package/packages/ui/src/anime.ts +52 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +236 -236
- package/packages/ui/src/log.ts +8 -8
- package/packages/ui/src/utils.ts +56 -56
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +4 -4
- package/packages/v-x-e-table/index.ts +4 -4
- package/styles/all.scss +7 -7
- package/styles/base.scss +16 -16
- package/styles/components/grid.scss +89 -89
- package/styles/components/icon.scss +225 -225
- package/styles/components/old-icon.scss +715 -715
- package/styles/components/table-module/all.scss +6 -6
- package/styles/components/table-module/custom.scss +527 -527
- package/styles/components/table-module/export.scss +130 -130
- package/styles/components/table-module/filter.scss +130 -130
- package/styles/components/table-module/menu.scss +81 -81
- package/styles/components/table.scss +2679 -2679
- package/styles/components/toolbar.scss +119 -119
- package/styles/default.scss +2 -2
- package/styles/helpers/baseMixin.scss +95 -95
- package/styles/index.scss +4 -4
- package/styles/modules.scss +5 -5
- package/styles/theme/base.scss +93 -93
- package/styles/theme/dark.scss +49 -49
- package/styles/theme/light.scss +44 -44
- package/styles/variable.scss +43 -43
- package/types/all.d.ts +37 -37
- package/types/index.d.ts +4 -4
- /package/es/{iconfont.1773710736571.ttf → iconfont.1773991907408.ttf} +0 -0
- /package/es/{iconfont.1773710736571.woff → iconfont.1773991907408.woff} +0 -0
- /package/es/{iconfont.1773710736571.woff2 → iconfont.1773991907408.woff2} +0 -0
- /package/lib/{iconfont.1773710736571.ttf → iconfont.1773991907408.ttf} +0 -0
- /package/lib/{iconfont.1773710736571.woff → iconfont.1773991907408.woff} +0 -0
- /package/lib/{iconfont.1773710736571.woff2 → iconfont.1773991907408.woff2} +0 -0
|
@@ -2507,12 +2507,12 @@
|
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
2509
2509
|
/*header*/
|
|
2510
|
-
.vxe-table {
|
|
2511
|
-
/*排序*/
|
|
2512
|
-
}
|
|
2513
2510
|
.vxe-table .vxe-table--header-wrapper {
|
|
2514
2511
|
color: var(--vxe-ui-table-header-font-color);
|
|
2515
2512
|
}
|
|
2513
|
+
.vxe-table {
|
|
2514
|
+
/*排序*/
|
|
2515
|
+
}
|
|
2516
2516
|
.vxe-table .vxe-cell--sort {
|
|
2517
2517
|
text-align: center;
|
|
2518
2518
|
position: relative;
|
|
@@ -2866,21 +2866,6 @@
|
|
|
2866
2866
|
color: var(--vxe-ui-font-color);
|
|
2867
2867
|
font-family: var(--vxe-ui-font-family);
|
|
2868
2868
|
direction: ltr;
|
|
2869
|
-
/*边框*/
|
|
2870
|
-
/*边框线*/
|
|
2871
|
-
/*树形节点*/
|
|
2872
|
-
/*行分组*/
|
|
2873
|
-
/*单元格高度*/
|
|
2874
|
-
/*溢出列*/
|
|
2875
|
-
/*展开行*/
|
|
2876
|
-
/*拖拽列*/
|
|
2877
|
-
/*拖拽行把柄*/
|
|
2878
|
-
/*暂无数据*/
|
|
2879
|
-
/*校验不通过*/
|
|
2880
|
-
/*已废弃,旧的校验样式**/
|
|
2881
|
-
/*单元格标记删除状态*/
|
|
2882
|
-
/*单元格编辑状态*/
|
|
2883
|
-
/*可编辑*/
|
|
2884
2869
|
}
|
|
2885
2870
|
.vxe-table--render-default .vxe-table--body-wrapper {
|
|
2886
2871
|
background-color: var(--vxe-ui-layout-background-color);
|
|
@@ -3049,6 +3034,9 @@
|
|
|
3049
3034
|
.vxe-table--render-default .vxe-body--row.row--hover.row--current > .vxe-body--column {
|
|
3050
3035
|
background-color: var(--vxe-ui-table-row-hover-current-background-color);
|
|
3051
3036
|
}
|
|
3037
|
+
.vxe-table--render-default {
|
|
3038
|
+
/*边框*/
|
|
3039
|
+
}
|
|
3052
3040
|
.vxe-table--render-default.border--default.sy-pos--right .vxe-table--scroll-y-top-corner, .vxe-table--render-default.border--full.sy-pos--right .vxe-table--scroll-y-top-corner, .vxe-table--render-default.border--outer.sy-pos--right .vxe-table--scroll-y-top-corner, .vxe-table--render-default.border--inner.sy-pos--right .vxe-table--scroll-y-top-corner {
|
|
3053
3041
|
background-image: linear-gradient(var(--vxe-ui-table-border-color), var(--vxe-ui-table-border-color)), linear-gradient(var(--vxe-ui-table-border-color), var(--vxe-ui-table-border-color));
|
|
3054
3042
|
background-repeat: no-repeat;
|
|
@@ -3413,6 +3401,9 @@
|
|
|
3413
3401
|
width: 0;
|
|
3414
3402
|
float: left;
|
|
3415
3403
|
}
|
|
3404
|
+
.vxe-table--render-default {
|
|
3405
|
+
/*边框线*/
|
|
3406
|
+
}
|
|
3416
3407
|
.vxe-table--render-default .vxe-table--border-line {
|
|
3417
3408
|
position: absolute;
|
|
3418
3409
|
top: 0;
|
|
@@ -3423,6 +3414,9 @@
|
|
|
3423
3414
|
pointer-events: none;
|
|
3424
3415
|
border: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
3425
3416
|
}
|
|
3417
|
+
.vxe-table--render-default {
|
|
3418
|
+
/*树形节点*/
|
|
3419
|
+
}
|
|
3426
3420
|
.vxe-table--render-default .vxe-tree--line-wrapper {
|
|
3427
3421
|
position: relative;
|
|
3428
3422
|
display: block;
|
|
@@ -3469,6 +3463,9 @@
|
|
|
3469
3463
|
user-select: none;
|
|
3470
3464
|
cursor: pointer;
|
|
3471
3465
|
}
|
|
3466
|
+
.vxe-table--render-default {
|
|
3467
|
+
/*行分组*/
|
|
3468
|
+
}
|
|
3472
3469
|
.vxe-table--render-default .vxe-row-group--node-btn:hover {
|
|
3473
3470
|
color: var(--vxe-ui-font-color);
|
|
3474
3471
|
}
|
|
@@ -3477,6 +3474,9 @@
|
|
|
3477
3474
|
color: var(--vxe-ui-font-lighten-color);
|
|
3478
3475
|
transition: transform 0.1s ease-in-out;
|
|
3479
3476
|
}
|
|
3477
|
+
.vxe-table--render-default {
|
|
3478
|
+
/*单元格高度*/
|
|
3479
|
+
}
|
|
3480
3480
|
.vxe-table--render-default .vxe-body--column.col--ellipsis > .vxe-cell .vxe-row-group-cell,
|
|
3481
3481
|
.vxe-table--render-default .vxe-body--column.col--ellipsis > .vxe-cell .vxe-tree-cell {
|
|
3482
3482
|
overflow: hidden;
|
|
@@ -3497,6 +3497,9 @@
|
|
|
3497
3497
|
flex-direction: row;
|
|
3498
3498
|
align-items: center;
|
|
3499
3499
|
}
|
|
3500
|
+
.vxe-table--render-default {
|
|
3501
|
+
/*溢出列*/
|
|
3502
|
+
}
|
|
3500
3503
|
.vxe-table--render-default .vxe-header--column:not(.col--active).col--ellipsis > .vxe-cell,
|
|
3501
3504
|
.vxe-table--render-default .vxe-body--column:not(.col--active).col--ellipsis > .vxe-cell,
|
|
3502
3505
|
.vxe-table--render-default .vxe-footer--column:not(.col--active).col--ellipsis > .vxe-cell {
|
|
@@ -3530,6 +3533,9 @@
|
|
|
3530
3533
|
flex-direction: row;
|
|
3531
3534
|
align-items: center;
|
|
3532
3535
|
}
|
|
3536
|
+
.vxe-table--render-default {
|
|
3537
|
+
/*展开行*/
|
|
3538
|
+
}
|
|
3533
3539
|
.vxe-table--render-default .vxe-table--row-expanded-wrapper {
|
|
3534
3540
|
position: absolute;
|
|
3535
3541
|
top: 0;
|
|
@@ -3600,12 +3606,18 @@
|
|
|
3600
3606
|
overflow: auto;
|
|
3601
3607
|
outline: 0;
|
|
3602
3608
|
}
|
|
3609
|
+
.vxe-table--render-default {
|
|
3610
|
+
/*拖拽列*/
|
|
3611
|
+
}
|
|
3603
3612
|
.vxe-table--render-default .vxe-table--column.col--drag-move {
|
|
3604
3613
|
transition: transform 0.5s ease;
|
|
3605
3614
|
}
|
|
3606
3615
|
.vxe-table--render-default .vxe-table--column.col--drag-origin > .vxe-cell {
|
|
3607
3616
|
opacity: 0.3;
|
|
3608
3617
|
}
|
|
3618
|
+
.vxe-table--render-default {
|
|
3619
|
+
/*拖拽行把柄*/
|
|
3620
|
+
}
|
|
3609
3621
|
.vxe-table--render-default .vxe-cell--drag-handle {
|
|
3610
3622
|
-webkit-user-select: none;
|
|
3611
3623
|
-moz-user-select: none;
|
|
@@ -3669,6 +3681,9 @@
|
|
|
3669
3681
|
.vxe-table--render-default.size--mini .vxe-cell--radio {
|
|
3670
3682
|
font-size: var(--vxe-radio-font-size-mini);
|
|
3671
3683
|
}
|
|
3684
|
+
.vxe-table--render-default {
|
|
3685
|
+
/*暂无数据*/
|
|
3686
|
+
}
|
|
3672
3687
|
.vxe-table--render-default .vxe-table--empty-placeholder,
|
|
3673
3688
|
.vxe-table--render-default .vxe-table--empty-block {
|
|
3674
3689
|
color: var(--vxe-ui-input-placeholder-color);
|
|
@@ -3709,6 +3724,9 @@
|
|
|
3709
3724
|
.vxe-table--render-default .vxe-body--column.col--selected {
|
|
3710
3725
|
box-shadow: inset 0px 0px 0px 2px var(--vxe-ui-font-primary-color);
|
|
3711
3726
|
}
|
|
3727
|
+
.vxe-table--render-default {
|
|
3728
|
+
/*校验不通过*/
|
|
3729
|
+
}
|
|
3712
3730
|
.vxe-table--render-default .vxe-body--column .vxe-cell--valid-error-tip {
|
|
3713
3731
|
width: 100%;
|
|
3714
3732
|
position: absolute;
|
|
@@ -3765,6 +3783,9 @@
|
|
|
3765
3783
|
.vxe-table--render-default.valid-msg--full .vxe-body--row:last-child .vxe-cell--valid-error-tip {
|
|
3766
3784
|
top: calc(100% - 1.3em);
|
|
3767
3785
|
}
|
|
3786
|
+
.vxe-table--render-default {
|
|
3787
|
+
/*已废弃,旧的校验样式**/
|
|
3788
|
+
}
|
|
3768
3789
|
.vxe-table--render-default.old-cell-valid .vxe-body--column.col--valid-error .vxe-cell--valid-error-tip {
|
|
3769
3790
|
width: 320px;
|
|
3770
3791
|
position: absolute;
|
|
@@ -3792,6 +3813,9 @@
|
|
|
3792
3813
|
transform: translateX(0);
|
|
3793
3814
|
text-align: left;
|
|
3794
3815
|
}
|
|
3816
|
+
.vxe-table--render-default {
|
|
3817
|
+
/*单元格标记删除状态*/
|
|
3818
|
+
}
|
|
3795
3819
|
.vxe-table--render-default .vxe-body--row.row--pending {
|
|
3796
3820
|
color: var(--vxe-ui-font-disabled-color);
|
|
3797
3821
|
opacity: 0.5;
|
|
@@ -3811,6 +3835,9 @@
|
|
|
3811
3835
|
border-bottom: 1px solid var(--vxe-ui-table-validate-error-color);
|
|
3812
3836
|
z-index: 1;
|
|
3813
3837
|
}
|
|
3838
|
+
.vxe-table--render-default {
|
|
3839
|
+
/*单元格编辑状态*/
|
|
3840
|
+
}
|
|
3814
3841
|
.vxe-table--render-default .vxe-body--row.row--new > .vxe-body--column {
|
|
3815
3842
|
position: relative;
|
|
3816
3843
|
}
|
|
@@ -3837,6 +3864,9 @@
|
|
|
3837
3864
|
border-color: transparent var(--vxe-ui-table-cell-dirty-update-color) transparent transparent;
|
|
3838
3865
|
transform: rotate(45deg);
|
|
3839
3866
|
}
|
|
3867
|
+
.vxe-table--render-default {
|
|
3868
|
+
/*可编辑*/
|
|
3869
|
+
}
|
|
3840
3870
|
.vxe-table--render-default.vxe-editable.cell--highlight .vxe-body--column.col--active {
|
|
3841
3871
|
box-shadow: inset 0px 0px 0px 2px var(--vxe-ui-font-primary-color);
|
|
3842
3872
|
}
|
package/lib/vxe-toolbar/index.js
CHANGED
|
@@ -17,6 +17,5 @@ Object.keys(_toolbar).forEach(function (key) {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
21
|
var _default = exports.default = _toolbar.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_toolbar=(exports.default=void 0,_interopRequireWildcard(require("../toolbar")));function
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_toolbar=(exports.default=void 0,_interopRequireWildcard(require("../toolbar")));function _interopRequireWildcard(e,t){var n,l;return"function"==typeof WeakMap&&(n=new WeakMap,l=new WeakMap),(_interopRequireWildcard=function(t,e){if(!e&&t&&t.__esModule)return t;var r,o,a={__proto__:null,default:t};if(null!==t&&("object"==typeof t||"function"==typeof t)){if(r=e?l:n){if(r.has(t))return r.get(t);r.set(t,a)}for(let e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?r(a,e,o):a[e]=t[e])}return a})(e,t)}Object.keys(_toolbar).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_toolbar[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _toolbar[e]}})});var _default=exports.default=_toolbar.default;
|
package/lib/vxe-ui/index.js
CHANGED
|
@@ -17,6 +17,5 @@ Object.keys(_ui).forEach(function (key) {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
21
|
var _default = exports.default = _ui.default;
|
package/lib/vxe-ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_ui=(exports.default=void 0,_interopRequireWildcard(require("../ui")));function
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_ui=(exports.default=void 0,_interopRequireWildcard(require("../ui")));function _interopRequireWildcard(e,t){var i,n;return"function"==typeof WeakMap&&(i=new WeakMap,n=new WeakMap),(_interopRequireWildcard=function(t,e){if(!e&&t&&t.__esModule)return t;var r,o,u={__proto__:null,default:t};if(null!==t&&("object"==typeof t||"function"==typeof t)){if(r=e?n:i){if(r.has(t))return r.get(t);r.set(t,u)}for(let e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?r(u,e,o):u[e]=t[e])}return u})(e,t)}Object.keys(_ui).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_ui[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _ui[e]}})});var _default=exports.default=_ui.default;
|
|
@@ -17,6 +17,5 @@ Object.keys(_vXETable).forEach(function (key) {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
21
|
var _default = exports.default = _vXETable.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_vXETable=(exports.default=void 0,_interopRequireWildcard(require("../v-x-e-table")));function
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={},_vXETable=(exports.default=void 0,_interopRequireWildcard(require("../v-x-e-table")));function _interopRequireWildcard(e,t){var n,l;return"function"==typeof WeakMap&&(n=new WeakMap,l=new WeakMap),(_interopRequireWildcard=function(t,e){if(!e&&t&&t.__esModule)return t;var r,o,a={__proto__:null,default:t};if(null!==t&&("object"==typeof t||"function"==typeof t)){if(r=e?l:n){if(r.has(t))return r.get(t);r.set(t,a)}for(let e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?r(a,e,o):a[e]=t[e])}return a})(e,t)}Object.keys(_vXETable).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_vXETable[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _vXETable[e]}})});var _default=exports.default=_vXETable.default;
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vxe-table",
|
|
3
|
-
"version": "4.18.
|
|
4
|
-
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"update": "npm install --legacy-peer-deps",
|
|
7
|
-
"serve": "vue-cli-service serve",
|
|
8
|
-
"lint": "vue-cli-service lint",
|
|
9
|
-
"build": "vue-cli-service build",
|
|
10
|
-
"lib:modules": "gulp build",
|
|
11
|
-
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
12
|
-
"lib": "npm run lib:pack && npm run lib:modules",
|
|
13
|
-
"format": "eslint --fix examples/**/*.{js,ts,vue}"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"lib",
|
|
17
|
-
"es",
|
|
18
|
-
"src",
|
|
19
|
-
"helper",
|
|
20
|
-
"types",
|
|
21
|
-
"styles",
|
|
22
|
-
"packages"
|
|
23
|
-
],
|
|
24
|
-
"main": "lib/index.common.js",
|
|
25
|
-
"module": "es/index.esm.js",
|
|
26
|
-
"unpkg": "lib/index.umd.js",
|
|
27
|
-
"jsdelivr": "lib/index.umd.js",
|
|
28
|
-
"style": "lib/style.css",
|
|
29
|
-
"typings": "types/index.d.ts",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"vxe-pc-ui": "^4.13.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/resize-observer-browser": "^0.1.11",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
36
|
-
"@typescript-eslint/parser": "^6.21.0",
|
|
37
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
|
38
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
39
|
-
"@vue/cli-plugin-router": "~5.0.0",
|
|
40
|
-
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
41
|
-
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
42
|
-
"@vue/cli-service": "~5.0.0",
|
|
43
|
-
"@vue/eslint-config-standard": "^6.1.0",
|
|
44
|
-
"@vue/eslint-config-typescript": "^9.1.0",
|
|
45
|
-
"core-js": "^3.8.3",
|
|
46
|
-
"del": "^6.1.1",
|
|
47
|
-
"eslint": "^7.32.0",
|
|
48
|
-
"eslint-plugin-import": "^2.29.1",
|
|
49
|
-
"eslint-plugin-node": "^11.1.0",
|
|
50
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
51
|
-
"eslint-plugin-vue": "^8.0.3",
|
|
52
|
-
"gulp": "^4.0.2",
|
|
53
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
54
|
-
"gulp-babel": "^8.0.0",
|
|
55
|
-
"gulp-clean-css": "^4.3.0",
|
|
56
|
-
"gulp-concat": "^2.6.1",
|
|
57
|
-
"gulp-rename": "^2.0.0",
|
|
58
|
-
"gulp-replace": "^1.1.4",
|
|
59
|
-
"gulp-sass": "^5.1.0",
|
|
60
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
61
|
-
"gulp-typescript": "^5.0.1",
|
|
62
|
-
"gulp-uglify": "^3.0.2",
|
|
63
|
-
"postcss": "^8.4.38",
|
|
64
|
-
"sass": "^1.80.4",
|
|
65
|
-
"sass-loader": "^14.2.0",
|
|
66
|
-
"typescript": "~4.7.4",
|
|
67
|
-
"vue": "3.4.27",
|
|
68
|
-
"vue-router": "~4.5.1"
|
|
69
|
-
},
|
|
70
|
-
"vetur": {
|
|
71
|
-
"tags": "helper/vetur/tags.json",
|
|
72
|
-
"attributes": "helper/vetur/attributes.json"
|
|
73
|
-
},
|
|
74
|
-
"repository": {
|
|
75
|
-
"type": "git",
|
|
76
|
-
"url": "git+https://github.com/x-extends/vxe-table.git"
|
|
77
|
-
},
|
|
78
|
-
"keywords": [
|
|
79
|
-
"vxe",
|
|
80
|
-
"vxe-ui",
|
|
81
|
-
"vxe-table"
|
|
82
|
-
],
|
|
83
|
-
"author": {
|
|
84
|
-
"name": "Xu Liangzhan",
|
|
85
|
-
"email": "xu_liangzhan@163.com"
|
|
86
|
-
},
|
|
87
|
-
"license": "MIT",
|
|
88
|
-
"bugs": {
|
|
89
|
-
"url": "https://github.com/x-extends/vxe-table/issues"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vxe-table",
|
|
3
|
+
"version": "4.18.7",
|
|
4
|
+
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"update": "npm install --legacy-peer-deps",
|
|
7
|
+
"serve": "vue-cli-service serve",
|
|
8
|
+
"lint": "vue-cli-service lint",
|
|
9
|
+
"build": "vue-cli-service build",
|
|
10
|
+
"lib:modules": "gulp build",
|
|
11
|
+
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
12
|
+
"lib": "npm run lib:pack && npm run lib:modules",
|
|
13
|
+
"format": "eslint --fix examples/**/*.{js,ts,vue}"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"es",
|
|
18
|
+
"src",
|
|
19
|
+
"helper",
|
|
20
|
+
"types",
|
|
21
|
+
"styles",
|
|
22
|
+
"packages"
|
|
23
|
+
],
|
|
24
|
+
"main": "lib/index.common.js",
|
|
25
|
+
"module": "es/index.esm.js",
|
|
26
|
+
"unpkg": "lib/index.umd.js",
|
|
27
|
+
"jsdelivr": "lib/index.umd.js",
|
|
28
|
+
"style": "lib/style.css",
|
|
29
|
+
"typings": "types/index.d.ts",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"vxe-pc-ui": "^4.13.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/resize-observer-browser": "^0.1.11",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
36
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
37
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
38
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
39
|
+
"@vue/cli-plugin-router": "~5.0.0",
|
|
40
|
+
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
41
|
+
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
42
|
+
"@vue/cli-service": "~5.0.0",
|
|
43
|
+
"@vue/eslint-config-standard": "^6.1.0",
|
|
44
|
+
"@vue/eslint-config-typescript": "^9.1.0",
|
|
45
|
+
"core-js": "^3.8.3",
|
|
46
|
+
"del": "^6.1.1",
|
|
47
|
+
"eslint": "^7.32.0",
|
|
48
|
+
"eslint-plugin-import": "^2.29.1",
|
|
49
|
+
"eslint-plugin-node": "^11.1.0",
|
|
50
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
51
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
52
|
+
"gulp": "^4.0.2",
|
|
53
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
54
|
+
"gulp-babel": "^8.0.0",
|
|
55
|
+
"gulp-clean-css": "^4.3.0",
|
|
56
|
+
"gulp-concat": "^2.6.1",
|
|
57
|
+
"gulp-rename": "^2.0.0",
|
|
58
|
+
"gulp-replace": "^1.1.4",
|
|
59
|
+
"gulp-sass": "^5.1.0",
|
|
60
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
61
|
+
"gulp-typescript": "^5.0.1",
|
|
62
|
+
"gulp-uglify": "^3.0.2",
|
|
63
|
+
"postcss": "^8.4.38",
|
|
64
|
+
"sass": "^1.80.4",
|
|
65
|
+
"sass-loader": "^14.2.0",
|
|
66
|
+
"typescript": "~4.7.4",
|
|
67
|
+
"vue": "3.4.27",
|
|
68
|
+
"vue-router": "~4.5.1"
|
|
69
|
+
},
|
|
70
|
+
"vetur": {
|
|
71
|
+
"tags": "helper/vetur/tags.json",
|
|
72
|
+
"attributes": "helper/vetur/attributes.json"
|
|
73
|
+
},
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "git+https://github.com/x-extends/vxe-table.git"
|
|
77
|
+
},
|
|
78
|
+
"keywords": [
|
|
79
|
+
"vxe",
|
|
80
|
+
"vxe-ui",
|
|
81
|
+
"vxe-table"
|
|
82
|
+
],
|
|
83
|
+
"author": {
|
|
84
|
+
"name": "Xu Liangzhan",
|
|
85
|
+
"email": "xu_liangzhan@163.com"
|
|
86
|
+
},
|
|
87
|
+
"license": "MIT",
|
|
88
|
+
"bugs": {
|
|
89
|
+
"url": "https://github.com/x-extends/vxe-table/issues"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
-
|
|
5
|
-
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
-
install (app: App) {
|
|
7
|
-
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColgroupComponent)
|
|
20
|
-
|
|
21
|
-
export const Colgroup = VxeColgroup
|
|
22
|
-
export default VxeColgroup
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
+
|
|
5
|
+
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
+
install (app: App) {
|
|
7
|
+
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColgroupComponent)
|
|
20
|
+
|
|
21
|
+
export const Colgroup = VxeColgroup
|
|
22
|
+
export default VxeColgroup
|
package/packages/column/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeColumnComponent from '../table/src/column'
|
|
4
|
-
|
|
5
|
-
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
-
install (app: App) {
|
|
7
|
-
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColumnComponent)
|
|
20
|
-
|
|
21
|
-
export const Column = VxeColumn
|
|
22
|
-
export default VxeColumn
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeColumnComponent from '../table/src/column'
|
|
4
|
+
|
|
5
|
+
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
+
install (app: App) {
|
|
7
|
+
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColumnComponent)
|
|
20
|
+
|
|
21
|
+
export const Column = VxeColumn
|
|
22
|
+
export default VxeColumn
|
package/packages/components.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from './ui'
|
|
3
|
-
|
|
4
|
-
import { VxeColumn } from './column'
|
|
5
|
-
import { VxeColgroup } from './colgroup'
|
|
6
|
-
import { VxeGrid } from './grid'
|
|
7
|
-
import { VxeTable } from './table'
|
|
8
|
-
import { VxeToolbar } from './toolbar'
|
|
9
|
-
|
|
10
|
-
import zhCN from './locale/lang/zh-CN'
|
|
11
|
-
|
|
12
|
-
import type { VxeGlobalConfig } from '../types'
|
|
13
|
-
|
|
14
|
-
const components = [
|
|
15
|
-
VxeColumn,
|
|
16
|
-
VxeColgroup,
|
|
17
|
-
VxeGrid,
|
|
18
|
-
VxeTable,
|
|
19
|
-
VxeToolbar
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
// 默认安装
|
|
23
|
-
export function install (app: App, options?: VxeGlobalConfig) {
|
|
24
|
-
VxeUI.setConfig(options)
|
|
25
|
-
components.forEach(component => component.install(app))
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// 保留兼容老版本
|
|
29
|
-
if (!VxeUI.hasLanguage('zh-CN')) {
|
|
30
|
-
const defaultLanguage = 'zh-CN'
|
|
31
|
-
VxeUI.setI18n(defaultLanguage, zhCN)
|
|
32
|
-
VxeUI.setLanguage(defaultLanguage)
|
|
33
|
-
}
|
|
34
|
-
VxeUI.setTheme('light')
|
|
35
|
-
|
|
36
|
-
export * from './ui'
|
|
37
|
-
|
|
38
|
-
// Components
|
|
39
|
-
export * from './table'
|
|
40
|
-
export * from './column'
|
|
41
|
-
export * from './colgroup'
|
|
42
|
-
export * from './grid'
|
|
43
|
-
export * from './toolbar'
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from './ui'
|
|
3
|
+
|
|
4
|
+
import { VxeColumn } from './column'
|
|
5
|
+
import { VxeColgroup } from './colgroup'
|
|
6
|
+
import { VxeGrid } from './grid'
|
|
7
|
+
import { VxeTable } from './table'
|
|
8
|
+
import { VxeToolbar } from './toolbar'
|
|
9
|
+
|
|
10
|
+
import zhCN from './locale/lang/zh-CN'
|
|
11
|
+
|
|
12
|
+
import type { VxeGlobalConfig } from '../types'
|
|
13
|
+
|
|
14
|
+
const components = [
|
|
15
|
+
VxeColumn,
|
|
16
|
+
VxeColgroup,
|
|
17
|
+
VxeGrid,
|
|
18
|
+
VxeTable,
|
|
19
|
+
VxeToolbar
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
// 默认安装
|
|
23
|
+
export function install (app: App, options?: VxeGlobalConfig) {
|
|
24
|
+
VxeUI.setConfig(options)
|
|
25
|
+
components.forEach(component => component.install(app))
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// 保留兼容老版本
|
|
29
|
+
if (!VxeUI.hasLanguage('zh-CN')) {
|
|
30
|
+
const defaultLanguage = 'zh-CN'
|
|
31
|
+
VxeUI.setI18n(defaultLanguage, zhCN)
|
|
32
|
+
VxeUI.setLanguage(defaultLanguage)
|
|
33
|
+
}
|
|
34
|
+
VxeUI.setTheme('light')
|
|
35
|
+
|
|
36
|
+
export * from './ui'
|
|
37
|
+
|
|
38
|
+
// Components
|
|
39
|
+
export * from './table'
|
|
40
|
+
export * from './column'
|
|
41
|
+
export * from './colgroup'
|
|
42
|
+
export * from './grid'
|
|
43
|
+
export * from './toolbar'
|
package/packages/grid/index.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeGridComponent from './src/grid'
|
|
4
|
-
|
|
5
|
-
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
6
|
-
install (app: App) {
|
|
7
|
-
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
8
|
-
}
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
if (VxeUI.dynamicApp) {
|
|
12
|
-
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
VxeUI.component(VxeGridComponent)
|
|
16
|
-
|
|
17
|
-
export const Grid = VxeGrid
|
|
18
|
-
export default VxeGrid
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeGridComponent from './src/grid'
|
|
4
|
+
|
|
5
|
+
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
6
|
+
install (app: App) {
|
|
7
|
+
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
if (VxeUI.dynamicApp) {
|
|
12
|
+
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
VxeUI.component(VxeGridComponent)
|
|
16
|
+
|
|
17
|
+
export const Grid = VxeGrid
|
|
18
|
+
export default VxeGrid
|