kui-vue 3.3.1 → 3.3.2-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.
@@ -9,7 +9,7 @@ import CN from '../index.md'
9
9
  export default {
10
10
  render() {
11
11
  return (
12
- <div>
12
+ <div class="demo-descriptions">
13
13
  <Info class="typo" />
14
14
  <Base />
15
15
  <Bordered />
@@ -21,4 +21,11 @@ export default {
21
21
  )
22
22
  }
23
23
  }
24
- </script>
24
+ </script>
25
+ <style lang="less">
26
+ .demo-descriptions {
27
+ .k-content {
28
+ overflow: auto hidden;
29
+ }
30
+ }
31
+ </style>
@@ -13,7 +13,7 @@ import CN from '../index.md'
13
13
  export default {
14
14
  render() {
15
15
  return (
16
- <div>
16
+ <div class="demo-menu">
17
17
  <Info class="typo" />
18
18
  <Base />
19
19
  <Align />
@@ -27,4 +27,11 @@ export default {
27
27
  );
28
28
  }
29
29
  };
30
- </script>
30
+ </script>
31
+ <style lang="less">
32
+ .demo-menu {
33
+ .k-content {
34
+ overflow: auto hidden;
35
+ }
36
+ }
37
+ </style>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:520px;">
8
+ <div style="max-width:520px;">
9
9
  0.1+0.2 = 0.3 (yes) ,输出:{{n}}
10
10
  <InputNumber :step="0.2" v-model="n"/>
11
11
  <br/>
@@ -9,7 +9,7 @@ import Layout5 from "./layout5.md";
9
9
  export default {
10
10
  render() {
11
11
  return (
12
- <div>
12
+ <div class="demo-layout">
13
13
  <Info class="typo" />
14
14
  <Base />
15
15
  <Layout1 />
@@ -22,3 +22,10 @@ export default {
22
22
  },
23
23
  };
24
24
  </script>
25
+ <style lang="less">
26
+ .demo-layout {
27
+ .k-demo-layout {
28
+ overflow: auto hidden;
29
+ }
30
+ }
31
+ </style>
@@ -12,7 +12,7 @@ import CN from "../index.md";
12
12
  export default {
13
13
  render() {
14
14
  return (
15
- <div>
15
+ <div class="demo-menu">
16
16
  <Info class="typo" />
17
17
  <Base />
18
18
  <InLine />
@@ -27,3 +27,10 @@ export default {
27
27
  },
28
28
  };
29
29
  </script>
30
+ <style lang="less">
31
+ .demo-menu {
32
+ .k-content {
33
+ overflow: auto hidden;
34
+ }
35
+ }
36
+ </style>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:520px;">
8
+ <div style="max-width:520px;">
9
9
  <Slider v-model="v1" :step="10" :disabled="disabled" :min="20"/>
10
10
  <Slider v-model="v2" range :disabled="disabled" :min="10" :max="80"/>
11
11
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```vue
8
8
  <template>
9
- <div style="width:520px;">
9
+ <div style="max-width:520px;">
10
10
  <Slider :tipFormatter="v => (`${v}%`)" :value="20"/>
11
11
  <br/>
12
12
  <br/>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:520px;">
8
+ <div style="max-width:520px;">
9
9
  <div>step=10</div>
10
10
  <Slider :step="10"
11
11
  :marks="{ 10: '10', 20: '20', 30: '30', 40: '40', 50: '50', 80: '80' }"
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="width:520px;">
8
+ <div style="max-width:520px;">
9
9
  <Slider v-model="v1" :reverse="reverse" />
10
10
  <Slider v-model="v2" range :reverse="reverse" :marks="{ 40: '40°C', 50: '50°C' }" />
11
11
  Reversed:
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Table :data="data"
8
+ <Table :data="data" :sticky="52"
9
9
  :columns="columns" />
10
10
  </template>
11
11
  <script>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Table :data="data" :columns="columns" bordered>
8
+ <Table :data="data" :columns="columns" bordered :sticky="52">
9
9
  <template v-slot:fullname="value">
10
10
  <a>{{value}}</a>
11
11
  </template>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <Table :data="data" :columns="columns">
8
+ <Table :data="data" :columns="columns" :sticky="52">
9
9
  <!-- 通过template 定义表头 ,slot 以 `header-` 开头-->
10
10
  <template v-slot:header-age="value">
11
11
  {{value}} <Tooltip title="How old are you?">
@@ -6,7 +6,7 @@
6
6
  ```vue
7
7
  <template>
8
8
  <Button @click="add">Add</Button>
9
- <Table :data="data" :columns="columns" bordered>
9
+ <Table :data="data" :columns="columns" bordered :sticky="52">
10
10
  <a slot="name" slot-scope="text">{{text}}</a>
11
11
  <template slot="action" slot-scope="text,row,col">
12
12
  <Popconfirm
@@ -285,11 +285,11 @@ export default {
285
285
  style: {},
286
286
  on: {}
287
287
  }
288
- if (width && !height) {
289
- // rootProps.style.overflow = 'auto';
290
- // rootProps.on.scroll = e => this.asyncScroll(e)
288
+ let has_sticky = sticky !== undefined && sticky > 0
289
+ if (width && !height&&!has_sticky) {
290
+ rootProps.style.overflow = 'auto';
291
+ rootProps.on.scroll = e => this.asyncScroll(e)
291
292
  }
292
- let has_sticky = sticky !== undefined && sticky >= 0
293
293
  const content = []
294
294
  if (height || (width && has_sticky)) {
295
295
  let headProps = {
@@ -302,14 +302,14 @@ export default {
302
302
  // marginBottom: -scrollBarHeight + 'px'
303
303
  }
304
304
  }
305
- if (has_sticky && sticky > 0) {
305
+ if (has_sticky) {
306
306
  headProps.style.top = sticky + 'px'
307
307
  }
308
308
  if (width && height && !has_sticky) {
309
309
  headProps.style.marginBottom = -scrollBarHeight + 'px'
310
310
  }
311
311
 
312
- if (sticky) {
312
+ if (has_sticky) {
313
313
  headProps.style.overflow = 'hidden'
314
314
  } else if (height) {
315
315
  headProps.style.overflow = 'auto'
@@ -330,7 +330,7 @@ export default {
330
330
  height: height + 'px',
331
331
  overflow: 'auto scroll'
332
332
  }
333
- } else if (width && has_sticky) {
333
+ } else if (width || has_sticky) {
334
334
  props.style = {
335
335
  overflow: 'auto hidden'
336
336
  }
@@ -174,7 +174,7 @@ export default {
174
174
  indeterminate,
175
175
  checkAll,
176
176
  width,
177
- sticky:52,
177
+ sticky,
178
178
  hasExpand: expandNode != null
179
179
  },
180
180
  on: {
@@ -12,7 +12,7 @@ import CN from '../index.md'
12
12
  export default {
13
13
  render() {
14
14
  return (
15
- <div>
15
+ <div class="demo-tree">
16
16
  <Info class="typo" />
17
17
  <Base />
18
18
  <TreeNode />
@@ -27,4 +27,11 @@ export default {
27
27
  )
28
28
  }
29
29
  }
30
- </script>
30
+ </script>
31
+ <style lang="less">
32
+ .demo-tree {
33
+ .k-content {
34
+ overflow: auto hidden;
35
+ }
36
+ }
37
+ </style>
package/dist/k-ui.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v3.3.1
2
+ * kui-vue v3.3.2rc1
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Author: chuchur@qq.com / www.chuchur.com