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.
Files changed (126) hide show
  1. package/components/affix/demo/callbacks.md +25 -0
  2. package/components/affix/demo/index.vue +2 -2
  3. package/components/avatar/demo/change.md +7 -8
  4. package/components/avatar/demo/index.vue +9 -2
  5. package/components/avatar/demo/types.md +4 -4
  6. package/components/badge/demo/color.md +1 -1
  7. package/components/badge/demo/dot.md +1 -1
  8. package/components/badge/demo/index.vue +8 -8
  9. package/components/breadcrumb/demo/icon.md +1 -1
  10. package/components/breadcrumb/demo/index.vue +4 -4
  11. package/components/breadcrumb/demo/separator.md +5 -7
  12. package/components/breadcrumb/styles/index.less +12 -0
  13. package/components/button/demo/index.vue +7 -7
  14. package/components/button/demo/normal.md +2 -2
  15. package/components/button/demo/size.md +1 -1
  16. package/components/button/styles/index.less +145 -44
  17. package/components/card/demo/index.vue +3 -3
  18. package/components/carousel/demo/index.vue +1 -1
  19. package/components/checkbox/demo/disabled.md +15 -10
  20. package/components/checkbox/demo/index.vue +16 -9
  21. package/components/collapse/demo/index.vue +6 -6
  22. package/components/colorPicker/colorpicker.jsx +1 -0
  23. package/components/colorPicker/demo/index.vue +2 -2
  24. package/components/colorPicker/styles/index.less +293 -240
  25. package/components/datePicker/demo/index.vue +1 -1
  26. package/components/datePicker/styles/datepicker.less +1 -0
  27. package/components/descriptions/demo/index.vue +2 -2
  28. package/components/divider/demo/index.vue +4 -4
  29. package/components/drawer/demo/form.md +0 -26
  30. package/components/drawer/demo/index.vue +16 -8
  31. package/components/dropdown/demo/base.md +2 -2
  32. package/components/dropdown/demo/index.vue +12 -3
  33. package/components/dropdown/demo/placement.md +0 -8
  34. package/components/empty/demo/custom.md +2 -2
  35. package/components/empty/demo/index.vue +5 -5
  36. package/components/form/styles/index.less +39 -4
  37. package/components/icon/demo/index.vue +3 -3
  38. package/components/image/demo/base.md +1 -1
  39. package/components/image/demo/errors.md +2 -2
  40. package/components/image/demo/extra.md +3 -3
  41. package/components/image/demo/extra_globle.md +3 -3
  42. package/components/image/demo/globle.md +4 -4
  43. package/components/image/demo/group.md +2 -2
  44. package/components/image/demo/index.vue +8 -8
  45. package/components/image/demo/origin.md +2 -2
  46. package/components/image/preview.jsx +13 -6
  47. package/components/image/styles/index.less +5 -2
  48. package/components/input/demo/index.vue +9 -9
  49. package/components/input/styles/index.less +21 -8
  50. package/components/inputNumber/demo/index.vue +6 -6
  51. package/components/inputNumber/styles/index.less +1 -1
  52. package/components/layout/styles/index.less +5 -1
  53. package/components/loading/demo/index.vue +10 -3
  54. package/components/locale/index.js +1 -1
  55. package/components/menu/styles/dropmenu.less +19 -1
  56. package/components/menu/styles/index.less +156 -19
  57. package/components/message/demo/index.vue +16 -7
  58. package/components/modal/demo/base.md +3 -1
  59. package/components/modal/demo/confrim.md +3 -2
  60. package/components/modal/demo/index.vue +17 -8
  61. package/components/modal/index.js +6 -5
  62. package/components/modal/modal.jsx +1 -1
  63. package/components/modal/styles/index.less +18 -14
  64. package/components/notice/demo/index.vue +16 -7
  65. package/components/notice/styles/index.less +1 -0
  66. package/components/page/demo/index.vue +6 -6
  67. package/components/page/styles/index.less +10 -3
  68. package/components/popconfirm/demo/index.vue +1 -1
  69. package/components/popconfirm/styles/index.less +1 -1
  70. package/components/poptip/demo/index.vue +1 -1
  71. package/components/poptip/styles/index.less +197 -170
  72. package/components/progress/demo/index.vue +1 -1
  73. package/components/radio/demo/index.vue +9 -10
  74. package/components/radio/styles/index.less +1 -1
  75. package/components/rate/demo/index.vue +9 -9
  76. package/components/select/demo/index.vue +10 -10
  77. package/components/skeleton/demo/custom.md +1 -1
  78. package/components/skeleton/demo/index.vue +1 -1
  79. package/components/slider/demo/index.vue +8 -8
  80. package/components/slider/styles/index.less +5 -1
  81. package/components/slider/thumb.jsx +25 -7
  82. package/components/space/demo/index.vue +8 -8
  83. package/components/spin/demo/base.md +3 -1
  84. package/components/spin/demo/index.vue +5 -5
  85. package/components/spin/spin.jsx +8 -1
  86. package/components/spin/styles/index.less +18 -4
  87. package/components/styles/color.less +18 -2
  88. package/components/styles/var.less +26 -4
  89. package/components/switch/demo/index.vue +8 -8
  90. package/components/switch/styles/index.less +28 -1
  91. package/components/table/demo/base-render.md +1 -1
  92. package/components/table/demo/base.md +1 -1
  93. package/components/table/demo/bordered.md +1 -1
  94. package/components/table/demo/custom-header.md +1 -1
  95. package/components/table/demo/edit.md +1 -1
  96. package/components/table/demo/fixed-head.md +3 -1
  97. package/components/table/demo/index.vue +19 -21
  98. package/components/table/extend.jsx +29 -11
  99. package/components/table/index.md +1 -0
  100. package/components/table/styles/index.less +10 -1
  101. package/components/table/table.jsx +3 -3
  102. package/components/tabs/demo/index.vue +10 -10
  103. package/components/tag/demo/index.vue +4 -4
  104. package/components/timeline/demo/index.vue +4 -4
  105. package/components/tooltip/demo/index.vue +1 -1
  106. package/components/tooltip/styles/index.less +1 -1
  107. package/components/tree/demo/index.vue +1 -1
  108. package/components/upload/demo/index.vue +12 -12
  109. package/components/upload/demo/picture.md +2 -2
  110. package/dist/k-ui.css +2 -2
  111. package/dist/k-ui.js +2 -2
  112. package/dist/locale/de.js +1 -1
  113. package/dist/locale/el.js +1 -1
  114. package/dist/locale/en.js +1 -1
  115. package/dist/locale/fr.js +1 -1
  116. package/dist/locale/it.js +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ko.js +1 -1
  119. package/dist/locale/ru.js +1 -1
  120. package/dist/locale/th.js +1 -1
  121. package/dist/locale/ua.js +1 -1
  122. package/dist/locale/vi.js +1 -1
  123. package/dist/locale/zhCN.js +1 -1
  124. package/dist/locale/zhTW.js +1 -1
  125. package/package.json +17 -20
  126. package/readme.md +2 -2
@@ -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 Theme from './theme.md'
5
5
  import Inside from './inside.md'
@@ -55,6 +55,7 @@
55
55
  &:hover {
56
56
  .k-datepicker-clearable {
57
57
  display: block;
58
+ cursor: pointer;
58
59
  }
59
60
  .k-icon-calendar {
60
61
  display: none;
@@ -1,6 +1,6 @@
1
1
  <script>
2
- import Base from './base'
3
- import Info from './info'
2
+ import Base from './base.md'
3
+ import Info from './info.md'
4
4
  import Bordered from './bordered.md'
5
5
  import Size from './size.md'
6
6
  import Layout from './layout.md'
@@ -1,8 +1,8 @@
1
1
  <script>
2
- import Info from './info'
3
- import Base from './base'
4
- import Default from './default'
5
- import WithText from './with-text'
2
+ import Info from './info.md'
3
+ import Base from './base.md'
4
+ import Default from './default.md'
5
+ import WithText from './with-text.md'
6
6
  import CN from '../index.md'
7
7
  export default {
8
8
  render() {
@@ -16,30 +16,6 @@
16
16
  <FormItem label="Number" prop="number">
17
17
  <Input number clearable></Input>
18
18
  </FormItem>
19
- <FormItem label="Select">
20
- <Row type="flex" :gutter="8">
21
- <Col :span="12">
22
- <FormItem prop="province">
23
- <Select clearable>
24
- <Option value="0" label="北京" />
25
- <Option value="1" label="上海" />
26
- <Option value="2" label="广州" />
27
- <Option value="3" label="深圳" />
28
- </Select>
29
- </FormItem>
30
- </Col>
31
- <Col :span="12" >
32
- <FormItem prop="city">
33
- <Select clearable>
34
- <Option value="0" label="南山区" />
35
- <Option value="1" label="龙华区" />
36
- <Option value="2" label="福田区" />
37
- <Option value="3" label="宝安区" />
38
- </Select>
39
- </FormItem>
40
- </Col>
41
- </Row>
42
- </FormItem>
43
19
  <FormItem label="DatePicker" prop="datepicker">
44
20
  <DatePicker clearable format="YYYY/MM/DD hh:mm:ss"></DatePicker>
45
21
  </FormItem>
@@ -88,7 +64,6 @@ export default {
88
64
  switch: true,
89
65
  input: "",
90
66
  number: "",
91
- select: '',
92
67
  province: '',
93
68
  city: '',
94
69
  radio: true,
@@ -101,7 +76,6 @@ export default {
101
76
  rules: {
102
77
  input: [{ required: true }],
103
78
  number: [{ required: true}],
104
- select: [{ required: true }],
105
79
  province: [{ required: true }],
106
80
  city: [{ required: true }],
107
81
  datepicker: [{ required: true }],
@@ -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
- </script>
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>
@@ -6,9 +6,9 @@
6
6
  ```vue
7
7
  <template>
8
8
  <Dropdown>
9
- <a href="#">
9
+ <Button>
10
10
  滑动展开 <Icon :type="ChevronDown" />
11
- </a>
11
+ </Button>
12
12
  <Menu slot="content">
13
13
  <MenuItem>
14
14
  <a href="javascript:;">1st menu item</a>
@@ -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-select">
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>
@@ -34,12 +34,4 @@ export default {
34
34
  },
35
35
  };
36
36
  </script>
37
- <style scoped>
38
- #dropdown-demo-placement .k-btn {
39
- margin-right: 8px;
40
- margin-bottom: 8px;
41
- }
42
- </style>
43
-
44
-
45
37
  ```
@@ -8,7 +8,7 @@
8
8
  <template>
9
9
  <div>
10
10
  <Empty
11
- image="https://www.chuchur.com/img/thumb.png"
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://www.chuchur.com/img/thumb.png" style="height:60px" />
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, .k-textarea, .k-datepicker, .k-input-number {
70
- border: 1px solid var(--kui-color-danger);
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: 1px solid var(--kui-color-danger);
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: 1px solid var(--kui-color-danger);
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 {
@@ -8,7 +8,7 @@
8
8
  <template>
9
9
  <Image
10
10
  :width="120"
11
- src="https://www.chuchur.com/upload/demo/test_300.jpg"
11
+ src="https://cdn.chuchur.com/upload/demo/test_300.jpg"
12
12
  />
13
13
  </template>
14
14
  ```
@@ -10,7 +10,7 @@
10
10
  <Image
11
11
  :width="120"
12
12
  src="https://k-ui.cn/error.jpg"
13
- placeholder="https://www.chuchur.com/img/thumb.png"
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://www.chuchur.com/upload/demo/test_300.jpg'
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://www.chuchur.com/upload/demo/test_300.jpg"
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://www.chuchur.com/upload/demo/kui-for-vue.jpg',
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://www.chuchur.com/upload/demo/kui-react.jpg',
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://www.chuchur.com/upload/demo/test_300.jpg',
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://www.chuchur.com/upload/demo/kui-react.jpg' ,
79
- 'https://www.chuchur.com/upload/demo/kui-for-vue.jpg' ,
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://www.chuchur.com/upload/demo/kui-for-vue.jpg'
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://www.chuchur.com/upload/demo/kui-react.jpg' ,
32
- 'https://www.chuchur.com/upload/demo/kui-for-vue.jpg' ,
33
- 'https://www.chuchur.com/upload/demo/test.jpg'
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://www.chuchur.com/upload/demo/kui-for-vue.jpg"
12
+ src="https://cdn.chuchur.com/upload/demo/kui-for-vue.jpg"
13
13
  />
14
14
  <Image
15
15
  :width="120"
16
- src="https://www.chuchur.com/upload/demo/kui-react.jpg"
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://www.chuchur.com/upload/demo/test_300.jpg"
13
- origin="https://www.chuchur.com/upload/demo/test.jpg"
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
- window.open(this.src)
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
- 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
- }
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;