kui-vue 3.6.4 → 3.6.7
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/alert/alert.jsx +26 -7
- package/components/alert/demo/basic.md +4 -4
- package/components/alert/demo/icon.md +15 -6
- package/components/alert/styles/index.less +42 -14
- package/components/avatar/styles/index.less +4 -4
- package/components/backtop/styles/index.less +10 -14
- package/components/badge/styles/index.less +7 -13
- package/components/breadcrumb/index.md +7 -6
- package/components/breadcrumb/styles/index.less +7 -21
- package/components/button/demo/color.md +0 -1
- package/components/button/demo/disabled.md +6 -0
- package/components/button/demo/light.md +1 -1
- package/components/button/styles/index.less +165 -111
- package/components/card/card.jsx +1 -1
- package/components/card/demo/basic.md +1 -1
- package/components/card/demo/border.md +1 -1
- package/components/card/demo/notitle.md +1 -1
- package/components/card/styles/index.less +5 -4
- package/components/carousel/carousel.jsx +186 -175
- package/components/carousel/styles/index.less +11 -16
- package/components/checkbox/checkbox.jsx +2 -2
- package/components/checkbox/styles/index.less +21 -29
- package/components/collapse/styles/index.less +7 -11
- package/components/colorPicker/styles/index.less +83 -71
- package/components/config/context.js +21 -0
- package/components/config/index.js +10 -2
- package/components/datePicker/datepicker.jsx +6 -2
- package/components/datePicker/styles/index.less +54 -57
- package/components/descriptions/styles/index.less +8 -17
- package/components/divider/styles/index.less +20 -18
- package/components/drawer/demo/target.md +1 -0
- package/components/drawer/styles/animal.less +0 -1
- package/components/drawer/styles/index.less +8 -11
- package/components/dropdown/demo/cascading.md +30 -16
- package/components/dropdown/styles/index.less +26 -34
- package/components/empty/index.md +3 -2
- package/components/empty/styles/index.less +2 -2
- package/components/flex/demo/align.md +1 -1
- package/components/flex/demo/basic.md +1 -2
- package/components/flex/index.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -3
- package/components/form/demo/info.md +22 -12
- package/components/form/demo/valid.md +6 -6
- package/components/form/demo/withmodal.md +6 -6
- package/components/form/styles/index.less +10 -11
- package/components/grid/index.md +4 -1
- package/components/grid/styles/index.less +1 -1
- package/components/icon/demo/search.vue +44 -21
- package/components/icon/index.md +1 -1
- package/components/icon/styles/index.less +7 -8
- package/components/image/index.md +7 -1
- package/components/image/preview.jsx +17 -4
- package/components/image/styles/index.less +36 -42
- package/components/index.js +9 -9
- package/components/input/demo/icon.md +0 -1
- package/components/input/demo/suffix.md +2 -7
- package/components/input/input.jsx +31 -29
- package/components/input/inputBox.jsx +13 -0
- package/components/input/inputGroup.jsx +2 -0
- package/components/input/styles/index.less +47 -53
- package/components/input/textarea.jsx +1 -1
- package/components/inputNumber/demo/basic.md +3 -3
- package/components/inputNumber/demo/ffix.md +2 -2
- package/components/inputNumber/inputNumber.jsx +2 -2
- package/components/inputNumber/styles/index.less +36 -42
- package/components/layout/demo/basic.md +5 -5
- package/components/layout/demo/info.md +1 -34
- package/components/layout/demo/layout1.md +7 -7
- package/components/layout/demo/layout2.md +32 -20
- package/components/layout/demo/layout3.md +20 -13
- package/components/layout/demo/layout4.md +12 -8
- package/components/layout/demo/layout5.md +6 -2
- package/components/layout/styles/index.less +1 -18
- package/components/loading/demo/info.md +3 -3
- package/components/loading/styles/index.less +31 -31
- package/components/menu/demo/accordion.md +44 -22
- package/components/menu/demo/basic.md +35 -20
- package/components/menu/demo/collapsed.md +37 -19
- package/components/menu/demo/inline.md +44 -23
- package/components/menu/demo/mode.md +42 -26
- package/components/menu/demo/theme.md +34 -18
- package/components/menu/demo/vertical.md +34 -18
- package/components/menu/index.md +14 -3
- package/components/menu/menu.jsx +9 -3
- package/components/menu/menuitem.jsx +4 -4
- package/components/menu/recursiveMenu.jsx +40 -0
- package/components/menu/styles/index.less +46 -58
- package/components/message/demo/basic.md +0 -7
- package/components/message/index.js +0 -4
- package/components/message/index.md +0 -1
- package/components/message/inner.jsx +15 -2
- package/components/message/styles/index.less +12 -17
- package/components/modal/demo/confirm.md +6 -6
- package/components/modal/demo/global.md +0 -15
- package/components/modal/demo/info.md +0 -1
- package/components/modal/index.js +5 -34
- package/components/modal/index.md +1 -2
- package/components/modal/modal.jsx +2 -1
- package/components/modal/styles/index.less +14 -21
- package/components/notice/demo/basic.md +0 -9
- package/components/notice/demo/close.md +4 -0
- package/components/notice/demo/types.md +1 -2
- package/components/notice/index.js +1 -19
- package/components/notice/styles/index.less +16 -22
- package/components/page/page.jsx +5 -4
- package/components/page/styles/index.less +49 -50
- package/components/popconfirm/demo/basic.md +11 -18
- package/components/popconfirm/demo/info.md +3 -1
- package/components/popconfirm/demo/local.md +14 -20
- package/components/popconfirm/demo/placement.md +3 -9
- package/components/popconfirm/index.md +3 -2
- package/components/popconfirm/styles/index.less +9 -15
- package/components/poptip/styles/index.less +44 -49
- package/components/progress/styles/index.less +13 -13
- package/components/radio/index.md +7 -7
- package/components/radio/radio.jsx +5 -1
- package/components/radio/styles/index.less +26 -32
- package/components/rate/index.md +11 -11
- package/components/rate/styles/index.less +4 -7
- package/components/select/select.jsx +2 -2
- package/components/select/styles/index.less +37 -50
- package/components/skeleton/index.md +5 -1
- package/components/skeleton/styles/index.less +21 -19
- package/components/slider/slider.jsx +25 -13
- package/components/slider/styles/index.less +13 -12
- package/components/space/space.jsx +2 -1
- package/components/spin/styles/index.less +25 -40
- package/components/statCard/demo/card.md +18 -4
- package/components/statCard/index.md +5 -5
- package/components/statCard/statCard.jsx +4 -1
- package/components/statCard/styles/index.less +9 -6
- package/components/styles/less-css-var.less +305 -0
- package/components/styles/less-var.less +296 -0
- package/components/styles/sys.less +19 -15
- package/components/switch/styles/index.less +9 -24
- package/components/table/index.md +1 -1
- package/components/table/styles/index.less +63 -59
- package/components/table/table.jsx +1 -1
- package/components/tabs/styles/index.less +22 -24
- package/components/tag/demo/basic.md +0 -8
- package/components/tag/index.md +2 -1
- package/components/tag/styles/index.less +40 -41
- package/components/tag/tag.jsx +2 -2
- package/components/timeline/styles/index.less +8 -14
- package/components/tooltip/styles/index.less +35 -40
- package/components/tree/index.md +15 -15
- package/components/tree/styles/index.less +36 -56
- package/components/tree/tree.jsx +1 -0
- package/components/treeselect/index.md +1 -1
- package/components/treeselect/styles/index.less +26 -32
- package/components/treeselect/treeselect.jsx +3 -3
- package/components/upload/demo/forms.md +0 -1
- package/components/upload/fileList.jsx +6 -3
- package/components/upload/styles/index.less +33 -29
- package/components/upload/upload.jsx +5 -1
- package/components/utils/vue.js +4 -2
- package/dist/k-ui.cjs.js +3 -2
- package/dist/k-ui.css +4 -3
- package/dist/k-ui.d.ts +71 -54
- package/dist/k-ui.esm.js +3 -2
- package/dist/k-ui.umd.js +3 -2
- package/dist/locale/de.js +2 -1
- package/dist/locale/el.js +2 -1
- package/dist/locale/en.js +2 -1
- package/dist/locale/fr.js +2 -1
- package/dist/locale/it.js +2 -1
- package/dist/locale/ja.js +2 -1
- package/dist/locale/ko.js +2 -1
- package/dist/locale/ru.js +2 -1
- package/dist/locale/th.js +2 -1
- package/dist/locale/uk.js +2 -1
- package/dist/locale/vi.js +2 -1
- package/dist/locale/zh-CN.js +2 -1
- package/dist/locale/zh-TW.js +2 -1
- package/package.json +14 -16
- package/types/alert/Alert.d.ts +2 -0
- package/types/card/Card.d.ts +1 -1
- package/types/checkbox/Checkbox.d.ts +1 -0
- package/types/datePicker/DatePicker.d.ts +1 -0
- package/types/index.d.ts +6 -6
- package/types/input/Input.d.ts +1 -0
- package/types/input/InputGroup.d.ts +2 -0
- package/types/input/TextArea.d.ts +1 -0
- package/types/inputNumber/InputNumber.d.ts +1 -0
- package/types/menu/Menu.d.ts +1 -0
- package/types/page/Page.d.ts +1 -0
- package/types/select/Select.d.ts +1 -0
- package/types/statCard/StatCard.d.ts +2 -0
- package/types/table/Table.d.ts +1 -1
- package/types/tag/Tag.d.ts +1 -0
- package/types/treeselect/TreeSelect.d.ts +1 -0
- package/components/dropdown/demo/custom.md +0 -31
- package/components/icon/lib/dist.json +0 -1
- package/components/icon/lib/kui-icons.js +0 -1
- package/components/icon/lib/sprite.svg +0 -1
- package/components/styles/color.less +0 -209
- package/components/styles/var.less +0 -207
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from "vue";
|
|
2
2
|
import Icon from "../icon";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
InformationCircle,
|
|
5
|
+
CloseCircle,
|
|
6
|
+
CheckmarkCircle,
|
|
7
|
+
AlertCircle,
|
|
8
|
+
Close,
|
|
9
|
+
} from "kui-icons";
|
|
4
10
|
import { getTransitionProp } from "../base/transition";
|
|
5
|
-
import { withInstall } from
|
|
11
|
+
import { withInstall } from "../utils/vue";
|
|
6
12
|
|
|
7
13
|
const Alert = defineComponent({
|
|
8
14
|
name: "Alert",
|
|
9
15
|
props: {
|
|
10
16
|
type: { type: String, default: "warning" },
|
|
11
17
|
closable: Boolean,
|
|
12
|
-
showIcon: Boolean,
|
|
18
|
+
showIcon: { type: Boolean, default: true },
|
|
13
19
|
icon: [String, Object, Array],
|
|
14
20
|
message: String,
|
|
15
21
|
description: String,
|
|
22
|
+
bordered: Boolean,
|
|
16
23
|
},
|
|
17
24
|
setup(props, { emit, slots }) {
|
|
18
25
|
const closed = ref(false);
|
|
@@ -28,6 +35,7 @@ const Alert = defineComponent({
|
|
|
28
35
|
[`k-alert-${props.type}`]: props.type,
|
|
29
36
|
"k-alert-has-icon": props.showIcon,
|
|
30
37
|
"k-alert-has-close": props.closable,
|
|
38
|
+
"k-alert-bordered": props.bordered,
|
|
31
39
|
"k-alert-has-description": props.description,
|
|
32
40
|
},
|
|
33
41
|
]);
|
|
@@ -42,10 +50,21 @@ const Alert = defineComponent({
|
|
|
42
50
|
const transitionProps = getTransitionProp("k-alert-slide");
|
|
43
51
|
|
|
44
52
|
return () => {
|
|
45
|
-
const iconNode = props.showIcon ?
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
const iconNode = props.showIcon ? (
|
|
54
|
+
<Icon
|
|
55
|
+
type={props.icon ? props.icon : icons[props.type]}
|
|
56
|
+
class="k-alert-icon"
|
|
57
|
+
/>
|
|
58
|
+
) : null;
|
|
59
|
+
const closeIcon = props.closable ? (
|
|
60
|
+
<Icon class="k-alert-close" type={Close} onClick={close} />
|
|
61
|
+
) : null;
|
|
62
|
+
const descriptionNode = props.description ? (
|
|
63
|
+
<div class="k-alert-description">{props.description}</div>
|
|
64
|
+
) : null;
|
|
65
|
+
const msgNode = (
|
|
66
|
+
<div class="k-alert-message">{props.message || slots.default?.()}</div>
|
|
67
|
+
);
|
|
49
68
|
|
|
50
69
|
return (
|
|
51
70
|
<transition {...transitionProps}>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<Alert type="success">Success Text</Alert>
|
|
10
|
-
<Alert type="info">Info Text</Alert>
|
|
11
|
-
<Alert type="warning">Warning Text</Alert>
|
|
12
|
-
<Alert type="error">Error Text</Alert>
|
|
9
|
+
<Alert :showIcon="false" type="success">Success Text</Alert>
|
|
10
|
+
<Alert :showIcon="false" type="info">Info Text</Alert>
|
|
11
|
+
<Alert :showIcon="false" type="warning">Warning Text</Alert>
|
|
12
|
+
<Alert :showIcon="false" type="error">Error Text</Alert>
|
|
13
13
|
</div>
|
|
14
14
|
</template>
|
|
15
15
|
```
|
|
@@ -5,36 +5,45 @@
|
|
|
5
5
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<Alert type="
|
|
11
|
-
<Alert type="
|
|
12
|
-
<Alert type="
|
|
8
|
+
<Space vertical>
|
|
9
|
+
<Checkbox v-model="bordered">Show border</Checkbox>
|
|
10
|
+
<Alert type="success" showIcon :bordered="bordered">Success Text</Alert>
|
|
11
|
+
<Alert type="info" showIcon :bordered="bordered">Info Text</Alert>
|
|
12
|
+
<Alert type="warning" showIcon :bordered="bordered">Warning Text</Alert>
|
|
13
|
+
<Alert type="error" showIcon :bordered="bordered">Error Text</Alert>
|
|
13
14
|
|
|
14
15
|
<Alert
|
|
16
|
+
:bordered="bordered"
|
|
15
17
|
type="success"
|
|
16
18
|
showIcon
|
|
17
19
|
message="Success Tip"
|
|
18
20
|
description="Congratulations, the operation is successful."
|
|
19
21
|
/>
|
|
20
22
|
<Alert
|
|
23
|
+
:bordered="bordered"
|
|
21
24
|
type="info"
|
|
22
25
|
showIcon
|
|
23
26
|
message="Informational Notes"
|
|
24
27
|
description="Congratulations, the operation is successful."
|
|
25
28
|
/>
|
|
26
29
|
<Alert
|
|
30
|
+
:bordered="bordered"
|
|
27
31
|
type="warning"
|
|
28
32
|
showIcon
|
|
29
33
|
message="Warning"
|
|
30
34
|
description="Nuclear bomb launching base, please do not approach!"
|
|
31
35
|
/>
|
|
32
36
|
<Alert
|
|
37
|
+
:bordered="bordered"
|
|
33
38
|
type="error"
|
|
34
39
|
showIcon
|
|
35
40
|
message="Error"
|
|
36
41
|
description="Encountered an error, please press any key to continue."
|
|
37
42
|
/>
|
|
38
|
-
</
|
|
43
|
+
</Space>
|
|
39
44
|
</template>
|
|
45
|
+
<script setup>
|
|
46
|
+
import { ref } from "vue";
|
|
47
|
+
const bordered = ref(true);
|
|
48
|
+
</script>
|
|
40
49
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "../../styles/var.less";
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-alert {
|
|
4
4
|
border-radius: var(--kui-border-radius);
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
font-size: 14px;
|
|
11
11
|
transition: all 0.3s;
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
background: var(--kui-color-warning-90);
|
|
14
|
-
border: 1px solid var(--kui-color-warning-80);
|
|
15
13
|
display: flex;
|
|
16
14
|
align-items: center;
|
|
15
|
+
border: 1px solid transparent;
|
|
17
16
|
|
|
18
17
|
&-icon {
|
|
19
18
|
color: var(--kui-color-warning);
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
&-message {
|
|
30
|
-
color: var(--kui-color-
|
|
29
|
+
color: var(--kui-color-text);
|
|
31
30
|
line-height: 1;
|
|
32
31
|
}
|
|
33
32
|
|
|
@@ -48,12 +47,12 @@
|
|
|
48
47
|
font-size: 16px;
|
|
49
48
|
font-weight: 500;
|
|
50
49
|
margin-bottom: 5px;
|
|
51
|
-
color: var(--kui-color-
|
|
50
|
+
color: var(--kui-color-text);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
.k-alert-description {
|
|
55
54
|
font-size: 14px;
|
|
56
|
-
color: var(--kui-color-
|
|
55
|
+
color: var(--kui-color-text);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
font-size: 16px;
|
|
62
61
|
cursor: pointer;
|
|
63
62
|
text-decoration: none;
|
|
64
|
-
color: var(--kui-color-
|
|
63
|
+
color: var(--kui-color-text);
|
|
65
64
|
|
|
66
65
|
&:hover {
|
|
67
66
|
text-decoration: none;
|
|
@@ -69,18 +68,31 @@
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
71
|
+
&-info {
|
|
72
|
+
background: var(--kui-color-primary-8);
|
|
73
|
+
|
|
74
|
+
.k-alert-icon {
|
|
75
|
+
color: var(--kui-color-primary);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
72
79
|
&-success {
|
|
73
|
-
background: var(--kui-color-success-
|
|
74
|
-
border-color: var(--kui-color-success-80);
|
|
80
|
+
background: var(--kui-color-success-8);
|
|
75
81
|
|
|
76
82
|
.k-alert-icon {
|
|
77
83
|
color: var(--kui-color-success);
|
|
78
84
|
}
|
|
79
85
|
}
|
|
86
|
+
&-warning {
|
|
87
|
+
background: var(--kui-color-warning-8);
|
|
88
|
+
|
|
89
|
+
.k-alert-icon {
|
|
90
|
+
color: var(--kui-color-warning);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
80
93
|
|
|
81
94
|
&-error {
|
|
82
|
-
background: var(--kui-color-danger-
|
|
83
|
-
border-color: var(--kui-color-danger-80);
|
|
95
|
+
background: var(--kui-color-danger-8);
|
|
84
96
|
|
|
85
97
|
.k-alert-icon {
|
|
86
98
|
color: var(--kui-color-danger);
|
|
@@ -88,11 +100,10 @@
|
|
|
88
100
|
}
|
|
89
101
|
|
|
90
102
|
&-info {
|
|
91
|
-
background: var(--kui-color-
|
|
92
|
-
border-color: var(--kui-color-main-80);
|
|
103
|
+
background: var(--kui-color-primary-8);
|
|
93
104
|
|
|
94
105
|
.k-alert-icon {
|
|
95
|
-
color: var(--kui-color-
|
|
106
|
+
color: var(--kui-color-primary);
|
|
96
107
|
}
|
|
97
108
|
}
|
|
98
109
|
|
|
@@ -115,3 +126,20 @@
|
|
|
115
126
|
}
|
|
116
127
|
}
|
|
117
128
|
}
|
|
129
|
+
|
|
130
|
+
.k-alert-bordered {
|
|
131
|
+
&.k-alert-success {
|
|
132
|
+
border: 1px solid var(--kui-color-success-8);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.k-alert-error {
|
|
136
|
+
border: 1px solid var(--kui-color-danger-8);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.k-alert-info {
|
|
140
|
+
border: 1px solid var(--kui-color-primary-8);
|
|
141
|
+
}
|
|
142
|
+
&.k-alert-warning {
|
|
143
|
+
border: 1px solid var(--kui-color-warning-8);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-avatar {
|
|
4
4
|
margin: 0;
|
|
5
5
|
padding: 0;
|
|
6
6
|
color: #fff;
|
|
7
|
-
background-color: var(--kui-color-
|
|
7
|
+
background-color: var(--kui-color-bg-component);
|
|
8
8
|
border-radius: 50%;
|
|
9
9
|
height: 32px;
|
|
10
10
|
width: 32px;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
flex-shrink: 0;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
& > img {
|
|
27
27
|
display: block;
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 100%;
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
position: absolute;
|
|
69
69
|
left: 50%;
|
|
70
70
|
transform-origin: 0 center;
|
|
71
|
-
}
|
|
71
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-backtop {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -17,21 +17,18 @@
|
|
|
17
17
|
border-radius: var(--kui-border-radius);
|
|
18
18
|
|
|
19
19
|
&-content {
|
|
20
|
-
background-color:
|
|
21
|
-
opacity: .5;
|
|
20
|
+
background-color: var(--kui-color-bg-component);
|
|
22
21
|
height: 40px;
|
|
23
|
-
transition: opacity .3s ease-in-out;
|
|
22
|
+
transition: opacity 0.3s ease-in-out;
|
|
24
23
|
text-align: center;
|
|
25
24
|
line-height: 40px;
|
|
26
|
-
color:
|
|
25
|
+
color: var(--kui-color-text);
|
|
27
26
|
|
|
28
27
|
&:hover {
|
|
29
|
-
|
|
28
|
+
background-color: var(--kui-color-bg-component-hover);
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
font-size: 20px;
|
|
34
|
-
color: #fff;
|
|
30
|
+
&:active {
|
|
31
|
+
background-color: var(--kui-color-bg-component-active);
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
}
|
|
@@ -46,11 +43,10 @@
|
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
|
|
49
|
-
|
|
50
46
|
.k-backtop-fade-enter-active {
|
|
51
|
-
animation: k-backtop-fade .4s;
|
|
47
|
+
animation: k-backtop-fade 0.4s;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.k-backtop-fade-leave-active {
|
|
55
|
-
animation: k-backtop-fade .4s reverse;
|
|
56
|
-
}
|
|
51
|
+
animation: k-backtop-fade 0.4s reverse;
|
|
52
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/var.less';
|
|
1
|
+
@import '../../styles/less-css-var.less';
|
|
2
2
|
|
|
3
3
|
.k-badge {
|
|
4
4
|
position: relative;
|
|
@@ -17,15 +17,16 @@
|
|
|
17
17
|
min-width: 20px;
|
|
18
18
|
background: #ed3f14;
|
|
19
19
|
color: #fff;
|
|
20
|
-
line-height:
|
|
21
|
-
text-align: center;
|
|
20
|
+
line-height: 1;
|
|
22
21
|
font-size: 12px;
|
|
23
22
|
white-space: nowrap;
|
|
24
23
|
z-index: 10;
|
|
25
|
-
box-shadow: 0 0 0 1px var(--kui-color-back);
|
|
26
24
|
box-sizing: border-box;
|
|
27
|
-
display:
|
|
25
|
+
display: flex;
|
|
28
26
|
padding: 0 6px;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
border: 1px solid var(--kui-color-border);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
&-mark {
|
|
@@ -48,10 +49,6 @@
|
|
|
48
49
|
|
|
49
50
|
&-dot {
|
|
50
51
|
position: absolute;
|
|
51
|
-
// transform: translateX(-50%);
|
|
52
|
-
// transform-origin: 0 center;
|
|
53
|
-
// top: -4px;
|
|
54
|
-
// right: -8px;
|
|
55
52
|
top: 0;
|
|
56
53
|
right: 0;
|
|
57
54
|
transform: translate(50%, -50%);
|
|
@@ -61,7 +58,6 @@
|
|
|
61
58
|
border-radius: 50%;
|
|
62
59
|
background: var(--kui-color-danger);
|
|
63
60
|
z-index: 10;
|
|
64
|
-
// box-shadow: 0 0 0 1px #fff;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
63
|
&-no-child {
|
|
@@ -71,16 +67,14 @@
|
|
|
71
67
|
|
|
72
68
|
&-status-dot {
|
|
73
69
|
position: relative;
|
|
74
|
-
// top: -1px;
|
|
75
70
|
display: inline-block;
|
|
76
71
|
width: 6px;
|
|
77
72
|
height: 6px;
|
|
78
|
-
// vertical-align: middle;
|
|
79
73
|
border-radius: 50%;
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
&-status-text {
|
|
83
|
-
color: var(--kui-color-
|
|
77
|
+
color: var(--kui-color-text);
|
|
84
78
|
font-size: 14px;
|
|
85
79
|
margin-left: 8px;
|
|
86
80
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
## BreadcrumbItem API
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
|
5
|
-
|
|
|
6
|
-
|
|
|
7
|
-
|
|
|
2
|
+
|
|
3
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
4
|
+
| --------- | -------------------------------------------------------- | ------- | ------ |
|
|
5
|
+
| separator | 自定义分隔符 | String | / |
|
|
6
|
+
| to | 自定义链接函数,和 `vue-router` 配合使用 | String | - |
|
|
7
|
+
| replace | 路由跳转时,开启 `replace` 将不会向 `history` 添加新记录 | Boolean | false |
|
|
8
|
+
| icon | 按钮的图标 | String | - |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/var.less';
|
|
1
|
+
@import '../../styles/less-css-var.less';
|
|
2
2
|
|
|
3
3
|
.k-breadcrumb {
|
|
4
4
|
line-height: 1;
|
|
@@ -19,31 +19,18 @@
|
|
|
19
19
|
&-item {
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
align-items: center;
|
|
22
|
-
color: var(--kui-color-
|
|
22
|
+
color: var(--kui-color-text-placeholder);
|
|
23
23
|
|
|
24
24
|
a {
|
|
25
|
-
color: var(--kui-color-
|
|
25
|
+
color: var(--kui-color-text-placeholder);
|
|
26
26
|
|
|
27
27
|
&:hover {
|
|
28
|
-
color: var(--kui-color-
|
|
28
|
+
color: var(--kui-color-primary);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.k-icon {
|
|
33
|
-
// color: var(--kui-color-disabled);
|
|
34
33
|
margin-right: 4px;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
// color: var(--kui-color-main);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
// color: var(--kui-color-main);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:active {
|
|
46
|
-
// color: var(--kui-color-main-active);
|
|
47
34
|
}
|
|
48
35
|
}
|
|
49
36
|
|
|
@@ -54,13 +41,12 @@
|
|
|
54
41
|
}
|
|
55
42
|
|
|
56
43
|
&-separator {
|
|
57
|
-
color: var(--kui-color-
|
|
44
|
+
color: var(--kui-color-text-placeholder);
|
|
58
45
|
}
|
|
59
46
|
|
|
60
47
|
li {
|
|
61
48
|
&:last-child {
|
|
62
|
-
|
|
63
|
-
color: var(--kui-color-font);
|
|
49
|
+
color: var(--kui-color-text);
|
|
64
50
|
|
|
65
51
|
.k-breadcrumb-separator {
|
|
66
52
|
display: none;
|
|
@@ -71,4 +57,4 @@
|
|
|
71
57
|
&-separator {
|
|
72
58
|
margin: 0 8px;
|
|
73
59
|
}
|
|
74
|
-
}
|
|
60
|
+
}
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<Button type="primary">Primary</Button>
|
|
11
11
|
<Button type="danger">Danger</Button>
|
|
12
12
|
<Button>Default</Button>
|
|
13
|
+
<Button theme="solid" color="green">Solid</Button>
|
|
14
|
+
<Button theme="outline">Outline</Button>
|
|
15
|
+
<Button theme="dashed">Dashed</Button>
|
|
13
16
|
<Button type="text">Text</Button>
|
|
14
17
|
<Button type="link">Link</Button>
|
|
15
18
|
</Space>
|
|
@@ -17,6 +20,9 @@
|
|
|
17
20
|
<Button disabled type="primary">Primary(disabled)</Button>
|
|
18
21
|
<Button type="danger" disabled>Danger(disabled)</Button>
|
|
19
22
|
<Button disabled>Default(disabled)</Button>
|
|
23
|
+
<Button disabled theme="solid" color="green">Solid(disabled)</Button>
|
|
24
|
+
<Button disabled theme="outline">Outline(disabled)</Button>
|
|
25
|
+
<Button disabled theme="dashed">Dashed(disabled)</Button>
|
|
20
26
|
<Button disabled type="text">Text(disabled)</Button>
|
|
21
27
|
<Button disabled type="link">Link(disabled)</Button>
|
|
22
28
|
</Space>
|