vxe-table 3.6.10 → 3.6.12-beta.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/lib/all.js +3 -3
- package/lib/button/index.js +5 -5
- package/lib/button/src/button.js +29 -29
- package/lib/button/style/style.css +7 -22
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/checkbox/src/checkbox.js +17 -17
- package/lib/checkbox/src/group.js +10 -10
- package/lib/checkbox/style/style.css +3 -13
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.js +5 -5
- package/lib/colgroup/index.js +6 -6
- package/lib/column/index.js +6 -6
- package/lib/edit/index.js +5 -5
- package/lib/edit/src/mixin.js +26 -26
- package/lib/export/index.js +15 -15
- package/lib/export/src/export-panel.js +57 -57
- package/lib/export/src/import-panel.js +21 -21
- package/lib/export/src/mixin.js +73 -73
- package/lib/export/style/style.css +2 -9
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.js +7 -7
- package/lib/filter/src/mixin.js +8 -8
- package/lib/filter/src/panel.js +24 -24
- package/lib/filter/style/style.css +1 -5
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/index.js +5 -5
- package/lib/footer/src/footer.js +14 -14
- package/lib/form/index.js +5 -5
- package/lib/form/src/form-config-item.js +24 -28
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +5 -5
- package/lib/form/src/form-item.js +30 -30
- package/lib/form/src/form.js +61 -61
- package/lib/form/src/render.js +9 -9
- package/lib/form/src/util.js +6 -6
- package/lib/form/style/style.css +11 -57
- package/lib/form/style/style.min.css +1 -1
- package/lib/form-gather/index.js +5 -5
- package/lib/form-item/index.js +5 -5
- package/lib/grid/index.js +7 -7
- package/lib/grid/src/grid.js +77 -77
- package/lib/grid/style/style.css +0 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/index.js +5 -5
- package/lib/header/src/header.js +21 -21
- package/lib/icon/index.js +5 -5
- package/lib/icon/src/icon.js +3 -3
- package/lib/icon/style/style.css +33 -80
- package/lib/icon/style/style.min.css +33 -80
- package/lib/index.common.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.umd.js +1831 -1228
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +5 -5
- package/lib/input/src/date.js +3 -3
- package/lib/input/src/input.js +243 -243
- package/lib/input/src/number.js +4 -4
- package/lib/input/style/style.css +39 -159
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/index.js +5 -5
- package/lib/keyboard/src/mixin.js +15 -15
- package/lib/list/index.js +5 -5
- package/lib/list/src/list.js +21 -20
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.js +6 -6
- package/lib/loading/src/loading.js +13 -13
- package/lib/loading/style/style.css +5 -21
- package/lib/loading/style/style.min.css +1 -1
- package/lib/locale/lang/en-US.js +7 -7
- package/lib/locale/lang/en-US.umd.js +7 -7
- package/lib/locale/lang/ja-JP.js +7 -7
- package/lib/locale/lang/ja-JP.umd.js +7 -7
- package/lib/locale/lang/zh-CN.js +7 -7
- package/lib/locale/lang/zh-CN.umd.js +7 -7
- package/lib/locale/lang/zh-HK.js +4 -4
- package/lib/locale/lang/zh-HK.umd.js +7 -7
- package/lib/locale/lang/zh-MO.js +4 -4
- package/lib/locale/lang/zh-MO.umd.js +7 -7
- package/lib/locale/lang/zh-TC.js +7 -7
- package/lib/locale/lang/zh-TC.umd.js +7 -7
- package/lib/locale/lang/zh-TW.js +4 -4
- package/lib/locale/lang/zh-TW.umd.js +7 -7
- package/lib/menu/index.js +7 -7
- package/lib/menu/src/mixin.js +16 -16
- package/lib/menu/src/panel.js +14 -14
- package/lib/menu/style/style.css +1 -3
- package/lib/menu/style/style.min.css +1 -1
- package/lib/mixins/size.js +2 -2
- package/lib/modal/index.js +12 -12
- package/lib/modal/src/modal.js +104 -104
- package/lib/modal/style/style.css +14 -49
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +5 -5
- package/lib/option/index.js +5 -5
- package/lib/pager/index.js +5 -5
- package/lib/pager/src/pager.js +66 -66
- package/lib/pager/style/style.css +4 -15
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +5 -5
- package/lib/pulldown/src/pulldown.js +16 -16
- package/lib/pulldown/style/style.css +5 -13
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/src/button.js +14 -14
- package/lib/radio/src/group.js +12 -12
- package/lib/radio/src/radio.js +16 -16
- package/lib/radio/style/style.css +3 -13
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.js +5 -5
- package/lib/radio-group/index.js +5 -5
- package/lib/select/index.js +9 -9
- package/lib/select/src/optgroup.js +6 -6
- package/lib/select/src/option.js +6 -6
- package/lib/select/src/select.js +56 -56
- package/lib/select/src/util.js +2 -2
- package/lib/select/style/style.css +6 -19
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +5 -5
- package/lib/switch/src/switch.js +17 -17
- package/lib/switch/style/style.css +3 -9
- package/lib/switch/style/style.min.css +1 -1
- package/lib/table/index.js +14 -14
- package/lib/table/src/body.js +39 -39
- package/lib/table/src/cell.js +77 -77
- package/lib/table/src/column.js +17 -17
- package/lib/table/src/columnInfo.js +13 -13
- package/lib/table/src/group.js +4 -4
- package/lib/table/src/methods.js +226 -223
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +120 -120
- package/lib/table/src/util.js +19 -19
- package/lib/table/style/style.css +25 -106
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.js +5 -5
- package/lib/textarea/src/textarea.js +25 -25
- package/lib/textarea/style/style.css +0 -9
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/toolbar/index.js +5 -5
- package/lib/toolbar/src/toolbar.js +73 -73
- package/lib/toolbar/style/style.css +9 -34
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +8 -8
- package/lib/tools/event.js +3 -3
- package/lib/tools/log.js +2 -2
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +4 -4
- package/lib/tools/utils.js +12 -12
- package/lib/tools/vn.js +2 -2
- package/lib/tooltip/index.js +6 -6
- package/lib/tooltip/src/tooltip.js +30 -30
- package/lib/tooltip/style/style.css +2 -4
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/v-x-e-table/index.js +9 -9
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +2 -2
- package/lib/v-x-e-table/src/conf.js +4 -4
- package/lib/v-x-e-table/src/formats.js +2 -2
- package/lib/v-x-e-table/src/interceptor.js +5 -5
- package/lib/v-x-e-table/src/menus.js +2 -2
- package/lib/v-x-e-table/src/renderer.js +47 -47
- package/lib/v-x-e-table/src/setup.js +2 -2
- package/lib/v-x-e-table/src/store.js +6 -6
- package/lib/v-x-e-table/style/style.css +37 -100
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.js +5 -5
- package/lib/validator/src/mixin.js +25 -25
- package/package.json +2 -6
- package/packages/form/src/form-config-item.js +1 -5
- package/packages/list/src/list.js +2 -1
- package/packages/table/src/methods.js +10 -5
- /package/lib/icon/style/{iconfont.1676471822832.ttf → iconfont.1677164683133.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1676471822832.woff → iconfont.1677164683133.woff} +0 -0
- /package/lib/icon/style/{iconfont.1676471822832.woff2 → iconfont.1677164683133.woff2} +0 -0
- /package/lib/{iconfont.1676471822832.ttf → iconfont.1677164683133.ttf} +0 -0
- /package/lib/{iconfont.1676471822832.woff → iconfont.1677164683133.woff} +0 -0
- /package/lib/{iconfont.1676471822832.woff2 → iconfont.1677164683133.woff2} +0 -0
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
font-weight: 700;
|
|
33
33
|
-webkit-user-select: none;
|
|
34
34
|
-moz-user-select: none;
|
|
35
|
-
-ms-user-select: none;
|
|
36
35
|
user-select: none;
|
|
37
36
|
}
|
|
38
37
|
.is--checked.vxe-custom--option, .is--indeterminate.vxe-custom--option {
|
|
@@ -62,16 +61,9 @@
|
|
|
62
61
|
/*toolbar*/
|
|
63
62
|
.vxe-toolbar {
|
|
64
63
|
position: relative;
|
|
65
|
-
display: -webkit-box;
|
|
66
|
-
display: -ms-flexbox;
|
|
67
64
|
display: flex;
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-ms-flex-direction: row;
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
-webkit-box-align: center;
|
|
73
|
-
-ms-flex-align: center;
|
|
74
|
-
align-items: center;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
align-items: center;
|
|
75
67
|
padding: 0.6em 0;
|
|
76
68
|
color: #606266;
|
|
77
69
|
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;
|
|
@@ -100,14 +92,11 @@
|
|
|
100
92
|
z-index: 999;
|
|
101
93
|
-webkit-user-select: none;
|
|
102
94
|
-moz-user-select: none;
|
|
103
|
-
-ms-user-select: none;
|
|
104
95
|
user-select: none;
|
|
105
96
|
background-color: rgba(255, 255, 255, 0.5);
|
|
106
97
|
}
|
|
107
98
|
.vxe-toolbar .vxe-buttons--wrapper {
|
|
108
|
-
-
|
|
109
|
-
-ms-flex-positive: 1;
|
|
110
|
-
flex-grow: 1;
|
|
99
|
+
flex-grow: 1;
|
|
111
100
|
}
|
|
112
101
|
.vxe-toolbar .vxe-buttons--wrapper > .vxe-button + .vxe-button--item, .vxe-toolbar .vxe-buttons--wrapper > .vxe-button--item + .vxe-button, .vxe-toolbar .vxe-buttons--wrapper > .vxe-button--item + .vxe-button--item {
|
|
113
102
|
margin-left: 0.8em;
|
|
@@ -122,34 +111,22 @@
|
|
|
122
111
|
display: inline-block;
|
|
123
112
|
}
|
|
124
113
|
.vxe-toolbar .vxe-tools--wrapper > .vxe-button {
|
|
125
|
-
display: -webkit-box;
|
|
126
|
-
display: -ms-flexbox;
|
|
127
114
|
display: flex;
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
align-items: center;
|
|
131
|
-
-webkit-box-pack: center;
|
|
132
|
-
-ms-flex-pack: center;
|
|
133
|
-
justify-content: center;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
134
117
|
}
|
|
135
118
|
.vxe-toolbar .vxe-buttons--wrapper,
|
|
136
119
|
.vxe-toolbar .vxe-tools--wrapper,
|
|
137
120
|
.vxe-toolbar .vxe-tools--operate {
|
|
138
|
-
display: -webkit-box;
|
|
139
|
-
display: -ms-flexbox;
|
|
140
121
|
display: flex;
|
|
141
|
-
-
|
|
142
|
-
-ms-flex-align: center;
|
|
143
|
-
align-items: center;
|
|
122
|
+
align-items: center;
|
|
144
123
|
}
|
|
145
124
|
.vxe-toolbar .vxe-buttons--wrapper,
|
|
146
125
|
.vxe-toolbar .vxe-tools--wrapper {
|
|
147
|
-
|
|
148
|
-
flex-wrap: wrap;
|
|
126
|
+
flex-wrap: wrap;
|
|
149
127
|
}
|
|
150
128
|
.vxe-toolbar .vxe-tools--operate {
|
|
151
|
-
|
|
152
|
-
flex-shrink: 0;
|
|
129
|
+
flex-shrink: 0;
|
|
153
130
|
}
|
|
154
131
|
.vxe-toolbar .vxe-custom--wrapper {
|
|
155
132
|
position: relative;
|
|
@@ -171,8 +148,7 @@
|
|
|
171
148
|
z-index: 19;
|
|
172
149
|
border: 1px solid #e8eaec;
|
|
173
150
|
border-radius: 4px;
|
|
174
|
-
|
|
175
|
-
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
151
|
+
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
176
152
|
}
|
|
177
153
|
.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header {
|
|
178
154
|
padding: 0.28em 0;
|
|
@@ -277,7 +253,6 @@
|
|
|
277
253
|
padding: 0;
|
|
278
254
|
-webkit-user-select: none;
|
|
279
255
|
-moz-user-select: none;
|
|
280
|
-
-ms-user-select: none;
|
|
281
256
|
user-select: none;
|
|
282
257
|
}
|
|
283
258
|
.vxe-custom--option-wrapper .vxe-custom--header > li,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-custom--option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none
|
|
1
|
+
.vxe-custom--option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none}.is--checked.vxe-custom--option,.is--indeterminate.vxe-custom--option{color:#409eff}.is--checked.vxe-custom--option .vxe-checkbox--icon,.is--indeterminate.vxe-custom--option .vxe-checkbox--icon{color:#409eff}.vxe-custom--option:not(.is--disabled){cursor:pointer}.vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.is--disabled.vxe-custom--option{color:#bfbfbf;cursor:not-allowed}.is--disabled.vxe-custom--option .vxe-checkbox--icon{color:#dcdfe6}.vxe-custom--option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-toolbar{position:relative;display:flex;flex-direction:row;align-items:center;padding:.6em 0;color:#606266;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;background-color:#fff}.vxe-toolbar:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-toolbar.is--perfect{border:1px solid #e8eaec;border-bottom-width:0;background-color:#f8f8f9}.vxe-toolbar.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:rgba(255,255,255,.5)}.vxe-toolbar .vxe-buttons--wrapper{flex-grow:1}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button+.vxe-button--item,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button--item{margin-left:.8em}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button+.vxe-tool--item,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-button,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-tool--item{margin-left:.8em}.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button{display:flex;align-items:center;justify-content:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--operate,.vxe-toolbar .vxe-tools--wrapper{display:flex;align-items:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--wrapper{flex-wrap:wrap}.vxe-toolbar .vxe-tools--operate{flex-shrink:0}.vxe-toolbar .vxe-custom--wrapper{position:relative;margin-left:.8em}.vxe-toolbar .vxe-custom--wrapper.is--active>.vxe-button{background-color:#d9dadb;border-radius:50%}.vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper{display:block}.vxe-toolbar .vxe-custom--option-wrapper{display:none;position:absolute;right:2px;text-align:left;background-color:#fff;z-index:19;border:1px solid #e8eaec;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid #dadce0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body{padding:.2em 0;max-height:17.6em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--option:hover{background-color:#f5f7fa}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li{max-width:16em;min-width:12.5em;padding:.2em 1em .2em 1em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2{padding-left:3.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3{padding-left:4.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4{padding-left:5.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5{padding-left:6.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6{padding-left:7.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7{padding-left:8.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8{padding-left:9.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer{border-top:1px solid #dadce0;text-align:right}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button{background-color:transparent;width:50%;height:2.5em;border:0;color:#606266;text-align:center;cursor:pointer}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus{outline:0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover{color:#409eff}.vxe-custom--option-wrapper .vxe-custom--body,.vxe-custom--option-wrapper .vxe-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-custom--option-wrapper .vxe-custom--header>li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-toolbar{font-size:14px}.vxe-toolbar.size--medium{font-size:14px}.vxe-toolbar.size--small{font-size:13px}.vxe-toolbar.size--mini{font-size:12px}
|
package/lib/tools/dom.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.browse = exports.DomTools = void 0;
|
|
7
7
|
exports.getOffsetHeight = getOffsetHeight;
|
|
8
8
|
exports.getPaddingTopBottomSize = getPaddingTopBottomSize;
|
|
9
9
|
exports.setScrollLeft = setScrollLeft;
|
|
10
10
|
exports.setScrollTop = setScrollTop;
|
|
11
11
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
var browse = _xeUtils
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
var browse = _xeUtils["default"].browse();
|
|
14
14
|
exports.browse = browse;
|
|
15
15
|
var reClsMap = {};
|
|
16
16
|
function getClsRE(cls) {
|
|
@@ -61,8 +61,8 @@ function getOffsetHeight(elem) {
|
|
|
61
61
|
function getPaddingTopBottomSize(elem) {
|
|
62
62
|
if (elem) {
|
|
63
63
|
var computedStyle = getComputedStyle(elem);
|
|
64
|
-
var paddingTop = _xeUtils
|
|
65
|
-
var paddingBottom = _xeUtils
|
|
64
|
+
var paddingTop = _xeUtils["default"].toNumber(computedStyle.paddingTop);
|
|
65
|
+
var paddingBottom = _xeUtils["default"].toNumber(computedStyle.paddingBottom);
|
|
66
66
|
return paddingTop + paddingBottom;
|
|
67
67
|
}
|
|
68
68
|
return 0;
|
|
@@ -183,9 +183,9 @@ var DomTools = {
|
|
|
183
183
|
} else {
|
|
184
184
|
var excludeHeight = $xetable.getExcludeHeight();
|
|
185
185
|
if (isScale(val)) {
|
|
186
|
-
num = Math.floor((_xeUtils
|
|
186
|
+
num = Math.floor((_xeUtils["default"].toInteger(val) || 1) / 100 * $xetable.parentHeight);
|
|
187
187
|
} else {
|
|
188
|
-
num = _xeUtils
|
|
188
|
+
num = _xeUtils["default"].toNumber(val);
|
|
189
189
|
}
|
|
190
190
|
num = Math.max(40, num - excludeHeight);
|
|
191
191
|
}
|
|
@@ -196,4 +196,4 @@ var DomTools = {
|
|
|
196
196
|
};
|
|
197
197
|
exports.DomTools = DomTools;
|
|
198
198
|
var _default = DomTools;
|
|
199
|
-
exports
|
|
199
|
+
exports["default"] = _default;
|
package/lib/tools/event.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.hasEventKey = exports.GlobalEvent = exports.EVENT_KEYS = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _dom = require("./dom");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
var EVENT_KEYS = {
|
|
11
11
|
F2: 'F2',
|
|
12
12
|
ESCAPE: 'Escape',
|
|
@@ -54,7 +54,7 @@ var GlobalEvent = {
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
off: function off(comp, type) {
|
|
57
|
-
_xeUtils
|
|
57
|
+
_xeUtils["default"].remove(eventStore, function (item) {
|
|
58
58
|
return item.comp === comp && item.type === type;
|
|
59
59
|
});
|
|
60
60
|
},
|
|
@@ -92,7 +92,7 @@ if (_dom.browse.isDoc) {
|
|
|
92
92
|
window.addEventListener('mousedown', GlobalEvent.trigger, false);
|
|
93
93
|
window.addEventListener('blur', GlobalEvent.trigger, false);
|
|
94
94
|
window.addEventListener('resize', GlobalEvent.trigger, false);
|
|
95
|
-
window.addEventListener(wheelName, _xeUtils
|
|
95
|
+
window.addEventListener(wheelName, _xeUtils["default"].throttle(GlobalEvent.trigger, 100, {
|
|
96
96
|
leading: true,
|
|
97
97
|
trailing: false
|
|
98
98
|
}), false);
|
package/lib/tools/log.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.errLog = void 0;
|
|
|
7
7
|
exports.getLog = getLog;
|
|
8
8
|
exports.warnLog = void 0;
|
|
9
9
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
function getLog(message, params) {
|
|
12
|
-
return "[vxe-table v".concat("3.6.
|
|
12
|
+
return "[vxe-table v".concat("3.6.12-beta.0", "] ", _conf["default"].i18n(message, params));
|
|
13
13
|
}
|
|
14
14
|
function outLog(type) {
|
|
15
15
|
return function (message, params) {
|
package/lib/tools/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errLog=void 0,exports.getLog=getLog,exports.warnLog=void 0;var _conf=_interopRequireDefault(require("../v-x-e-table/src/conf"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getLog(e,o){return"[vxe-table v".concat("3.6.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errLog=void 0,exports.getLog=getLog,exports.warnLog=void 0;var _conf=_interopRequireDefault(require("../v-x-e-table/src/conf"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getLog(e,o){return"[vxe-table v".concat("3.6.12-beta.0","] ",_conf.default.i18n(e,o))}function outLog(r){return function(e,o){e=getLog(e,o);return console[r](e),e}}var warnLog=outLog("warn"),errLog=(exports.warnLog=warnLog,outLog("error"));exports.errLog=errLog;
|
package/lib/tools/resize.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createResizeEvent = createResizeEvent;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -41,7 +41,7 @@ function eventHandle() {
|
|
|
41
41
|
}
|
|
42
42
|
function eventListener() {
|
|
43
43
|
clearTimeout(resizeTimeout);
|
|
44
|
-
resizeTimeout = setTimeout(eventHandle, _conf
|
|
44
|
+
resizeTimeout = setTimeout(eventHandle, _conf["default"].resizeInterval || defaultInterval);
|
|
45
45
|
}
|
|
46
46
|
var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
47
47
|
function ResizeObserverPolyfill(callback) {
|
|
@@ -76,7 +76,7 @@ var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
|
76
76
|
}, {
|
|
77
77
|
key: "unobserve",
|
|
78
78
|
value: function unobserve(target) {
|
|
79
|
-
_xeUtils
|
|
79
|
+
_xeUtils["default"].remove(eventStore, function (item) {
|
|
80
80
|
return item.tarList.some(function (observer) {
|
|
81
81
|
return observer.target === target;
|
|
82
82
|
});
|
|
@@ -86,7 +86,7 @@ var ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
|
86
86
|
key: "disconnect",
|
|
87
87
|
value: function disconnect() {
|
|
88
88
|
var _this2 = this;
|
|
89
|
-
_xeUtils
|
|
89
|
+
_xeUtils["default"].remove(eventStore, function (item) {
|
|
90
90
|
return item === _this2;
|
|
91
91
|
});
|
|
92
92
|
}
|
package/lib/tools/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.UtilTools = void 0;
|
|
7
7
|
exports.eqEmptyValue = eqEmptyValue;
|
|
8
8
|
exports.getColumnList = getColumnList;
|
|
9
9
|
exports.getFuncText = getFuncText;
|
|
@@ -11,7 +11,7 @@ exports.isEnableConf = isEnableConf;
|
|
|
11
11
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
12
12
|
var _conf = _interopRequireDefault(require("../v-x-e-table/src/conf"));
|
|
13
13
|
var _log = require("../tools/log");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
16
16
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
17
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -28,10 +28,10 @@ function isEnableConf(conf) {
|
|
|
28
28
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
29
29
|
*/
|
|
30
30
|
function eqEmptyValue(cellValue) {
|
|
31
|
-
return cellValue === '' || _xeUtils
|
|
31
|
+
return cellValue === '' || _xeUtils["default"].eqNull(cellValue);
|
|
32
32
|
}
|
|
33
33
|
function getFuncText(content) {
|
|
34
|
-
return _xeUtils
|
|
34
|
+
return _xeUtils["default"].isFunction(content) ? content() : _conf["default"].translate ? _conf["default"].translate(content) : content;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// 获取所有的列,排除分组
|
|
@@ -44,7 +44,7 @@ function getColumnList(columns) {
|
|
|
44
44
|
}
|
|
45
45
|
var UtilTools = {
|
|
46
46
|
nextZIndex: function nextZIndex() {
|
|
47
|
-
lastZindex = _conf
|
|
47
|
+
lastZindex = _conf["default"].zIndex + zindexIndex++;
|
|
48
48
|
return lastZindex;
|
|
49
49
|
},
|
|
50
50
|
getLastZIndex: function getLastZIndex() {
|
|
@@ -52,16 +52,16 @@ var UtilTools = {
|
|
|
52
52
|
},
|
|
53
53
|
getColumnList: getColumnList,
|
|
54
54
|
getClass: function getClass(property, params) {
|
|
55
|
-
return property ? _xeUtils
|
|
55
|
+
return property ? _xeUtils["default"].isFunction(property) ? property(params) : property : '';
|
|
56
56
|
},
|
|
57
57
|
formatText: function formatText(value, placeholder) {
|
|
58
|
-
return '' + (value === '' || value === null || value === undefined ? placeholder ? _conf
|
|
58
|
+
return '' + (value === '' || value === null || value === undefined ? placeholder ? _conf["default"].emptyCell : '' : value);
|
|
59
59
|
},
|
|
60
60
|
getCellValue: function getCellValue(row, column) {
|
|
61
|
-
return _xeUtils
|
|
61
|
+
return _xeUtils["default"].get(row, column.field);
|
|
62
62
|
},
|
|
63
63
|
setCellValue: function setCellValue(row, column, value) {
|
|
64
|
-
return _xeUtils
|
|
64
|
+
return _xeUtils["default"].set(row, column.field, value);
|
|
65
65
|
},
|
|
66
66
|
// 组装列配置
|
|
67
67
|
assemColumn: function assemColumn(_vm) {
|
|
@@ -91,7 +91,7 @@ var UtilTools = {
|
|
|
91
91
|
destroyColumn: function destroyColumn(_vm) {
|
|
92
92
|
var $xetable = _vm.$xetable,
|
|
93
93
|
columnConfig = _vm.columnConfig;
|
|
94
|
-
var matchObj = _xeUtils
|
|
94
|
+
var matchObj = _xeUtils["default"].findTree($xetable.staticColumns, function (column) {
|
|
95
95
|
return column === columnConfig;
|
|
96
96
|
});
|
|
97
97
|
if (matchObj) {
|
|
@@ -103,7 +103,7 @@ var UtilTools = {
|
|
|
103
103
|
},
|
|
104
104
|
parseFile: function parseFile(file) {
|
|
105
105
|
var name = file.name;
|
|
106
|
-
var tIndex = _xeUtils
|
|
106
|
+
var tIndex = _xeUtils["default"].lastIndexOf(name, '.');
|
|
107
107
|
var type = name.substring(tIndex + 1, name.length);
|
|
108
108
|
var filename = name.substring(0, tIndex);
|
|
109
109
|
return {
|
|
@@ -117,4 +117,4 @@ var UtilTools = {
|
|
|
117
117
|
};
|
|
118
118
|
exports.UtilTools = UtilTools;
|
|
119
119
|
var _default = UtilTools;
|
|
120
|
-
exports
|
|
120
|
+
exports["default"] = _default;
|
package/lib/tools/vn.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getSlotVNs = getSlotVNs;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
function getSlotVNs(vns) {
|
|
10
|
-
if (_xeUtils
|
|
10
|
+
if (_xeUtils["default"].isArray(vns)) {
|
|
11
11
|
return vns;
|
|
12
12
|
}
|
|
13
13
|
return [vns];
|
package/lib/tooltip/index.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.Tooltip = void 0;
|
|
7
7
|
var _tooltip = _interopRequireDefault(require("./src/tooltip"));
|
|
8
8
|
var _vXETable = _interopRequireDefault(require("../v-x-e-table"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var Tooltip = Object.assign(_tooltip
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
var Tooltip = Object.assign(_tooltip["default"], {
|
|
11
11
|
install: function install(Vue) {
|
|
12
|
-
_vXETable
|
|
13
|
-
Vue.component(_tooltip
|
|
12
|
+
_vXETable["default"]._tooltip = 1;
|
|
13
|
+
Vue.component(_tooltip["default"].name, _tooltip["default"]);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
exports.Tooltip = Tooltip;
|
|
17
17
|
var _default = Tooltip;
|
|
18
|
-
exports
|
|
18
|
+
exports["default"] = _default;
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
9
9
|
var _size = _interopRequireDefault(require("../../mixins/size"));
|
|
10
10
|
var _utils = _interopRequireDefault(require("../../tools/utils"));
|
|
11
11
|
var _dom = _interopRequireDefault(require("../../tools/dom"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
14
|
function updateTipStyle(_vm) {
|
|
15
15
|
var wrapperElem = _vm.$el,
|
|
16
16
|
tipTarget = _vm.tipTarget,
|
|
17
17
|
tipStore = _vm.tipStore;
|
|
18
18
|
if (tipTarget) {
|
|
19
|
-
var _DomTools$getDomNode = _dom
|
|
19
|
+
var _DomTools$getDomNode = _dom["default"].getDomNode(),
|
|
20
20
|
scrollTop = _DomTools$getDomNode.scrollTop,
|
|
21
21
|
scrollLeft = _DomTools$getDomNode.scrollLeft,
|
|
22
22
|
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
23
|
-
var _DomTools$getAbsolute = _dom
|
|
23
|
+
var _DomTools$getAbsolute = _dom["default"].getAbsolutePos(tipTarget),
|
|
24
24
|
top = _DomTools$getAbsolute.top,
|
|
25
25
|
left = _DomTools$getAbsolute.left;
|
|
26
26
|
var marginSize = 6;
|
|
@@ -69,13 +69,13 @@ function renderContent(h, _vm) {
|
|
|
69
69
|
if ($scopedSlots.content) {
|
|
70
70
|
return h('div', {
|
|
71
71
|
key: 1,
|
|
72
|
-
class: 'vxe-table--tooltip-content'
|
|
72
|
+
"class": 'vxe-table--tooltip-content'
|
|
73
73
|
}, $scopedSlots.content.call(this, {}));
|
|
74
74
|
}
|
|
75
75
|
if (useHTML) {
|
|
76
76
|
return h('div', {
|
|
77
77
|
key: 2,
|
|
78
|
-
class: 'vxe-table--tooltip-content',
|
|
78
|
+
"class": 'vxe-table--tooltip-content',
|
|
79
79
|
domProps: {
|
|
80
80
|
innerHTML: tipContent
|
|
81
81
|
}
|
|
@@ -83,53 +83,53 @@ function renderContent(h, _vm) {
|
|
|
83
83
|
}
|
|
84
84
|
return h('div', {
|
|
85
85
|
key: 3,
|
|
86
|
-
class: 'vxe-table--tooltip-content'
|
|
87
|
-
}, _utils
|
|
86
|
+
"class": 'vxe-table--tooltip-content'
|
|
87
|
+
}, _utils["default"].formatText(tipContent));
|
|
88
88
|
}
|
|
89
89
|
var _default2 = {
|
|
90
90
|
name: 'VxeTooltip',
|
|
91
|
-
mixins: [_size
|
|
91
|
+
mixins: [_size["default"]],
|
|
92
92
|
props: {
|
|
93
93
|
value: Boolean,
|
|
94
94
|
size: {
|
|
95
95
|
type: String,
|
|
96
|
-
default: function _default() {
|
|
97
|
-
return _conf
|
|
96
|
+
"default": function _default() {
|
|
97
|
+
return _conf["default"].tooltip.size || _conf["default"].size;
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
trigger: {
|
|
101
101
|
type: String,
|
|
102
|
-
default: function _default() {
|
|
103
|
-
return _conf
|
|
102
|
+
"default": function _default() {
|
|
103
|
+
return _conf["default"].tooltip.trigger;
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
theme: {
|
|
107
107
|
type: String,
|
|
108
|
-
default: function _default() {
|
|
109
|
-
return _conf
|
|
108
|
+
"default": function _default() {
|
|
109
|
+
return _conf["default"].tooltip.theme;
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
content: {
|
|
113
113
|
type: [String, Number],
|
|
114
|
-
default: null
|
|
114
|
+
"default": null
|
|
115
115
|
},
|
|
116
116
|
useHTML: Boolean,
|
|
117
117
|
zIndex: [String, Number],
|
|
118
118
|
isArrow: {
|
|
119
119
|
type: Boolean,
|
|
120
|
-
default: true
|
|
120
|
+
"default": true
|
|
121
121
|
},
|
|
122
122
|
enterable: Boolean,
|
|
123
123
|
enterDelay: {
|
|
124
124
|
type: Number,
|
|
125
|
-
default: function _default() {
|
|
126
|
-
return _conf
|
|
125
|
+
"default": function _default() {
|
|
126
|
+
return _conf["default"].tooltip.enterDelay;
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
leaveDelay: {
|
|
130
130
|
type: Number,
|
|
131
|
-
default: function _default() {
|
|
132
|
-
return _conf
|
|
131
|
+
"default": function _default() {
|
|
132
|
+
return _conf["default"].tooltip.leaveDelay;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
},
|
|
@@ -161,7 +161,7 @@ var _default2 = {
|
|
|
161
161
|
},
|
|
162
162
|
created: function created() {
|
|
163
163
|
var _this = this;
|
|
164
|
-
this.showDelayTip = _xeUtils
|
|
164
|
+
this.showDelayTip = _xeUtils["default"].debounce(function () {
|
|
165
165
|
if (_this.tipActive) {
|
|
166
166
|
showTip(_this);
|
|
167
167
|
}
|
|
@@ -179,8 +179,8 @@ var _default2 = {
|
|
|
179
179
|
if (parentNode) {
|
|
180
180
|
var target;
|
|
181
181
|
this.tipContent = content;
|
|
182
|
-
this.tipZindex = _utils
|
|
183
|
-
_xeUtils
|
|
182
|
+
this.tipZindex = _utils["default"].nextZIndex();
|
|
183
|
+
_xeUtils["default"].arrayEach($el.children, function (elem, index) {
|
|
184
184
|
if (index > 1) {
|
|
185
185
|
parentNode.insertBefore(elem, $el);
|
|
186
186
|
if (!target) {
|
|
@@ -238,14 +238,14 @@ var _default2 = {
|
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
return h('div', {
|
|
241
|
-
class: ['vxe-table--tooltip-wrapper', "theme--".concat(theme), (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
|
|
241
|
+
"class": ['vxe-table--tooltip-wrapper', "theme--".concat(theme), (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "placement--".concat(tipStore.placement), tipStore.placement), _defineProperty(_ref, 'is--enterable', enterable), _defineProperty(_ref, 'is--visible', visible), _defineProperty(_ref, 'is--arrow', isArrow), _defineProperty(_ref, 'is--actived', tipActive), _ref)],
|
|
242
242
|
style: tipStore.style,
|
|
243
243
|
ref: 'tipWrapper',
|
|
244
244
|
on: on
|
|
245
245
|
}, [renderContent(h, this), h('div', {
|
|
246
|
-
class: 'vxe-table--tooltip-arrow',
|
|
246
|
+
"class": 'vxe-table--tooltip-arrow',
|
|
247
247
|
style: tipStore.arrowStyle
|
|
248
|
-
})].concat($scopedSlots
|
|
248
|
+
})].concat($scopedSlots["default"] ? $scopedSlots["default"].call(this, {}) : []));
|
|
249
249
|
},
|
|
250
250
|
methods: {
|
|
251
251
|
open: function open(target, content) {
|
|
@@ -272,8 +272,8 @@ var _default2 = {
|
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
updateZindex: function updateZindex() {
|
|
275
|
-
if (this.tipZindex < _utils
|
|
276
|
-
this.tipZindex = _utils
|
|
275
|
+
if (this.tipZindex < _utils["default"].getLastZIndex()) {
|
|
276
|
+
this.tipZindex = _utils["default"].nextZIndex();
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
toVisible: function toVisible(target, content) {
|
|
@@ -353,4 +353,4 @@ var _default2 = {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
exports
|
|
356
|
+
exports["default"] = _default2;
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
padding: 8px 12px;
|
|
36
36
|
white-space: normal;
|
|
37
37
|
word-break: break-word;
|
|
38
|
-
|
|
39
|
-
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
38
|
+
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
40
39
|
color: #606266;
|
|
41
40
|
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;
|
|
42
41
|
}
|
|
@@ -67,8 +66,7 @@
|
|
|
67
66
|
border-width: 6px;
|
|
68
67
|
border-style: solid;
|
|
69
68
|
left: 50%;
|
|
70
|
-
|
|
71
|
-
transform: translateX(-6px);
|
|
69
|
+
transform: translateX(-6px);
|
|
72
70
|
}
|
|
73
71
|
.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow:before {
|
|
74
72
|
content: "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-table--tooltip-wrapper{display:none;position:absolute;top:-100%;left:-100%;font-size:12px;max-width:600px;border-radius:4px;padding:8px 12px;white-space:normal;word-break:break-word
|
|
1
|
+
.vxe-table--tooltip-wrapper{display:none;position:absolute;top:-100%;left:-100%;font-size:12px;max-width:600px;border-radius:4px;padding:8px 12px;white-space:normal;word-break:break-word;box-shadow:2px 2px 4px -2px rgba(0,0,0,.2);color:#606266;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}.vxe-table--tooltip-wrapper:not(.is--enterable){pointer-events:none}.vxe-table--tooltip-wrapper.is--visible{display:block}.vxe-table--tooltip-wrapper.is--arrow .vxe-table--tooltip-arrow{display:block}.vxe-table--tooltip-wrapper.is--enterable:after{content:"";position:absolute;left:0;width:100%;height:6px;background-color:transparent}.vxe-table--tooltip-wrapper .vxe-table--tooltip-content{white-space:pre-line}.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow{display:none;position:absolute;border-color:transparent;border-width:6px;border-style:solid;left:50%;transform:translateX(-6px)}.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow:before{content:"";position:absolute;border-color:transparent;border-width:5px;border-style:solid;left:-5px}.vxe-table--tooltip-wrapper.placement--top.is--enterable:after{bottom:-6px}.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow{bottom:-12px}.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow:before{top:-7px}.vxe-table--tooltip-wrapper.placement--bottom.is--enterable:after{top:-6px}.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow{top:-12px}.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow:before{top:-4px}.vxe-table--tooltip-wrapper.theme--light{background-color:#fff;border:1px solid #dcdfe6}.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow{border-top-color:#dcdfe6}.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow:before{border-top-color:#fff}.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow{border-bottom-color:#dcdfe6}.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow:before{border-bottom-color:#fff}.vxe-table--tooltip-wrapper.theme--dark{background:#303133;color:#fff}.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow{border-top-color:#303133}.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow:before{border-top-color:#303133}.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow{border-bottom-color:#303133}.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow:before{border-bottom-color:#303133}.vxe-table--tooltip-wrapper.vxe-table--valid-error{background-color:#f56c6c;color:#fff}
|