kui-vue 3.2.2 → 3.2.3-rc1

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 (79) hide show
  1. package/components/affix/index.md +6 -5
  2. package/components/alert/styles/index.less +13 -8
  3. package/components/badge/styles/index.less +1 -2
  4. package/components/base/pop.jsx +1 -1
  5. package/components/breadcrumb/styles/index.less +2 -2
  6. package/components/button/demo/hollow.md +1 -1
  7. package/components/button/styles/index.less +5 -5
  8. package/components/card/demo/border.md +1 -1
  9. package/components/card/styles/index.less +4 -3
  10. package/components/checkbox/checkbox.jsx +4 -2
  11. package/components/checkbox/styles/index.less +44 -43
  12. package/components/collapse/styles/index.less +3 -10
  13. package/components/colorPicker/styles/index.less +5 -3
  14. package/components/datePicker/styles/calendar.less +6 -5
  15. package/components/datePicker/styles/datepicker.less +3 -3
  16. package/components/divider/styles/index.less +7 -6
  17. package/components/drawer/drawer.jsx +10 -8
  18. package/components/drawer/styles/index.less +2 -1
  19. package/components/dropdown/demo/rightmenu.md +2 -3
  20. package/components/dropdown/styles/index.less +2 -2
  21. package/components/empty/styles/index.less +1 -1
  22. package/components/form/styles/index.less +1 -0
  23. package/components/grid/demo/align.md +3 -3
  24. package/components/grid/demo/fill.md +3 -3
  25. package/components/grid/demo/flex.md +5 -5
  26. package/components/grid/demo/index.vue +0 -1
  27. package/components/icon/demo/search.vue +2 -2
  28. package/components/image/instance.js +1 -1
  29. package/components/image/preview.jsx +50 -20
  30. package/components/image/styles/index.less +7 -5
  31. package/components/index.js +1 -1
  32. package/components/input/styles/index.less +2 -1
  33. package/components/layout/demo/base.md +3 -4
  34. package/components/layout/demo/layout1.md +4 -4
  35. package/components/layout/demo/layout2.md +5 -6
  36. package/components/layout/demo/layout3.md +3 -4
  37. package/components/layout/demo/layout4.md +4 -4
  38. package/components/layout/demo/layout5.md +8 -8
  39. package/components/layout/demo/layout6.md +2 -2
  40. package/components/layout/styles/index.less +2 -3
  41. package/components/loading/styles/index.less +1 -1
  42. package/components/menu/styles/dropmenu.less +7 -6
  43. package/components/menu/styles/index.less +13 -9
  44. package/components/message/styles/index.less +1 -1
  45. package/components/modal/modal.jsx +10 -8
  46. package/components/modal/styles/index.less +7 -6
  47. package/components/notice/styles/index.less +1 -1
  48. package/components/page/styles/index.less +1 -1
  49. package/components/popconfirm/styles/index.less +3 -2
  50. package/components/poptip/styles/index.less +4 -3
  51. package/components/progress/styles/index.less +3 -3
  52. package/components/radio/radio.jsx +3 -5
  53. package/components/radio/styles/index.less +56 -54
  54. package/components/rate/index.md +3 -3
  55. package/components/rate/styles/index.less +1 -1
  56. package/components/select/styles/index.less +8 -7
  57. package/components/spin/demo/container.md +1 -2
  58. package/components/spin/demo/mode.md +1 -2
  59. package/components/spin/styles/index.less +1 -1
  60. package/components/styles/dark.less +67 -0
  61. package/components/styles/global-dark.less +36 -0
  62. package/components/styles/global.less +22 -12
  63. package/components/styles/index.less +5 -10
  64. package/components/switch/styles/index.less +4 -3
  65. package/components/table/demo/base-render.md +1 -1
  66. package/components/table/demo/base.md +5 -2
  67. package/components/table/styles/index.less +11 -7
  68. package/components/table/table.jsx +10 -7
  69. package/components/tabs/demo/sample.md +1 -1
  70. package/components/tabs/styles/index.less +7 -10
  71. package/components/tag/styles/index.less +40 -39
  72. package/components/timeline/styles/index.less +3 -2
  73. package/components/tooltip/styles/index.less +22 -3
  74. package/components/tree/styles/index.less +8 -8
  75. package/dist/k-ui-dark.css +1 -0
  76. package/dist/k-ui.css +1 -7
  77. package/dist/k-ui.js +2 -2
  78. package/package.json +10 -9
  79. package/components/styles.js +0 -43
@@ -8,35 +8,35 @@ Flex 布局基础。
8
8
  <template>
9
9
  <div class="demo-grid">
10
10
  <p>start</p>
11
- <Row type="flex" justify="start">
11
+ <Row type="flex" justify="start" class="demo-back">
12
12
  <Col :span="4"><div>col-4</div></Col>
13
13
  <Col :span="4"><div>col-4</div></Col>
14
14
  <Col :span="4"><div>col-4</div></Col>
15
15
  <Col :span="4"><div>col-4</div></Col>
16
16
  </Row>
17
17
  <p>center</p>
18
- <Row type="flex" justify="center">
18
+ <Row type="flex" justify="center" class="demo-back">
19
19
  <Col :span="4"><div>col-4</div></Col>
20
20
  <Col :span="4"><div>col-4</div></Col>
21
21
  <Col :span="4"><div>col-4</div></Col>
22
22
  <Col :span="4"><div>col-4</div></Col>
23
23
  </Row>
24
24
  <p>end</p>
25
- <Row type="flex" justify="end">
25
+ <Row type="flex" justify="end" class="demo-back">
26
26
  <Col :span="4"><div>col-4</div></Col>
27
27
  <Col :span="4"><div>col-4</div></Col>
28
28
  <Col :span="4"><div>col-4</div></Col>
29
29
  <Col :span="4"><div>col-4</div></Col>
30
30
  </Row>
31
31
  <p>space-around</p>
32
- <Row type="flex" justify="space-around">
32
+ <Row type="flex" justify="space-around" class="demo-back">
33
33
  <Col :span="4"><div>col-4</div></Col>
34
34
  <Col :span="4"><div>col-4</div></Col>
35
35
  <Col :span="4"><div>col-4</div></Col>
36
36
  <Col :span="4"><div>col-4</div></Col>
37
37
  </Row>
38
38
  <p>space-between</p>
39
- <Row type="flex" justify="space-between">
39
+ <Row type="flex" justify="space-between" class="demo-back">
40
40
  <Col :span="4"><div>col-4</div></Col>
41
41
  <Col :span="4"><div>col-4</div></Col>
42
42
  <Col :span="4"><div>col-4</div></Col>
@@ -44,7 +44,6 @@ export default {
44
44
  }
45
45
  .k-row-flex{
46
46
  padding: 10px 0;
47
- background: #f1f1f1;
48
47
  }
49
48
  .k-row {
50
49
  margin: 10px 0;
@@ -3,7 +3,7 @@
3
3
  <h3>图标快速检索</h3>
4
4
  <br />
5
5
  <Affix :offsetTop="52">
6
- <div style="background:#fff;padding:20px 0;">
6
+ <div style="padding:20px 0;" class="back">
7
7
  <div style="position:relative;width:800px;margin:0 auto;">
8
8
  <RadioGroup v-model="type" @change="switchIcon" style="position:absolute;right:4px;top:4px;z-index:10;">
9
9
  <RadioButton value="outline">Outline</RadioButton>
@@ -59,7 +59,7 @@
59
59
  transition: color 0.3s ease-in-out;
60
60
  &:hover {
61
61
  color: #3a95ff;
62
- background: #f5f5f5;
62
+ // background: #f5f5f5;
63
63
  box-shadow: 0 0 15px #ddd;
64
64
  }
65
65
  }
@@ -62,7 +62,7 @@ export default function createInstance({ type }) {
62
62
  },
63
63
  render() {
64
64
  let { src, visible, showSwitch, data, showPanel, slots, _globle, type } = this
65
- console.log(type)
65
+ // console.log(type)
66
66
  const imageProps = {
67
67
  props: {
68
68
  origin: src,
@@ -33,6 +33,7 @@ export default {
33
33
  vertical: true,
34
34
  isShowPanel: this.showPanel,
35
35
  panelRight: 0,
36
+ touch: false,
36
37
  }
37
38
  },
38
39
  watch: {
@@ -96,14 +97,29 @@ export default {
96
97
  this.$emit('input', false)
97
98
  this.$emit('close')
98
99
  },
100
+ touchstart(e) {
101
+ if (e.touches.length == 1 && this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
102
+
103
+ }
104
+ },
99
105
  mousedown(e) {
100
- if (e.button == 0 && this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
106
+ if (this.$refs.imgRef && this.$refs.imgRef.contains(e.target)) {
107
+ if (e.button && e.button != 0) return;
108
+ let clientX, clientY;
109
+ if (e.touches && e.touches.length == 1) {
110
+ clientX = e.touches[0].clientX
111
+ clientY = e.touches[0].clientY
112
+ } else {
113
+ clientX = e.clientX
114
+ clientY = e.clientY
115
+ }
101
116
  this.ismousedown = true
102
- this.startPos = { x: e.clientX, y: e.clientY }
103
- this.initPos = { x: e.clientX, y: e.clientY }
117
+ this.startPos = { x: clientX, y: clientY }
118
+ this.initPos = { x: clientX, y: clientY }
104
119
  this.mousemove(e)
105
- document.addEventListener('mousemove', this.mousemove)
106
- document.addEventListener('mouseup', this.mouseup)
120
+ let [e1, e2] = this.touch ? ['touchmove', 'touchend'] : ['mousemove', 'mouseup']
121
+ document.addEventListener(e1, this.mousemove, { passive: false })
122
+ document.addEventListener(e2, this.mouseup, { passive: false })
107
123
  }
108
124
  },
109
125
  resetPosition() {
@@ -144,16 +160,25 @@ export default {
144
160
  mouseup(e) {
145
161
  this.ismousedown = false
146
162
  this.resetPosition()
147
- document.removeEventListener('mousemove', this.mousemove)
148
- document.removeEventListener('mouseup', this.mouseup)
163
+ let [e1, e2] = this.touch ? ['touchmove', 'touchend'] : ['mousemove', 'mouseup']
164
+ document.removeEventListener(e1, this.mousemove)
165
+ document.removeEventListener(e2, this.mouseup)
149
166
  },
150
167
  mousemove(e) {
151
168
  if (this.ismousedown) {
152
- let { x, y } = this.startPos
153
- this.left += e.clientX - x
154
- this.top += e.clientY - y
155
- this.startPos = { x: e.clientX, y: e.clientY }
156
169
  e.preventDefault()
170
+ let clientX, clientY;
171
+ if (e.touches && e.touches.length == 1) {
172
+ clientX = e.touches[0].clientX
173
+ clientY = e.touches[0].clientY
174
+ } else {
175
+ clientX = e.clientX
176
+ clientY = e.clientY
177
+ }
178
+ let { x, y } = this.startPos
179
+ this.left += clientX - x
180
+ this.top += clientY - y
181
+ this.startPos = { x: clientX, y: clientY }
157
182
  }
158
183
  },
159
184
  switchImage(left) {
@@ -175,24 +200,26 @@ export default {
175
200
  }
176
201
  },
177
202
  resetBodyStyle(opened) {
203
+ let target = document.body
178
204
  if (!this.show && !cacheBodyOverflow.hasOwnProperty('overflow')) {
179
205
  cacheBodyOverflow = {
180
- width: document.body.width,
181
- overflow: document.body.overflow,
182
- overflowX: document.body.overflowX,
183
- overflowY: document.body.overflowY,
206
+ width: target.width,
207
+ overflow: target.overflow,
208
+ overflowX: target.overflowX,
209
+ overflowY: target.overflowY,
184
210
  }
185
211
  }
186
212
  if (opened) {
187
213
  let barWidth = measureScrollBar(true)
188
- if (barWidth) {
189
- document.body.style.width = `calc(100% - ${barWidth}px)`
190
- document.body.style.overflow = `hidden`
214
+ let hasBar = target.scrollHeight > target.clientHeight || target.offsetHeight > target.clientHeight
215
+ if (barWidth && hasBar) {
216
+ target.style.width = `calc(100% - ${barWidth}px)`
217
+ target.style.overflow = `hidden`
191
218
  }
192
219
  } else {
193
220
  setTimeout(() => {
194
221
  Object.keys(cacheBodyOverflow).forEach(key => {
195
- document.body.style[key] = cacheBodyOverflow[key] || ''
222
+ target.style[key] = cacheBodyOverflow[key] || ''
196
223
  delete cacheBodyOverflow[key]
197
224
  })
198
225
  }, 300)
@@ -216,7 +243,10 @@ export default {
216
243
  }
217
244
  },
218
245
  mounted() {
219
- document.addEventListener('mousedown', this.mousedown)
246
+ let touch = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch)
247
+ this.touch = touch
248
+ let even = touch ? 'touchstart' : 'mousedown'
249
+ document.addEventListener(even, this.mousedown, { passive: false })
220
250
  },
221
251
  render(h) {
222
252
  const { scale, rotate, visible, src, left, top, transfer, showSwitch, data, loading, panelRight, type } = this
@@ -24,7 +24,7 @@
24
24
  .k-image-error {
25
25
  font-size: 50px;
26
26
  opacity: .3;
27
- color: @border-color;
27
+ color: @disable-color;
28
28
  position: absolute;
29
29
  left: 50%;
30
30
  top: 50%;
@@ -82,7 +82,7 @@
82
82
  }
83
83
  .k-image-preview-action {
84
84
  margin: 12px;
85
- color: @border-color;
85
+ color: #999;
86
86
  font-size: 28px;
87
87
  cursor: pointer;
88
88
  list-style: none;
@@ -93,7 +93,8 @@
93
93
  justify-content: center;
94
94
  border-radius: 50%;
95
95
  &:hover {
96
- background-color: fade(@mask-color, 30%);
96
+ background-color: @back-color;
97
+ color:#666;
97
98
  }
98
99
  }
99
100
  .k-image-preview-action-divider {
@@ -122,7 +123,7 @@
122
123
  position: absolute;
123
124
  width: 44px;
124
125
  height: 44px;
125
- color: @border-color;
126
+ color: #999;
126
127
  font-size: 25px;
127
128
  border-radius: 50%;
128
129
  background-color: fade(@mask-color, 50%);
@@ -135,6 +136,7 @@
135
136
  cursor: pointer;
136
137
  &:hover {
137
138
  background-color: @main;
139
+ color:#fff;
138
140
  }
139
141
  }
140
142
  .k-image-preview-switch-left {
@@ -187,7 +189,7 @@
187
189
  top: 50%;
188
190
  left: 50%;
189
191
  transform: translateX(-50%) translateY(-50%);
190
- color: fade(@border-color, 50%);
192
+ color: @disable-color;
191
193
  // filter: blur(1px);
192
194
  font-size: 50px;
193
195
  text-align: center;
@@ -43,7 +43,7 @@ import { Row, Col } from './grid'
43
43
 
44
44
  import { version } from '../package.json'
45
45
 
46
- import './styles';
46
+ // import './styles';
47
47
 
48
48
  const components = {
49
49
  Affix,
@@ -4,6 +4,7 @@
4
4
  display: inline-block;
5
5
  width: 100%;
6
6
  max-width: 100%;
7
+ color: @color;
7
8
  .k-input-icon {
8
9
  position: absolute;
9
10
  top: 0;
@@ -31,7 +32,7 @@
31
32
  border: 1px solid @border-color;
32
33
  border-radius: @radius;
33
34
  color: @color;
34
- background-color: #fff;
35
+ background-color: transparent;
35
36
  background-image: none;
36
37
  position: relative;
37
38
  cursor: text;
@@ -40,23 +40,22 @@
40
40
  <style scoped>
41
41
  .demo-k-layout {
42
42
  text-align: center;
43
- color: #fff
44
43
  }
45
44
  .demo-k-layout >.k-layout {
46
45
  margin-bottom: 20px;
47
46
  color: #fff
48
47
  }
49
48
  .demo-k-layout .k-layout-footer,.demo-k-layout .k-layout-header {
50
- background-color: #9dcaff;
49
+ background-color: fadeout(#3a95ff,50%);
51
50
  }
52
51
  .demo-k-layout .k-layout-content {
53
52
  min-height: 120px;
54
53
  line-height: 120px;
55
- background-color: #89bfff;
54
+ background-color: fadeout(#3a95ff,30%);
56
55
  }
57
56
  .demo-k-layout .k-layout-sider {
58
57
  line-height: 120px;
59
- background-color: #75b5ff;
58
+ background-color: fadeout(#3a95ff,20%);
60
59
  width:200px;
61
60
  }
62
61
  </style>
@@ -6,7 +6,7 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="k-demo-layout">
9
- <Layout>
9
+ <Layout class="layout-back">
10
10
  <Header>
11
11
  <div class="logo" />
12
12
  <Menu mode="horizontal" theme="dark" :value="['t1']" class="demo-top-menu">
@@ -16,7 +16,7 @@
16
16
  </Menu>
17
17
  </Header>
18
18
  <Layout>
19
- <Sider>
19
+ <Sider class="demo-back">
20
20
  <Menu :value="['0-1']" class="demo-left-menu" mode="inline" :openKeys="['al0']">
21
21
  <SubMenu key="al0">
22
22
  <template slot="title">
@@ -53,7 +53,7 @@
53
53
  <BreadcrumbItem>List</BreadcrumbItem>
54
54
  <BreadcrumbItem>App</BreadcrumbItem>
55
55
  </Breadcrumb>
56
- <Content>
56
+ <Content class="demo-back">
57
57
  Content
58
58
  </Content>
59
59
  </Layout>
@@ -86,7 +86,7 @@
86
86
  padding:16px 0;
87
87
  }
88
88
  .k-demo-layout .k-demo-main .k-layout-content{
89
- background-color:#fff;
89
+ /* background-color:#fff; */
90
90
  padding:24px;
91
91
  min-height:300px;
92
92
  }
@@ -6,7 +6,7 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="k-demo-layout">
9
- <Layout>
9
+ <Layout class="layout-back">
10
10
  <Header>
11
11
  <div class="logo" />
12
12
  <Menu mode="horizontal" theme="dark" v-model="top" class="demo-top-menu">
@@ -15,14 +15,14 @@
15
15
  <MenuItem key="t3" icon="heart">nav3</MenuItem>
16
16
  </Menu>
17
17
  </Header>
18
- <Content class="k-demo-main">
18
+ <Content class="k-demo-main" class="demo-back">
19
19
  <Breadcrumb class="nav">
20
20
  <BreadcrumbItem>Home</BreadcrumbItem>
21
21
  <BreadcrumbItem>List</BreadcrumbItem>
22
22
  <BreadcrumbItem>App</BreadcrumbItem>
23
23
  </Breadcrumb>
24
- <Layout style="padding:24px 0;background:#fff;">
25
- <Sider>
24
+ <Layout style="padding:24px 0;" class="demo-back">
25
+ <Sider style="background:transparent;">
26
26
  <Menu v-model="left" class="demo-left-menu" mode="inline">
27
27
  <SubMenu key="l0">
28
28
  <template slot="title">
@@ -56,7 +56,7 @@
56
56
  <Content>Conent</Content>
57
57
  </Layout>
58
58
  </Content>
59
- <Footer>KUI ©2018 Created by chuchur</Footer>
59
+ <Footer style="background:transparent;">KUI ©2018 Created by chuchur</Footer>
60
60
  </Layout>
61
61
  </div>
62
62
  </template>
@@ -84,7 +84,6 @@
84
84
  padding:16px 0;
85
85
  }
86
86
  .k-demo-layout .k-demo-main .k-layout-content{
87
- background-color:#fff;
88
87
  padding:24px;
89
88
  min-height:300px;
90
89
  }
@@ -7,7 +7,7 @@
7
7
  ```vue
8
8
  <template>
9
9
  <div class="k-demo-layout">
10
- <Layout>
10
+ <Layout class="layout-back">
11
11
  <Header>
12
12
  <div class="logo" />
13
13
  <Menu mode="horizontal" theme="dark" v-model="top" class="demo-top-menu">
@@ -22,9 +22,9 @@
22
22
  <BreadcrumbItem>List</BreadcrumbItem>
23
23
  <BreadcrumbItem>App</BreadcrumbItem>
24
24
  </Breadcrumb>
25
- <Content>Conent</Content>
25
+ <Content class="demo-back">Conent</Content>
26
26
  </Content>
27
- <Footer>KUI ©2018 Created by chuchur</Footer>
27
+ <Footer style="background:transparent;">KUI ©2018 Created by chuchur</Footer>
28
28
  </Layout>
29
29
  </div>
30
30
  </template>
@@ -52,7 +52,6 @@
52
52
  padding:16px 0;
53
53
  }
54
54
  .k-demo-layout .k-demo-main .k-layout-content{
55
- background-color:#fff;
56
55
  padding:24px;
57
56
  min-height:300px;
58
57
  }
@@ -6,7 +6,7 @@
6
6
  ```vue
7
7
  <template>
8
8
  <div class="k-demo-layout">
9
- <Layout>
9
+ <Layout class="layout-back">
10
10
  <Sider class="demo-sider">
11
11
  <div class="logo" />
12
12
  <Menu mode="inline" theme="dark" v-model="top" class="demo-top-menu">
@@ -26,7 +26,7 @@
26
26
  <BreadcrumbItem>List</BreadcrumbItem>
27
27
  <BreadcrumbItem>App</BreadcrumbItem>
28
28
  </Breadcrumb>
29
- <div style="padding:300px 0;text-align:center;color:#ddd;background:#fff;margin:20px;">我是打酱油的</div>
29
+ <div style="padding:300px 0;text-align:center;color:#ddd;margin:20px;" class="demo-back">我是打酱油的</div>
30
30
  <Footer>KUI ©2018 Created by chuchur</Footer>
31
31
  </Content>
32
32
  </Layout>
@@ -38,15 +38,15 @@
38
38
  overflow:hidden;
39
39
  }
40
40
  .k-demo-layout .demo-sider{
41
- background:#22303f;
42
41
  overflow: auto;
43
42
  height: 360px; /*这里是例子,实际中请适当修改*/
44
43
  left: 0;
45
44
  width:200px;
45
+ background:#22303f;
46
46
  }
47
47
  .k-demo-layout .logo{
48
48
  height: 32px;
49
- background: rgba(255, 255, 255, 0.2);
49
+ background:rgb(132 139 156 / 50%);
50
50
  margin: 16px;
51
51
  }
52
52
  .k-demo-layout .k-demo-main{
@@ -7,10 +7,10 @@
7
7
  ```vue
8
8
  <template>
9
9
  <div class="k-demo-layout">
10
- <Layout>
11
- <Sider class="demo-sider" :style="{width:collapsed?'80px':'200px'}">
10
+ <Layout class="layout-back">
11
+ <Sider class="demo-sider demo-back" :style="{width:collapsed?'80px':'200px'}">
12
12
  <div class="logo" />
13
- <Menu mode="inline" theme="dark" v-model="left" :open-keys="open" class="demo-top-menu" :inline-collapsed="collapsed">
13
+ <Menu mode="inline" v-model="left" :open-keys="open" :inline-collapsed="collapsed" style="border:none;">
14
14
  <MenuItem key="1-1" icon="home"><span>option1</span></MenuItem>
15
15
  <MenuItem key="1-2" icon="logo-buffer"><span>option2</span></MenuItem>
16
16
  <MenuItem key="1-3" icon="heart"><span>option3</span></MenuItem>
@@ -25,7 +25,7 @@
25
25
  <MenuItem key="0-4">option4</MenuItem>
26
26
  </SubMenu>
27
27
  </Menu>
28
- <div class="toggle-menu" @click="toggle"><Icon :type="!collapsed?'chevron-back':'chevron-forward'" /></div>
28
+ <div class="toggle-menu demo-back" @click="toggle"><Icon :type="!collapsed?'chevron-back':'chevron-forward'" /></div>
29
29
  </Sider>
30
30
  <Content class="k-demo-main">
31
31
  <Menu mode="horizontal" theme="dark" v-model="top" class="demo-top-menu">
@@ -38,7 +38,7 @@
38
38
  <BreadcrumbItem>List</BreadcrumbItem>
39
39
  <BreadcrumbItem>App</BreadcrumbItem>
40
40
  </Breadcrumb>
41
- <div style="padding:200px 0;text-align:center;color:#ddd;background:#fff;margin:20px;">我是打酱油的</div>
41
+ <div style="padding:200px 0;text-align:center;color:#ddd;margin:20px;" class="demo-back">我是打酱油的</div>
42
42
  <Footer>KUI ©2018 Created by chuchur</Footer>
43
43
  </Content>
44
44
  </Layout>
@@ -55,12 +55,12 @@
55
55
  text-align:center;
56
56
  padding:10px 0;
57
57
  color:#fff;
58
- background:#4e5965;
58
+ /* background:#4e5965; */
59
59
  width:100%;
60
60
  cursor:pointer;
61
61
  }
62
62
  .k-demo-layout .demo-sider{
63
- background:#22303f;
63
+ /* background:#22303f; */
64
64
  left: 0;
65
65
  position:relative;
66
66
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
  .k-demo-layout .logo{
75
75
  height: 32px;
76
- background: rgba(255, 255, 255, 0.2);
76
+ background: rgb(132 139 156 / 50%);
77
77
  margin: 16px;
78
78
  }
79
79
  .k-demo-layout .k-demo-main{
@@ -7,7 +7,7 @@
7
7
  ```vue
8
8
  <template>
9
9
  <div class="k-demo-layout">
10
- <Layout>
10
+ <Layout class="layout-back">
11
11
  <Sider class="demo-sider" :style="{width:'200px'}">
12
12
  <div class="logo" />
13
13
  <Menu v-model="left" mode="vertical" vertical-affixed theme="dark">
@@ -78,7 +78,7 @@
78
78
  <BreadcrumbItem>List</BreadcrumbItem>
79
79
  <BreadcrumbItem>App</BreadcrumbItem>
80
80
  </Breadcrumb>
81
- <div style="padding:200px 0;text-align:center;color:#ddd;background:#fff;margin:20px;">我是打酱油的</div>
81
+ <div style="padding:200px 0;text-align:center;color:#ddd;margin:20px;" class="demo-back">我是打酱油的</div>
82
82
  <Footer>KUI ©2018 Created by chuchur</Footer>
83
83
  </Content>
84
84
  </Layout>
@@ -1,5 +1,4 @@
1
1
  .k-layout {
2
- background: #f0f2f5;
3
2
  box-sizing: border-box;
4
3
  display: flex;
5
4
  flex-direction: column;
@@ -30,10 +29,10 @@
30
29
  position: relative;
31
30
  min-width: 0;
32
31
  transition: all 0.2s;
33
- background: #646d82;
32
+ // background: #646d82;
34
33
  }
35
34
  .k-layout-footer {
36
- background: #f0f2f5;
35
+ // background: @hover-color;
37
36
  padding: 24px 50px;
38
37
  font-size: 14px;
39
38
  }
@@ -6,7 +6,7 @@
6
6
  top: 0;
7
7
  bottom: 0;
8
8
  right: 0;
9
- background: rgba(255, 255, 255, 0.6);
9
+ background: @border-color;
10
10
  height: 2px;
11
11
  .k-loading-line {
12
12
  height: 100%;
@@ -6,18 +6,19 @@
6
6
  font-size: 14px;
7
7
  position: relative;
8
8
  zoom: 1;
9
- background: #fff;
9
+ background: @back-color;
10
10
  list-style: none;
11
11
  padding: @radius 0;
12
12
  border-radius: @radius;
13
- min-width: 150px;
13
+ min-width: 100px;
14
14
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
15
+ color: @color;
15
16
  .k-menu-item-divider {
16
17
  height: 1px;
17
18
  margin: 4px 0;
18
19
  overflow: hidden;
19
20
  line-height: 0;
20
- background-color: #e8e8e8;
21
+ background-color: @border-color;
21
22
  }
22
23
  .k-dropdown-menu-item, .k-dropdown-menu-submenu {
23
24
  line-height: 22px;
@@ -34,7 +35,7 @@
34
35
  padding: 5px 12px 5px 24px;
35
36
  }
36
37
  &.k-dropdown-menu-item-active {
37
- background-color: tint(@main, 90%);
38
+ background-color: @hover-color;
38
39
  }
39
40
  .k-dropdown-menu-item-icon {
40
41
  position: absolute;
@@ -45,14 +46,14 @@
45
46
  }
46
47
  }
47
48
  .k-dropdown-menu-submenu-active {
48
- background-color: tint(@main, 90%);
49
+ background-color: @hover-color;
49
50
  }
50
51
  .k-dropdown-menu-item-divider {
51
52
  height: 1px;
52
53
  margin: 2px 0;
53
54
  overflow: hidden;
54
55
  line-height: 0;
55
- background-color: #e8e8e8;
56
+ background-color: @border-color;
56
57
  }
57
58
  .k-dropdown-menu-item-disabled, .k-dropdown-menu-submenu-disabled {
58
59
  color: @disable-color;