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.
- package/components/descriptions/demo/index.vue +9 -2
- package/components/form/demo/index.vue +9 -2
- package/components/inputNumber/demo/format.md +1 -1
- package/components/layout/demo/index.vue +8 -1
- package/components/menu/demo/index.vue +8 -1
- package/components/slider/demo/base.md +1 -1
- package/components/slider/demo/formatter.md +1 -1
- package/components/slider/demo/marks.md +1 -1
- package/components/slider/demo/reverse.md +1 -1
- package/components/table/demo/base-render.md +1 -1
- package/components/table/demo/bordered.md +1 -1
- package/components/table/demo/custom-header.md +1 -1
- package/components/table/demo/edit.md +1 -1
- package/components/table/extend.jsx +7 -7
- package/components/table/table.jsx +1 -1
- package/components/tree/demo/index.vue +9 -2
- package/dist/k-ui.css +1 -1
- 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 +1 -1
|
@@ -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>
|
|
@@ -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>
|
|
@@ -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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
|
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 (
|
|
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
|
|
333
|
+
} else if (width || has_sticky) {
|
|
334
334
|
props.style = {
|
|
335
335
|
overflow: 'auto hidden'
|
|
336
336
|
}
|
|
@@ -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