ct-component-plus 0.0.43 → 0.0.44
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/README.md +3 -3
- package/package.json +36 -36
- package/packages/components/button/index.js +8 -8
- package/packages/components/button/src/button.vue +171 -171
- package/packages/components/cascader/index.js +7 -7
- package/packages/components/cascader/src/cascader.vue +247 -247
- package/packages/components/cascader/src/ct-cascader.vue +260 -260
- package/packages/components/cascader/src/index.js +50 -50
- package/packages/components/checkbox/index.js +7 -7
- package/packages/components/checkbox/src/checkbox.vue +51 -51
- package/packages/components/checkbox/src/index.js +12 -12
- package/packages/components/date-picker/index.js +8 -8
- package/packages/components/date-picker/src/clear-icon.vue +2 -2
- package/packages/components/date-picker/src/date-icon.vue +2 -2
- package/packages/components/date-picker/src/date-picker.vue +77 -77
- package/packages/components/date-picker/src/index.js +33 -33
- package/packages/components/dialog/index.js +8 -8
- package/packages/components/dialog/src/dialog.vue +103 -103
- package/packages/components/empty/index.js +8 -8
- package/packages/components/empty/src/empty.vue +97 -97
- package/packages/components/index.js +81 -81
- package/packages/components/input/index.js +7 -7
- package/packages/components/input/src/index.js +13 -13
- package/packages/components/input/src/input.vue +106 -106
- package/packages/components/input-range/index.js +7 -7
- package/packages/components/input-range/src/index.js +29 -29
- package/packages/components/input-range/src/input-range.vue +233 -233
- package/packages/components/loading/index.js +7 -7
- package/packages/components/loading/src/CtLoading.vue +74 -74
- package/packages/components/loading/src/beating.vue +71 -71
- package/packages/components/loading/src/progress.vue +120 -120
- package/packages/components/loading/src/spinner.vue +38 -38
- package/packages/components/menu/index.js +7 -7
- package/packages/components/menu/src/item.vue +46 -46
- package/packages/components/menu/src/link.vue +28 -28
- package/packages/components/menu/src/logo.vue +25 -25
- package/packages/components/menu/src/menu-item.vue +103 -103
- package/packages/components/menu/src/menu.vue +191 -191
- package/packages/components/menu/src/utils/index.js +4 -4
- package/packages/components/message/icon/ErrorIcon.vue +25 -25
- package/packages/components/message/icon/InfoIcon.vue +25 -25
- package/packages/components/message/icon/SuccessIcon.vue +25 -25
- package/packages/components/message/icon/WarningIcon.vue +25 -25
- package/packages/components/message/index.js +8 -8
- package/packages/components/message/src/method.js +54 -54
- package/packages/components/message-box/index.js +7 -7
- package/packages/components/message-box/src/message-box.vue +107 -107
- package/packages/components/page/index.js +7 -7
- package/packages/components/page/src/modules/DownloadButton.vue +21 -21
- package/packages/components/page/src/modules/TableTitle.vue +151 -151
- package/packages/components/page/src/page.vue +382 -382
- package/packages/components/pagination/index.js +7 -7
- package/packages/components/pagination/src/pagination.vue +36 -36
- package/packages/components/radio/index.js +7 -7
- package/packages/components/radio/src/index.js +12 -12
- package/packages/components/radio/src/radio.vue +47 -47
- package/packages/components/search-box/index.js +24 -24
- package/packages/components/search-box/src/index.js +29 -29
- package/packages/components/search-box/src/search-box.vue +250 -250
- package/packages/components/search-box/src/slot.vue +4 -4
- package/packages/components/select/index.js +7 -7
- package/packages/components/select/src/arrow-down.vue +2 -2
- package/packages/components/select/src/clear-icon.vue +2 -2
- package/packages/components/select/src/empty.vue +13 -13
- package/packages/components/select/src/index.js +51 -51
- package/packages/components/select/src/select.vue +380 -380
- package/packages/components/table/index.js +7 -7
- package/packages/components/table/src/TableSort.vue +179 -179
- package/packages/components/table/src/index.js +78 -70
- package/packages/components/table/src/table.vue +288 -287
- package/packages/components/tabs/index.js +7 -7
- package/packages/components/tabs/src/tabs.vue +225 -225
- package/packages/components/year-select/index.js +7 -7
- package/packages/components/year-select/src/index.js +44 -44
- package/packages/components/year-select/src/year-select.vue +273 -273
- package/packages/constants/aria.ts +17 -17
- package/packages/constants/index.ts +1 -1
- package/packages/directives/click-outside/index.ts +118 -118
- package/packages/echarts/bar/index.js +63 -63
- package/packages/echarts/base.js +99 -99
- package/packages/echarts/line/index.js +106 -106
- package/packages/hooks/index.js +5 -5
- package/packages/hooks/use-buried/index.js +46 -46
- package/packages/hooks/use-checked-all/index.js +37 -37
- package/packages/hooks/use-echarts/index.js +1 -1
- package/packages/hooks/use-echarts/use-bar/index.js +72 -72
- package/packages/hooks/use-echarts/use-line/index.js +88 -88
- package/packages/hooks/use-namespace/index.js +65 -65
- package/packages/hooks/use-search-component/index.js +28 -28
- package/packages/style/element.less +725 -725
- package/packages/style/index.js +2 -2
- package/packages/style/init.less +114 -114
- package/packages/utils/index.js +1 -1
- package/packages/utils/operate.js +77 -77
- package/packages/utils/table.js +135 -0
- package/packages/utils/types.js +35 -35
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="[ns.b(), ns.is('collapse', collapse)]">
|
|
3
|
-
<el-menu
|
|
4
|
-
:default-active="defaultActive"
|
|
5
|
-
ref="menuRef"
|
|
6
|
-
:collapse="collapse"
|
|
7
|
-
:collapse-transition="collapseTransition"
|
|
8
|
-
@select="selectMenu"
|
|
9
|
-
v-bind="$attrs"
|
|
10
|
-
>
|
|
11
|
-
<div :class="[ns.e('logo'), ns.is('collapse', collapse)]" v-if="showLogo">
|
|
12
|
-
<slot name="logo" :collapse="collapse"></slot>
|
|
13
|
-
</div>
|
|
14
|
-
<menu-item
|
|
15
|
-
v-for="menu in menuList"
|
|
16
|
-
:key="menu.router || menu.value"
|
|
17
|
-
:menu="menu"
|
|
18
|
-
:collapse="collapse"
|
|
19
|
-
@click-menu="clickMenu"
|
|
20
|
-
>
|
|
21
|
-
<template #icon="{ menu }">
|
|
22
|
-
<slot
|
|
23
|
-
name="menu-icon"
|
|
24
|
-
:menu="menu"
|
|
25
|
-
:is-active="activeMenuIndex === getMenuIndex(menu)"
|
|
26
|
-
>
|
|
27
|
-
<ct-icon v-if="menu.icon" :name="menu.icon"></ct-icon>
|
|
28
|
-
</slot>
|
|
29
|
-
</template>
|
|
30
|
-
<template #title="{ menu }">
|
|
31
|
-
<slot
|
|
32
|
-
name="menu-title"
|
|
33
|
-
:menu="menu"
|
|
34
|
-
:is-active="activeMenuIndex === getMenuIndex(menu)"
|
|
35
|
-
>
|
|
36
|
-
{{ menu.label }}
|
|
37
|
-
</slot>
|
|
38
|
-
</template>
|
|
39
|
-
</menu-item>
|
|
40
|
-
</el-menu>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script setup>
|
|
45
|
-
import { onMounted, ref } from "vue";
|
|
46
|
-
import { useNamespace } from "../../../hooks";
|
|
47
|
-
import menuItem from "./menu-item.vue";
|
|
48
|
-
import { getMenuIndex } from "./utils";
|
|
49
|
-
const props = defineProps({
|
|
50
|
-
menuList: {
|
|
51
|
-
type: Array,
|
|
52
|
-
default: () => [],
|
|
53
|
-
},
|
|
54
|
-
defaultActive: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: "",
|
|
57
|
-
},
|
|
58
|
-
collapseTransition: {
|
|
59
|
-
//这里默认关闭折叠动画
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: true,
|
|
62
|
-
},
|
|
63
|
-
showLogo: Boolean,
|
|
64
|
-
collapse: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: false,
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
const emit = defineEmits(["clickMenu", "select"]);
|
|
70
|
-
const ns = useNamespace("menu");
|
|
71
|
-
const menuRef = ref(null);
|
|
72
|
-
const isCollapse = ref(false);
|
|
73
|
-
const activeMenuIndex = ref("");
|
|
74
|
-
const clickMenu = (menu) => {
|
|
75
|
-
emit("clickMenu", menu);
|
|
76
|
-
};
|
|
77
|
-
const selectMenu = (...args) => {
|
|
78
|
-
activeMenuIndex.value = args[0];
|
|
79
|
-
emit("select", ...args);
|
|
80
|
-
};
|
|
81
|
-
onMounted(() => {
|
|
82
|
-
activeMenuIndex.value = props.defaultActive || "";
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
defineExpose({
|
|
86
|
-
menuRef,
|
|
87
|
-
collapse: isCollapse,
|
|
88
|
-
});
|
|
89
|
-
</script>
|
|
90
|
-
<style lang='less'>
|
|
91
|
-
body {
|
|
92
|
-
--ct-menu-bg-color: #d7e0ea;
|
|
93
|
-
--ct-menu-popper-width: 224px;
|
|
94
|
-
--ct-menu-item-height: 38px;
|
|
95
|
-
--ct-menu-line-space: 12px;
|
|
96
|
-
--ct-menu-item-border-radius: 5px;
|
|
97
|
-
--ct-menu-icon-margin: 10px;
|
|
98
|
-
--ct-menu-icon-size: 16px;
|
|
99
|
-
--el-menu-icon-width: var(--ct-menu-icon-size);
|
|
100
|
-
--el-menu-item-height: var(--ct-menu-item-height);
|
|
101
|
-
--el-menu-sub-item-height: var(--ct-menu-item-height);
|
|
102
|
-
--el-menu-bg-color: var(--ct-menu-bg-color);
|
|
103
|
-
--el-menu-base-level-padding: 12px;
|
|
104
|
-
--el-menu-level-padding: 26px;
|
|
105
|
-
--el-menu-hover-bg-color: rgba(255, 255, 255, 0.6);
|
|
106
|
-
--el-menu-text-color: var(--ct-color-black);
|
|
107
|
-
}
|
|
108
|
-
.ct-menu {
|
|
109
|
-
width: var(--ct-layout-menu-width, 224px);
|
|
110
|
-
&__logo {
|
|
111
|
-
background-color: var(--ct-menu-bg-color);
|
|
112
|
-
// &.is-collapse {
|
|
113
|
-
// width: var(--ct-layout-menu-width_collapse);
|
|
114
|
-
// }
|
|
115
|
-
}
|
|
116
|
-
& > .el-menu {
|
|
117
|
-
padding: 8px 12px;
|
|
118
|
-
}
|
|
119
|
-
.el-menu {
|
|
120
|
-
border-right: none;
|
|
121
|
-
&--collapse {
|
|
122
|
-
width: var(--ct-layout-menu-width_collapse);
|
|
123
|
-
--ct-menu-icon-margin: 0;
|
|
124
|
-
--ct-menu-icon-size: 18px;
|
|
125
|
-
--ct-menu-line-space: 14px;
|
|
126
|
-
.ct-menu-item {
|
|
127
|
-
&__title {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.el-sub-menu {
|
|
132
|
-
&.is-active {
|
|
133
|
-
background-color: #fff;
|
|
134
|
-
box-shadow: 0px 4px 20px 0px rgba(130, 146, 181, 0.06);
|
|
135
|
-
border-radius: 5px;
|
|
136
|
-
.ct-icon {
|
|
137
|
-
color: var(--el-menu-active-color);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.el-menu-item,
|
|
144
|
-
.el-sub-menu__title {
|
|
145
|
-
margin-top: var(--ct-menu-line-space);
|
|
146
|
-
border-radius: var(--ct-menu-item-border-radius);
|
|
147
|
-
font-weight: 600;
|
|
148
|
-
* {
|
|
149
|
-
vertical-align: unset;
|
|
150
|
-
}
|
|
151
|
-
&.is-active {
|
|
152
|
-
background-color: #fff;
|
|
153
|
-
box-shadow: 0px 4px 20px 0px rgba(130, 146, 181, 0.06);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
.el-sub-menu {
|
|
157
|
-
&__title {
|
|
158
|
-
font-weight: 600;
|
|
159
|
-
}
|
|
160
|
-
.el-sub-menu__icon-arrow {
|
|
161
|
-
width: 14px;
|
|
162
|
-
height: 14px;
|
|
163
|
-
background: url("./assets/plus_line.svg") no-repeat center center;
|
|
164
|
-
> svg {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
.is-nest-menu {
|
|
170
|
-
.el-menu-item {
|
|
171
|
-
&:not(.is-active) {
|
|
172
|
-
font-weight: 400;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
&.el-popper {
|
|
177
|
-
--ct-layout-menu-width: 175px;
|
|
178
|
-
--ct-menu-line-space: 6px;
|
|
179
|
-
--el-menu-base-level-padding: 16px;
|
|
180
|
-
transform: translateX(15px);
|
|
181
|
-
&.is-light {
|
|
182
|
-
border: none;
|
|
183
|
-
}
|
|
184
|
-
.el-menu {
|
|
185
|
-
&--popup {
|
|
186
|
-
min-width: unset;
|
|
187
|
-
padding: 4px 12px 10px;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="[ns.b(), ns.is('collapse', collapse)]">
|
|
3
|
+
<el-menu
|
|
4
|
+
:default-active="defaultActive"
|
|
5
|
+
ref="menuRef"
|
|
6
|
+
:collapse="collapse"
|
|
7
|
+
:collapse-transition="collapseTransition"
|
|
8
|
+
@select="selectMenu"
|
|
9
|
+
v-bind="$attrs"
|
|
10
|
+
>
|
|
11
|
+
<div :class="[ns.e('logo'), ns.is('collapse', collapse)]" v-if="showLogo">
|
|
12
|
+
<slot name="logo" :collapse="collapse"></slot>
|
|
13
|
+
</div>
|
|
14
|
+
<menu-item
|
|
15
|
+
v-for="menu in menuList"
|
|
16
|
+
:key="menu.router || menu.value"
|
|
17
|
+
:menu="menu"
|
|
18
|
+
:collapse="collapse"
|
|
19
|
+
@click-menu="clickMenu"
|
|
20
|
+
>
|
|
21
|
+
<template #icon="{ menu }">
|
|
22
|
+
<slot
|
|
23
|
+
name="menu-icon"
|
|
24
|
+
:menu="menu"
|
|
25
|
+
:is-active="activeMenuIndex === getMenuIndex(menu)"
|
|
26
|
+
>
|
|
27
|
+
<ct-icon v-if="menu.icon" :name="menu.icon"></ct-icon>
|
|
28
|
+
</slot>
|
|
29
|
+
</template>
|
|
30
|
+
<template #title="{ menu }">
|
|
31
|
+
<slot
|
|
32
|
+
name="menu-title"
|
|
33
|
+
:menu="menu"
|
|
34
|
+
:is-active="activeMenuIndex === getMenuIndex(menu)"
|
|
35
|
+
>
|
|
36
|
+
{{ menu.label }}
|
|
37
|
+
</slot>
|
|
38
|
+
</template>
|
|
39
|
+
</menu-item>
|
|
40
|
+
</el-menu>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script setup>
|
|
45
|
+
import { onMounted, ref } from "vue";
|
|
46
|
+
import { useNamespace } from "../../../hooks";
|
|
47
|
+
import menuItem from "./menu-item.vue";
|
|
48
|
+
import { getMenuIndex } from "./utils";
|
|
49
|
+
const props = defineProps({
|
|
50
|
+
menuList: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: () => [],
|
|
53
|
+
},
|
|
54
|
+
defaultActive: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "",
|
|
57
|
+
},
|
|
58
|
+
collapseTransition: {
|
|
59
|
+
//这里默认关闭折叠动画
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true,
|
|
62
|
+
},
|
|
63
|
+
showLogo: Boolean,
|
|
64
|
+
collapse: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
const emit = defineEmits(["clickMenu", "select"]);
|
|
70
|
+
const ns = useNamespace("menu");
|
|
71
|
+
const menuRef = ref(null);
|
|
72
|
+
const isCollapse = ref(false);
|
|
73
|
+
const activeMenuIndex = ref("");
|
|
74
|
+
const clickMenu = (menu) => {
|
|
75
|
+
emit("clickMenu", menu);
|
|
76
|
+
};
|
|
77
|
+
const selectMenu = (...args) => {
|
|
78
|
+
activeMenuIndex.value = args[0];
|
|
79
|
+
emit("select", ...args);
|
|
80
|
+
};
|
|
81
|
+
onMounted(() => {
|
|
82
|
+
activeMenuIndex.value = props.defaultActive || "";
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
defineExpose({
|
|
86
|
+
menuRef,
|
|
87
|
+
collapse: isCollapse,
|
|
88
|
+
});
|
|
89
|
+
</script>
|
|
90
|
+
<style lang='less'>
|
|
91
|
+
body {
|
|
92
|
+
--ct-menu-bg-color: #d7e0ea;
|
|
93
|
+
--ct-menu-popper-width: 224px;
|
|
94
|
+
--ct-menu-item-height: 38px;
|
|
95
|
+
--ct-menu-line-space: 12px;
|
|
96
|
+
--ct-menu-item-border-radius: 5px;
|
|
97
|
+
--ct-menu-icon-margin: 10px;
|
|
98
|
+
--ct-menu-icon-size: 16px;
|
|
99
|
+
--el-menu-icon-width: var(--ct-menu-icon-size);
|
|
100
|
+
--el-menu-item-height: var(--ct-menu-item-height);
|
|
101
|
+
--el-menu-sub-item-height: var(--ct-menu-item-height);
|
|
102
|
+
--el-menu-bg-color: var(--ct-menu-bg-color);
|
|
103
|
+
--el-menu-base-level-padding: 12px;
|
|
104
|
+
--el-menu-level-padding: 26px;
|
|
105
|
+
--el-menu-hover-bg-color: rgba(255, 255, 255, 0.6);
|
|
106
|
+
--el-menu-text-color: var(--ct-color-black);
|
|
107
|
+
}
|
|
108
|
+
.ct-menu {
|
|
109
|
+
width: var(--ct-layout-menu-width, 224px);
|
|
110
|
+
&__logo {
|
|
111
|
+
background-color: var(--ct-menu-bg-color);
|
|
112
|
+
// &.is-collapse {
|
|
113
|
+
// width: var(--ct-layout-menu-width_collapse);
|
|
114
|
+
// }
|
|
115
|
+
}
|
|
116
|
+
& > .el-menu {
|
|
117
|
+
padding: 8px 12px;
|
|
118
|
+
}
|
|
119
|
+
.el-menu {
|
|
120
|
+
border-right: none;
|
|
121
|
+
&--collapse {
|
|
122
|
+
width: var(--ct-layout-menu-width_collapse);
|
|
123
|
+
--ct-menu-icon-margin: 0;
|
|
124
|
+
--ct-menu-icon-size: 18px;
|
|
125
|
+
--ct-menu-line-space: 14px;
|
|
126
|
+
.ct-menu-item {
|
|
127
|
+
&__title {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.el-sub-menu {
|
|
132
|
+
&.is-active {
|
|
133
|
+
background-color: #fff;
|
|
134
|
+
box-shadow: 0px 4px 20px 0px rgba(130, 146, 181, 0.06);
|
|
135
|
+
border-radius: 5px;
|
|
136
|
+
.ct-icon {
|
|
137
|
+
color: var(--el-menu-active-color);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.el-menu-item,
|
|
144
|
+
.el-sub-menu__title {
|
|
145
|
+
margin-top: var(--ct-menu-line-space);
|
|
146
|
+
border-radius: var(--ct-menu-item-border-radius);
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
* {
|
|
149
|
+
vertical-align: unset;
|
|
150
|
+
}
|
|
151
|
+
&.is-active {
|
|
152
|
+
background-color: #fff;
|
|
153
|
+
box-shadow: 0px 4px 20px 0px rgba(130, 146, 181, 0.06);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
.el-sub-menu {
|
|
157
|
+
&__title {
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
}
|
|
160
|
+
.el-sub-menu__icon-arrow {
|
|
161
|
+
width: 14px;
|
|
162
|
+
height: 14px;
|
|
163
|
+
background: url("./assets/plus_line.svg") no-repeat center center;
|
|
164
|
+
> svg {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.is-nest-menu {
|
|
170
|
+
.el-menu-item {
|
|
171
|
+
&:not(.is-active) {
|
|
172
|
+
font-weight: 400;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
&.el-popper {
|
|
177
|
+
--ct-layout-menu-width: 175px;
|
|
178
|
+
--ct-menu-line-space: 6px;
|
|
179
|
+
--el-menu-base-level-padding: 16px;
|
|
180
|
+
transform: translateX(15px);
|
|
181
|
+
&.is-light {
|
|
182
|
+
border: none;
|
|
183
|
+
}
|
|
184
|
+
.el-menu {
|
|
185
|
+
&--popup {
|
|
186
|
+
min-width: unset;
|
|
187
|
+
padding: 4px 12px 10px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
192
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export const getMenuIndex = (menu) => {
|
|
3
|
-
if (!menu) return '';
|
|
4
|
-
return menu.router || menu.value || menu.label
|
|
1
|
+
|
|
2
|
+
export const getMenuIndex = (menu) => {
|
|
3
|
+
if (!menu) return '';
|
|
4
|
+
return menu.router || menu.value || menu.label
|
|
5
5
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
:width="size + 'px'"
|
|
4
|
-
:height="size + 'px'"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
d="M12.001 1.559c5.767 0 10.442 4.674 10.442 10.441S17.768 22.441 12 22.441c-5.766 0-10.44-4.674-10.44-10.441S6.234 1.559 12 1.559zM9.457 8.183a.5.5 0 00-.707 0l-.566.566a.5.5 0 000 .707L10.728 12l-2.544 2.544a.5.5 0 000 .707l.566.566a.5.5 0 00.707 0l2.544-2.544 2.545 2.544a.5.5 0 00.707 0l.565-.566a.5.5 0 000-.707L13.274 12l2.544-2.544a.5.5 0 000-.707l-.565-.566a.5.5 0 00-.707 0L12 10.727z"
|
|
10
|
-
fill="var(--ct-color-danger)"
|
|
11
|
-
/>
|
|
12
|
-
</svg>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: "ErrorIcon",
|
|
18
|
-
props: {
|
|
19
|
-
size: {
|
|
20
|
-
type: [Number, String],
|
|
21
|
-
default: 18,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
:width="size + 'px'"
|
|
4
|
+
:height="size + 'px'"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M12.001 1.559c5.767 0 10.442 4.674 10.442 10.441S17.768 22.441 12 22.441c-5.766 0-10.44-4.674-10.44-10.441S6.234 1.559 12 1.559zM9.457 8.183a.5.5 0 00-.707 0l-.566.566a.5.5 0 000 .707L10.728 12l-2.544 2.544a.5.5 0 000 .707l.566.566a.5.5 0 00.707 0l2.544-2.544 2.545 2.544a.5.5 0 00.707 0l.565-.566a.5.5 0 000-.707L13.274 12l2.544-2.544a.5.5 0 000-.707l-.565-.566a.5.5 0 00-.707 0L12 10.727z"
|
|
10
|
+
fill="var(--ct-color-danger)"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "ErrorIcon",
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 18,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
:width="size + 'px'"
|
|
4
|
-
:height="size + 'px'"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
d="M12.003 1.559c5.766 0 10.44 4.674 10.44 10.441s-4.674 10.441-10.44 10.441C6.236 22.441 1.56 17.767 1.56 12S6.236 1.559 12.003 1.559zm.576 8.315H10.77a.5.5 0 00-.5.5v.7a.5.5 0 00.5.5h.609v4.303h-.866a.5.5 0 00-.5.5v.7a.5.5 0 00.5.5h3.332a.5.5 0 00.5-.5v-.7a.5.5 0 00-.5-.5h-.766v-5.503a.5.5 0 00-.5-.5zm.032-3.315h-1.217a.5.5 0 00-.5.5v1.217a.5.5 0 00.5.5h1.217a.5.5 0 00.5-.5V7.06a.5.5 0 00-.5-.5z"
|
|
10
|
-
fill="var(--ct-color-primary)"
|
|
11
|
-
/>
|
|
12
|
-
</svg>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: "InfoIcon",
|
|
18
|
-
props: {
|
|
19
|
-
size: {
|
|
20
|
-
type: [Number, String],
|
|
21
|
-
default: 18,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
:width="size + 'px'"
|
|
4
|
+
:height="size + 'px'"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M12.003 1.559c5.766 0 10.44 4.674 10.44 10.441s-4.674 10.441-10.44 10.441C6.236 22.441 1.56 17.767 1.56 12S6.236 1.559 12.003 1.559zm.576 8.315H10.77a.5.5 0 00-.5.5v.7a.5.5 0 00.5.5h.609v4.303h-.866a.5.5 0 00-.5.5v.7a.5.5 0 00.5.5h3.332a.5.5 0 00.5-.5v-.7a.5.5 0 00-.5-.5h-.766v-5.503a.5.5 0 00-.5-.5zm.032-3.315h-1.217a.5.5 0 00-.5.5v1.217a.5.5 0 00.5.5h1.217a.5.5 0 00.5-.5V7.06a.5.5 0 00-.5-.5z"
|
|
10
|
+
fill="var(--ct-color-primary)"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "InfoIcon",
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 18,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
:width="size + 'px'"
|
|
4
|
-
:height="size + 'px'"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
d="M12 1.559c5.767 0 10.441 4.674 10.441 10.441S17.767 22.441 12 22.441 1.559 17.767 1.559 12 6.233 1.559 12 1.559zm5.012 6.81a.5.5 0 00-.708 0l-5.236 5.236-2.649-2.65a.5.5 0 00-.707 0l-.566.567a.5.5 0 000 .707l3.286 3.285a.9.9 0 001.273 0l5.872-5.872a.5.5 0 000-.708z"
|
|
10
|
-
fill="var(--ct-color-success)"
|
|
11
|
-
/>
|
|
12
|
-
</svg>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: "SuccessIcon",
|
|
18
|
-
props: {
|
|
19
|
-
size: {
|
|
20
|
-
type: [Number, String],
|
|
21
|
-
default: 18,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
:width="size + 'px'"
|
|
4
|
+
:height="size + 'px'"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M12 1.559c5.767 0 10.441 4.674 10.441 10.441S17.767 22.441 12 22.441 1.559 17.767 1.559 12 6.233 1.559 12 1.559zm5.012 6.81a.5.5 0 00-.708 0l-5.236 5.236-2.649-2.65a.5.5 0 00-.707 0l-.566.567a.5.5 0 000 .707l3.286 3.285a.9.9 0 001.273 0l5.872-5.872a.5.5 0 000-.708z"
|
|
10
|
+
fill="var(--ct-color-success)"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "SuccessIcon",
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 18,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
:width="size + 'px'"
|
|
4
|
-
:height="size + 'px'"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
d="M12 1.559c5.767 0 10.441 4.674 10.441 10.441S17.767 22.441 12 22.441 1.559 17.767 1.559 12 6.233 1.559 12 1.559zm.609 13.474H11.39a.5.5 0 00-.5.5v1.217a.5.5 0 00.5.5h1.218a.5.5 0 00.5-.5v-1.217a.5.5 0 00-.5-.5zm-.209-8.8h-.8a.5.5 0 00-.5.5v6.702a.5.5 0 00.5.5h.8a.5.5 0 00.5-.5V6.732a.5.5 0 00-.5-.5z"
|
|
10
|
-
fill="var(--ct-color-warning)"
|
|
11
|
-
/>
|
|
12
|
-
</svg>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: "WarningIcon",
|
|
18
|
-
props: {
|
|
19
|
-
size: {
|
|
20
|
-
type: [Number, String],
|
|
21
|
-
default: 18,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
:width="size + 'px'"
|
|
4
|
+
:height="size + 'px'"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M12 1.559c5.767 0 10.441 4.674 10.441 10.441S17.767 22.441 12 22.441 1.559 17.767 1.559 12 6.233 1.559 12 1.559zm.609 13.474H11.39a.5.5 0 00-.5.5v1.217a.5.5 0 00.5.5h1.218a.5.5 0 00.5-.5v-1.217a.5.5 0 00-.5-.5zm-.209-8.8h-.8a.5.5 0 00-.5.5v6.702a.5.5 0 00.5.5h.8a.5.5 0 00.5-.5V6.732a.5.5 0 00-.5-.5z"
|
|
10
|
+
fill="var(--ct-color-warning)"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "WarningIcon",
|
|
18
|
+
props: {
|
|
19
|
+
size: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 18,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import CtMessage from './src/method.js';
|
|
2
|
-
|
|
3
|
-
/* istanbul ignore next */
|
|
4
|
-
CtMessage.install = function (app) {
|
|
5
|
-
app.config.globalProperties['CtMessage'] = CtMessage;
|
|
6
|
-
app.provide('CtMessage', CtMessage);
|
|
7
|
-
};
|
|
8
|
-
|
|
1
|
+
import CtMessage from './src/method.js';
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
CtMessage.install = function (app) {
|
|
5
|
+
app.config.globalProperties['CtMessage'] = CtMessage;
|
|
6
|
+
app.provide('CtMessage', CtMessage);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
9
|
export default CtMessage;
|