kui-vue 3.3.0 → 3.3.1
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/base/input.jsx +2 -1
- 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/input/textarea.jsx +5 -0
- 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.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 +41 -23
- 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,14 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Custom from './custom'
|
|
5
|
-
import Form from './form'
|
|
6
|
-
import Target from './target'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Custom from './custom.md'
|
|
5
|
+
import Form from './form.md'
|
|
6
|
+
import Target from './target.md'
|
|
7
7
|
import CN from '../index.md'
|
|
8
8
|
export default {
|
|
9
9
|
render() {
|
|
10
10
|
return (
|
|
11
|
-
<div>
|
|
11
|
+
<div class="demo-drawer">
|
|
12
12
|
<Info class="typo" />
|
|
13
13
|
<Base />
|
|
14
14
|
<Custom />
|
|
@@ -19,5 +19,13 @@ export default {
|
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
</script>
|
|
23
|
+
<style lang="less">
|
|
24
|
+
.demo-drawer {
|
|
25
|
+
.k-btn{
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
margin-bottom: 10px;
|
|
28
|
+
min-width: 70px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
2
|
+
import Info from './info.md'
|
|
3
3
|
import Base from './base.md'
|
|
4
4
|
// import Custom from './custom.md'
|
|
5
5
|
import Rightmenu from './rightmenu.md'
|
|
@@ -10,7 +10,7 @@ import CN from '../index.md'
|
|
|
10
10
|
export default {
|
|
11
11
|
render() {
|
|
12
12
|
return (
|
|
13
|
-
<div class="demo-
|
|
13
|
+
<div class="demo-dropdown">
|
|
14
14
|
<Info class="typo" />
|
|
15
15
|
<Base />
|
|
16
16
|
<Rightmenu />
|
|
@@ -22,4 +22,13 @@ export default {
|
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
</script>
|
|
25
|
+
</script>
|
|
26
|
+
<style lang="less">
|
|
27
|
+
.demo-dropdown {
|
|
28
|
+
.k-btn,
|
|
29
|
+
.k-select {
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
margin-bottom: 8px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<template>
|
|
9
9
|
<div>
|
|
10
10
|
<Empty
|
|
11
|
-
image="https://
|
|
11
|
+
image="https://cdn.chuchur.com/img/thumb.png"
|
|
12
12
|
description="暂时没有图片"
|
|
13
13
|
:imageStyle="{height:'60px'}">
|
|
14
14
|
<Button type="primary" circle :icon="Add" size="small">上传图片</Button>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<br/>
|
|
19
19
|
<Empty>
|
|
20
20
|
<template slot="description">暂时没有<a>图片</a></template>
|
|
21
|
-
<img slot="image" src="https://
|
|
21
|
+
<img slot="image" src="https://cdn.chuchur.com/img/thumb.png" style="height:60px" />
|
|
22
22
|
<Button type="primary" circle :icon="Add" size="small">上传图片</Button>
|
|
23
23
|
</Empty>
|
|
24
24
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Custom from './custom'
|
|
5
|
-
import Use from './use'
|
|
6
|
-
import Nodesc from './nodesc'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Custom from './custom.md'
|
|
5
|
+
import Use from './use.md'
|
|
6
|
+
import Nodesc from './nodesc.md'
|
|
7
7
|
import CN from '../index.md'
|
|
8
8
|
export default {
|
|
9
9
|
render() {
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-form {
|
|
3
4
|
.k-form-item {
|
|
4
5
|
margin-bottom: 24px;
|
|
5
6
|
vertical-align: top;
|
|
6
7
|
zoom: 1;
|
|
7
8
|
color: var(--kui-color-font);
|
|
9
|
+
|
|
8
10
|
// margin-bottom: 5px;
|
|
9
11
|
.k-form-item {
|
|
10
12
|
margin-bottom: 0;
|
|
11
13
|
flex: 1;
|
|
12
14
|
margin-left: 8px;
|
|
15
|
+
|
|
13
16
|
&:first-child {
|
|
14
17
|
margin-left: 0;
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
.k-col {
|
|
17
21
|
flex: 1;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
.k-form-item-label {
|
|
22
27
|
text-align: right;
|
|
23
28
|
box-sizing: border-box;
|
|
@@ -29,11 +34,13 @@
|
|
|
29
34
|
overflow: hidden;
|
|
30
35
|
transition: all .3s ease-in-out;
|
|
31
36
|
justify-content: flex-end;
|
|
37
|
+
|
|
32
38
|
&::after {
|
|
33
39
|
content: ':';
|
|
34
40
|
padding: 0 8px 0 5px;
|
|
35
41
|
}
|
|
36
42
|
}
|
|
43
|
+
|
|
37
44
|
.k-form-item-content {
|
|
38
45
|
position: relative;
|
|
39
46
|
min-height: 32px;
|
|
@@ -41,6 +48,7 @@
|
|
|
41
48
|
align-items: center;
|
|
42
49
|
transition: all .3s ease-in-out;
|
|
43
50
|
}
|
|
51
|
+
|
|
44
52
|
.k-form-item-error-tip {
|
|
45
53
|
position: absolute;
|
|
46
54
|
top: 100%;
|
|
@@ -52,6 +60,7 @@
|
|
|
52
60
|
font-size: 12px;
|
|
53
61
|
line-height: 1.5;
|
|
54
62
|
}
|
|
63
|
+
|
|
55
64
|
.k-form-item-required {
|
|
56
65
|
.k-form-item-label {
|
|
57
66
|
&::before {
|
|
@@ -65,28 +74,46 @@
|
|
|
65
74
|
}
|
|
66
75
|
}
|
|
67
76
|
}
|
|
77
|
+
|
|
68
78
|
.k-form-item-error {
|
|
69
|
-
.k-input
|
|
70
|
-
border:
|
|
79
|
+
.k-input[mult].k-input-focus {
|
|
80
|
+
border-color: var(--kui-color-danger);
|
|
81
|
+
box-shadow: 0 0 5px var(--kui-color-danger-30);
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.k-input,
|
|
86
|
+
.k-input-focus,
|
|
87
|
+
.k-textarea,
|
|
88
|
+
.k-datepicker,
|
|
89
|
+
.k-input-number {
|
|
90
|
+
border-color: var(--kui-color-danger);
|
|
91
|
+
|
|
92
|
+
&:hover,
|
|
71
93
|
&:focus {
|
|
72
|
-
border:
|
|
94
|
+
border-color: var(--kui-color-danger);
|
|
73
95
|
box-shadow: 0 0 5px var(--kui-color-danger-30);
|
|
74
96
|
}
|
|
75
97
|
}
|
|
98
|
+
|
|
76
99
|
.k-select {
|
|
77
100
|
.k-select-selection {
|
|
78
|
-
border:
|
|
101
|
+
border-color: var(--kui-color-danger);
|
|
79
102
|
}
|
|
103
|
+
|
|
80
104
|
.k-select-arrow {
|
|
81
105
|
color: var(--kui-color-danger);
|
|
82
106
|
}
|
|
83
107
|
}
|
|
108
|
+
|
|
84
109
|
.k-radio-group .k-btn {
|
|
85
110
|
border-color: var(--kui-color-danger);
|
|
86
111
|
}
|
|
112
|
+
|
|
87
113
|
.k-select-open .k-select-selection {
|
|
88
114
|
box-shadow: 0 0 5px var(--kui-color-danger-30);
|
|
89
115
|
}
|
|
116
|
+
|
|
90
117
|
.k-datepicker-open {
|
|
91
118
|
box-shadow: 0 0 5px var(--kui-color-danger-30);
|
|
92
119
|
}
|
|
@@ -104,6 +131,7 @@
|
|
|
104
131
|
.k-form-item-label {
|
|
105
132
|
height: 40px;
|
|
106
133
|
}
|
|
134
|
+
|
|
107
135
|
.k-form-item-content {
|
|
108
136
|
min-height: 40px;
|
|
109
137
|
}
|
|
@@ -113,10 +141,12 @@
|
|
|
113
141
|
.k-form-item {
|
|
114
142
|
flex-direction: column;
|
|
115
143
|
}
|
|
144
|
+
|
|
116
145
|
.k-form-item-label {
|
|
117
146
|
height: auto;
|
|
118
147
|
justify-content: start;
|
|
119
148
|
margin-bottom: 8px;
|
|
149
|
+
|
|
120
150
|
&::after {
|
|
121
151
|
display: none;
|
|
122
152
|
}
|
|
@@ -126,11 +156,13 @@
|
|
|
126
156
|
.k-form-inline {
|
|
127
157
|
display: flex;
|
|
128
158
|
flex-wrap: wrap;
|
|
159
|
+
|
|
129
160
|
.k-form-item {
|
|
130
161
|
flex: none;
|
|
131
162
|
flex-wrap: nowrap;
|
|
132
163
|
margin-right: 16px;
|
|
133
164
|
margin-bottom: 18px;
|
|
165
|
+
|
|
134
166
|
.k-form-item {
|
|
135
167
|
margin-left: 0;
|
|
136
168
|
}
|
|
@@ -143,6 +175,7 @@
|
|
|
143
175
|
.k-form-item-label {
|
|
144
176
|
height: 24px;
|
|
145
177
|
}
|
|
178
|
+
|
|
146
179
|
.k-form-item-content {
|
|
147
180
|
min-height: 24px;
|
|
148
181
|
}
|
|
@@ -153,6 +186,7 @@
|
|
|
153
186
|
transform: scaleY(0);
|
|
154
187
|
opacity: 0;
|
|
155
188
|
}
|
|
189
|
+
|
|
156
190
|
100% {
|
|
157
191
|
transform: scaleY(1);
|
|
158
192
|
opacity: 1;
|
|
@@ -164,6 +198,7 @@
|
|
|
164
198
|
transform: scaleY(1);
|
|
165
199
|
opacity: 1;
|
|
166
200
|
}
|
|
201
|
+
|
|
167
202
|
100% {
|
|
168
203
|
transform: scaleY(0);
|
|
169
204
|
opacity: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Base from './base'
|
|
3
|
-
import Stroke from './stroke'
|
|
4
|
-
import Info from './info'
|
|
2
|
+
import Base from './base.md'
|
|
3
|
+
import Stroke from './stroke.md'
|
|
4
|
+
import Info from './info.md'
|
|
5
5
|
import Search from './search.vue'
|
|
6
6
|
import CN from '../index.md'
|
|
7
7
|
export default {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<Image
|
|
11
11
|
:width="120"
|
|
12
12
|
src="https://k-ui.cn/error.jpg"
|
|
13
|
-
placeholder="https://
|
|
13
|
+
placeholder="https://cdn.chuchur.com/img/thumb.png"
|
|
14
14
|
/>
|
|
15
15
|
<Image
|
|
16
16
|
:width="120"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
export default{
|
|
30
30
|
data() {
|
|
31
31
|
return {
|
|
32
|
-
src:'https://
|
|
32
|
+
src:'https://cdn.chuchur.com/upload/demo/test_300.jpg'
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
methods:{
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
单张图:
|
|
10
10
|
<Image
|
|
11
11
|
:width="120"
|
|
12
|
-
src="https://
|
|
12
|
+
src="https://cdn.chuchur.com/upload/demo/test_300.jpg"
|
|
13
13
|
@close="close"
|
|
14
14
|
>
|
|
15
15
|
<template slot="tool">
|
|
@@ -118,7 +118,7 @@ export default{
|
|
|
118
118
|
Ribbon ,Heart, IconImage, Calendar, Location, Camera,
|
|
119
119
|
imgs:[
|
|
120
120
|
{
|
|
121
|
-
src:'https://
|
|
121
|
+
src:'https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg',
|
|
122
122
|
title:'kui for vue.js.jpg',
|
|
123
123
|
desc: '一套基于Vuejs的桌面UI组件库',
|
|
124
124
|
date: '2017年8月7日',
|
|
@@ -131,7 +131,7 @@ export default{
|
|
|
131
131
|
discSub:'VUEJS 2.x',
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
src:'https://
|
|
134
|
+
src:'https://cdn.chuchur.com/upload/demo/kui-react.jpg',
|
|
135
135
|
title:'kui for react.jpg',
|
|
136
136
|
desc: '一套基于Reactjs的桌面UI组件库',
|
|
137
137
|
date: '2018年10月7日',
|
|
@@ -18,7 +18,7 @@ export default{
|
|
|
18
18
|
openImage(){
|
|
19
19
|
let h = this.$createElement
|
|
20
20
|
let options = {
|
|
21
|
-
src:'https://
|
|
21
|
+
src:'https://cdn.chuchur.com/upload/demo/test_300.jpg',
|
|
22
22
|
slots:{
|
|
23
23
|
tool: h('Icon',{
|
|
24
24
|
props:{ type: Heart ,color:'#3a95ff' },
|
|
@@ -75,8 +75,8 @@ export default{
|
|
|
75
75
|
let options = {
|
|
76
76
|
index,
|
|
77
77
|
data:[
|
|
78
|
-
'https://
|
|
79
|
-
'https://
|
|
78
|
+
'https://cdn.chuchur.com/upload/demo/kui-react.jpg' ,
|
|
79
|
+
'https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg' ,
|
|
80
80
|
],
|
|
81
81
|
slots:{
|
|
82
82
|
tool: h('Icon',{
|
|
@@ -22,15 +22,15 @@ export default{
|
|
|
22
22
|
},
|
|
23
23
|
open(){
|
|
24
24
|
this.$Image.show({
|
|
25
|
-
src: 'https://
|
|
25
|
+
src: 'https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg'
|
|
26
26
|
})
|
|
27
27
|
},
|
|
28
28
|
openGroup(){
|
|
29
29
|
this.$Image.show({
|
|
30
30
|
data: [
|
|
31
|
-
'https://
|
|
32
|
-
'https://
|
|
33
|
-
'https://
|
|
31
|
+
'https://cdn.chuchur.com/upload/demo/kui-react.jpg' ,
|
|
32
|
+
'https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg' ,
|
|
33
|
+
'https://cdn.chuchur.com/upload/demo/test.jpg'
|
|
34
34
|
],
|
|
35
35
|
index:1
|
|
36
36
|
})
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
<ImageGroup>
|
|
10
10
|
<Image
|
|
11
11
|
:width="120"
|
|
12
|
-
src="https://
|
|
12
|
+
src="https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg"
|
|
13
13
|
/>
|
|
14
14
|
<Image
|
|
15
15
|
:width="120"
|
|
16
|
-
src="https://
|
|
16
|
+
src="https://cdn.chuchur.com/upload/demo/kui-react.jpg"
|
|
17
17
|
/>
|
|
18
18
|
</ImageGroup>
|
|
19
19
|
</template>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Origin from './origin'
|
|
5
|
-
import Errors from './errors'
|
|
6
|
-
import Group from './group'
|
|
7
|
-
import Extra from './extra'
|
|
8
|
-
import ExtraGloble from './extra_globle'
|
|
9
|
-
import Globle from './globle'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Origin from './origin.md'
|
|
5
|
+
import Errors from './errors.md'
|
|
6
|
+
import Group from './group.md'
|
|
7
|
+
import Extra from './extra.md'
|
|
8
|
+
import ExtraGloble from './extra_globle.md'
|
|
9
|
+
import Globle from './globle.md'
|
|
10
10
|
import CN from '../index.md'
|
|
11
11
|
export default {
|
|
12
12
|
render() {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<template>
|
|
10
10
|
<Image
|
|
11
11
|
:width="120"
|
|
12
|
-
src="https://
|
|
13
|
-
origin="https://
|
|
12
|
+
src="https://cdn.chuchur.com/upload/demo/test_300.jpg"
|
|
13
|
+
origin="https://cdn.chuchur.com/upload/demo/test.jpg"
|
|
14
14
|
/>
|
|
15
15
|
</template>
|
|
16
16
|
```
|
|
@@ -97,11 +97,6 @@ export default {
|
|
|
97
97
|
this.$emit('input', false)
|
|
98
98
|
this.$emit('close')
|
|
99
99
|
},
|
|
100
|
-
touchstart(e) {
|
|
101
|
-
if (e.touches.length == 1 && this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
100
|
mousedown(e) {
|
|
106
101
|
if (this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
|
|
107
102
|
if (e.button && e.button != 0) return;
|
|
@@ -196,7 +191,19 @@ export default {
|
|
|
196
191
|
},
|
|
197
192
|
download() {
|
|
198
193
|
if (!this.error) {
|
|
199
|
-
|
|
194
|
+
var x = new XMLHttpRequest();
|
|
195
|
+
x.open("GET", this.src, true);
|
|
196
|
+
x.responseType = 'blob';
|
|
197
|
+
x.onload = function (e) {
|
|
198
|
+
var url = window.URL.createObjectURL(x.response)
|
|
199
|
+
var a = document.createElement('a');
|
|
200
|
+
a.href = url
|
|
201
|
+
a.download = ''
|
|
202
|
+
a.click()
|
|
203
|
+
}
|
|
204
|
+
x.send();
|
|
205
|
+
|
|
206
|
+
// window.open(this.src)
|
|
200
207
|
}
|
|
201
208
|
},
|
|
202
209
|
resetBodyStyle(opened) {
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
border-width: 1px 0 0;
|
|
109
109
|
background-color: var(--kui-color-border);
|
|
110
110
|
}
|
|
111
|
-
.k-image-preview-action-rotate-left {
|
|
111
|
+
.k-image-preview-action-rotate-left .k-icon{
|
|
112
112
|
transform: rotateY(-180deg) rotate(45deg);
|
|
113
113
|
}
|
|
114
|
-
.k-image-preview-action-rotate-right {
|
|
114
|
+
.k-image-preview-action-rotate-right .k-icon{
|
|
115
115
|
transform: rotate(45deg);
|
|
116
116
|
}
|
|
117
117
|
.k-image-preview-action-disabled {
|
|
@@ -138,6 +138,9 @@
|
|
|
138
138
|
background-color: var(--kui-color-main);
|
|
139
139
|
color: #fff;
|
|
140
140
|
}
|
|
141
|
+
&:active{
|
|
142
|
+
background-color: var(--kui-color-main-actived);
|
|
143
|
+
}
|
|
141
144
|
}
|
|
142
145
|
.k-image-preview-switch-left {
|
|
143
146
|
left: 10px;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from "./info";
|
|
3
|
-
import Base from "./base";
|
|
4
|
-
import Theme from "./theme";
|
|
5
|
-
import Icon from "./icon";
|
|
6
|
-
import Suffix from "./suffix";
|
|
7
|
-
import Clearable from "./clearable";
|
|
8
|
-
import Size from "./size";
|
|
9
|
-
import Event from "./event";
|
|
10
|
-
import TextArea from "./textarea";
|
|
2
|
+
import Info from "./info.md";
|
|
3
|
+
import Base from "./base.md";
|
|
4
|
+
import Theme from "./theme.md";
|
|
5
|
+
import Icon from "./icon.md";
|
|
6
|
+
import Suffix from "./suffix.md";
|
|
7
|
+
import Clearable from "./clearable.md";
|
|
8
|
+
import Size from "./size.md";
|
|
9
|
+
import Event from "./event.md";
|
|
10
|
+
import TextArea from "./textarea.md";
|
|
11
11
|
import CN from "../index.md";
|
|
12
12
|
export default {
|
|
13
13
|
render() {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
flex: 1;
|
|
38
38
|
min-width: 10px;
|
|
39
39
|
&:focus {
|
|
40
|
-
border-color: var(--kui-color-main);
|
|
40
|
+
// border-color: var(--kui-color-main);
|
|
41
41
|
outline: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -105,14 +105,27 @@
|
|
|
105
105
|
&::placeholder {
|
|
106
106
|
color: var(--kui-color-disable-color);
|
|
107
107
|
}
|
|
108
|
-
&:-webkit-autofill {
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
&:-webkit-autofill:focus {
|
|
112
|
-
|
|
113
|
-
}
|
|
108
|
+
// &:-webkit-autofill {
|
|
109
|
+
// box-shadow: 0 0 0px 1000px white inset !important;
|
|
110
|
+
// }
|
|
111
|
+
// &:-webkit-autofill:focus {
|
|
112
|
+
// box-shadow: 0 0 0px 1000px white inset !important;
|
|
113
|
+
// }
|
|
114
|
+
}
|
|
115
|
+
input:-webkit-autofill,
|
|
116
|
+
input:-webkit-autofill:hover,
|
|
117
|
+
input:-webkit-autofill:focus,
|
|
118
|
+
textarea:-webkit-autofill,
|
|
119
|
+
textarea:-webkit-autofill:hover,
|
|
120
|
+
textarea:-webkit-autofill:focus,
|
|
121
|
+
select:-webkit-autofill,
|
|
122
|
+
select:-webkit-autofill:hover,
|
|
123
|
+
select:-webkit-autofill:focus {
|
|
124
|
+
// border:none;// 1px solid var(--kui-color-main);
|
|
125
|
+
-webkit-text-fill-color: var(--kui-color-font);
|
|
126
|
+
-webkit-box-shadow: 0 0 0px 1000px var(--kui-color-back) inset;
|
|
127
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
114
128
|
}
|
|
115
|
-
|
|
116
129
|
.k-textarea {
|
|
117
130
|
max-width: 100%;
|
|
118
131
|
height: auto;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from "./info";
|
|
3
|
-
import Base from "./base";
|
|
4
|
-
import Format from "./format";
|
|
5
|
-
import Ffix from "./ffix";
|
|
6
|
-
import Size from "./size";
|
|
2
|
+
import Info from "./info.md";
|
|
3
|
+
import Base from "./base.md";
|
|
4
|
+
import Format from "./format.md";
|
|
5
|
+
import Ffix from "./ffix.md";
|
|
6
|
+
import Size from "./size.md";
|
|
7
7
|
|
|
8
8
|
import CN from "../index.md";
|
|
9
9
|
export default {
|
|
10
10
|
render() {
|
|
11
11
|
return (
|
|
12
|
-
<div class="
|
|
12
|
+
<div class="demo-inputnumber">
|
|
13
13
|
<Info class="typo" />
|
|
14
14
|
<Base />
|
|
15
15
|
<Format />
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
}
|
|
20
20
|
.k-layout-content {
|
|
21
21
|
flex: 1;
|
|
22
|
-
|
|
22
|
+
// width: 0;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
// overflow: hidden;
|
|
23
25
|
}
|
|
24
26
|
.k-layout-sider {
|
|
25
27
|
position: relative;
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
flex-direction: row;
|
|
38
40
|
width: 100%;
|
|
39
41
|
.k-layout {
|
|
42
|
+
min-width: 0;
|
|
40
43
|
flex: 1;
|
|
44
|
+
// width: 0;
|
|
41
45
|
}
|
|
42
46
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from "./info";
|
|
3
|
-
import Base from "./base";
|
|
2
|
+
import Info from "./info.md";
|
|
3
|
+
import Base from "./base.md";
|
|
4
4
|
|
|
5
5
|
import CN from "../index.md";
|
|
6
6
|
export default {
|
|
7
7
|
render() {
|
|
8
8
|
return (
|
|
9
|
-
<div class="
|
|
9
|
+
<div class="demo-loading">
|
|
10
10
|
<Info class="typo" />
|
|
11
11
|
<Base />
|
|
12
12
|
<CN class="typo" />
|
|
@@ -15,3 +15,10 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
</script>
|
|
18
|
+
<style lang="less">
|
|
19
|
+
.demo-loading{
|
|
20
|
+
.k-btn{
|
|
21
|
+
margin: 0 8px 8px 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</style>
|