kui-vue 3.2.2 → 3.2.4
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/affix.jsx +23 -75
- package/components/affix/demo/container.md +14 -7
- package/components/affix/index.md +7 -5
- package/components/alert/styles/index.less +13 -8
- package/components/avatar/avatar.jsx +63 -0
- package/components/avatar/demo/base.md +24 -0
- package/components/avatar/demo/change.md +40 -0
- package/components/avatar/demo/index.vue +20 -0
- package/components/avatar/demo/info.md +7 -0
- package/components/avatar/demo/types.md +23 -0
- package/components/avatar/index.js +2 -0
- package/components/avatar/index.md +7 -0
- package/components/avatar/styles/index.less +61 -0
- package/components/badge/styles/index.less +1 -2
- package/components/base/pop.jsx +1 -1
- package/components/breadcrumb/styles/index.less +2 -2
- package/components/button/demo/hollow.md +1 -1
- package/components/button/styles/index.less +5 -5
- package/components/card/demo/border.md +1 -1
- package/components/card/styles/index.less +4 -3
- package/components/checkbox/checkbox.jsx +4 -2
- package/components/checkbox/styles/index.less +49 -44
- package/components/collapse/styles/index.less +3 -10
- package/components/colorPicker/styles/index.less +5 -3
- package/components/datePicker/styles/calendar.less +6 -5
- package/components/datePicker/styles/datepicker.less +3 -3
- package/components/divider/styles/index.less +7 -6
- package/components/drawer/drawer.jsx +10 -8
- package/components/drawer/styles/index.less +2 -1
- package/components/dropdown/demo/rightmenu.md +2 -3
- package/components/dropdown/styles/index.less +2 -2
- package/components/empty/styles/index.less +1 -1
- package/components/form/styles/index.less +1 -0
- package/components/grid/demo/align.md +3 -3
- package/components/grid/demo/fill.md +3 -3
- package/components/grid/demo/flex.md +5 -5
- package/components/grid/demo/index.vue +0 -1
- package/components/icon/demo/search.vue +2 -2
- package/components/image/instance.js +1 -1
- package/components/image/preview.jsx +50 -20
- package/components/image/styles/index.less +7 -5
- package/components/index.js +7 -1
- package/components/input/styles/index.less +2 -1
- package/components/layout/demo/base.md +3 -4
- package/components/layout/demo/layout1.md +4 -4
- package/components/layout/demo/layout2.md +5 -6
- package/components/layout/demo/layout3.md +3 -4
- package/components/layout/demo/layout4.md +4 -4
- package/components/layout/demo/layout5.md +8 -8
- package/components/layout/demo/layout6.md +2 -2
- package/components/layout/styles/index.less +2 -3
- package/components/loading/styles/index.less +1 -1
- package/components/menu/styles/dropmenu.less +7 -6
- package/components/menu/styles/index.less +13 -9
- package/components/message/styles/index.less +1 -1
- package/components/modal/modal.jsx +10 -8
- package/components/modal/styles/index.less +7 -6
- package/components/notice/styles/index.less +1 -1
- package/components/page/styles/index.less +1 -1
- package/components/popconfirm/styles/index.less +3 -2
- package/components/poptip/styles/index.less +4 -3
- package/components/progress/styles/index.less +3 -3
- package/components/radio/radio.jsx +3 -5
- package/components/radio/styles/index.less +60 -55
- package/components/rate/index.md +3 -3
- package/components/rate/styles/index.less +1 -1
- package/components/select/styles/index.less +8 -7
- package/components/slider/demo/base.md +35 -0
- package/components/slider/demo/index.vue +18 -0
- package/components/slider/demo/info.md +7 -0
- package/components/slider/demo/vertical.md +13 -0
- package/components/slider/index.md +7 -0
- package/components/slider/slider.jsx +58 -0
- package/components/slider/styles/index.less +60 -32
- package/components/space/demo/align.md +46 -0
- package/components/space/demo/base.md +20 -0
- package/components/space/demo/custom-size.md +35 -0
- package/components/space/demo/index.vue +25 -0
- package/components/space/demo/info.md +11 -0
- package/components/space/demo/size.md +35 -0
- package/components/space/demo/vertical.md +19 -0
- package/components/space/index.js +2 -0
- package/components/space/index.md +6 -0
- package/components/space/space.jsx +57 -0
- package/components/space/styles/index.less +23 -0
- package/components/spin/demo/container.md +1 -2
- package/components/spin/demo/mode.md +1 -2
- package/components/spin/styles/index.less +1 -1
- package/components/styles/dark.less +70 -0
- package/components/styles/global-dark.less +36 -0
- package/components/styles/global.less +22 -12
- package/components/styles/index.less +8 -10
- package/components/switch/styles/index.less +4 -3
- package/components/table/demo/base-render.md +1 -1
- package/components/table/demo/base.md +5 -2
- package/components/table/styles/index.less +11 -7
- package/components/table/table.jsx +10 -7
- package/components/tabs/demo/sample.md +1 -1
- package/components/tabs/styles/index.less +7 -10
- package/components/tag/styles/index.less +40 -39
- package/components/timeline/styles/index.less +3 -2
- package/components/tooltip/styles/index.less +22 -3
- package/components/tree/styles/index.less +8 -8
- package/dist/k-ui-dark.css +1 -0
- package/dist/k-ui.css +1 -7
- package/dist/k-ui.js +2 -2
- package/package.json +11 -9
- package/components/slider/demo/slider.js +0 -5
- package/components/slider/slider.vue +0 -21
- package/components/slider/sliderButton.vue +0 -76
- package/components/styles.js +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kui-vue",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "A high quality UI Toolkit built on Vue.js 2.0",
|
|
5
5
|
"main": "dist/k-ui.js",
|
|
6
6
|
"style": "dist/k-ui.css",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"components"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"start": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
12
|
+
"start": "webpack-dev-server --config build/webpack.config.js --env dev",
|
|
13
|
+
"build": "webpack --config build/webpack.config.js --env prod",
|
|
14
|
+
"buildweb": "webpack --config build/webpack.config.js --env docs",
|
|
15
|
+
"buildcss":"gulp && gulp dark && gulp docs && gulp docs-dark"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -48,22 +48,24 @@
|
|
|
48
48
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
49
49
|
"@babel/plugin-syntax-jsx": "^7.12.13",
|
|
50
50
|
"@babel/preset-env": "^7.13.10",
|
|
51
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
52
51
|
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
|
53
52
|
"babel-loader": "^8.2.2",
|
|
53
|
+
"babel-plugin-lodash": "^3.3.4",
|
|
54
54
|
"babel-plugin-transform-vue-jsx": "^4.0.1",
|
|
55
55
|
"babel-preset-env": "^1.7.0",
|
|
56
|
-
"chalk": "^4.1.0",
|
|
57
56
|
"cheerio": "^1.0.0-rc.3",
|
|
58
57
|
"clean-webpack-plugin": "^3.0.0",
|
|
59
|
-
"cross-env": "^7.0.3",
|
|
60
58
|
"css-loader": "^5.1.3",
|
|
61
59
|
"file-loader": "^6.2.0",
|
|
60
|
+
"gulp": "^4.0.2",
|
|
61
|
+
"gulp-less": "^5.0.0",
|
|
62
|
+
"gulp-minify-css": "^1.2.4",
|
|
63
|
+
"gulp-rename": "^2.0.0",
|
|
62
64
|
"highlight.js": "^10.6.0",
|
|
63
65
|
"html-webpack-plugin": "^4.5.2",
|
|
64
|
-
"lodash": "^4.17.21",
|
|
65
66
|
"less": "^4.1.1",
|
|
66
67
|
"less-loader": "^7.3.0",
|
|
68
|
+
"lodash": "^4.17.21",
|
|
67
69
|
"markdown-it": "^12.0.4",
|
|
68
70
|
"markdown-it-anchor": "^7.1.0",
|
|
69
71
|
"markdown-it-toc-done-right": "^4.2.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="k-slider">
|
|
3
|
-
<div class="k-slider-wrap">
|
|
4
|
-
<div class="k-slider-bar"></div>
|
|
5
|
-
<sliderButton></sliderButton>
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
<script>
|
|
10
|
-
import sliderButton from "./sliderButton";
|
|
11
|
-
export default {
|
|
12
|
-
name: "Slider",
|
|
13
|
-
components: { sliderButton },
|
|
14
|
-
porps: {
|
|
15
|
-
min: { type: Number, default: 0 },
|
|
16
|
-
max: { type: Number, default: 100 },
|
|
17
|
-
step: { type: Number, default: 1 },
|
|
18
|
-
value: { type: [Number, Array], default: 0 }
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
</script>
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Tooltip :content="value">
|
|
3
|
-
<div class="k-slider-button" style="styles" @mousedown="mouseDown"></div>
|
|
4
|
-
</Tooltip>
|
|
5
|
-
</template>
|
|
6
|
-
<script>
|
|
7
|
-
import emitter from '@/mixins/emitter'
|
|
8
|
-
export default {
|
|
9
|
-
name: 'sliderButton',
|
|
10
|
-
mixins: [emitter],
|
|
11
|
-
props: {
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
disabled: false,
|
|
17
|
-
mousedown: false,
|
|
18
|
-
slider: null,
|
|
19
|
-
value: 0,
|
|
20
|
-
left: 0,
|
|
21
|
-
start: { x: 0, y: 0 },
|
|
22
|
-
end: { x: 0, y: 0 }
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
computed: {
|
|
26
|
-
styles() {
|
|
27
|
-
return { left: `${this.left}%` }
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
created(){
|
|
31
|
-
|
|
32
|
-
this.slider = this.getParent('Slider')
|
|
33
|
-
},
|
|
34
|
-
mounted() {
|
|
35
|
-
window.addEventListener('mousemove', this.mouseMove)
|
|
36
|
-
window.addEventListener('mouseup', this.mouseUp)
|
|
37
|
-
},
|
|
38
|
-
methods: {
|
|
39
|
-
mouseDown(e) {
|
|
40
|
-
if (this.disabled) {
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
// console.log(this.slider)
|
|
44
|
-
// console.log(e)
|
|
45
|
-
this.start.x = e.clientX
|
|
46
|
-
this.start.y = e.clientY
|
|
47
|
-
this.mousedown = true
|
|
48
|
-
},
|
|
49
|
-
mouseUp() {
|
|
50
|
-
this.mousedown = false
|
|
51
|
-
},
|
|
52
|
-
mouseMove(e) {
|
|
53
|
-
if (!this.mousedown || this.disabled) {
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
let moveX = e.clientX - this.start.x
|
|
57
|
-
let moveY = e.clientY - this.start.Y
|
|
58
|
-
let width = this.slider.offsetWidth
|
|
59
|
-
console.log(moveX, this.slider.step)
|
|
60
|
-
if (moveX > 0) {
|
|
61
|
-
if (this.left >= 100) {
|
|
62
|
-
this.left = 100
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (moveX >= this.slider.step) {
|
|
66
|
-
// console.log(moveX / width)
|
|
67
|
-
this.left += moveX / width
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
// this.start.x = e.clientX
|
|
72
|
-
// this.start.y = e.clientY
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
</script>
|
package/components/styles.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import './alert/styles';
|
|
2
|
-
import './affix/styles';
|
|
3
|
-
import './badge/styles';
|
|
4
|
-
import './backtop/styles';
|
|
5
|
-
import './breadcrumb/styles';
|
|
6
|
-
import './button/styles';
|
|
7
|
-
import './card/styles';
|
|
8
|
-
import './colorPicker/styles';
|
|
9
|
-
import './collapse/styles';
|
|
10
|
-
import './carousel/styles';
|
|
11
|
-
import './checkbox/styles';
|
|
12
|
-
import './datePicker/styles';
|
|
13
|
-
import './drawer/styles';
|
|
14
|
-
import './divider/styles';
|
|
15
|
-
import './dropdown/styles';
|
|
16
|
-
import './form/styles';
|
|
17
|
-
import './empty/styles';
|
|
18
|
-
import './icon/styles';
|
|
19
|
-
import './grid/styles';
|
|
20
|
-
import './input/styles';
|
|
21
|
-
import './image/styles';
|
|
22
|
-
import './layout/styles';
|
|
23
|
-
import './loading/styles';
|
|
24
|
-
import './modal/styles';
|
|
25
|
-
import './message/styles';
|
|
26
|
-
import './message/styles';
|
|
27
|
-
import './menu/styles';
|
|
28
|
-
import './notice/styles';
|
|
29
|
-
import './page/styles';
|
|
30
|
-
import './poptip/styles';
|
|
31
|
-
import './popconfirm/styles';
|
|
32
|
-
import './progress/styles';
|
|
33
|
-
import './radio/styles';
|
|
34
|
-
import './rate/styles';
|
|
35
|
-
import './spin/styles';
|
|
36
|
-
import './select/styles';
|
|
37
|
-
import './switch/styles';
|
|
38
|
-
import './timeline/styles';
|
|
39
|
-
import './tag/styles';
|
|
40
|
-
import './tooltip/styles';
|
|
41
|
-
import './table/styles';
|
|
42
|
-
import './tree/styles';
|
|
43
|
-
import './tabs/styles';
|