kui-vue 3.2.4 → 3.2.5
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/_tool/utils.js +2 -2
- package/components/alert/styles/index.less +19 -19
- package/components/avatar/styles/index.less +3 -3
- package/components/backtop/styles/index.less +2 -2
- package/components/badge/demo/dot.md +1 -1
- package/components/badge/demo/dynamic.md +1 -1
- package/components/badge/demo/max.md +1 -1
- package/components/badge/styles/index.less +21 -21
- package/components/base/input.jsx +16 -10
- package/components/breadcrumb/styles/index.less +4 -4
- package/components/button/button.jsx +14 -8
- package/components/button/buttonGroup.jsx +6 -6
- package/components/button/demo/base.md +2 -1
- package/components/button/demo/disabled.md +14 -16
- package/components/button/demo/group.md +2 -2
- package/components/button/demo/index.vue +6 -2
- package/components/button/demo/light.md +26 -0
- package/components/button/demo/loading.md +1 -1
- package/components/button/demo/normal.md +25 -0
- package/components/button/demo/size.md +2 -2
- package/components/button/demo/solid.md +16 -0
- package/components/button/demo/with-icon.md +4 -3
- package/components/button/index.md +3 -3
- package/components/button/styles/index.less +106 -45
- package/components/card/demo/base.md +1 -1
- package/components/card/demo/border.md +2 -2
- package/components/card/styles/index.less +6 -6
- package/components/carousel/styles/index.less +1 -1
- package/components/checkbox/demo/group-vertical.md +47 -0
- package/components/checkbox/demo/index.vue +4 -0
- package/components/checkbox/demo/options.md +46 -0
- package/components/checkbox/group.jsx +9 -3
- package/components/checkbox/index.md +8 -7
- package/components/checkbox/styles/index.less +30 -20
- package/components/collapse/styles/index.less +10 -10
- package/components/colorPicker/styles/index.less +14 -14
- package/components/datePicker/datepicker.jsx +11 -3
- package/components/datePicker/demo/index.vue +2 -0
- package/components/datePicker/demo/theme.md +34 -0
- package/components/datePicker/index.md +4 -1
- package/components/datePicker/styles/calendar.less +39 -38
- package/components/datePicker/styles/datepicker.less +37 -20
- package/components/divider/styles/index.less +6 -6
- package/components/drawer/styles/index.less +12 -10
- package/components/dropdown/demo/base.md +4 -4
- package/components/dropdown/demo/cascading.md +3 -3
- package/components/dropdown/demo/divider.md +3 -3
- package/components/dropdown/styles/index.less +4 -4
- package/components/empty/styles/index.less +2 -2
- package/components/form/demo/base.md +25 -2
- package/components/form/demo/index.vue +1 -1
- package/components/form/demo/valid.md +9 -0
- package/components/form/form.jsx +2 -0
- package/components/form/formitem.jsx +18 -10
- package/components/form/styles/index.less +17 -13
- package/components/grid/styles/index.less +1 -1
- package/components/icon/demo/base.md +4 -4
- package/components/icon/demo/search.vue +6 -9
- package/components/image/styles/index.less +18 -18
- package/components/index.js +3 -1
- package/components/input/demo/index.vue +3 -1
- package/components/input/demo/theme.md +39 -0
- package/components/input/index.md +9 -6
- package/components/input/input.jsx +10 -3
- package/components/input/styles/index.less +120 -78
- package/components/input/textarea.jsx +1 -0
- package/components/layout/demo/base.md +5 -3
- package/components/layout/demo/index.vue +0 -2
- package/components/layout/demo/info.md +0 -2
- package/components/layout/demo/layout1.md +40 -47
- package/components/layout/demo/layout2.md +42 -49
- package/components/layout/demo/layout3.md +44 -22
- package/components/layout/demo/layout4.md +19 -18
- package/components/layout/demo/layout5.md +47 -44
- package/components/layout/styles/index.less +1 -6
- package/components/loading/styles/index.less +4 -4
- package/components/menu/demo/accrodion.md +2 -2
- package/components/menu/demo/base.md +5 -13
- package/components/menu/demo/collapsed.md +2 -2
- package/components/menu/demo/index.vue +0 -2
- package/components/menu/demo/inline.md +6 -10
- package/components/menu/demo/mode.md +2 -2
- package/components/menu/demo/theme.md +2 -2
- package/components/menu/demo/vertical.md +2 -2
- package/components/menu/index.md +0 -3
- package/components/menu/menu.jsx +4 -4
- package/components/menu/menuitem.jsx +1 -13
- package/components/menu/styles/dropmenu.less +28 -20
- package/components/menu/styles/index.less +148 -251
- package/components/menu/submenu.jsx +4 -64
- package/components/message/group.jsx +1 -1
- package/components/message/styles/index.less +13 -8
- package/components/modal/demo/base.md +15 -2
- package/components/modal/demo/custom.md +2 -2
- package/components/modal/demo/more.md +6 -6
- package/components/modal/modal.jsx +11 -5
- package/components/modal/styles/index.less +24 -17
- package/components/notice/styles/index.less +14 -13
- package/components/page/styles/index.less +16 -16
- package/components/popconfirm/styles/index.less +6 -6
- package/components/poptip/styles/index.less +10 -9
- package/components/progress/styles/index.less +13 -13
- package/components/radio/button.jsx +2 -2
- package/components/radio/demo/button.md +3 -3
- package/components/radio/demo/group-vertical.md +46 -0
- package/components/radio/demo/index.vue +4 -0
- package/components/radio/demo/options.md +43 -0
- package/components/radio/group.jsx +14 -8
- package/components/radio/index.md +11 -9
- package/components/radio/styles/index.less +33 -22
- package/components/rate/styles/index.less +2 -2
- package/components/select/demo/icon.md +40 -0
- package/components/select/demo/index.vue +4 -0
- package/components/select/demo/size.md +5 -5
- package/components/select/demo/theme.md +46 -0
- package/components/select/index.md +5 -2
- package/components/select/select.jsx +20 -13
- package/components/select/styles/index.less +113 -49
- package/components/slider/slider.jsx +9 -4
- package/components/slider/styles/index.less +7 -7
- package/components/space/demo/align.md +1 -1
- package/components/spin/styles/index.less +7 -11
- package/components/steps/styles/index.less +11 -11
- package/components/styles/color.less +158 -0
- package/components/styles/index.less +3 -1
- package/components/styles/sys.less +34 -0
- package/components/styles/var.less +150 -0
- package/components/switch/styles/index.less +11 -11
- package/components/table/styles/index.less +29 -32
- package/components/tabs/styles/index.less +20 -19
- package/components/tag/styles/index.less +45 -45
- package/components/timeline/styles/index.less +5 -5
- package/components/tooltip/styles/index.less +19 -18
- package/components/tree/styles/index.less +15 -15
- package/components/treeselect/styles/index.less +5 -5
- package/components/upload/demo/accept.md +68 -0
- package/components/upload/demo/avatar.md +40 -0
- package/components/upload/demo/base.md +40 -0
- package/components/upload/demo/custom.md +47 -0
- package/components/upload/demo/directory.md +36 -0
- package/components/upload/demo/drag.md +0 -0
- package/components/upload/demo/draggable.md +45 -0
- package/components/upload/demo/exceed.md +42 -0
- package/components/upload/demo/file-list.md +42 -0
- package/components/upload/demo/form.md +120 -0
- package/components/upload/demo/index.vue +37 -0
- package/components/upload/demo/info.md +10 -0
- package/components/upload/demo/picture.md +54 -0
- package/components/upload/index.md +26 -0
- package/components/upload/styles/index.less +258 -0
- package/components/upload/upload.jsx +336 -0
- package/dist/k-ui.css +1 -1
- package/dist/k-ui.js +2 -2
- package/package.json +9 -4
- package/components/button/demo/hollow.md +0 -15
- package/components/layout/demo/layout6.md +0 -142
- package/components/menu/demo/vertical-affix.md +0 -69
- package/components/styles/dark.less +0 -70
- package/components/styles/global-dark.less +0 -36
- package/components/styles/global.less +0 -44
- package/components/upload/upload.vue +0 -137
- package/dist/k-ui-dark.css +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-message {
|
|
3
3
|
font-size: 14px;
|
|
4
4
|
line-height: 1.5;
|
|
5
|
-
color:
|
|
5
|
+
color: var(--kui-color-font);
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
box-sizing: content-box;
|
|
24
24
|
line-height: 1.5;
|
|
25
25
|
padding: 10px 16px;
|
|
26
|
-
border-radius:
|
|
26
|
+
border-radius: var(--kui-border-radius);
|
|
27
27
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
28
|
-
background:
|
|
28
|
+
background: var(--kui-color-control-10);
|
|
29
29
|
display: inline-block;
|
|
30
30
|
pointer-events: all;
|
|
31
31
|
align-items: center;
|
|
@@ -41,23 +41,28 @@
|
|
|
41
41
|
margin-left: 15px;
|
|
42
42
|
font-size: 18px;
|
|
43
43
|
vertical-align: sub;
|
|
44
|
+
border-radius: var(--kui-border-radius);
|
|
45
|
+
padding: 2px;
|
|
46
|
+
&:hover{
|
|
47
|
+
background-color: var(--kui-color-gray-80);
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
.k-message-success .k-message-icon {
|
|
48
|
-
color:
|
|
53
|
+
color: var(--kui-color-success);
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
.k-message-error .k-message-icon {
|
|
52
|
-
color:
|
|
57
|
+
color: var(--kui-color-danger);
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
.k-message-info .k-message-icon {
|
|
56
|
-
color:
|
|
61
|
+
color: var(--kui-color-main);
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
.k-message-warning .k-message-icon {
|
|
60
|
-
color:
|
|
65
|
+
color: var(--kui-color-warning);
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
@keyframes msgIn {
|
|
@@ -6,7 +6,19 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<Button @click="visible=true" type="primary"
|
|
9
|
+
<Button @click="visible=true" type="primary">打开弹窗</Button>
|
|
10
|
+
<Button @click="custom=true" type="primary">自定义</Button>
|
|
11
|
+
|
|
12
|
+
<Modal :title="null"
|
|
13
|
+
:footer="null"
|
|
14
|
+
:showClose="false"
|
|
15
|
+
v-model="custom">
|
|
16
|
+
<Space direction="vertical" style="width:100%">
|
|
17
|
+
<h2>我是一个标题</h2>
|
|
18
|
+
<div></div>
|
|
19
|
+
</Space>
|
|
20
|
+
</Modal>
|
|
21
|
+
|
|
10
22
|
<Modal title="Title" v-model="visible" @ok="okHandle">Content</Modal>
|
|
11
23
|
</div>
|
|
12
24
|
</template>
|
|
@@ -14,7 +26,8 @@
|
|
|
14
26
|
export default{
|
|
15
27
|
data(){
|
|
16
28
|
return{
|
|
17
|
-
visible:false
|
|
29
|
+
visible:false,
|
|
30
|
+
custom:false
|
|
18
31
|
}
|
|
19
32
|
},
|
|
20
33
|
methods:{
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<Button @click="visible1=true" type="primary"
|
|
10
|
-
<Button @click="visible2=true" type="primary"
|
|
9
|
+
<Button @click="visible1=true" type="primary">宽300px</Button>
|
|
10
|
+
<Button @click="visible2=true" type="primary">自定义页脚</Button>
|
|
11
11
|
<Button @click="visible3=true" type="primary">国际化</Button>
|
|
12
12
|
<Button @click="visible4=true" type="primary">异步关闭</Button>
|
|
13
13
|
<Modal title="Width 300px" v-model="visible1" :width="300" @ok="visible1=false">
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<Button @click="show1=true" type="primary"
|
|
10
|
-
<Button @click="show2=true" type="primary"
|
|
11
|
-
<Button @click="show3=true" type="primary"
|
|
12
|
-
<Button @click="show4=true" type="primary"
|
|
13
|
-
<Button @click="show5=true" type="primary"
|
|
14
|
-
<Button @click="show6=true" type="primary"
|
|
9
|
+
<Button @click="show1=true" type="primary">可以拖动</Button>
|
|
10
|
+
<Button @click="show2=true" type="primary">居中显示</Button>
|
|
11
|
+
<Button @click="show3=true" type="primary">顶部 200px</Button>
|
|
12
|
+
<Button @click="show4=true" type="primary">最大化</Button>
|
|
13
|
+
<Button @click="show5=true" type="primary">没有蒙层</Button>
|
|
14
|
+
<Button @click="show6=true" type="primary">没有页脚</Button>
|
|
15
15
|
|
|
16
16
|
<Modal title="Draggable" v-model="show1" draggable @ok="show1=false">
|
|
17
17
|
{{text}}
|
|
@@ -20,6 +20,7 @@ export default {
|
|
|
20
20
|
maximized: Boolean,
|
|
21
21
|
centered: Boolean,
|
|
22
22
|
draggable: Boolean,
|
|
23
|
+
showClose: { type: Boolean, default: true },
|
|
23
24
|
loading: Boolean,
|
|
24
25
|
footer: String,
|
|
25
26
|
transfer: { type: Boolean, default: true },
|
|
@@ -48,7 +49,6 @@ export default {
|
|
|
48
49
|
this.setPos()
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
|
|
52
52
|
methods: {
|
|
53
53
|
updateProp(visible) {
|
|
54
54
|
if (visible) {
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
}
|
|
78
78
|
if (opened) {
|
|
79
79
|
let barWidth = measureScrollBar(true)
|
|
80
|
-
let hasBar = target.scrollHeight >
|
|
80
|
+
let hasBar = target.scrollHeight > window.innerHeight || target.offsetHeight > window.innerHeight
|
|
81
81
|
if (barWidth && hasBar) {
|
|
82
82
|
target.style.width = `calc(100% - ${barWidth}px)`
|
|
83
83
|
target.style.overflow = `hidden`
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
setPos() {
|
|
96
|
-
if (this.show) {
|
|
96
|
+
if (this.show && this.$refs.modal) {
|
|
97
97
|
let { showPoint: { x, y } } = this
|
|
98
98
|
// let { x, y } = showPoint
|
|
99
99
|
let { left, top } = getOffset(this.$refs.modal)
|
|
@@ -160,6 +160,12 @@ export default {
|
|
|
160
160
|
if (this.draggable) {
|
|
161
161
|
this.left = (document.body.offsetWidth - (this.width || 520)) / 2
|
|
162
162
|
}
|
|
163
|
+
// console.log(this.value)
|
|
164
|
+
if (this.value) {
|
|
165
|
+
this.$nextTick(() => {
|
|
166
|
+
this.updateProp(true)
|
|
167
|
+
})
|
|
168
|
+
}
|
|
163
169
|
},
|
|
164
170
|
render() {
|
|
165
171
|
let { $slots, show, showInner, draggable, transfer } = this
|
|
@@ -174,8 +180,8 @@ export default {
|
|
|
174
180
|
let contentNode = $slots.content
|
|
175
181
|
if (!contentNode) {
|
|
176
182
|
const contents = []
|
|
177
|
-
contents.push(<span class="k-modal-close" onClick={this.close}><Icon type="close" /></span>)
|
|
178
|
-
contents.push(<div class="k-modal-header" ref="hRef"><div class="k-modal-header-inner">{this.title}</div></div>)
|
|
183
|
+
this.showClose && contents.push(<span class="k-modal-close" onClick={this.close}><Icon type="close" /></span>)
|
|
184
|
+
this.title !== null && contents.push(<div class="k-modal-header" ref="hRef"><div class="k-modal-header-inner">{this.title}</div></div>)
|
|
179
185
|
contents.push(<div class="k-modal-body">{$slots.default}</div>)
|
|
180
186
|
|
|
181
187
|
//footer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-modal {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--kui-color-font);
|
|
4
4
|
.k-modal-wrap {
|
|
5
5
|
position: fixed;
|
|
6
6
|
top: 0;
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
}
|
|
26
26
|
.k-modal-inner {
|
|
27
27
|
position: relative;
|
|
28
|
-
background-color:
|
|
28
|
+
background-color: var(--kui-color-control-10);
|
|
29
|
+
border: 1px solid var(--kui-color-gray-80);
|
|
29
30
|
z-index: 1001;
|
|
30
31
|
outline: 0;
|
|
31
|
-
border-radius:
|
|
32
|
+
border-radius: var(--kui-border-radius);
|
|
32
33
|
top: 100px;
|
|
33
34
|
overflow: hidden;
|
|
34
35
|
margin: 0 auto;
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
position: absolute;
|
|
46
47
|
cursor: pointer;
|
|
47
48
|
font-size: 20px;
|
|
48
|
-
color:
|
|
49
|
+
color: var(--kui-color-font);
|
|
49
50
|
width: 43px;
|
|
50
51
|
height: 43px;
|
|
51
52
|
top: 0;
|
|
@@ -58,12 +59,12 @@
|
|
|
58
59
|
transform: translateY(-50%) translateX(-50%);
|
|
59
60
|
}
|
|
60
61
|
&:hover {
|
|
61
|
-
color:
|
|
62
|
+
color: var(--kui-color-danger);
|
|
62
63
|
// transform: rotate(360deg);
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
.k-modal-header {
|
|
66
|
-
border-bottom: 1px solid
|
|
67
|
+
border-bottom: 1px solid var(--kui-color-gray-80);
|
|
67
68
|
padding: 14px 16px;
|
|
68
69
|
line-height: 1;
|
|
69
70
|
font-size: 14px;
|
|
@@ -74,18 +75,21 @@
|
|
|
74
75
|
white-space: nowrap;
|
|
75
76
|
overflow: hidden;
|
|
76
77
|
text-overflow: ellipsis;
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
line-height: 1.1;
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
.k-modal-body {
|
|
80
84
|
padding: 16px;
|
|
81
|
-
font-size:
|
|
85
|
+
font-size: 14px;
|
|
82
86
|
line-height: 1.5;
|
|
83
87
|
// height: calc(100% - 43px - 45px);
|
|
84
88
|
overflow: auto;
|
|
85
89
|
box-sizing: border-box;
|
|
86
90
|
}
|
|
87
91
|
.k-modal-footer {
|
|
88
|
-
border-top: 1px solid
|
|
92
|
+
border-top: 1px solid var(--kui-color-gray-80);
|
|
89
93
|
padding: 6px 16px;
|
|
90
94
|
text-align: right;
|
|
91
95
|
display: inline-block;
|
|
@@ -135,6 +139,9 @@
|
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
.k-modal-maximized {
|
|
142
|
+
.k-modal-wrap{
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
}
|
|
138
145
|
.k-modal-inner {
|
|
139
146
|
height: 100%;
|
|
140
147
|
width: 100%;
|
|
@@ -146,7 +153,7 @@
|
|
|
146
153
|
width: 100%;
|
|
147
154
|
bottom: 0;
|
|
148
155
|
left: 0;
|
|
149
|
-
background:
|
|
156
|
+
background: var(--kui-color-control-10);
|
|
150
157
|
}
|
|
151
158
|
}
|
|
152
159
|
}
|
|
@@ -154,8 +161,8 @@
|
|
|
154
161
|
.k-toast {
|
|
155
162
|
.k-modal-inner {
|
|
156
163
|
width: 416px;
|
|
157
|
-
background:
|
|
158
|
-
border-radius:
|
|
164
|
+
background: var(--kui-color-control-10);
|
|
165
|
+
border-radius: var(--kui-border-radius);
|
|
159
166
|
padding: 16px;
|
|
160
167
|
overflow: hidden;
|
|
161
168
|
}
|
|
@@ -187,23 +194,23 @@
|
|
|
187
194
|
}
|
|
188
195
|
|
|
189
196
|
.k-toast-success .k-toast-icon {
|
|
190
|
-
color:
|
|
197
|
+
color: var(--kui-color-success);
|
|
191
198
|
}
|
|
192
199
|
|
|
193
200
|
.k-toast-error .k-toast-icon {
|
|
194
|
-
color:
|
|
201
|
+
color: var(--kui-color-danger);
|
|
195
202
|
}
|
|
196
203
|
|
|
197
204
|
.k-toast-warning .k-toast-icon {
|
|
198
|
-
color:
|
|
205
|
+
color: var(--kui-color-warning);
|
|
199
206
|
}
|
|
200
207
|
|
|
201
208
|
.k-toast-info .k-toast-icon {
|
|
202
|
-
color:
|
|
209
|
+
color: var(--kui-color-main);
|
|
203
210
|
}
|
|
204
211
|
|
|
205
212
|
.k-toast-confirm .k-toast-icon {
|
|
206
|
-
color:
|
|
213
|
+
color: var(--kui-color-warning);
|
|
207
214
|
}
|
|
208
215
|
|
|
209
216
|
@keyframes fade-in {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-notice {
|
|
3
3
|
font-size: 14px;
|
|
4
4
|
line-height: 1.5;
|
|
5
|
-
color:
|
|
5
|
+
color: var(--kui-color-font);
|
|
6
6
|
-webkit-box-sizing: border-box;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
margin: 0;
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
box-sizing: content-box;
|
|
21
21
|
transition: all .3s ease-in-out;
|
|
22
22
|
padding: 16px 35px 16px 16px;
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: var(--kui-border-radius);
|
|
24
24
|
-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
25
25
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
26
|
-
background:
|
|
26
|
+
background: var(--kui-color-control-10);
|
|
27
27
|
line-height: 1.5;
|
|
28
28
|
position: relative;
|
|
29
29
|
margin-bottom: 16px;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
.k-notice-title {
|
|
36
36
|
font-size: 16px;
|
|
37
|
-
color:
|
|
37
|
+
color: var(--kui-color-title);
|
|
38
38
|
margin-bottom: 8px;
|
|
39
39
|
line-height: 22px;
|
|
40
40
|
vertical-align: middle;
|
|
@@ -57,25 +57,26 @@
|
|
|
57
57
|
top: 13px;
|
|
58
58
|
outline: none;
|
|
59
59
|
cursor: pointer;
|
|
60
|
-
color:
|
|
60
|
+
color: var(--kui-color-font);
|
|
61
61
|
font-size: 20px;
|
|
62
|
+
padding: 3px;
|
|
62
63
|
display: block;
|
|
63
|
-
|
|
64
|
-
&:hover
|
|
65
|
-
color:
|
|
64
|
+
border-radius: var(--kui-border-radius);
|
|
65
|
+
&:hover{
|
|
66
|
+
background-color: var(--kui-color-gray-80);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
.k-notice-info .k-notice-icon {
|
|
69
|
-
color:
|
|
70
|
+
color: var(--kui-color-main);
|
|
70
71
|
}
|
|
71
72
|
.k-notice-error .k-notice-icon {
|
|
72
|
-
color:
|
|
73
|
+
color: var(--kui-color-danger);
|
|
73
74
|
}
|
|
74
75
|
.k-notice-success .k-notice-icon {
|
|
75
|
-
color:
|
|
76
|
+
color: var(--kui-color-success);
|
|
76
77
|
}
|
|
77
78
|
.k-notice-warning .k-notice-icon {
|
|
78
|
-
color:
|
|
79
|
+
color: var(--kui-color-warning);
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-page {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--kui-color-font);
|
|
4
4
|
font-size: 13px;
|
|
5
5
|
padding: 20px 0;
|
|
6
6
|
user-select: none;
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
vertical-align: middle;
|
|
11
11
|
.k-pager-item {
|
|
12
12
|
background: transparent;
|
|
13
|
-
color:
|
|
13
|
+
color: var(--kui-color-font);
|
|
14
14
|
min-width: 30px;
|
|
15
15
|
height: 30px;
|
|
16
16
|
line-height: 30px;
|
|
17
|
-
border-radius:
|
|
17
|
+
border-radius: var(--kui-border-radius);
|
|
18
18
|
margin: 0 8px;
|
|
19
19
|
text-align: center;
|
|
20
20
|
display: inline-block;
|
|
21
21
|
box-sizing: content-box;
|
|
22
|
-
border: 1px solid
|
|
22
|
+
border: 1px solid var(--kui-color-border);
|
|
23
23
|
// transition: all 0.2s ease-in-out 0s;
|
|
24
24
|
margin-left: -1px;
|
|
25
25
|
font-size: 14px;
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
position: relative;
|
|
28
28
|
vertical-align: middle;
|
|
29
29
|
&:hover {
|
|
30
|
-
border-color:
|
|
31
|
-
color:
|
|
30
|
+
border-color: var(--kui-color-main);
|
|
31
|
+
color: var(--kui-color-main);
|
|
32
32
|
.k-icon {
|
|
33
|
-
color:
|
|
33
|
+
color: var(--kui-color-main);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
&.k-pager-item-active {
|
|
37
|
-
border: 1px solid
|
|
38
|
-
color:
|
|
37
|
+
border: 1px solid var(--kui-color-main);
|
|
38
|
+
color: var(--kui-color-main);
|
|
39
39
|
}
|
|
40
40
|
span {
|
|
41
41
|
margin: 0 5px;
|
|
42
42
|
}
|
|
43
43
|
.k-icon {
|
|
44
|
-
color:
|
|
44
|
+
color: var(--kui-color-icon);
|
|
45
45
|
position: absolute;
|
|
46
46
|
top: 50%;
|
|
47
47
|
left: 50%;
|
|
@@ -56,20 +56,20 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
.k-pager-item-disabled {
|
|
59
|
-
border-color:
|
|
59
|
+
border-color: var(--kui-color-disable-border);
|
|
60
60
|
cursor: not-allowed;
|
|
61
61
|
.k-icon {
|
|
62
|
-
color:
|
|
62
|
+
color: var(--kui-color-disable-color);
|
|
63
63
|
}
|
|
64
64
|
&:hover {
|
|
65
|
-
border-color:
|
|
65
|
+
border-color: var(--kui-color-disable-border);
|
|
66
66
|
.k-icon {
|
|
67
|
-
color:
|
|
67
|
+
color: var(--kui-color-disable-color);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
.k-pager-more {
|
|
72
|
-
color:
|
|
72
|
+
color: var(--kui-color-gray);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
.k-page-sizer {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-popconfirm {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
position: relative;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
line-height: 1.5;
|
|
12
12
|
position: absolute;
|
|
13
13
|
z-index: 1001;
|
|
14
|
-
color:
|
|
14
|
+
color: var(--kui-color-font);
|
|
15
15
|
.k-popconfirm-inner {
|
|
16
|
-
background:
|
|
16
|
+
background: var(--kui-color-control-10);
|
|
17
17
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
18
|
-
border-radius:
|
|
18
|
+
border-radius: var(--kui-border-radius);
|
|
19
19
|
}
|
|
20
20
|
.k-popconfirm-inner-content {
|
|
21
21
|
padding: 18px 18px 10px 18px;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.k-icon {
|
|
26
26
|
position: absolute;
|
|
27
27
|
font-size: 18px;
|
|
28
|
-
color:
|
|
28
|
+
color: var(--kui-color-warning);
|
|
29
29
|
top: 19px;
|
|
30
30
|
}
|
|
31
31
|
.k-popconfirm-footer {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
align-items: center;
|
|
46
46
|
width: 19px;
|
|
47
47
|
.k-popconfirm-arrow-content {
|
|
48
|
-
background-color:
|
|
48
|
+
background-color: var(--kui-color-control-10);
|
|
49
49
|
transform: rotate(45deg);
|
|
50
50
|
width: 12px;
|
|
51
51
|
height: 12px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-poptip {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
position: relative;
|
|
@@ -7,29 +7,30 @@
|
|
|
7
7
|
.k-poptip-content {
|
|
8
8
|
min-width: 200px;
|
|
9
9
|
// max-width: 300px;
|
|
10
|
-
color:
|
|
10
|
+
color: var(--kui-color-font);
|
|
11
11
|
font-size: 12px;
|
|
12
12
|
line-height: 1.5;
|
|
13
13
|
position: absolute;
|
|
14
14
|
z-index: 1001;
|
|
15
15
|
transform: translateZ(0);
|
|
16
16
|
.k-poptip-inner {
|
|
17
|
-
background:
|
|
17
|
+
background: var(--kui-color-control-10);
|
|
18
18
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: var(--kui-border-radius);
|
|
20
20
|
}
|
|
21
21
|
.k-poptip-inner-content {
|
|
22
|
+
font-size: 14px;
|
|
22
23
|
padding: 8px 16px;
|
|
23
24
|
box-sizing: border-box;
|
|
24
25
|
}
|
|
25
26
|
.k-poptip-title {
|
|
26
|
-
font-size:
|
|
27
|
+
font-size: 16px;
|
|
27
28
|
font-weight: 500;
|
|
28
|
-
color:
|
|
29
|
+
color: var(--kui-color-font);
|
|
29
30
|
margin: 0;
|
|
30
31
|
padding: 8px 16px;
|
|
31
32
|
position: relative;
|
|
32
|
-
border-bottom: 1px solid
|
|
33
|
+
border-bottom: 1px solid var(--kui-color-gray-80);
|
|
33
34
|
text-overflow: ellipsis;
|
|
34
35
|
overflow: hidden;
|
|
35
36
|
}
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
align-items: center;
|
|
43
44
|
width: 19px;
|
|
44
45
|
.k-poptip-arrow-content {
|
|
45
|
-
background-color:
|
|
46
|
+
background-color: var(--kui-color-control-10);
|
|
46
47
|
transform: rotate(45deg);
|
|
47
48
|
width: 12px;
|
|
48
49
|
height: 12px;
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
.k-poptip-dark {
|
|
172
|
-
background-color:
|
|
173
|
+
background-color: var(--kui-color-dark);
|
|
173
174
|
color: #fff;
|
|
174
175
|
.k-poptip-title {
|
|
175
176
|
border-bottom: 1px solid rgba(0, 0, 0, .2);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-progress {
|
|
3
3
|
.k-progress-inner {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
border-radius: 10px;
|
|
6
|
-
background-color:
|
|
7
|
-
stroke:
|
|
6
|
+
background-color: var(--kui-color-gray-80);
|
|
7
|
+
stroke: var(--kui-color-gray-80);
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
vertical-align: middle;
|
|
10
10
|
width: calc(100% - 38px);
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
.k-progress-bg {
|
|
14
14
|
height: 8px;
|
|
15
15
|
border-radius: 10px;
|
|
16
|
-
background-color:
|
|
17
|
-
stroke:
|
|
16
|
+
background-color: var(--kui-color-main);
|
|
17
|
+
stroke: var(--kui-color-main);
|
|
18
18
|
width: 30%;
|
|
19
19
|
transition: all .3s ease-in-out;
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
display: inline-block;
|
|
23
23
|
width: 30px;
|
|
24
24
|
font-size: 14px;
|
|
25
|
-
color:
|
|
25
|
+
color: var(--kui-color-font);
|
|
26
26
|
line-height: 1;
|
|
27
27
|
white-space: nowrap;
|
|
28
28
|
vertical-align: middle;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
top: 0;
|
|
97
97
|
width: 0;
|
|
98
98
|
height: 100%;
|
|
99
|
-
background-color:
|
|
99
|
+
background-color: var(--kui-color-back);
|
|
100
100
|
opacity: 0;
|
|
101
101
|
border-radius: 10px;
|
|
102
102
|
animation: k-progress-active 2.4s linear infinite;
|
|
@@ -107,27 +107,27 @@
|
|
|
107
107
|
.k-progress-exception {
|
|
108
108
|
.k-progress-inner {
|
|
109
109
|
.k-progress-bg {
|
|
110
|
-
background-color:
|
|
110
|
+
background-color: var(--kui-color-danger);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
.k-icon {
|
|
114
|
-
color:
|
|
114
|
+
color: var(--kui-color-danger);
|
|
115
115
|
}
|
|
116
116
|
.k-progress-bg {
|
|
117
|
-
stroke:
|
|
117
|
+
stroke: var(--kui-color-danger);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.k-progress-success {
|
|
122
122
|
.k-progress-inner {
|
|
123
123
|
.k-progress-bg {
|
|
124
|
-
background-color:
|
|
124
|
+
background-color: var(--kui-color-success);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
.k-icon {
|
|
128
|
-
color:
|
|
128
|
+
color: var(--kui-color-success);
|
|
129
129
|
}
|
|
130
130
|
.k-progress-bg {
|
|
131
|
-
stroke:
|
|
131
|
+
stroke: var(--kui-color-success);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -33,9 +33,9 @@ export default {
|
|
|
33
33
|
let prop = {}
|
|
34
34
|
if (groupContext) {
|
|
35
35
|
checked = groupContext.defaultValue == value
|
|
36
|
-
let { size,
|
|
36
|
+
let { size, shape,theme } = groupContext
|
|
37
37
|
disabled = disabled || groupContext.disabled
|
|
38
|
-
prop = { disabled, size,
|
|
38
|
+
prop = { disabled, size, shape,theme, type: checked ? 'primary' : 'default' }
|
|
39
39
|
}
|
|
40
40
|
const props = {
|
|
41
41
|
attrs: { ...$attrs },
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<RadioGroup v-model="large" size="large">
|
|
9
|
+
<RadioGroup v-model="large" size="large" theme="solid">
|
|
10
10
|
<RadioButton value="beijing" icon="logo-apple">Beijing</RadioButton>
|
|
11
11
|
<RadioButton value="shanghai">Shanghai</RadioButton>
|
|
12
12
|
<RadioButton value="guangzhou">Guangzhou</RadioButton>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</RadioGroup>
|
|
16
16
|
<br/>
|
|
17
17
|
<br/>
|
|
18
|
-
<RadioGroup v-model="base" circle>
|
|
18
|
+
<RadioGroup v-model="base" shape="circle">
|
|
19
19
|
<RadioButton value="beijing" icon="logo-apple">Beijing</RadioButton>
|
|
20
20
|
<RadioButton value="shanghai">Shanghai</RadioButton>
|
|
21
21
|
<RadioButton value="guangzhou">Guangzhou</RadioButton>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</RadioGroup>
|
|
25
25
|
<br/>
|
|
26
26
|
<br/>
|
|
27
|
-
<RadioGroup v-model="sm" size="small"
|
|
27
|
+
<RadioGroup v-model="sm" size="small" theme="solid" type="button" :options="options" />
|
|
28
28
|
<br/>
|
|
29
29
|
<br/>
|
|
30
30
|
<RadioGroup value="beijing" size="small" disabled>
|