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
|
@@ -33,37 +33,27 @@
|
|
|
33
33
|
</Col>
|
|
34
34
|
</Row>
|
|
35
35
|
</Header>
|
|
36
|
-
<Content class="k-demo-main
|
|
36
|
+
<Content class="k-demo-main">
|
|
37
37
|
<Breadcrumb class="nav">
|
|
38
38
|
<BreadcrumbItem>Home</BreadcrumbItem>
|
|
39
39
|
<BreadcrumbItem>List</BreadcrumbItem>
|
|
40
40
|
<BreadcrumbItem>App</BreadcrumbItem>
|
|
41
41
|
</Breadcrumb>
|
|
42
|
-
<Layout class="
|
|
42
|
+
<Layout class="layout-back">
|
|
43
43
|
<Sider style="background:transparent;">
|
|
44
44
|
<Menu
|
|
45
45
|
:selectedKeys="['t1']"
|
|
46
46
|
:openKeys="['t2']"
|
|
47
47
|
class="demo-left-menu"
|
|
48
|
+
:items="items"
|
|
48
49
|
mode="inline"
|
|
49
50
|
style="padding-top:20px;"
|
|
50
|
-
|
|
51
|
-
<MenuItem key="t1" :icon="Home">首页</MenuItem>
|
|
52
|
-
<SubMenu key="t2" :icon="StatsChart" title="数据统计">
|
|
53
|
-
<MenuItem key="t2-1">今日订单</MenuItem>
|
|
54
|
-
<MenuItem key="t2-2">今日销售额</MenuItem>
|
|
55
|
-
</SubMenu>
|
|
56
|
-
<SubMenu key="t3" :icon="StatsChart" title="数据统计">
|
|
57
|
-
<MenuItem key="t3-1">今日订单</MenuItem>
|
|
58
|
-
<MenuItem key="t3-2">今日销售额</MenuItem>
|
|
59
|
-
</SubMenu>
|
|
60
|
-
<MenuItem key="t4" :icon="Settings">能源管理</MenuItem>
|
|
61
|
-
</Menu>
|
|
51
|
+
/>
|
|
62
52
|
</Sider>
|
|
63
53
|
<Content>Conent</Content>
|
|
64
54
|
</Layout>
|
|
65
55
|
</Content>
|
|
66
|
-
<Footer class="demo-footer">KUI ©2025 Created by chuchur</Footer>
|
|
56
|
+
<Footer class="demo-footer"> KUI ©2025 Created by chuchur </Footer>
|
|
67
57
|
</Layout>
|
|
68
58
|
</div>
|
|
69
59
|
</template>
|
|
@@ -79,13 +69,36 @@ import {
|
|
|
79
69
|
Search,
|
|
80
70
|
NotificationsOutline,
|
|
81
71
|
} from "kui-icons";
|
|
72
|
+
|
|
73
|
+
const items = [
|
|
74
|
+
{ key: "t1", icon: Home, title: "首页" },
|
|
75
|
+
{
|
|
76
|
+
key: "t2",
|
|
77
|
+
icon: StatsChart,
|
|
78
|
+
title: "数据统计",
|
|
79
|
+
children: [
|
|
80
|
+
{ key: "t2-1", title: "今日订单" },
|
|
81
|
+
{ key: "t2-2", title: "今日销售额" },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
key: "t3",
|
|
86
|
+
icon: StatsChart,
|
|
87
|
+
title: "数据统计",
|
|
88
|
+
children: [
|
|
89
|
+
{ key: "t3-1", title: "今日订单" },
|
|
90
|
+
{ key: "t3-2", title: "今日销售额" },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
{ key: "t4", icon: Settings, title: "能源管理" },
|
|
94
|
+
];
|
|
82
95
|
</script>
|
|
83
96
|
<style scoped lang="less">
|
|
84
97
|
.k-demo-layout {
|
|
85
98
|
.demo-header {
|
|
86
99
|
padding: 0 50px 0;
|
|
87
100
|
min-width: 500px;
|
|
88
|
-
background-color: var(--kui-color-
|
|
101
|
+
background-color: var(--kui-color-bg-3);
|
|
89
102
|
height: 60px;
|
|
90
103
|
align-items: center;
|
|
91
104
|
display: flex;
|
|
@@ -94,7 +107,6 @@ import {
|
|
|
94
107
|
.demo-top-nav {
|
|
95
108
|
flex: 1;
|
|
96
109
|
}
|
|
97
|
-
|
|
98
110
|
.logo-box {
|
|
99
111
|
/* width: 190px; */
|
|
100
112
|
position: relative;
|
|
@@ -123,7 +135,7 @@ import {
|
|
|
123
135
|
|
|
124
136
|
.demo-back,
|
|
125
137
|
.demo-footer {
|
|
126
|
-
background-color: var(--kui-color-
|
|
138
|
+
// background-color: var(--kui-color-bg);
|
|
127
139
|
}
|
|
128
140
|
|
|
129
141
|
.k-demo-main {
|
|
@@ -145,8 +157,8 @@ import {
|
|
|
145
157
|
|
|
146
158
|
.k-layout-footer {
|
|
147
159
|
text-align: center;
|
|
148
|
-
color:
|
|
160
|
+
color: var(--kui-color-text-description);
|
|
149
161
|
}
|
|
150
162
|
}
|
|
151
163
|
</style>
|
|
152
|
-
|
|
164
|
+
```
|
|
@@ -40,15 +40,8 @@
|
|
|
40
40
|
:openKeys="['t2']"
|
|
41
41
|
class="demo-left-menu"
|
|
42
42
|
mode="inline"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<MenuItem key="t1" :icon="Home">首页</MenuItem>
|
|
46
|
-
<SubMenu key="t2" :icon="StatsChart" title="数据统计">
|
|
47
|
-
<MenuItem key="t2-1">今日订单</MenuItem>
|
|
48
|
-
<MenuItem key="t2-2">今日销售额</MenuItem>
|
|
49
|
-
</SubMenu>
|
|
50
|
-
<MenuItem key="t3" :icon="Settings">能源管理</MenuItem>
|
|
51
|
-
</Menu>
|
|
43
|
+
:items="items"
|
|
44
|
+
/>
|
|
52
45
|
</Sider>
|
|
53
46
|
<Layout class="k-demo-main">
|
|
54
47
|
<Breadcrumb class="nav">
|
|
@@ -72,18 +65,33 @@ import {
|
|
|
72
65
|
NotificationsOutline,
|
|
73
66
|
Search,
|
|
74
67
|
} from "kui-icons";
|
|
68
|
+
const items = [
|
|
69
|
+
{ key: "t1", icon: Home, title: "首页" },
|
|
70
|
+
{
|
|
71
|
+
key: "t2",
|
|
72
|
+
icon: StatsChart,
|
|
73
|
+
title: "数据统计",
|
|
74
|
+
children: [
|
|
75
|
+
{ key: "t2-1", title: "今日订单" },
|
|
76
|
+
{ key: "t2-2", title: "今日销售额" },
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{ key: "t3", icon: Settings, title: "能源管理" },
|
|
80
|
+
];
|
|
75
81
|
</script>
|
|
76
82
|
<style scoped lang="less">
|
|
77
83
|
.k-demo-layout {
|
|
78
|
-
background: var(--kui-color-
|
|
84
|
+
background: var(--kui-color-bg-layout);
|
|
85
|
+
border: 1px solid var(--kui-color-border);
|
|
79
86
|
|
|
80
87
|
.demo-header {
|
|
81
88
|
padding: 0 20px 0;
|
|
82
89
|
min-width: 500px;
|
|
83
|
-
background-color: var(--kui-color-
|
|
90
|
+
background-color: var(--kui-color-bg);
|
|
84
91
|
height: 60px;
|
|
85
92
|
align-items: center;
|
|
86
93
|
display: flex;
|
|
94
|
+
border-bottom: 1px solid var(--kui-color-border);
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
.demo-top-nav {
|
|
@@ -91,7 +99,6 @@ import {
|
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
.logo-box {
|
|
94
|
-
/* width: 190px; */
|
|
95
102
|
position: relative;
|
|
96
103
|
z-index: 801;
|
|
97
104
|
box-sizing: border-box;
|
|
@@ -113,7 +120,7 @@ import {
|
|
|
113
120
|
}
|
|
114
121
|
|
|
115
122
|
.demo-content {
|
|
116
|
-
background-color: var(--kui-color-
|
|
123
|
+
background-color: var(--kui-color-bg);
|
|
117
124
|
}
|
|
118
125
|
|
|
119
126
|
.demo-left-menu {
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
:icon="collapsed ? ChevronForward : ChevronBack"
|
|
38
38
|
@click="collapsed = !collapsed"
|
|
39
39
|
class="btn-collapsed"
|
|
40
|
-
><i></i
|
|
41
40
|
></Button>
|
|
42
41
|
</Sider>
|
|
43
42
|
<Content class="k-demo-main">
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
</Breadcrumb>
|
|
49
48
|
<div
|
|
50
49
|
style="padding:200px 0;text-align:center;color:#ddd;margin:20px;"
|
|
51
|
-
class="
|
|
50
|
+
class="layout-content"
|
|
52
51
|
>
|
|
53
52
|
Content
|
|
54
53
|
</div>
|
|
@@ -75,13 +74,12 @@ const openKeys = ref(["t2"]);
|
|
|
75
74
|
<style scoped lang="less">
|
|
76
75
|
.k-demo-layout {
|
|
77
76
|
overflow: hidden;
|
|
78
|
-
|
|
77
|
+
border: 1px solid var(--kui-color-border);
|
|
79
78
|
.demo-sider {
|
|
80
79
|
height: 360px;
|
|
81
|
-
/*这里是例子,实际中请适当修改*/
|
|
82
80
|
left: 0;
|
|
83
81
|
width: 200px;
|
|
84
|
-
background: var(--kui-color-
|
|
82
|
+
background: var(--kui-color-bg);
|
|
85
83
|
transition: width 0.3s;
|
|
86
84
|
}
|
|
87
85
|
|
|
@@ -94,13 +92,17 @@ const openKeys = ref(["t2"]);
|
|
|
94
92
|
position: absolute;
|
|
95
93
|
bottom: 0;
|
|
96
94
|
left: 0;
|
|
95
|
+
// right:0;
|
|
96
|
+
width: 100%;
|
|
97
97
|
transition: all 0.3s;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.demo-sider-collapsed {
|
|
101
101
|
width: 60px;
|
|
102
102
|
overflow: hidden;
|
|
103
|
-
|
|
103
|
+
.k-menu {
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
104
106
|
.logo-title {
|
|
105
107
|
opacity: 0;
|
|
106
108
|
}
|
|
@@ -136,12 +138,14 @@ const openKeys = ref(["t2"]);
|
|
|
136
138
|
.k-demo-main {
|
|
137
139
|
overflow: auto;
|
|
138
140
|
height: 360px;
|
|
139
|
-
background-color:
|
|
141
|
+
background-color: var(--kui-color-bg-layout);
|
|
140
142
|
.nav {
|
|
141
143
|
padding: 20px 0 0 20px;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
|
-
|
|
146
|
+
.layout-content {
|
|
147
|
+
background-color: var(--kui-color-bg);
|
|
148
|
+
}
|
|
145
149
|
.k-layout-footer {
|
|
146
150
|
text-align: center;
|
|
147
151
|
color: #999;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</Breadcrumb>
|
|
49
49
|
<div
|
|
50
50
|
style="padding:200px 0;text-align:center;color:#ddd;margin:20px;"
|
|
51
|
-
class="
|
|
51
|
+
class="layout-content"
|
|
52
52
|
>
|
|
53
53
|
Content
|
|
54
54
|
</div>
|
|
@@ -74,11 +74,12 @@ const openKeys = ref(["t2"]);
|
|
|
74
74
|
</script>
|
|
75
75
|
<style scoped lang="less">
|
|
76
76
|
.k-demo-layout {
|
|
77
|
+
border: 1px solid var(--kui-color-border);
|
|
77
78
|
.demo-sider {
|
|
78
79
|
/*这里是例子,实际中请适当修改*/
|
|
79
80
|
left: 0;
|
|
80
81
|
width: 200px;
|
|
81
|
-
background: var(--kui-color-
|
|
82
|
+
background: var(--kui-color-bg);
|
|
82
83
|
transition: width 0.3s;
|
|
83
84
|
}
|
|
84
85
|
|
|
@@ -90,6 +91,9 @@ const openKeys = ref(["t2"]);
|
|
|
90
91
|
.btn-collapsed {
|
|
91
92
|
transition: all 0.3s;
|
|
92
93
|
}
|
|
94
|
+
.layout-content {
|
|
95
|
+
background: var(--kui-color-bg);
|
|
96
|
+
}
|
|
93
97
|
|
|
94
98
|
.demo-sider-collapsed {
|
|
95
99
|
width: 60px;
|
|
@@ -2,32 +2,16 @@
|
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
// &::before {
|
|
6
|
-
// content: "";
|
|
7
|
-
// display: table;
|
|
8
|
-
// box-sizing: border-box;
|
|
9
|
-
// }
|
|
10
|
-
// &::after {
|
|
11
|
-
// content: "";
|
|
12
|
-
// clear: both;
|
|
13
|
-
// visibility: hidden;
|
|
14
|
-
// font-size: 0;
|
|
15
|
-
// height: 0;
|
|
16
|
-
// }
|
|
17
5
|
.k-layout-header {
|
|
18
6
|
box-sizing: border-box;
|
|
19
7
|
}
|
|
20
8
|
.k-layout-content {
|
|
21
9
|
flex: 1;
|
|
22
|
-
// width: 0;
|
|
23
10
|
min-width: 0;
|
|
24
|
-
// overflow: hidden;
|
|
25
11
|
}
|
|
26
12
|
.k-layout-sider {
|
|
27
13
|
position: relative;
|
|
28
14
|
min-width: 0;
|
|
29
|
-
// transition: all 0.2s;
|
|
30
|
-
// background: #646d82;
|
|
31
15
|
}
|
|
32
16
|
.k-layout-footer {
|
|
33
17
|
padding: 24px 50px;
|
|
@@ -41,6 +25,5 @@
|
|
|
41
25
|
.k-layout {
|
|
42
26
|
min-width: 0;
|
|
43
27
|
flex: 1;
|
|
44
|
-
// width: 0;
|
|
45
28
|
}
|
|
46
|
-
}
|
|
29
|
+
}
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
import Vue from 'vue'
|
|
17
17
|
import Router from 'vue-router'
|
|
18
|
-
import {
|
|
18
|
+
import { loading } from 'kui-vue'
|
|
19
19
|
|
|
20
20
|
Vue.use(Router)
|
|
21
21
|
let router = new Router({
|
|
22
22
|
....
|
|
23
23
|
})
|
|
24
24
|
router.beforeEach((to, from, next) => {
|
|
25
|
-
|
|
25
|
+
loading.start();
|
|
26
26
|
next();
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
router.afterEach(route => {
|
|
30
|
-
|
|
30
|
+
loading.finish();
|
|
31
31
|
});
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
.k-loading-wrap {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1001;
|
|
5
|
+
left: 0;
|
|
6
|
+
top: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
background: var(--kui-color-border);
|
|
10
|
+
height: 2px;
|
|
11
|
+
.k-loading-line {
|
|
12
|
+
height: 100%;
|
|
13
|
+
transition: width 0.2s ease-in-out;
|
|
14
|
+
background-color: var(--kui-color-primary);
|
|
15
|
+
height: 2px;
|
|
16
|
+
}
|
|
17
|
+
.k-loading-line-error {
|
|
18
|
+
background-color: var(--kui-color-danger) !important;
|
|
19
|
+
}
|
|
20
|
+
.k-loading-inner {
|
|
21
|
+
margin: 0 auto;
|
|
22
|
+
position: relative;
|
|
23
|
+
text-align: center;
|
|
24
|
+
top: 50%;
|
|
25
|
+
margin-top: -17.5px;
|
|
26
|
+
}
|
|
27
|
+
.k-loading-animate {
|
|
28
|
+
width: 35px;
|
|
29
|
+
height: 35px;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -12,28 +12,8 @@
|
|
|
12
12
|
@open-change="openChange"
|
|
13
13
|
accordion
|
|
14
14
|
mode="inline"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<MenuItem key="1-1">Option 1</MenuItem>
|
|
18
|
-
<MenuItem key="1-2">Option 2</MenuItem>
|
|
19
|
-
<MenuItem key="1-3">Option 3</MenuItem>
|
|
20
|
-
<MenuItem key="1-4">Option 4</MenuItem>
|
|
21
|
-
</SubMenu>
|
|
22
|
-
<SubMenu key="sub2" :icon="Heart" title="Navigation Two">
|
|
23
|
-
<MenuItem key="2-1">Option 5</MenuItem>
|
|
24
|
-
<MenuItem key="2-2">Option 6</MenuItem>
|
|
25
|
-
<SubMenu key="sub2-1" title="SubMenu">
|
|
26
|
-
<MenuItem key="2-3">Option 7</MenuItem>
|
|
27
|
-
<MenuItem key="2-4">Option 8</MenuItem>
|
|
28
|
-
</SubMenu>
|
|
29
|
-
</SubMenu>
|
|
30
|
-
<SubMenu key="sub3" :icon="Settings" title="Navigation Three">
|
|
31
|
-
<MenuItem key="3-1">Option 9</MenuItem>
|
|
32
|
-
<MenuItem key="3-2">Option 10</MenuItem>
|
|
33
|
-
<MenuItem key="3-3">Option 11</MenuItem>
|
|
34
|
-
<MenuItem key="3-4">Option 12</MenuItem>
|
|
35
|
-
</SubMenu>
|
|
36
|
-
</Menu>
|
|
15
|
+
:items="items"
|
|
16
|
+
/>
|
|
37
17
|
</div>
|
|
38
18
|
</template>
|
|
39
19
|
<script setup>
|
|
@@ -45,5 +25,47 @@ const openKeys = ref(["sub1"]);
|
|
|
45
25
|
const openChange = (openKeys) => {
|
|
46
26
|
console.log(openKeys);
|
|
47
27
|
};
|
|
28
|
+
|
|
29
|
+
const items = [
|
|
30
|
+
{
|
|
31
|
+
title: "Navigation One",
|
|
32
|
+
key: "sub1",
|
|
33
|
+
icon: Mail,
|
|
34
|
+
children: [
|
|
35
|
+
{ title: "Option 1", key: "1-1" },
|
|
36
|
+
{ title: "Option 2", key: "1-2" },
|
|
37
|
+
{ title: "Option 3", key: "1-3" },
|
|
38
|
+
{ title: "Option 4", key: "1-4" },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "Navigation Two",
|
|
43
|
+
key: "sub2",
|
|
44
|
+
icon: Heart,
|
|
45
|
+
children: [
|
|
46
|
+
{ title: "Option 5", key: "2-1" },
|
|
47
|
+
{ title: "Option 6", key: "2-2" },
|
|
48
|
+
{
|
|
49
|
+
title: "Submenu",
|
|
50
|
+
key: "sub2-1",
|
|
51
|
+
children: [
|
|
52
|
+
{ title: "Option 7", key: "2-1-1" },
|
|
53
|
+
{ title: "Option 8", key: "2-1-2" },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "Navigation Three",
|
|
60
|
+
key: "sub3",
|
|
61
|
+
icon: Settings,
|
|
62
|
+
children: [
|
|
63
|
+
{ title: "Option 9", key: "3-1" },
|
|
64
|
+
{ title: "Option 10", key: "3-2" },
|
|
65
|
+
{ title: "Option 11", key: "3-3" },
|
|
66
|
+
{ title: "Option 12", key: "3-4" },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
];
|
|
48
70
|
</script>
|
|
49
71
|
```
|
|
@@ -6,30 +6,45 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<Menu mode="horizontal" v-model="current"
|
|
10
|
-
<MenuItem key="1" :icon="Mail">Navigation One</MenuItem>
|
|
11
|
-
<MenuItem key="2" :icon="Heart" disabled>Navigation Two</MenuItem>
|
|
12
|
-
<SubMenu key="3" :icon="Settings" title="Navigation - Submenu">
|
|
13
|
-
<MenuItem key="3-1">Option 1</MenuItem>
|
|
14
|
-
<MenuItem key="3-2">Option 2</MenuItem>
|
|
15
|
-
<MenuItem key="3-3">Option 1</MenuItem>
|
|
16
|
-
<MenuItem key="3-4">Option 2</MenuItem>
|
|
17
|
-
<SubMenu key="3-5" title="Submenu">
|
|
18
|
-
<MenuItem key="3-5-1">Option 1</MenuItem>
|
|
19
|
-
<MenuItem key="3-5-2">Option 2</MenuItem>
|
|
20
|
-
<MenuItem key="3-5-3">Option 1</MenuItem>
|
|
21
|
-
<MenuItem key="3-5-4">Option 2</MenuItem>
|
|
22
|
-
</SubMenu>
|
|
23
|
-
</SubMenu>
|
|
24
|
-
<MenuItem key="4">
|
|
25
|
-
<a href="https://k-ui.cn" target="_blank">Navigation -Link</a>
|
|
26
|
-
</MenuItem>
|
|
27
|
-
</Menu>
|
|
9
|
+
<Menu mode="horizontal" v-model="current" :items="items" />
|
|
28
10
|
</div>
|
|
29
11
|
</template>
|
|
30
12
|
<script setup>
|
|
31
13
|
import { Mail, Heart, Settings } from "kui-icons";
|
|
32
|
-
import { ref } from "vue";
|
|
14
|
+
import { ref, h } from "vue";
|
|
33
15
|
const current = ref(["1"]);
|
|
16
|
+
const items = [
|
|
17
|
+
{ title: "Navigation One", key: "1", icon: Mail },
|
|
18
|
+
{ title: "Navigation Two", key: "2", icon: Heart, disabled: true },
|
|
19
|
+
{
|
|
20
|
+
title: "Navigation - Submenu",
|
|
21
|
+
key: "3",
|
|
22
|
+
icon: Settings,
|
|
23
|
+
children: [
|
|
24
|
+
{ title: "Option 1", key: "3-1" },
|
|
25
|
+
{ title: "Option 2", key: "3-2" },
|
|
26
|
+
{ title: "Option 1", key: "3-3" },
|
|
27
|
+
{ title: "Option 2", key: "3-4" },
|
|
28
|
+
{
|
|
29
|
+
title: "Submenu",
|
|
30
|
+
key: "3-5",
|
|
31
|
+
children: [
|
|
32
|
+
{ title: "Option 1", key: "3-5-1" },
|
|
33
|
+
{ title: "Option 2", key: "3-5-2" },
|
|
34
|
+
{ title: "Option 1", key: "3-5-3" },
|
|
35
|
+
{ title: "Option 2", key: "3-5-4" },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: h(
|
|
42
|
+
"a",
|
|
43
|
+
{ attrs: { href: "https://k-ui.cn", target: "_blank" } },
|
|
44
|
+
"Navigation -Link"
|
|
45
|
+
),
|
|
46
|
+
key: "4",
|
|
47
|
+
},
|
|
48
|
+
];
|
|
34
49
|
</script>
|
|
35
50
|
```
|
|
@@ -19,35 +19,53 @@
|
|
|
19
19
|
theme="dark"
|
|
20
20
|
:inlineCollapsed="collapsed"
|
|
21
21
|
mode="inline"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<MenuItem key="1-2" :icon="Grid"><span>Option 2</span></MenuItem>
|
|
25
|
-
<SubMenu key="sub2" :icon="Heart" title="Navigation Two">
|
|
26
|
-
<MenuItem key="2-1" :icon="Mail">Option 5</MenuItem>
|
|
27
|
-
<MenuItem key="2-2" :icon="Mail">Option 6</MenuItem>
|
|
28
|
-
<SubMenu title="SubMenu" key="sub2-1" :icon="Mail">
|
|
29
|
-
<MenuItem key="2-3" :icon="Mail">Option 7</MenuItem>
|
|
30
|
-
<MenuItem key="2-4" :icon="Mail">Option 8</MenuItem>
|
|
31
|
-
</SubMenu>
|
|
32
|
-
</SubMenu>
|
|
33
|
-
<SubMenu key="sub3" :icon="Settings" title="Navigation Three">
|
|
34
|
-
<MenuItem key="3-1" :icon="Mail">Option 9</MenuItem>
|
|
35
|
-
<MenuItem key="3-2" :icon="Mail">Option 10</MenuItem>
|
|
36
|
-
<MenuItem key="3-3" :icon="Mail">Option 11</MenuItem>
|
|
37
|
-
<MenuItem key="3-4" :icon="Mail">Option 12</MenuItem>
|
|
38
|
-
</SubMenu>
|
|
39
|
-
</Menu>
|
|
22
|
+
:items="items"
|
|
23
|
+
/>
|
|
40
24
|
</div>
|
|
41
25
|
</template>
|
|
42
26
|
<script setup>
|
|
43
27
|
import { MenuFold, MenuUnfold, Mail, Grid, Heart, Settings } from "kui-icons";
|
|
44
28
|
import { ref } from "vue";
|
|
45
29
|
const current = ref(["1-1"]);
|
|
46
|
-
const openKeys = ref(["
|
|
30
|
+
const openKeys = ref(["3-1"]);
|
|
47
31
|
const collapsed = ref(false);
|
|
48
32
|
|
|
49
33
|
const change = () => {
|
|
50
34
|
collapsed.value = !collapsed.value;
|
|
51
35
|
};
|
|
36
|
+
|
|
37
|
+
const items = [
|
|
38
|
+
{ title: "Option 1", key: "1-1", icon: Mail },
|
|
39
|
+
{ title: "Option 2", key: "2-1", icon: Grid },
|
|
40
|
+
{
|
|
41
|
+
title: "Navigation Two",
|
|
42
|
+
key: "3-1",
|
|
43
|
+
icon: Heart,
|
|
44
|
+
children: [
|
|
45
|
+
{ title: "Option 5", key: "3-1-1", icon: Mail },
|
|
46
|
+
{ title: "Option 6", key: "3-1-2", icon: Mail },
|
|
47
|
+
{
|
|
48
|
+
title: "SubMenu",
|
|
49
|
+
key: "3-1-3",
|
|
50
|
+
icon: Mail,
|
|
51
|
+
children: [
|
|
52
|
+
{ title: "Option 7", key: "3-1-3-1", icon: Mail },
|
|
53
|
+
{ title: "Option 8", key: "3-1-3-2", icon: Mail },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "Navigation Three",
|
|
60
|
+
key: "4-1",
|
|
61
|
+
icon: Settings,
|
|
62
|
+
children: [
|
|
63
|
+
{ title: "Option 9", key: "4-1-1", icon: Mail },
|
|
64
|
+
{ title: "Option 10", key: "4-1-2", icon: Mail },
|
|
65
|
+
{ title: "Option 11", key: "4-1-3", icon: Mail },
|
|
66
|
+
{ title: "Option 12", key: "4-1-4", icon: Mail }
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
];
|
|
52
70
|
</script>
|
|
53
71
|
```
|