kui-vue 3.3.0-rc2 → 3.3.2
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/components/affix/demo/callbacks.md +25 -0
- package/components/affix/demo/index.vue +2 -2
- package/components/avatar/demo/change.md +7 -8
- package/components/avatar/demo/index.vue +9 -2
- package/components/avatar/demo/types.md +4 -4
- package/components/badge/demo/color.md +1 -1
- package/components/badge/demo/dot.md +1 -1
- package/components/badge/demo/index.vue +8 -8
- package/components/breadcrumb/demo/icon.md +1 -1
- package/components/breadcrumb/demo/index.vue +4 -4
- package/components/breadcrumb/demo/separator.md +5 -7
- package/components/breadcrumb/styles/index.less +12 -0
- package/components/button/demo/index.vue +7 -7
- package/components/button/demo/normal.md +2 -2
- package/components/button/demo/size.md +1 -1
- package/components/button/styles/index.less +145 -44
- package/components/card/demo/index.vue +3 -3
- package/components/carousel/demo/index.vue +1 -1
- package/components/checkbox/demo/disabled.md +15 -10
- package/components/checkbox/demo/index.vue +16 -9
- package/components/collapse/demo/index.vue +6 -6
- package/components/colorPicker/colorpicker.jsx +1 -0
- package/components/colorPicker/demo/index.vue +2 -2
- package/components/colorPicker/styles/index.less +293 -240
- package/components/datePicker/demo/index.vue +1 -1
- package/components/datePicker/styles/datepicker.less +1 -0
- package/components/descriptions/demo/index.vue +2 -2
- package/components/divider/demo/index.vue +4 -4
- package/components/drawer/demo/form.md +0 -26
- package/components/drawer/demo/index.vue +16 -8
- package/components/dropdown/demo/base.md +2 -2
- package/components/dropdown/demo/index.vue +12 -3
- package/components/dropdown/demo/placement.md +0 -8
- package/components/empty/demo/custom.md +2 -2
- package/components/empty/demo/index.vue +5 -5
- package/components/form/styles/index.less +39 -4
- package/components/icon/demo/index.vue +3 -3
- package/components/image/demo/base.md +1 -1
- package/components/image/demo/errors.md +2 -2
- package/components/image/demo/extra.md +3 -3
- package/components/image/demo/extra_globle.md +3 -3
- package/components/image/demo/globle.md +4 -4
- package/components/image/demo/group.md +2 -2
- package/components/image/demo/index.vue +8 -8
- package/components/image/demo/origin.md +2 -2
- package/components/image/preview.jsx +13 -6
- package/components/image/styles/index.less +5 -2
- package/components/input/demo/index.vue +9 -9
- package/components/input/styles/index.less +21 -8
- package/components/inputNumber/demo/index.vue +6 -6
- package/components/inputNumber/styles/index.less +1 -1
- package/components/layout/styles/index.less +5 -1
- package/components/loading/demo/index.vue +10 -3
- package/components/locale/index.js +1 -1
- package/components/menu/styles/dropmenu.less +19 -1
- package/components/menu/styles/index.less +156 -19
- package/components/message/demo/index.vue +16 -7
- package/components/modal/demo/base.md +3 -1
- package/components/modal/demo/confrim.md +3 -2
- package/components/modal/demo/index.vue +17 -8
- package/components/modal/index.js +6 -5
- package/components/modal/modal.jsx +1 -1
- package/components/modal/styles/index.less +18 -14
- package/components/notice/demo/index.vue +16 -7
- package/components/notice/styles/index.less +1 -0
- package/components/page/demo/index.vue +6 -6
- package/components/page/styles/index.less +10 -3
- package/components/popconfirm/demo/index.vue +1 -1
- package/components/popconfirm/styles/index.less +1 -1
- package/components/poptip/demo/index.vue +1 -1
- package/components/poptip/styles/index.less +197 -170
- package/components/progress/demo/index.vue +1 -1
- package/components/radio/demo/index.vue +9 -10
- package/components/radio/styles/index.less +1 -1
- package/components/rate/demo/index.vue +9 -9
- package/components/select/demo/index.vue +10 -10
- package/components/skeleton/demo/custom.md +1 -1
- package/components/skeleton/demo/index.vue +1 -1
- package/components/slider/demo/index.vue +8 -8
- package/components/slider/styles/index.less +5 -1
- package/components/slider/thumb.jsx +25 -7
- package/components/space/demo/index.vue +8 -8
- package/components/spin/demo/base.md +3 -1
- package/components/spin/demo/index.vue +5 -5
- package/components/spin/spin.jsx +8 -1
- package/components/spin/styles/index.less +18 -4
- package/components/styles/color.less +18 -2
- package/components/styles/var.less +26 -4
- package/components/switch/demo/index.vue +8 -8
- package/components/switch/styles/index.less +28 -1
- package/components/table/demo/base-render.md +1 -1
- package/components/table/demo/base.md +1 -1
- package/components/table/demo/bordered.md +1 -1
- package/components/table/demo/custom-header.md +1 -1
- package/components/table/demo/edit.md +1 -1
- package/components/table/demo/fixed-head.md +3 -1
- package/components/table/demo/index.vue +19 -21
- package/components/table/extend.jsx +29 -11
- package/components/table/index.md +1 -0
- package/components/table/styles/index.less +10 -1
- package/components/table/table.jsx +3 -3
- package/components/tabs/demo/index.vue +10 -10
- package/components/tag/demo/index.vue +4 -4
- package/components/timeline/demo/index.vue +4 -4
- package/components/tooltip/demo/index.vue +1 -1
- package/components/tooltip/styles/index.less +1 -1
- package/components/tree/demo/index.vue +1 -1
- package/components/upload/demo/index.vue +12 -12
- package/components/upload/demo/picture.md +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/dist/locale/de.js +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/ua.js +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zhCN.js +1 -1
- package/dist/locale/zhTW.js +1 -1
- package/package.json +17 -20
- package/readme.md +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Custom from './custom'
|
|
5
|
-
import More from './more'
|
|
6
|
-
import Global from './global'
|
|
7
|
-
import Confrim from './confrim'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Custom from './custom.md'
|
|
5
|
+
import More from './more.md'
|
|
6
|
+
import Global from './global.md'
|
|
7
|
+
import Confrim from './confrim.md'
|
|
8
8
|
import CN from '../index.md'
|
|
9
9
|
export default {
|
|
10
10
|
render() {
|
|
11
11
|
return (
|
|
12
|
-
<div>
|
|
12
|
+
<div class="demo-modal">
|
|
13
13
|
<Info class="typo" />
|
|
14
14
|
<Base />
|
|
15
15
|
<Custom />
|
|
@@ -22,4 +22,13 @@ export default {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
</script>
|
|
25
|
+
</script>
|
|
26
|
+
<style lang="less">
|
|
27
|
+
.demo-modal {
|
|
28
|
+
.k-btn{
|
|
29
|
+
margin-right: 10px;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
min-width: 70px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -3,6 +3,7 @@ import Icon from '../icon'
|
|
|
3
3
|
import Vue from 'vue'
|
|
4
4
|
import Button from '../button'
|
|
5
5
|
import { t } from '../locale'
|
|
6
|
+
import{InformationCircle,CloseCircle,CheckmarkCircle,AlertCircle,HelpCircle} from 'kui-icons'
|
|
6
7
|
const SSR = Vue && Vue.prototype.$isServer
|
|
7
8
|
|
|
8
9
|
function isPromise(obj) {
|
|
@@ -26,11 +27,11 @@ let createInstance = (props = {}) => {
|
|
|
26
27
|
//icons
|
|
27
28
|
let { title, content, color, type, icon, cancelText, okText } = props
|
|
28
29
|
let icons = {
|
|
29
|
-
info:
|
|
30
|
-
error:
|
|
31
|
-
success:
|
|
32
|
-
warning:
|
|
33
|
-
confirm:
|
|
30
|
+
info: InformationCircle,
|
|
31
|
+
error: CloseCircle,
|
|
32
|
+
success: CheckmarkCircle,
|
|
33
|
+
warning: AlertCircle,
|
|
34
|
+
confirm: HelpCircle
|
|
34
35
|
}
|
|
35
36
|
//header
|
|
36
37
|
let header = h('div', { attrs: { class: 'k-toast-header' } }, [
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
185
185
|
let contentNode = $slots.content
|
|
186
186
|
if (!contentNode) {
|
|
187
187
|
const contents = []
|
|
188
|
-
this.showClose && contents.push(<span class="k-modal-close" onClick={this.close}><Icon type={Close} /></span>)
|
|
188
|
+
this.showClose && contents.push(<span class="k-modal-close" onClick={this.close}><Icon type={Close} strokeWidth={50}/></span>)
|
|
189
189
|
this.title !== null && contents.push(<div class="k-modal-header" ref="hRef"><div class="k-modal-header-inner">{this.title}</div></div>)
|
|
190
190
|
contents.push(<div class="k-modal-body">{$slots.default}</div>)
|
|
191
191
|
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
border: 1px solid var(--kui-color-gray-80);
|
|
30
30
|
z-index: 1001;
|
|
31
31
|
outline: 0;
|
|
32
|
-
border-radius:
|
|
32
|
+
border-radius: 12px;
|
|
33
33
|
top: 100px;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
margin: 0 auto;
|
|
36
36
|
box-shadow: 0 0 10px 3px rgba(55, 55, 55, .2);
|
|
37
|
-
width:
|
|
37
|
+
width: 480px; // animation: darken .5s ease-in-out;
|
|
38
38
|
}
|
|
39
39
|
.k-modal-content {
|
|
40
40
|
position: relative;
|
|
@@ -42,15 +42,16 @@
|
|
|
42
42
|
background-clip: padding-box;
|
|
43
43
|
height: 100%;
|
|
44
44
|
overflow: hidden;
|
|
45
|
+
padding:0 20px;
|
|
45
46
|
.k-modal-close {
|
|
46
47
|
position: absolute;
|
|
47
48
|
cursor: pointer;
|
|
48
49
|
font-size: 20px;
|
|
49
50
|
color: var(--kui-color-font);
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
52
|
-
top:
|
|
53
|
-
right:
|
|
51
|
+
width: 20px;
|
|
52
|
+
height: 20px;
|
|
53
|
+
top: 20px;
|
|
54
|
+
right: 20px;
|
|
54
55
|
transition: all .3s ease-in-out;
|
|
55
56
|
.k-icon {
|
|
56
57
|
position: absolute;
|
|
@@ -60,15 +61,16 @@
|
|
|
60
61
|
}
|
|
61
62
|
&:hover {
|
|
62
63
|
color: var(--kui-color-danger);
|
|
64
|
+
border-radius: var(--kui-border-radius);
|
|
65
|
+
background-color: var(--kui-color-gray-80);
|
|
63
66
|
// transform: rotate(360deg);
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
.k-modal-header {
|
|
67
|
-
border-bottom: 1px solid var(--kui-color-gray-80);
|
|
68
|
-
padding:
|
|
70
|
+
// border-bottom: 1px solid var(--kui-color-gray-80);
|
|
71
|
+
padding:20px 0;
|
|
69
72
|
line-height: 1;
|
|
70
73
|
font-size: 14px;
|
|
71
|
-
font-weight: 500;
|
|
72
74
|
user-select: none;
|
|
73
75
|
.k-modal-header-inner {
|
|
74
76
|
width: 90%;
|
|
@@ -81,7 +83,8 @@
|
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
.k-modal-body {
|
|
84
|
-
padding:
|
|
86
|
+
// padding:20px 0;
|
|
87
|
+
margin-bottom: 20px;
|
|
85
88
|
font-size: 14px;
|
|
86
89
|
line-height: 1.5;
|
|
87
90
|
// height: calc(100% - 43px - 45px);
|
|
@@ -89,8 +92,8 @@
|
|
|
89
92
|
box-sizing: border-box;
|
|
90
93
|
}
|
|
91
94
|
.k-modal-footer {
|
|
92
|
-
border-top: 1px solid var(--kui-color-gray-80);
|
|
93
|
-
padding:
|
|
95
|
+
// border-top: 1px solid var(--kui-color-gray-80);
|
|
96
|
+
padding:0 0 20px 0;
|
|
94
97
|
text-align: right;
|
|
95
98
|
display: inline-block;
|
|
96
99
|
width: 100%;
|
|
@@ -163,7 +166,8 @@
|
|
|
163
166
|
width: 416px;
|
|
164
167
|
background: var(--kui-color-control-10);
|
|
165
168
|
border-radius: var(--kui-border-radius);
|
|
166
|
-
padding:
|
|
169
|
+
padding: 20px;
|
|
170
|
+
border-radius: 12px;
|
|
167
171
|
overflow: hidden;
|
|
168
172
|
}
|
|
169
173
|
.k-toast-header {
|
|
@@ -174,7 +178,7 @@
|
|
|
174
178
|
}
|
|
175
179
|
.k-toast-title {
|
|
176
180
|
font-size: 16px;
|
|
177
|
-
font-weight:
|
|
181
|
+
font-weight: 600;
|
|
178
182
|
overflow: hidden;
|
|
179
183
|
line-height: 1.5;
|
|
180
184
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Types from './types'
|
|
5
|
-
import Icon from './icon'
|
|
6
|
-
import Close from './close'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Types from './types.md'
|
|
5
|
+
import Icon from './icon.md'
|
|
6
|
+
import Close from './close.md'
|
|
7
7
|
import CN from '../index.md'
|
|
8
8
|
export default {
|
|
9
9
|
render() {
|
|
10
10
|
return (
|
|
11
|
-
<div>
|
|
11
|
+
<div class="demo-notice">
|
|
12
12
|
<Info class="typo"/>
|
|
13
13
|
<Base />
|
|
14
14
|
<Types />
|
|
@@ -19,4 +19,13 @@ export default {
|
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
</script>
|
|
22
|
+
</script>
|
|
23
|
+
<style lang="less">
|
|
24
|
+
.demo-notice {
|
|
25
|
+
.k-btn{
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
margin-bottom: 10px;
|
|
28
|
+
min-width: 70px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import More from './more'
|
|
5
|
-
import Sizer from './sizer'
|
|
6
|
-
import Elevator from './elevator'
|
|
7
|
-
import Size from './size'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import More from './more.md'
|
|
5
|
+
import Sizer from './sizer.md'
|
|
6
|
+
import Elevator from './elevator.md'
|
|
7
|
+
import Size from './size.md'
|
|
8
8
|
import CN from '../index.md'
|
|
9
9
|
export default {
|
|
10
10
|
render() {
|
|
@@ -29,10 +29,17 @@
|
|
|
29
29
|
position: relative;
|
|
30
30
|
vertical-align: middle;
|
|
31
31
|
&:hover {
|
|
32
|
-
border-color: var(--kui-color-main);
|
|
33
|
-
color: var(--kui-color-main);
|
|
32
|
+
border-color: var(--kui-color-main-hover);
|
|
33
|
+
color: var(--kui-color-main-hover);
|
|
34
|
+
.k-icon {
|
|
35
|
+
color: var(--kui-color-main-hover);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&:active{
|
|
39
|
+
border-color: var(--kui-color-main-actived);
|
|
40
|
+
color: var(--kui-color-main-actived);
|
|
34
41
|
.k-icon {
|
|
35
|
-
color: var(--kui-color-main);
|
|
42
|
+
color: var(--kui-color-main-actived);
|
|
36
43
|
}
|
|
37
44
|
}
|
|
38
45
|
&.k-pager-item-active {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
// .k-popconfirm-inner {
|
|
120
120
|
background: var(--kui-color-control-10);
|
|
121
121
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
122
|
-
border-radius: var(--kui-border-radius);
|
|
122
|
+
border-radius: 12px;//var(--kui-border-radius);
|
|
123
123
|
position: relative;
|
|
124
124
|
// }
|
|
125
125
|
.k-popconfirm-body {
|
|
@@ -1,191 +1,218 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-poptip {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
4
|
+
display: inline-block;
|
|
5
|
+
position: relative;
|
|
6
|
+
// max-width: 300px;
|
|
7
|
+
color: var(--kui-color-font);
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
line-height: 1.5;
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 1001;
|
|
12
|
+
transform: translateZ(0);
|
|
13
|
+
|
|
14
|
+
&[k-placement^=top] {
|
|
15
|
+
.k-poptip-arrow {
|
|
16
|
+
bottom: -7px;
|
|
17
|
+
height: 9px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.k-poptip-content {
|
|
21
|
+
margin-bottom: 12px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[k-placement=top] {
|
|
26
|
+
.k-poptip-arrow {
|
|
27
|
+
left: 50%;
|
|
28
|
+
transform: translateX(-50%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[k-placement=top-right] {
|
|
33
|
+
.k-poptip-arrow {
|
|
34
|
+
right: 12px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[k-placement=top-left] {
|
|
39
|
+
.k-poptip-arrow {
|
|
40
|
+
left: 12px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[k-placement^=bottom] {
|
|
45
|
+
.k-poptip-arrow {
|
|
46
|
+
top: -7px;
|
|
47
|
+
height: 9px;
|
|
48
|
+
transform: rotate(180deg);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.k-poptip-content {
|
|
52
|
+
margin-top: 12px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[k-placement=bottom] {
|
|
57
|
+
.k-poptip-arrow {
|
|
58
|
+
left: 50%;
|
|
59
|
+
transform: translateX(-50%) rotate(180deg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[k-placement=bottom-left] {
|
|
64
|
+
.k-poptip-arrow {
|
|
65
|
+
left: 12px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[k-placement=bottom-right] {
|
|
70
|
+
.k-poptip-arrow {
|
|
71
|
+
right: 12px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&[k-placement^=left] {
|
|
76
|
+
.k-poptip-arrow {
|
|
77
|
+
right: -14px;
|
|
78
|
+
width: 24px;
|
|
79
|
+
height: 7px;
|
|
80
|
+
transform: rotate(-90deg);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.k-poptip-content {
|
|
84
|
+
margin-right: 12px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&[k-placement=left] {
|
|
89
|
+
.k-poptip-arrow {
|
|
90
|
+
top: 50%;
|
|
91
|
+
transform: translateY(-50%) rotate(-90deg);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[k-placement=left-bottom] {
|
|
96
|
+
.k-poptip-arrow {
|
|
97
|
+
bottom: 12px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[k-placement=left-top] {
|
|
102
|
+
.k-poptip-arrow {
|
|
103
|
+
top: 12px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[k-placement^=right] {
|
|
108
|
+
.k-poptip-arrow {
|
|
109
|
+
left: -14px;
|
|
110
|
+
width: 24px;
|
|
111
|
+
height: 7px;
|
|
112
|
+
transform: rotate(90deg);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.k-poptip-content {
|
|
116
|
+
margin-left: 12px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[k-placement=right] {
|
|
121
|
+
.k-poptip-arrow {
|
|
122
|
+
top: 50%;
|
|
123
|
+
transform: translateY(-50%) rotate(90deg);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&[k-placement=right-top] {
|
|
128
|
+
.k-poptip-arrow {
|
|
129
|
+
top: 12px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&[k-placement=right-bottom] {
|
|
134
|
+
.k-poptip-arrow {
|
|
135
|
+
bottom: 12px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
117
138
|
}
|
|
118
139
|
|
|
119
140
|
.k-poptip-content {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
141
|
+
min-width: 200px;
|
|
142
|
+
// .k-poptip-inner {
|
|
143
|
+
background: var(--kui-color-control-10);
|
|
144
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
145
|
+
border-radius: 8px; // var(--kui-border-radius);
|
|
146
|
+
position: relative;
|
|
147
|
+
|
|
148
|
+
// }
|
|
149
|
+
.k-poptip-body {
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
padding: 8px 16px;
|
|
152
|
+
box-sizing: border-box;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.k-poptip-title {
|
|
156
|
+
font-size: 16px;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
color: var(--kui-color-font);
|
|
159
|
+
margin: 0;
|
|
160
|
+
padding: 8px 16px;
|
|
161
|
+
position: relative;
|
|
162
|
+
border-bottom: 1px solid var(--kui-color-gray-80);
|
|
163
|
+
text-overflow: ellipsis;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.k-poptip-arrow {
|
|
168
|
+
position: absolute;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
display: flex;
|
|
171
|
+
width: 24px;
|
|
172
|
+
height: 7px;
|
|
173
|
+
color: var(--kui-color-control-10);
|
|
174
|
+
}
|
|
151
175
|
}
|
|
152
176
|
|
|
153
177
|
.k-poptip-dark {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
178
|
+
background-color: var(--kui-color-dark);
|
|
179
|
+
color: #fff;
|
|
180
|
+
|
|
181
|
+
.k-poptip-title {
|
|
182
|
+
border-bottom: 1px solid rgba(0, 0, 0, .2);
|
|
183
|
+
}
|
|
159
184
|
}
|
|
160
185
|
|
|
161
186
|
@keyframes pop-zoom-in {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
187
|
+
from {
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transform: scale(.8, .8);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
to {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
transform: scale(1, 1);
|
|
195
|
+
}
|
|
170
196
|
}
|
|
171
197
|
|
|
172
198
|
@keyframes pop-zoom-out {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
199
|
+
from {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
transform: scale(1, 1);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
to {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
transform: scale(.8, .8);
|
|
207
|
+
}
|
|
181
208
|
}
|
|
182
209
|
|
|
183
210
|
.k-poptip-enter-active {
|
|
184
|
-
|
|
185
|
-
|
|
211
|
+
// transform-origin: center bottom;
|
|
212
|
+
animation: pop-zoom-in .3s;
|
|
186
213
|
}
|
|
187
214
|
|
|
188
215
|
.k-poptip-leave-active {
|
|
189
|
-
|
|
190
|
-
|
|
216
|
+
// transform-origin: center bottom;
|
|
217
|
+
animation: pop-zoom-out .3s;
|
|
191
218
|
}
|