sh-view 1.7.5 → 2.0.0
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/.eslintrc.js +20 -21
- package/package.json +10 -10
- package/packages/assets/css/animated.scss +167 -2
- package/packages/assets/css/loader.scss +42 -42
- package/packages/assets/css/main.scss +41 -21
- package/packages/assets/css/theme.scss +83 -44
- package/packages/components/global-components/sh-alert/index.vue +173 -0
- package/packages/components/global-components/sh-badge/index.vue +227 -0
- package/packages/components/global-components/sh-card/index.vue +140 -122
- package/packages/components/global-components/sh-code-editor/index.vue +260 -260
- package/packages/components/global-components/sh-col/css/index.scss +76 -0
- package/packages/components/global-components/sh-col/index.vue +83 -0
- package/packages/components/global-components/sh-corner/index.vue +1 -9
- package/packages/components/global-components/sh-count-to/index.vue +102 -46
- package/packages/components/global-components/sh-date/index.vue +40 -0
- package/packages/components/global-components/sh-drawer/index.vue +518 -0
- package/packages/components/global-components/sh-drawer/scrollbar.js +76 -0
- package/packages/components/global-components/sh-empty/index.vue +43 -43
- package/packages/components/global-components/{sh-vxe-form → sh-form}/css/index.scss +6 -6
- package/packages/components/global-components/{sh-vxe-form → sh-form}/index.vue +114 -115
- package/packages/components/global-components/sh-form/js/methods.js +146 -0
- package/packages/components/global-components/{sh-vxe-form → sh-form}/mixin/defaultData.js +32 -33
- package/packages/components/global-components/sh-header/index.vue +293 -269
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.svg +870 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.ttf +0 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.woff +0 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.woff2 +0 -0
- package/packages/components/global-components/sh-icon/css/default/icons.scss +2583 -0
- package/packages/components/global-components/sh-icon/css/default/index.scss +27 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.js +1 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.json +247 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.ttf +0 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.woff +0 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.woff2 +0 -0
- package/packages/components/global-components/sh-icon/css/font/icons.scss +135 -0
- package/packages/components/global-components/sh-icon/css/font/index.scss +16 -0
- package/packages/components/global-components/sh-icon/icon-default.vue +32 -0
- package/packages/components/global-components/sh-icon/{icons.vue → icon-font.vue} +32 -32
- package/packages/components/global-components/sh-icon/index.vue +28 -27
- package/packages/components/global-components/sh-image/index.vue +123 -0
- package/packages/components/global-components/sh-list/index.vue +141 -0
- package/packages/components/global-components/sh-loading/index.vue +49 -42
- package/packages/components/global-components/{sh-vxe-modal → sh-modal}/index.vue +209 -209
- package/packages/components/global-components/sh-noticebar/index.vue +201 -201
- package/packages/components/global-components/sh-poptip/index.vue +479 -0
- package/packages/components/global-components/sh-poptip/popper.js +115 -0
- package/packages/components/global-components/sh-progress/index.vue +290 -0
- package/packages/components/global-components/sh-pull-refresh/index.vue +290 -290
- package/packages/components/global-components/{sh-vxe-query → sh-query}/index.vue +317 -286
- package/packages/components/global-components/sh-result/index.vue +110 -88
- package/packages/components/global-components/sh-row/css/index.scss +21 -0
- package/packages/components/global-components/sh-row/index.vue +63 -0
- package/packages/components/global-components/sh-split/components/trigger.vue +33 -0
- package/packages/components/global-components/sh-split/index.vue +334 -0
- package/packages/components/global-components/sh-table/components/importModal.vue +351 -0
- package/packages/components/global-components/{sh-vxe-table → sh-table}/css/index.scss +4 -22
- package/packages/components/global-components/{sh-vxe-table → sh-table}/index.vue +329 -351
- package/packages/components/global-components/{sh-vxe-table → sh-table}/js/methods.js +91 -153
- package/packages/components/global-components/{sh-vxe-table → sh-table}/js/props.js +304 -313
- package/packages/components/global-components/{sh-vxe-table → sh-table}/mixin/defaultData.js +94 -116
- package/packages/components/global-components/sh-tabs/index.vue +315 -0
- package/packages/components/global-components/sh-tag/index.vue +163 -0
- package/packages/components/global-components/{sh-vxe-toolbar → sh-toolbar}/index.vue +177 -172
- package/packages/components/global-components/sh-tree/components/table-tree.vue +280 -0
- package/packages/components/global-components/sh-tree/css/index.scss +54 -0
- package/packages/components/global-components/sh-tree/index.vue +195 -0
- package/packages/components/global-components/sh-tree/mixin/treeProps.js +124 -0
- package/packages/components/global-components/sh-upload/index.vue +278 -418
- package/packages/components/global-components/sh-upload/js/ajax.js +80 -0
- package/packages/components/global-components/sh-upload/js/mixin.js +257 -0
- package/packages/components/global-components/sh-water-fall/index.vue +87 -87
- package/packages/components/index.js +85 -59
- package/packages/components/other-components/sh-cron-modal/css/index.scss +2 -2
- package/packages/components/other-components/sh-menu-card/index.vue +224 -224
- package/packages/css/index.js +4 -6
- package/packages/directive/index.js +19 -19
- package/packages/directive/module/click-out.js +14 -0
- package/packages/directive/module/draggable.js +42 -42
- package/packages/directive/module/line-clamp.js +22 -0
- package/packages/directive/module/prevent-click.js +18 -0
- package/packages/directive/module/resize.js +19 -0
- package/packages/directive/module/ripple.js +166 -0
- package/packages/index.js +39 -40
- package/packages/utils/transfer-queue.js +12 -0
- package/packages/vxeTable/css/index.scss +12 -98
- package/packages/vxeTable/css/variable.scss +7 -265
- package/packages/vxeTable/index.js +184 -184
- package/packages/vxeTable/plugins/export.js +450 -0
- package/packages/vxeTable/render/cell/vxe-render-checkgroup.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-goption.vue +94 -93
- package/packages/vxeTable/render/cell/vxe-render-img.vue +21 -28
- package/packages/vxeTable/render/cell/vxe-render-input.vue +51 -51
- package/packages/vxeTable/render/cell/vxe-render-progress.vue +19 -19
- package/packages/vxeTable/render/cell/vxe-render-radiogroup.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-select.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-tree.vue +59 -59
- package/packages/vxeTable/render/globalRenders.jsx +498 -491
- package/packages/assets/icons/demo.css +0 -539
- package/packages/assets/icons/iconfont.css +0 -415
- package/packages/assets/icons/iconfont.js +0 -1
- package/packages/assets/icons/iconfont.json +0 -709
- package/packages/assets/icons/iconfont.ttf +0 -0
- package/packages/assets/icons/iconfont.woff +0 -0
- package/packages/assets/icons/iconfont.woff2 +0 -0
- package/packages/assets/img/image-error.png +0 -0
- package/packages/assets/img/square-image.png +0 -0
- package/packages/components/global-components/sh-iv-form/components/iv-group-item.vue +0 -57
- package/packages/components/global-components/sh-iv-form/components/iv-single-item.vue +0 -76
- package/packages/components/global-components/sh-iv-form/index.vue +0 -255
- package/packages/components/global-components/sh-layout/index.vue +0 -142
- package/packages/components/global-components/sh-upload/components/u-img.vue +0 -63
- package/packages/components/global-components/sh-upload/components/u-list.vue +0 -100
- package/packages/components/global-components/sh-vxe-form/js/methods.js +0 -170
- package/packages/components/global-components/sh-vxe-list/index.vue +0 -129
- package/packages/components/global-components/sh-vxe-table/components/importModal.vue +0 -377
- package/packages/components/global-components/sh-vxe-tree/components/table-tree.vue +0 -233
- package/packages/components/global-components/sh-vxe-tree/css/index.scss +0 -20
- package/packages/components/global-components/sh-vxe-tree/index.vue +0 -85
- package/packages/components/global-components/sh-vxe-tree/js/props.js +0 -120
- package/packages/components/global-components/sh-vxe-tree/js/treeMethods.js +0 -169
- package/packages/components/global-components/sh-vxe-tree/mixin/defaultData.js +0 -54
- package/packages/components/global-components/sh-vxe-tree/vxe-direct-tree.vue +0 -203
- package/packages/components/global-components/sh-vxe-tree/vxe-select-tree.vue +0 -291
- package/packages/components/other-components/sh-markdown/tinymce/langs/ar.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/az.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/bg_BG.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/bn_BD.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ca.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/cs.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/cy.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/da.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/de.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/dv.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/el.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/eo.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/es.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/es_MX.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/et.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/eu.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fa.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fr_FR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ga.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/gl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/he_IL.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hu_HU.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hy.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/id.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/is_IS.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/it.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ja.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/kab.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/kk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ko_KR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ku.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/lt.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/lv.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nb_NO.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ne.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nl_BE.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/oc.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/pl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/pt_BR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ro.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ru.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sl_SI.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sq.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sv_SE.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ta.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/tg.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/th_TH.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/tr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ug.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/uk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/vi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/dark/content.css +0 -72
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/dark/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/default/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/document/content.css +0 -72
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/document/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/writer/content.css +0 -68
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/writer/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.css +0 -714
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.inline.css +0 -726
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.css +0 -3047
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -37
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -7
- package/packages/directive/directives.js +0 -27
- package/packages/iview/css/index.scss +0 -32
- package/packages/iview/index.js +0 -25
- /package/packages/components/global-components/{sh-vxe-form → sh-form}/components/form-item.vue +0 -0
- /package/packages/components/global-components/{sh-vxe-form → sh-form}/js/props.js +0 -0
- /package/packages/components/global-components/{sh-vxe-table → sh-table}/js/excel_to_json.js +0 -0
|
@@ -1,268 +1,10 @@
|
|
|
1
|
-
/*font*/
|
|
2
|
-
$vxe-font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol !default;
|
|
3
|
-
$vxe-font-size: 1rem !default;
|
|
4
|
-
$vxe-font-size-medium: 1rem !default;
|
|
5
|
-
$vxe-font-size-small: 0.9285rem !default;
|
|
6
|
-
$vxe-font-size-mini: 0.8571rem !default;
|
|
7
|
-
|
|
8
1
|
/*size*/
|
|
9
|
-
$vxe-border-radius:
|
|
10
|
-
|
|
11
|
-
/*icon*/
|
|
12
|
-
$vxe-icon-font-family: Verdana,Arial,Tahoma !default;
|
|
13
|
-
$vxe-icon-background-color: var(--body-background) !default;
|
|
2
|
+
$vxe-border-radius: 2px !default;
|
|
14
3
|
|
|
15
4
|
/*color*/
|
|
16
|
-
$vxe-font-color: #
|
|
17
|
-
$vxe-primary-color: #
|
|
18
|
-
$vxe-success-color: #
|
|
19
|
-
$vxe-info-color: #
|
|
20
|
-
$vxe-warning-color: #
|
|
21
|
-
$vxe-danger-color: #
|
|
22
|
-
|
|
23
|
-
$vxe-font-lighten-color: lighten($vxe-font-color, 10%) !default;
|
|
24
|
-
$vxe-primary-lighten-color: lighten($vxe-primary-color, 10%) !default;
|
|
25
|
-
$vxe-success-lighten-color: lighten($vxe-success-color, 10%) !default;
|
|
26
|
-
$vxe-info-lighten-color: lighten($vxe-info-color, 10%) !default;
|
|
27
|
-
$vxe-warning-lighten-color: lighten($vxe-warning-color, 10%) !default;
|
|
28
|
-
$vxe-danger-lighten-color: lighten($vxe-danger-color, 10%) !default;
|
|
29
|
-
|
|
30
|
-
$vxe-font-darken-color: darken($vxe-font-color, 10%) !default;
|
|
31
|
-
$vxe-primary-darken-color: darken($vxe-primary-color, 10%) !default;
|
|
32
|
-
$vxe-success-darken-color: darken($vxe-success-color, 10%) !default;
|
|
33
|
-
$vxe-info-darken-color: darken($vxe-info-color, 10%) !default;
|
|
34
|
-
$vxe-warning-darken-color: darken($vxe-warning-color, 10%) !default;
|
|
35
|
-
$vxe-danger-darken-color: darken($vxe-danger-color, 10%) !default;
|
|
36
|
-
|
|
37
|
-
$vxe-font-disabled-color: #BFBFBF !default;
|
|
38
|
-
$vxe-primary-disabled-color: lighten($vxe-primary-color, 20%) !default;
|
|
39
|
-
$vxe-success-disabled-color: lighten($vxe-success-color, 20%) !default;
|
|
40
|
-
$vxe-info-disabled-color: lighten($vxe-info-color, 20%) !default;
|
|
41
|
-
$vxe-warning-disabled-color: lighten($vxe-warning-color, 20%) !default;
|
|
42
|
-
$vxe-danger-disabled-color: lighten($vxe-danger-color, 20%) !default;
|
|
43
|
-
|
|
44
|
-
/*input/radio/checkbox*/
|
|
45
|
-
$vxe-input-border-color: var(--border-color) !default;
|
|
46
|
-
$vxe-input-disabled-color: var(--disabled-color) !default;
|
|
47
|
-
$vxe-input-disabled-background-color: var(--disabled-background) !default;
|
|
48
|
-
$vxe-input-placeholder-color: #C0C4CC !default;
|
|
49
|
-
|
|
50
|
-
/*popup*/
|
|
51
|
-
$vxe-table-popup-border-color: var(--border-color) !default;
|
|
52
|
-
|
|
53
|
-
/*table*/
|
|
54
|
-
$vxe-table-header-font-color: $vxe-font-color !default;
|
|
55
|
-
$vxe-table-footer-font-color: $vxe-font-color !default;
|
|
56
|
-
$vxe-table-border-radius: $vxe-border-radius !default;
|
|
57
|
-
$vxe-table-border-width: 1px !default;
|
|
58
|
-
$vxe-table-border-color: var(--border-color) !default;
|
|
59
|
-
$vxe-table-resizable-line-color: #D9DDDF !default;
|
|
60
|
-
$vxe-table-resizable-drag-line-color: $vxe-primary-color !default;
|
|
61
|
-
$vxe-table-header-background-color: #f8f8f9 !default;
|
|
62
|
-
$vxe-table-body-background-color: var(--body-background) !default;
|
|
63
|
-
$vxe-table-footer-background-color: var(--body-background) !default;
|
|
64
|
-
$vxe-table-tree-node-line-color:#909399 !default;
|
|
65
|
-
$vxe-table-tree-node-line-style: dotted !default;
|
|
66
|
-
$vxe-table-header-font-weight: 700 !default;
|
|
67
|
-
|
|
68
|
-
$vxe-table-row-height-default: 48px !default;
|
|
69
|
-
$vxe-table-row-height-medium: 44px !default;
|
|
70
|
-
$vxe-table-row-height-small: 40px !default;
|
|
71
|
-
$vxe-table-row-height-mini: 36px !default;
|
|
72
|
-
$vxe-table-row-line-height: 22px !default;
|
|
73
|
-
$vxe-table-row-hover-background-color: var(--hover-color) !default;
|
|
74
|
-
$vxe-table-row-striped-background-color: var(--stripe-color) !default;
|
|
75
|
-
$vxe-table-row-hover-striped-background-color: var(--hover-color) !default;
|
|
76
|
-
$vxe-table-row-radio-checked-background-color: #fff3e0 !default;
|
|
77
|
-
$vxe-table-row-hover-radio-checked-background-color: #ffebbc !default;
|
|
78
|
-
$vxe-table-row-checkbox-checked-background-color: #fff3e0 !default;
|
|
79
|
-
$vxe-table-row-hover-checkbox-checked-background-color: #ffebbc !default;
|
|
80
|
-
$vxe-table-row-current-background-color: #e6f7ff !default;
|
|
81
|
-
$vxe-table-row-hover-current-background-color: #d7effb !default;
|
|
82
|
-
|
|
83
|
-
$vxe-table-column-padding-default: 13px 0 !default;
|
|
84
|
-
$vxe-table-column-padding-medium: 11px 0 !default;
|
|
85
|
-
$vxe-table-column-padding-small: 9px 0 !default;
|
|
86
|
-
$vxe-table-column-padding-mini: 7px 0 !default;
|
|
87
|
-
$vxe-table-column-hover-background-color: #d7effb !default;
|
|
88
|
-
$vxe-table-column-current-background-color: #e6f7ff !default;
|
|
89
|
-
$vxe-table-column-icon-border-color: #c0c4cc !default;
|
|
90
|
-
$vxe-table-column-icon-border-hover-color: #515A6E !default;
|
|
91
|
-
|
|
92
|
-
$vxe-table-cell-placeholder-color: #C0C4CC !default;
|
|
93
|
-
$vxe-table-cell-padding-left: 10px !default;
|
|
94
|
-
$vxe-table-cell-padding-right: 10px !default;
|
|
95
|
-
$vxe-table-cell-input-height-default: $vxe-table-row-height-default - 6 !default;
|
|
96
|
-
$vxe-table-cell-input-height-medium: $vxe-table-row-height-medium - 6 !default;
|
|
97
|
-
$vxe-table-cell-input-height-small: $vxe-table-row-height-small - 6 !default;
|
|
98
|
-
$vxe-table-cell-input-height-mini: $vxe-table-row-height-mini - 6 !default;
|
|
99
|
-
$vxe-table-cell-dirty-width: 5px !default;
|
|
100
|
-
$vxe-table-cell-dirty-update-color: #f56c6c !default;
|
|
101
|
-
$vxe-table-cell-dirty-insert-color: #19A15F !default;
|
|
102
|
-
$vxe-table-cell-area-border-color: $vxe-primary-color !default;
|
|
103
|
-
$vxe-table-cell-area-border-width: 1px !default;
|
|
104
|
-
$vxe-table-cell-main-area-extension-border-color: var(--body-background);
|
|
105
|
-
$vxe-table-cell-main-area-extension-background-color: $vxe-primary-color !default;
|
|
106
|
-
$vxe-table-cell-extend-area-border-width: 2px !default;
|
|
107
|
-
$vxe-table-cell-copy-area-border-width: 3px !default;
|
|
108
|
-
$vxe-table-cell-active-area-border-width: 2px !default;
|
|
109
|
-
$vxe-table-cell-copy-area-border-color: $vxe-table-cell-area-border-color !default;
|
|
110
|
-
$vxe-table-cell-extend-area-border-color: $vxe-table-cell-area-border-color !default;
|
|
111
|
-
$vxe-table-cell-active-area-border-color: $vxe-table-cell-area-border-color !default;
|
|
112
|
-
$vxe-table-cell-area-background-color: rgba(64,158,255,0.2) !default;
|
|
113
|
-
|
|
114
|
-
$vxe-table-checkbox-range-border-width: 1px !default;
|
|
115
|
-
$vxe-table-checkbox-range-border-color: #006af1 !default;
|
|
116
|
-
$vxe-table-checkbox-range-background-color: rgba(50,128,252,0.2) !default;
|
|
117
|
-
|
|
118
|
-
$vxe-table-fixed-left-scrolling-box-shadow: 8px 0px 10px -5px rgba(0, 0, 0, 0.12) !default;
|
|
119
|
-
$vxe-table-fixed-right-scrolling-box-shadow: -8px 0px 10px -5px rgba(0, 0, 0, 0.12) !default;
|
|
120
|
-
|
|
121
|
-
/*filter*/
|
|
122
|
-
$vxe-table-filter-panel-background-color: var(--body-background) !default;
|
|
123
|
-
|
|
124
|
-
/*menu*/
|
|
125
|
-
$vxe-table-menu-item-width: 178px !default;
|
|
126
|
-
$vxe-table-menu-background-color: var(--body-background) !default;
|
|
127
|
-
|
|
128
|
-
/*loading*/
|
|
129
|
-
$vxe-loading-color: var(--theme-color) !default;
|
|
130
|
-
$vxe-loading-background-color: rgba(255, 255, 255, 0.5) !default;
|
|
131
|
-
$vxe-loading-z-index: 999 !default;
|
|
132
|
-
|
|
133
|
-
/*validate*/
|
|
134
|
-
$vxe-table-validate-error-color: #f56c6c !default;
|
|
135
|
-
$vxe-table-validate-error-background-color: $vxe-table-body-background-color !default;
|
|
136
|
-
|
|
137
|
-
/*grid*/
|
|
138
|
-
$vxe-grid-maximize-background-color: var(--body-background) !default;
|
|
139
|
-
|
|
140
|
-
/*toolbar*/
|
|
141
|
-
$vxe-toolbar-background-color: var(--body-background) !default;
|
|
142
|
-
$vxe-toolbar-custom-active-background-color: #D9DADB !default;
|
|
143
|
-
$vxe-toolbar-panel-background-color: var(--body-background) !default;
|
|
144
|
-
|
|
145
|
-
/*tooltip*/
|
|
146
|
-
$vxe-tooltip-dark-color: #fff !default;
|
|
147
|
-
$vxe-tooltip-dark-background-color: #303133 !default;
|
|
148
|
-
$vxe-tooltip-light-background-color: #fff !default;
|
|
149
|
-
|
|
150
|
-
/*pager*/
|
|
151
|
-
$vxe-pager-background-color: var(--body-background) !default;
|
|
152
|
-
$vxe-pager-perfect-background-color: var(--body-background) !default;
|
|
153
|
-
$vxe-pager-perfect-button-background-color: #f4f4f5 !default;
|
|
154
|
-
|
|
155
|
-
/*modal*/
|
|
156
|
-
$vxe-modal-header-background-color: #F8F8F8 !default;
|
|
157
|
-
$vxe-modal-body-background-color: var(--body-background) !default;
|
|
158
|
-
$vxe-modal-border-color: var(--border-color) !default;
|
|
159
|
-
|
|
160
|
-
/*checkbox*/
|
|
161
|
-
$vxe-checkbox-font-size-default: 15px !default;
|
|
162
|
-
$vxe-checkbox-font-size-medium: 14px !default;
|
|
163
|
-
$vxe-checkbox-font-size-small: 13px !default;
|
|
164
|
-
$vxe-checkbox-font-size-mini: 12px !default;
|
|
165
|
-
$vxe-checkbox-checked-width: 0.32em !default;
|
|
166
|
-
$vxe-checkbox-checked-height: 0.64em !default;
|
|
167
|
-
$vxe-checkbox-indeterminate-width: 0.6em !default;
|
|
168
|
-
$vxe-checkbox-indeterminate-height: 2px !default;
|
|
169
|
-
$vxe-checkbox-border-width: 2px !default;
|
|
170
|
-
$vxe-checkbox-border-radius: 2px !default;
|
|
171
|
-
$vxe-checkbox-icon-background-color: var(--body-background) !default;
|
|
172
|
-
$vxe-checkbox-checked-icon-border-color: var(--body-background) !default;
|
|
173
|
-
$vxe-checkbox-indeterminate-icon-background-color: var(--body-background) !default;
|
|
174
|
-
|
|
175
|
-
/*radio*/
|
|
176
|
-
$vxe-radio-font-size-default: $vxe-checkbox-font-size-default !default;
|
|
177
|
-
$vxe-radio-font-size-medium: $vxe-checkbox-font-size-medium !default;
|
|
178
|
-
$vxe-radio-font-size-small: $vxe-checkbox-font-size-small !default;
|
|
179
|
-
$vxe-radio-font-size-mini: $vxe-checkbox-font-size-mini !default;
|
|
180
|
-
$vxe-radio-border-width: $vxe-checkbox-border-width !default;
|
|
181
|
-
$vxe-radio-icon-background-color: var(--body-background) !default;
|
|
182
|
-
$vxe-radio-checked-icon-background-color: var(--body-background) !default;
|
|
183
|
-
$vxe-radio-indeterminate-icon-background-color: var(--body-background) !default;
|
|
184
|
-
$vxe-radio-button-default-background-color: var(--body-background) !default;
|
|
185
|
-
|
|
186
|
-
/*button*/
|
|
187
|
-
$vxe-button-max-width: 500px !default;
|
|
188
|
-
$vxe-button-default-background-color: var(--body-background) !default;
|
|
189
|
-
$vxe-button-dropdown-panel-background-color: $vxe-button-default-background-color !default;
|
|
190
|
-
$vxe-button-height-default: 34px !default;
|
|
191
|
-
$vxe-button-height-medium: 32px !default;
|
|
192
|
-
$vxe-button-height-small: 30px !default;
|
|
193
|
-
$vxe-button-height-mini: 28px !default;
|
|
194
|
-
$vxe-button-round-border-radius-default: 17px !default;
|
|
195
|
-
$vxe-button-round-border-radius-medium: 16px !default;
|
|
196
|
-
$vxe-button-round-border-radius-small: 15px !default;
|
|
197
|
-
$vxe-button-round-border-radius-mini: 14px !default;
|
|
198
|
-
|
|
199
|
-
/*input*/
|
|
200
|
-
$vxe-input-background-color: var(--body-background) !default;
|
|
201
|
-
$vxe-input-panel-background-color: $vxe-input-background-color !default;
|
|
202
|
-
$vxe-input-number-disabled-color: #e4e7ed !default;
|
|
203
|
-
$vxe-input-date-festival-color: #999999 !default;
|
|
204
|
-
$vxe-input-date-festival-important-color: $vxe-primary-color !default;
|
|
205
|
-
$vxe-input-date-notice-background-color: #FF0000 !default;
|
|
206
|
-
$vxe-input-date-picker-hover-background-color: #f2f6fc !default;
|
|
207
|
-
$vxe-input-date-picker-selected-color: var(--body-background) !default;
|
|
208
|
-
$vxe-input-date-time-confirm-button-color: var(--body-background) !default;
|
|
209
|
-
$vxe-input-date-picker-festival-selected-color: $vxe-input-date-picker-selected-color !default;
|
|
210
|
-
$vxe-input-date-picker-notice-selected-background-color: $vxe-input-date-picker-selected-color !default;
|
|
211
|
-
$vxe-input-date-extra-color: #67c23a !default;
|
|
212
|
-
$vxe-input-date-extra-important-color: #fd2222 !default;
|
|
213
|
-
$vxe-input-date-title-height-default: 30px !default;
|
|
214
|
-
$vxe-input-date-title-height-medium: 29px !default;
|
|
215
|
-
$vxe-input-date-title-height-small: 28px !default;
|
|
216
|
-
$vxe-input-date-title-height-mini: 26px !default;
|
|
217
|
-
$vxe-input-date-time-week-row-height-default: 38px !default;
|
|
218
|
-
$vxe-input-date-time-week-row-height-medium: 36px !default;
|
|
219
|
-
$vxe-input-date-time-week-row-height-small: 34px !default;
|
|
220
|
-
$vxe-input-date-time-week-row-height-mini: 32px !default;
|
|
221
|
-
$vxe-input-date-month-year-row-height-default: 48px !default;
|
|
222
|
-
$vxe-input-date-month-year-row-height-medium: 46px !default;
|
|
223
|
-
$vxe-input-date-month-year-row-height-small: 44px !default;
|
|
224
|
-
$vxe-input-date-month-year-row-height-mini: 42px !default;
|
|
225
|
-
$vxe-input-date-quarter-row-height-default: 60px !default;
|
|
226
|
-
$vxe-input-date-quarter-row-height-medium: 58px !default;
|
|
227
|
-
$vxe-input-date-quarter-row-height-small: 56px !default;
|
|
228
|
-
$vxe-input-date-quarter-row-height-mini: 54px !default;
|
|
229
|
-
$vxe-input-height-default: $vxe-button-height-default !default;
|
|
230
|
-
$vxe-input-height-medium: $vxe-button-height-medium !default;
|
|
231
|
-
$vxe-input-height-small: $vxe-button-height-small !default;
|
|
232
|
-
$vxe-input-height-mini: $vxe-button-height-mini !default;
|
|
233
|
-
|
|
234
|
-
/*textarea*/
|
|
235
|
-
$vxe-textarea-line-height: 1.5715 !default;
|
|
236
|
-
$vxe-textarea-background-color: var(--body-background) !default;
|
|
237
|
-
$vxe-textarea-count-color: #999 !default;
|
|
238
|
-
$vxe-textarea-count-background-color: var(--body-background) !default;
|
|
239
|
-
$vxe-textarea-count-error-color: $vxe-table-validate-error-color !default;
|
|
240
|
-
|
|
241
|
-
/*form*/
|
|
242
|
-
$vxe-form-item-min-height-default: 36px !default;
|
|
243
|
-
$vxe-form-item-min-height-medium: 34px !default;
|
|
244
|
-
$vxe-form-item-min-height-small: 32px !default;
|
|
245
|
-
$vxe-form-item-min-height-mini: 30px !default;
|
|
246
|
-
$vxe-form-background-color: var(--body-background) !default;
|
|
247
|
-
$vxe-form-validate-error-color: $vxe-table-validate-error-color !default;
|
|
248
|
-
$vxe-form-validate-error-background-color: inherit !default;
|
|
249
|
-
|
|
250
|
-
/*select*/
|
|
251
|
-
$vxe-select-option-height-default: 30px !default;
|
|
252
|
-
$vxe-select-option-height-medium: 28px !default;
|
|
253
|
-
$vxe-select-option-height-small: 26px !default;
|
|
254
|
-
$vxe-select-option-height-mini: 24px !default;
|
|
255
|
-
$vxe-select-option-hover-background-color: #f5f7fa !default;
|
|
256
|
-
$vxe-select-panel-background-color: var(--body-background) !default;
|
|
257
|
-
$vxe-select-empty-color: #C0C4CC !default;
|
|
258
|
-
$vxe-optgroup-title-color:#909399 !default;
|
|
259
|
-
|
|
260
|
-
/*switch*/
|
|
261
|
-
$vxe-switch-font-color: #fff !default;
|
|
262
|
-
$vxe-switch-icon-background-color: #fff !default;
|
|
263
|
-
$vxe-switch-open-background-color: $vxe-primary-color !default;
|
|
264
|
-
$vxe-switch-close-background-color: rgba(0,0,0,0.35) !default;
|
|
265
|
-
$vxe-switch-disabled-background-color: rgba(0,0,0,0.15) !default;
|
|
266
|
-
|
|
267
|
-
/*pulldown*/
|
|
268
|
-
$vxe-pulldown-panel-background-color: var(--body-background) !default;
|
|
5
|
+
$vxe-font-color: #515a6e !default;
|
|
6
|
+
$vxe-primary-color: #1890ff !default;
|
|
7
|
+
$vxe-success-color: #25ad4a !default;
|
|
8
|
+
$vxe-info-color: #2db7f5 !default;
|
|
9
|
+
$vxe-warning-color: #faad14 !default;
|
|
10
|
+
$vxe-danger-color: #ff3552 !default;
|
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
import VXETable from 'vxe-table'
|
|
2
|
-
import './css/index.scss'
|
|
3
|
-
import VXETablePluginExportXLSX from '
|
|
4
|
-
import VXETablePluginExportPDF from 'vxe-table-plugin-export-pdf'
|
|
5
|
-
import XEClipboard from 'xe-clipboard'
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
let vxeOptions = {
|
|
9
|
-
zIndex: 599,
|
|
10
|
-
version: 0,
|
|
11
|
-
input: {
|
|
12
|
-
controls: false,
|
|
13
|
-
clearable: true
|
|
14
|
-
},
|
|
15
|
-
select: {
|
|
16
|
-
optionConfig: {
|
|
17
|
-
useKey: false,
|
|
18
|
-
keyField: 'value'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
table: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
transform
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
resizeConfig: {
|
|
109
|
-
refreshDelay:
|
|
110
|
-
},
|
|
111
|
-
scrollX: {
|
|
112
|
-
enabled: true,
|
|
113
|
-
gt:
|
|
114
|
-
oSize: 0
|
|
115
|
-
},
|
|
116
|
-
scrollY: {
|
|
117
|
-
enabled: true,
|
|
118
|
-
gt:
|
|
119
|
-
oSize: 0
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
pager: {
|
|
123
|
-
currentPage: 1,
|
|
124
|
-
pageSize: 50,
|
|
125
|
-
total: 0,
|
|
126
|
-
layouts: ['Sizes', 'PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'FullJump', 'Total'],
|
|
127
|
-
pagerCount: 7,
|
|
128
|
-
pageSizes: [
|
|
129
|
-
{ label: '50条', value: 50 },
|
|
130
|
-
{ label: '100条', value: 100 },
|
|
131
|
-
{ label: '500条', value: 500 },
|
|
132
|
-
{ label: '1000条', value: 1000 },
|
|
133
|
-
{ label: '10000条', value: 10000 },
|
|
134
|
-
{ label: '10万条', value: 100000 }
|
|
135
|
-
],
|
|
136
|
-
align: 'right',
|
|
137
|
-
border: true,
|
|
138
|
-
background: false,
|
|
139
|
-
perfect: true,
|
|
140
|
-
autoHidden: false,
|
|
141
|
-
enabled: true
|
|
142
|
-
},
|
|
143
|
-
form: {},
|
|
144
|
-
modal: {
|
|
145
|
-
lockView: true,
|
|
146
|
-
resize: true,
|
|
147
|
-
mask: true,
|
|
148
|
-
duration: 3000,
|
|
149
|
-
dblclickZoom: true,
|
|
150
|
-
showTitleOverflow: true
|
|
151
|
-
},
|
|
152
|
-
icon: {},
|
|
153
|
-
loading: {
|
|
154
|
-
icon: 'vxe-icon-spinner roll',
|
|
155
|
-
text: '加载中...'
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
let vxePdfOptions = {
|
|
160
|
-
// 设置全局默认字体
|
|
161
|
-
fontName: 'SourceHanSans-Normal',
|
|
162
|
-
beforeMethod: ({ $pdf, options, columns, datas }) => {}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
VXETable.renderer.mixin(
|
|
166
|
-
VXETable.renderer.mixin(
|
|
167
|
-
VXETable.renderer.mixin(
|
|
168
|
-
VXETable.use(VXETablePluginExportXLSX)
|
|
169
|
-
VXETable.use(VXETablePluginExportPDF)
|
|
170
|
-
|
|
171
|
-
const index = {
|
|
172
|
-
install
|
|
173
|
-
let setupOption = Object.assign(vxeOptions, vxeOption)
|
|
174
|
-
let pdfSetUpOption = Object.assign(vxePdfOptions, vxePdfOption)
|
|
175
|
-
VXETable.setup(setupOption)
|
|
176
|
-
VXETablePluginExportPDF.setup(pdfSetUpOption)
|
|
177
|
-
Vue.use(VXETable)
|
|
178
|
-
Vue.config.globalProperties.$vTable = VXETable
|
|
179
|
-
Vue.config.globalProperties.$vTableSetup = setupOption
|
|
180
|
-
Vue.config.globalProperties.$vxePluginNames =
|
|
181
|
-
Vue.config.globalProperties.$vClipboard = XEClipboard
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
export default index
|
|
1
|
+
import VXETable from 'vxe-table'
|
|
2
|
+
import './css/index.scss'
|
|
3
|
+
import VXETablePluginExportXLSX from './plugins/export'
|
|
4
|
+
import VXETablePluginExportPDF from 'vxe-table-plugin-export-pdf'
|
|
5
|
+
import XEClipboard from 'xe-clipboard'
|
|
6
|
+
import { publicRenders, extraRenders, filterRenders, publicRendersNames } from './render/globalRenders.jsx'
|
|
7
|
+
|
|
8
|
+
let vxeOptions = {
|
|
9
|
+
zIndex: 599,
|
|
10
|
+
version: 0,
|
|
11
|
+
input: {
|
|
12
|
+
controls: false,
|
|
13
|
+
clearable: true
|
|
14
|
+
},
|
|
15
|
+
select: {
|
|
16
|
+
optionConfig: {
|
|
17
|
+
useKey: false,
|
|
18
|
+
keyField: 'value'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
table: {
|
|
22
|
+
fit: true,
|
|
23
|
+
stripe: false,
|
|
24
|
+
border: 'full',
|
|
25
|
+
round: false,
|
|
26
|
+
keepSource: false,
|
|
27
|
+
minHeight: 30,
|
|
28
|
+
rowConfig: {
|
|
29
|
+
useKey: false,
|
|
30
|
+
keyField: '_XID',
|
|
31
|
+
isCurrent: true,
|
|
32
|
+
isHover: true
|
|
33
|
+
},
|
|
34
|
+
sortConfig: {
|
|
35
|
+
multiple: false,
|
|
36
|
+
chronological: false,
|
|
37
|
+
trigger: 'cell'
|
|
38
|
+
},
|
|
39
|
+
radioConfig: {
|
|
40
|
+
strict: true,
|
|
41
|
+
highlight: true
|
|
42
|
+
},
|
|
43
|
+
checkboxConfig: {
|
|
44
|
+
checkStrictly: false,
|
|
45
|
+
highlight: true,
|
|
46
|
+
reserve: true,
|
|
47
|
+
checkAll: false
|
|
48
|
+
},
|
|
49
|
+
tooltipConfig: {
|
|
50
|
+
showAll: false,
|
|
51
|
+
theme: 'dark',
|
|
52
|
+
enterable: true
|
|
53
|
+
},
|
|
54
|
+
treeConfig: {
|
|
55
|
+
indent: 20,
|
|
56
|
+
showLine: false,
|
|
57
|
+
expandAll: false,
|
|
58
|
+
expandRowKeys: [],
|
|
59
|
+
accordion: true,
|
|
60
|
+
showIcon: true,
|
|
61
|
+
childrenField: 'children',
|
|
62
|
+
// 若为平行数据结构不是嵌套结构则使用下面配置 transform 需要为true
|
|
63
|
+
transform: false,
|
|
64
|
+
rowField: 'id',
|
|
65
|
+
parentField: 'parentId'
|
|
66
|
+
},
|
|
67
|
+
mouseConfig: {
|
|
68
|
+
selected: true
|
|
69
|
+
},
|
|
70
|
+
keyboardConfig: {
|
|
71
|
+
isArrow: true,
|
|
72
|
+
isEsc: true,
|
|
73
|
+
isDel: false,
|
|
74
|
+
isEnter: true,
|
|
75
|
+
isTab: true,
|
|
76
|
+
isEdit: true,
|
|
77
|
+
isChecked: true,
|
|
78
|
+
enterToTab: false
|
|
79
|
+
},
|
|
80
|
+
editConfig: {
|
|
81
|
+
enabled: true,
|
|
82
|
+
trigger: 'click',
|
|
83
|
+
mode: 'cell'
|
|
84
|
+
},
|
|
85
|
+
customConfig: {
|
|
86
|
+
storage: true
|
|
87
|
+
},
|
|
88
|
+
seqConfig: {
|
|
89
|
+
startIndex: 1,
|
|
90
|
+
seqMethod: obj => {
|
|
91
|
+
let { $table, seq, $seq, $$seq, $rowIndex } = obj
|
|
92
|
+
const grid = $table.xegrid || {}
|
|
93
|
+
const propsData = $table.props || {}
|
|
94
|
+
const { seqConfig, treeConfig } = propsData
|
|
95
|
+
const tablePage = grid.props?.pagerConfig?.enabled
|
|
96
|
+
if ($$seq) {
|
|
97
|
+
return $$seq
|
|
98
|
+
} else if (tablePage) {
|
|
99
|
+
const { pagerConfig } = grid.props
|
|
100
|
+
const pageStart = seqConfig?.startIndex || (+pagerConfig.pageSize || 50) * ((+pagerConfig.currentPage || 1) - 1)
|
|
101
|
+
return treeConfig && $seq ? Number(pageStart) + Number($seq) + '.' + seq : Number(pageStart) + Number(seq)
|
|
102
|
+
} else if (treeConfig) {
|
|
103
|
+
return $seq ? $seq + '.' + seq : seq
|
|
104
|
+
}
|
|
105
|
+
return seq === -1 ? $rowIndex + (seqConfig.startIndex || 1) : seq
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
resizeConfig: {
|
|
109
|
+
refreshDelay: 200
|
|
110
|
+
},
|
|
111
|
+
scrollX: {
|
|
112
|
+
enabled: true,
|
|
113
|
+
gt: 40,
|
|
114
|
+
oSize: 0
|
|
115
|
+
},
|
|
116
|
+
scrollY: {
|
|
117
|
+
enabled: true,
|
|
118
|
+
gt: 60,
|
|
119
|
+
oSize: 0
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
pager: {
|
|
123
|
+
currentPage: 1,
|
|
124
|
+
pageSize: 50,
|
|
125
|
+
total: 0,
|
|
126
|
+
layouts: ['Sizes', 'PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'FullJump', 'Total'],
|
|
127
|
+
pagerCount: 7,
|
|
128
|
+
pageSizes: [
|
|
129
|
+
{ label: '50条', value: 50 },
|
|
130
|
+
{ label: '100条', value: 100 },
|
|
131
|
+
{ label: '500条', value: 500 },
|
|
132
|
+
{ label: '1000条', value: 1000 },
|
|
133
|
+
{ label: '10000条', value: 10000 },
|
|
134
|
+
{ label: '10万条', value: 100000 }
|
|
135
|
+
],
|
|
136
|
+
align: 'right',
|
|
137
|
+
border: true,
|
|
138
|
+
background: false,
|
|
139
|
+
perfect: true,
|
|
140
|
+
autoHidden: false,
|
|
141
|
+
enabled: true
|
|
142
|
+
},
|
|
143
|
+
form: {},
|
|
144
|
+
modal: {
|
|
145
|
+
lockView: true,
|
|
146
|
+
resize: true,
|
|
147
|
+
mask: true,
|
|
148
|
+
duration: 3000,
|
|
149
|
+
dblclickZoom: true,
|
|
150
|
+
showTitleOverflow: true
|
|
151
|
+
},
|
|
152
|
+
icon: {},
|
|
153
|
+
loading: {
|
|
154
|
+
icon: 'vxe-icon-spinner roll',
|
|
155
|
+
text: '加载中...'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
let vxePdfOptions = {
|
|
160
|
+
// 设置全局默认字体
|
|
161
|
+
fontName: 'SourceHanSans-Normal',
|
|
162
|
+
beforeMethod: ({ $pdf, options, columns, datas }) => {}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
VXETable.renderer.mixin(publicRenders)
|
|
166
|
+
VXETable.renderer.mixin(extraRenders)
|
|
167
|
+
VXETable.renderer.mixin(filterRenders)
|
|
168
|
+
VXETable.use(VXETablePluginExportXLSX)
|
|
169
|
+
VXETable.use(VXETablePluginExportPDF)
|
|
170
|
+
|
|
171
|
+
const index = {
|
|
172
|
+
install(Vue, { vxeOption = {}, vxePdfOption = {} }) {
|
|
173
|
+
let setupOption = Object.assign(vxeOptions, vxeOption)
|
|
174
|
+
let pdfSetUpOption = Object.assign(vxePdfOptions, vxePdfOption)
|
|
175
|
+
VXETable.setup(setupOption)
|
|
176
|
+
VXETablePluginExportPDF.setup(pdfSetUpOption)
|
|
177
|
+
Vue.use(VXETable)
|
|
178
|
+
Vue.config.globalProperties.$vTable = VXETable
|
|
179
|
+
Vue.config.globalProperties.$vTableSetup = setupOption
|
|
180
|
+
Vue.config.globalProperties.$vxePluginNames = publicRendersNames
|
|
181
|
+
Vue.config.globalProperties.$vClipboard = XEClipboard
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export default index
|