@timus-networks/theme 2.0.1 → 2.0.2
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 +34 -49
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +40 -18
- package/dist/runtime/components/development/example.alert.vue +29 -0
- package/dist/runtime/components/development/example.avatar.vue +85 -0
- package/dist/runtime/components/development/example.badge.vue +93 -0
- package/dist/runtime/components/development/example.breadcrumb.vue +54 -0
- package/dist/runtime/components/development/example.button.vue +235 -0
- package/dist/runtime/components/{example.button.vue.d.ts → development/example.button.vue.d.ts} +2 -1
- package/dist/runtime/components/development/example.card.vue +68 -0
- package/dist/runtime/components/development/example.checkbox.vue +176 -0
- package/dist/runtime/components/{example.checkbox.vue.d.ts → development/example.checkbox.vue.d.ts} +2 -2
- package/dist/runtime/components/development/example.collapse.vue +38 -0
- package/dist/runtime/components/development/example.datepicker.vue +193 -0
- package/dist/runtime/components/development/example.description.vue +94 -0
- package/dist/runtime/components/{example.dialog.vue → development/example.dialog.vue} +21 -24
- package/dist/runtime/components/development/example.dropdown.vue +166 -0
- package/dist/runtime/components/development/example.form.vue +488 -0
- package/dist/runtime/components/development/example.input.vue +270 -0
- package/dist/runtime/components/development/example.input.vue.d.ts +23 -0
- package/dist/runtime/components/development/example.link.vue +68 -0
- package/dist/runtime/components/development/example.message.vue +64 -0
- package/dist/runtime/components/development/example.notification.vue +75 -0
- package/dist/runtime/components/development/example.number.vue +70 -0
- package/dist/runtime/components/development/example.pagination.vue +89 -0
- package/dist/runtime/components/development/example.popover.vue +151 -0
- package/dist/runtime/components/development/example.radio.vue +163 -0
- package/dist/runtime/components/{example.radio.vue.d.ts → development/example.radio.vue.d.ts} +3 -2
- package/dist/runtime/components/development/example.select.vue +588 -0
- package/dist/runtime/components/{example.select.vue.d.ts → development/example.select.vue.d.ts} +3 -2
- package/dist/runtime/components/development/example.sidebar.vue +101 -0
- package/dist/runtime/components/development/example.static.vue +50 -0
- package/dist/runtime/components/development/example.switch.vue +101 -0
- package/dist/runtime/components/{example.table.vue → development/example.table.vue} +8 -22
- package/dist/runtime/components/development/example.tag.vue +255 -0
- package/dist/runtime/components/development/example.timepicker.vue +89 -0
- package/dist/runtime/components/development/example.tooltip.vue +104 -0
- package/dist/runtime/components/development/example.upload.vue +84 -0
- package/dist/runtime/components/production/html-encode.vue +96 -0
- package/dist/runtime/components/production/timus-breadcrumb.d.ts +36 -0
- package/dist/runtime/components/production/timus-breadcrumb.js +224 -0
- package/dist/runtime/components/production/timus-breadcrumb.mjs +224 -0
- package/dist/runtime/components/production/timus-breadcrumb.vue +83 -0
- package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +340 -0
- package/dist/runtime/composables/useBreadcrumb.d.ts +8 -0
- package/dist/runtime/composables/useBreadcrumb.js +53 -0
- package/dist/runtime/composables/useBreadcrumb.mjs +53 -0
- package/dist/runtime/pages/theme.vue +44 -13
- package/dist/runtime/plugins/disable-warnings-plugin.js +18 -0
- package/dist/runtime/plugins/disable-warnings-plugin.mjs +18 -0
- package/dist/runtime/public/scss/element-plus/affix.css +28 -0
- package/dist/runtime/public/scss/element-plus/alert.css +116 -20
- package/dist/runtime/public/scss/element-plus/anchor-link.css +28 -0
- package/dist/runtime/public/scss/element-plus/anchor.css +28 -0
- package/dist/runtime/public/scss/element-plus/aside.css +28 -0
- package/dist/runtime/public/scss/element-plus/autocomplete.css +28 -0
- package/dist/runtime/public/scss/element-plus/avatar.css +60 -10
- package/dist/runtime/public/scss/element-plus/backtop.css +28 -0
- package/dist/runtime/public/scss/element-plus/badge.css +30 -2
- package/dist/runtime/public/scss/element-plus/base.css +31 -3
- package/dist/runtime/public/scss/element-plus/breadcrumb.css +46 -6
- package/dist/runtime/public/scss/element-plus/button-group.css +154 -32
- package/dist/runtime/public/scss/element-plus/button.css +70 -24
- package/dist/runtime/public/scss/element-plus/calendar.css +28 -0
- package/dist/runtime/public/scss/element-plus/card.css +41 -6
- package/dist/runtime/public/scss/element-plus/carousel-item.css +28 -0
- package/dist/runtime/public/scss/element-plus/carousel.css +28 -0
- package/dist/runtime/public/scss/element-plus/cascader-panel.css +28 -0
- package/dist/runtime/public/scss/element-plus/cascader.css +28 -0
- package/dist/runtime/public/scss/element-plus/check-tag.css +28 -0
- package/dist/runtime/public/scss/element-plus/checkbox-button.css +33 -0
- package/dist/runtime/public/scss/element-plus/checkbox-group.css +28 -0
- package/dist/runtime/public/scss/element-plus/checkbox.css +28 -0
- package/dist/runtime/public/scss/element-plus/col.css +28 -0
- package/dist/runtime/public/scss/element-plus/collapse.css +28 -0
- package/dist/runtime/public/scss/element-plus/color-picker.css +28 -0
- package/dist/runtime/public/scss/element-plus/common/popup.css +28 -0
- package/dist/runtime/public/scss/element-plus/common/transition.css +28 -0
- package/dist/runtime/public/scss/element-plus/common/var.css +28 -0
- package/dist/runtime/public/scss/element-plus/container.css +28 -0
- package/dist/runtime/public/scss/element-plus/dark/css-vars.css +28 -0
- package/dist/runtime/public/scss/element-plus/dark/var.css +28 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +76 -14
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +41 -9
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +31 -3
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +28 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +69 -6
- package/dist/runtime/public/scss/element-plus/date-picker/picker.css +28 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +56 -16
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +39 -4
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +31 -4
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +28 -0
- package/dist/runtime/public/scss/element-plus/date-picker.css +134 -50
- package/dist/runtime/public/scss/element-plus/descriptions-item.css +48 -8
- package/dist/runtime/public/scss/element-plus/descriptions.css +78 -16
- package/dist/runtime/public/scss/element-plus/dialog.css +30 -2
- package/dist/runtime/public/scss/element-plus/display.css +28 -0
- package/dist/runtime/public/scss/element-plus/divider.css +28 -0
- package/dist/runtime/public/scss/element-plus/drawer.css +28 -0
- package/dist/runtime/public/scss/element-plus/dropdown.css +43 -12
- package/dist/runtime/public/scss/element-plus/empty.css +28 -0
- package/dist/runtime/public/scss/element-plus/footer.css +28 -0
- package/dist/runtime/public/scss/element-plus/form.css +28 -0
- package/dist/runtime/public/scss/element-plus/header.css +28 -0
- package/dist/runtime/public/scss/element-plus/icon.css +30 -2
- package/dist/runtime/public/scss/element-plus/image-viewer.css +28 -0
- package/dist/runtime/public/scss/element-plus/image.css +28 -0
- package/dist/runtime/public/scss/element-plus/index.css +920 -329
- package/dist/runtime/public/scss/element-plus/input-number.css +50 -6
- package/dist/runtime/public/scss/element-plus/input.css +28 -0
- package/dist/runtime/public/scss/element-plus/link.css +59 -28
- package/dist/runtime/public/scss/element-plus/loading.css +28 -0
- package/dist/runtime/public/scss/element-plus/main.css +28 -0
- package/dist/runtime/public/scss/element-plus/mention.css +28 -0
- package/dist/runtime/public/scss/element-plus/menu.css +28 -0
- package/dist/runtime/public/scss/element-plus/message-box.css +34 -2
- package/dist/runtime/public/scss/element-plus/message.css +161 -31
- package/dist/runtime/public/scss/element-plus/mixins/mixins.css +28 -0
- package/dist/runtime/public/scss/element-plus/notification.css +41 -9
- package/dist/runtime/public/scss/element-plus/option-group.css +28 -0
- package/dist/runtime/public/scss/element-plus/option.css +29 -0
- package/dist/runtime/public/scss/element-plus/overlay.css +28 -0
- package/dist/runtime/public/scss/element-plus/page-header.css +28 -0
- package/dist/runtime/public/scss/element-plus/pagination.css +64 -11
- package/dist/runtime/public/scss/element-plus/popconfirm.css +28 -0
- package/dist/runtime/public/scss/element-plus/popover.css +28 -0
- package/dist/runtime/public/scss/element-plus/popper.css +29 -1
- package/dist/runtime/public/scss/element-plus/progress.css +28 -0
- package/dist/runtime/public/scss/element-plus/radio-button.css +36 -2
- package/dist/runtime/public/scss/element-plus/radio-group.css +28 -0
- package/dist/runtime/public/scss/element-plus/radio.css +28 -0
- package/dist/runtime/public/scss/element-plus/rate.css +28 -0
- package/dist/runtime/public/scss/element-plus/reset.css +28 -0
- package/dist/runtime/public/scss/element-plus/result.css +28 -0
- package/dist/runtime/public/scss/element-plus/row.css +28 -0
- package/dist/runtime/public/scss/element-plus/scrollbar.css +28 -0
- package/dist/runtime/public/scss/element-plus/segmented.css +28 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +28 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown.css +28 -0
- package/dist/runtime/public/scss/element-plus/select-v2.css +48 -23
- package/dist/runtime/public/scss/element-plus/select.css +48 -23
- package/dist/runtime/public/scss/element-plus/skeleton-item.css +28 -0
- package/dist/runtime/public/scss/element-plus/skeleton.css +28 -0
- package/dist/runtime/public/scss/element-plus/slider.css +28 -0
- package/dist/runtime/public/scss/element-plus/space.css +28 -0
- package/dist/runtime/public/scss/element-plus/spinner.css +28 -0
- package/dist/runtime/public/scss/element-plus/statistic.css +28 -0
- package/dist/runtime/public/scss/element-plus/step.css +28 -0
- package/dist/runtime/public/scss/element-plus/steps.css +28 -0
- package/dist/runtime/public/scss/element-plus/switch.css +116 -20
- package/dist/runtime/public/scss/element-plus/table-column.css +29 -1
- package/dist/runtime/public/scss/element-plus/table-v2.css +28 -0
- package/dist/runtime/public/scss/element-plus/table.css +28 -0
- package/dist/runtime/public/scss/element-plus/tabs.css +30 -2
- package/dist/runtime/public/scss/element-plus/tag.css +28 -0
- package/dist/runtime/public/scss/element-plus/text.css +34 -0
- package/dist/runtime/public/scss/element-plus/time-picker.css +111 -30
- package/dist/runtime/public/scss/element-plus/time-select.css +76 -14
- package/dist/runtime/public/scss/element-plus/timeline-item.css +28 -0
- package/dist/runtime/public/scss/element-plus/timeline.css +28 -0
- package/dist/runtime/public/scss/element-plus/tooltip-v2.css +28 -0
- package/dist/runtime/public/scss/element-plus/tour.css +30 -2
- package/dist/runtime/public/scss/element-plus/transfer.css +28 -0
- package/dist/runtime/public/scss/element-plus/tree-select.css +28 -0
- package/dist/runtime/public/scss/element-plus/tree.css +28 -0
- package/dist/runtime/public/scss/element-plus/upload.css +28 -0
- package/dist/runtime/public/scss/element-plus/var.css +29 -1
- package/dist/runtime/public/scss/element-plus/virtual-list.css +28 -0
- package/dist/runtime/public/scss/theme.css +79 -2
- package/dist/runtime/types.d.ts +7 -16
- package/package.json +1 -1
- package/dist/runtime/components/example.button.vue +0 -237
- package/dist/runtime/components/example.checkbox.vue +0 -190
- package/dist/runtime/components/example.form.vue +0 -494
- package/dist/runtime/components/example.input.vue +0 -286
- package/dist/runtime/components/example.input.vue.d.ts +0 -20
- package/dist/runtime/components/example.popover.vue +0 -161
- package/dist/runtime/components/example.radio.vue +0 -165
- package/dist/runtime/components/example.select.vue +0 -591
- package/dist/runtime/components/example.sidebar.vue +0 -104
- package/dist/runtime/components/example.tag.vue +0 -279
- package/dist/runtime/components/html-encode.vue +0 -37
- package/dist/runtime/plugins/element-extend-plugin.d.ts +0 -38
- package/dist/runtime/plugins/element-extend-plugin.js +0 -39
- package/dist/runtime/plugins/element-extend-plugin.mjs +0 -39
- package/dist/runtime/plugins/experimental-size-plugin.js +0 -13
- package/dist/runtime/plugins/experimental-size-plugin.mjs +0 -13
- /package/dist/runtime/plugins/{experimental-size-plugin.d.ts → disable-warnings-plugin.d.ts} +0 -0
- /package/dist/runtime/plugins/{theme-provider.d.ts → theme-provider-plugin.d.ts} +0 -0
- /package/dist/runtime/plugins/{theme-provider.js → theme-provider-plugin.js} +0 -0
- /package/dist/runtime/plugins/{theme-provider.mjs → theme-provider-plugin.mjs} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
import { useRoute, useRouter } from "#app";
|
|
3
|
+
export function useBreadcrumb() {
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const router = useRouter();
|
|
6
|
+
const activeTab = ref("");
|
|
7
|
+
const breadcrumbTimeout = ref(null);
|
|
8
|
+
const tabList = ref([]);
|
|
9
|
+
onUnmounted(() => {
|
|
10
|
+
if (breadcrumbTimeout.value) {
|
|
11
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const tabChanged = (tab, _$event = null) => {
|
|
15
|
+
if (breadcrumbTimeout.value) {
|
|
16
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
17
|
+
}
|
|
18
|
+
router.push({
|
|
19
|
+
path: route.path,
|
|
20
|
+
query: {
|
|
21
|
+
...route.query,
|
|
22
|
+
...tab.paneName && { tab: tab.paneName },
|
|
23
|
+
...route.query.page && { page: route.query?.tab !== tab.paneName ? 1 : route.query.page }
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const setActiveTab = (tab, initial = false) => {
|
|
28
|
+
breadcrumbTimeout.value = setTimeout(() => {
|
|
29
|
+
const found = tabList.value.find((item) => item === (tab || route.query.tab));
|
|
30
|
+
activeTab.value = found || tabList.value[0];
|
|
31
|
+
initial && tabChanged({ paneName: activeTab.value });
|
|
32
|
+
}, 100);
|
|
33
|
+
};
|
|
34
|
+
const setupBreadcrumbs = (tabs) => {
|
|
35
|
+
tabList.value = tabs;
|
|
36
|
+
setActiveTab(tabs[0], true);
|
|
37
|
+
watch(
|
|
38
|
+
() => route.query,
|
|
39
|
+
(current, before) => {
|
|
40
|
+
if (before && current.tab && before.tab && current.tab !== before.tab) {
|
|
41
|
+
setActiveTab(current.tab);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ deep: true, immediate: true }
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
activeTab,
|
|
49
|
+
tabChanged,
|
|
50
|
+
setActiveTab,
|
|
51
|
+
setupBreadcrumbs
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
import { useRoute, useRouter } from "#app";
|
|
3
|
+
export function useBreadcrumb() {
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const router = useRouter();
|
|
6
|
+
const activeTab = ref("");
|
|
7
|
+
const breadcrumbTimeout = ref(null);
|
|
8
|
+
const tabList = ref([]);
|
|
9
|
+
onUnmounted(() => {
|
|
10
|
+
if (breadcrumbTimeout.value) {
|
|
11
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const tabChanged = (tab, _$event = null) => {
|
|
15
|
+
if (breadcrumbTimeout.value) {
|
|
16
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
17
|
+
}
|
|
18
|
+
router.push({
|
|
19
|
+
path: route.path,
|
|
20
|
+
query: {
|
|
21
|
+
...route.query,
|
|
22
|
+
...tab.paneName && { tab: tab.paneName },
|
|
23
|
+
...route.query.page && { page: route.query?.tab !== tab.paneName ? 1 : route.query.page }
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const setActiveTab = (tab, initial = false) => {
|
|
28
|
+
breadcrumbTimeout.value = setTimeout(() => {
|
|
29
|
+
const found = tabList.value.find((item) => item === (tab || route.query.tab));
|
|
30
|
+
activeTab.value = found || tabList.value[0];
|
|
31
|
+
initial && tabChanged({ paneName: activeTab.value });
|
|
32
|
+
}, 100);
|
|
33
|
+
};
|
|
34
|
+
const setupBreadcrumbs = (tabs) => {
|
|
35
|
+
tabList.value = tabs;
|
|
36
|
+
setActiveTab(tabs[0], true);
|
|
37
|
+
watch(
|
|
38
|
+
() => route.query,
|
|
39
|
+
(current, before) => {
|
|
40
|
+
if (before && current.tab && before.tab && current.tab !== before.tab) {
|
|
41
|
+
setActiveTab(current.tab);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ deep: true, immediate: true }
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
activeTab,
|
|
49
|
+
tabChanged,
|
|
50
|
+
setActiveTab,
|
|
51
|
+
setupBreadcrumbs
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
3
|
-
<el-tab-pane label="
|
|
4
|
-
<el-tab-pane label="
|
|
5
|
-
<el-tab-pane label="
|
|
6
|
-
<el-tab-pane label="
|
|
7
|
-
<el-tab-pane label="
|
|
8
|
-
<el-tab-pane label="
|
|
9
|
-
<el-tab-pane label="
|
|
10
|
-
<el-tab-pane label="
|
|
11
|
-
<el-tab-pane label="
|
|
12
|
-
<el-tab-pane label="
|
|
13
|
-
<el-tab-pane label="Dialog" name="
|
|
3
|
+
<el-tab-pane label="Alert" name="alert" lazy><example-alert /></el-tab-pane>
|
|
4
|
+
<el-tab-pane label="Avatar" name="avatar" lazy><example-avatar /></el-tab-pane>
|
|
5
|
+
<el-tab-pane label="Badge" name="badge" lazy><example-badge /></el-tab-pane>
|
|
6
|
+
<el-tab-pane label="Breadcrumb" name="breadcrumb" lazy><example-breadcrumb /></el-tab-pane>
|
|
7
|
+
<el-tab-pane label="Button" name="button"><example-button /></el-tab-pane>
|
|
8
|
+
<el-tab-pane label="Card" name="card" lazy><example-card /></el-tab-pane>
|
|
9
|
+
<el-tab-pane label="Checkbox" name="checkbox" lazy><example-checkbox /></el-tab-pane>
|
|
10
|
+
<el-tab-pane label="Collapse" name="collapse" lazy><example-collapse /></el-tab-pane>
|
|
11
|
+
<el-tab-pane label="DatePicker" name="datepicker" lazy><example-datepicker /></el-tab-pane>
|
|
12
|
+
<el-tab-pane label="Description" name="description" lazy><example-description /></el-tab-pane>
|
|
13
|
+
<el-tab-pane label="Dialog" name="dialog" lazy><example-dialog /></el-tab-pane>
|
|
14
|
+
<el-tab-pane label="Dropdown" name="dropdown" lazy><example-dropdown /></el-tab-pane>
|
|
15
|
+
<el-tab-pane label="Form" name="form" lazy><example-form /></el-tab-pane>
|
|
16
|
+
<el-tab-pane label="Input" name="input"><example-input /></el-tab-pane>
|
|
17
|
+
<el-tab-pane label="Link" name="link" lazy><example-link /></el-tab-pane>
|
|
18
|
+
<el-tab-pane label="Message" name="message" lazy><example-message /></el-tab-pane>
|
|
19
|
+
<el-tab-pane label="Number" name="number" lazy><example-number /></el-tab-pane>
|
|
20
|
+
<el-tab-pane label="Notification" name="notification" lazy><example-notification /></el-tab-pane>
|
|
21
|
+
<el-tab-pane label="Pagination" name="pagination" lazy><example-pagination /></el-tab-pane>
|
|
22
|
+
<el-tab-pane label="Popover" name="popover" lazy><example-popover /></el-tab-pane>
|
|
23
|
+
<el-tab-pane label="Radio" name="radio" lazy><example-radio /></el-tab-pane>
|
|
24
|
+
<el-tab-pane label="Select" name="select" lazy><example-select /></el-tab-pane>
|
|
25
|
+
<el-tab-pane label="Sidebar" name="sidebar" lazy><example-sidebar /></el-tab-pane>
|
|
26
|
+
<el-tab-pane label="Static" name="static" lazy><example-static /></el-tab-pane>
|
|
27
|
+
<el-tab-pane label="Switch" name="switch" lazy><example-switch /></el-tab-pane>
|
|
28
|
+
<el-tab-pane label="Table" name="table" lazy><example-table /></el-tab-pane>
|
|
29
|
+
<el-tab-pane label="Tag" name="tag" lazy><example-tag /></el-tab-pane>
|
|
30
|
+
<el-tab-pane label="TimePicker" name="time" lazy><example-timepicker /></el-tab-pane>
|
|
31
|
+
<el-tab-pane label="Tooltip" name="tooltip" lazy><example-tooltip /></el-tab-pane>
|
|
32
|
+
<el-tab-pane label="Upload" name="upload" lazy><example-upload /></el-tab-pane>
|
|
14
33
|
</el-tabs>
|
|
15
34
|
</template>
|
|
16
35
|
<script lang="ts" setup>
|
|
17
|
-
import type { TabsPaneContext } from '
|
|
36
|
+
import type { TabsPaneContext } from 'element-plus';
|
|
18
37
|
import { ref } from 'vue';
|
|
19
38
|
|
|
20
39
|
import { definePageMeta } from '#imports';
|
|
@@ -23,8 +42,20 @@
|
|
|
23
42
|
layout: 'modules',
|
|
24
43
|
});
|
|
25
44
|
|
|
26
|
-
const activeName = ref('
|
|
45
|
+
const activeName = ref('alert');
|
|
27
46
|
const handleClick = (tab: TabsPaneContext, event: Event) => {
|
|
28
47
|
console.log(tab, event);
|
|
29
48
|
};
|
|
30
49
|
</script>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.comment {
|
|
53
|
+
background-color: var(--el-color-info-light-1);
|
|
54
|
+
border: 1px solid var(--el-color-info-light-2);
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
color: var(--el-color-info-light-9);
|
|
57
|
+
font-family: monospace;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding: 2px 6px;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
3
|
+
const ignoredWarnings = [
|
|
4
|
+
"Invalid prop: validation failed",
|
|
5
|
+
"Invalid prop: custom validator"
|
|
6
|
+
// Add other warnings to ignore here
|
|
7
|
+
];
|
|
8
|
+
if (process.env.NODE_ENV === "development") {
|
|
9
|
+
const originalWarn = console.warn;
|
|
10
|
+
console.warn = (...args) => {
|
|
11
|
+
if (!ignoredWarnings.some((warning) => args[0]?.includes(warning))) {
|
|
12
|
+
console.group("Vue Warning");
|
|
13
|
+
originalWarn(...args);
|
|
14
|
+
console.groupEnd();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
3
|
+
const ignoredWarnings = [
|
|
4
|
+
"Invalid prop: validation failed",
|
|
5
|
+
"Invalid prop: custom validator"
|
|
6
|
+
// Add other warnings to ignore here
|
|
7
|
+
];
|
|
8
|
+
if (process.env.NODE_ENV === "development") {
|
|
9
|
+
const originalWarn = console.warn;
|
|
10
|
+
console.warn = (...args) => {
|
|
11
|
+
if (!ignoredWarnings.some((warning) => args[0]?.includes(warning))) {
|
|
12
|
+
console.group("Vue Warning");
|
|
13
|
+
originalWarn(...args);
|
|
14
|
+
console.groupEnd();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|
|
@@ -274,25 +302,28 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
|
274
302
|
**/
|
|
275
303
|
.el-alert {
|
|
276
304
|
--el-alert-padding: 8px 16px;
|
|
277
|
-
--el-alert-border-radius-base:
|
|
305
|
+
--el-alert-border-radius-base: 4px;
|
|
306
|
+
--el-alert-border-color: var(--el-color-info-light-3);
|
|
278
307
|
--el-alert-title-font-size: 14px;
|
|
279
|
-
--el-alert-title-with-description-font-size:
|
|
308
|
+
--el-alert-title-with-description-font-size: 14px;
|
|
280
309
|
--el-alert-description-font-size: 14px;
|
|
281
|
-
--el-alert-close-font-size:
|
|
310
|
+
--el-alert-close-font-size: 14px;
|
|
282
311
|
--el-alert-close-customed-font-size: 14px;
|
|
283
|
-
--el-alert-icon-size:
|
|
284
|
-
--el-alert-icon-large-size:
|
|
312
|
+
--el-alert-icon-size: 18px;
|
|
313
|
+
--el-alert-icon-large-size: 32px;
|
|
285
314
|
width: 100%;
|
|
286
315
|
padding: var(--el-alert-padding);
|
|
287
316
|
margin: 0;
|
|
288
317
|
box-sizing: border-box;
|
|
289
318
|
border-radius: var(--el-alert-border-radius-base);
|
|
319
|
+
border-width: var(--el-border-width);
|
|
320
|
+
border-style: var(--el-border-style);
|
|
321
|
+
border-color: var(--el-alert-border-color);
|
|
290
322
|
position: relative;
|
|
291
|
-
background-color: var(--el-color-
|
|
323
|
+
background-color: var(--el-color-info-light-1);
|
|
292
324
|
overflow: hidden;
|
|
293
325
|
opacity: 1;
|
|
294
326
|
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
327
|
transition: opacity var(--el-transition-duration-fast);
|
|
297
328
|
}
|
|
298
329
|
.el-alert.is-light .el-alert__close-btn {
|
|
@@ -311,65 +342,129 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
|
311
342
|
}
|
|
312
343
|
|
|
313
344
|
.el-alert--success {
|
|
314
|
-
--el-alert-bg-color: var(--el-color-success-light-
|
|
345
|
+
--el-alert-bg-color: var(--el-color-success-light-1);
|
|
346
|
+
--el-alert-border-color: var(--el-color-success-light-3);
|
|
315
347
|
}
|
|
316
348
|
.el-alert--success.is-light {
|
|
317
349
|
background-color: var(--el-alert-bg-color);
|
|
318
|
-
color: var(--el-color-success);
|
|
350
|
+
color: var(--el-color-success-light-5);
|
|
319
351
|
}
|
|
320
352
|
.el-alert--success.is-light .el-alert__description {
|
|
321
|
-
color: var(--el-color-success);
|
|
353
|
+
color: var(--el-color-success-light-4);
|
|
322
354
|
}
|
|
323
355
|
.el-alert--success.is-dark {
|
|
324
356
|
background-color: var(--el-color-success);
|
|
325
357
|
color: var(--el-color-white);
|
|
326
358
|
}
|
|
359
|
+
.el-alert--success.is-light .el-alert__close-btn {
|
|
360
|
+
color: var(--el-color-success-light-5);
|
|
361
|
+
}
|
|
327
362
|
|
|
328
363
|
.el-alert--info {
|
|
329
|
-
--el-alert-bg-color: var(--el-color-info-light-
|
|
364
|
+
--el-alert-bg-color: var(--el-color-info-light-1);
|
|
365
|
+
--el-alert-border-color: var(--el-color-info-light-3);
|
|
330
366
|
}
|
|
331
367
|
.el-alert--info.is-light {
|
|
332
368
|
background-color: var(--el-alert-bg-color);
|
|
333
|
-
color: var(--el-color-info);
|
|
369
|
+
color: var(--el-color-info-light-5);
|
|
334
370
|
}
|
|
335
371
|
.el-alert--info.is-light .el-alert__description {
|
|
336
|
-
color: var(--el-color-info);
|
|
372
|
+
color: var(--el-color-info-light-4);
|
|
337
373
|
}
|
|
338
374
|
.el-alert--info.is-dark {
|
|
339
375
|
background-color: var(--el-color-info);
|
|
340
376
|
color: var(--el-color-white);
|
|
341
377
|
}
|
|
378
|
+
.el-alert--info.is-light .el-alert__close-btn {
|
|
379
|
+
color: var(--el-color-info-light-5);
|
|
380
|
+
}
|
|
342
381
|
|
|
343
382
|
.el-alert--warning {
|
|
344
|
-
--el-alert-bg-color: var(--el-color-warning-light-
|
|
383
|
+
--el-alert-bg-color: var(--el-color-warning-light-1);
|
|
384
|
+
--el-alert-border-color: var(--el-color-warning-light-3);
|
|
345
385
|
}
|
|
346
386
|
.el-alert--warning.is-light {
|
|
347
387
|
background-color: var(--el-alert-bg-color);
|
|
348
|
-
color: var(--el-color-warning);
|
|
388
|
+
color: var(--el-color-warning-light-5);
|
|
349
389
|
}
|
|
350
390
|
.el-alert--warning.is-light .el-alert__description {
|
|
351
|
-
color: var(--el-color-warning);
|
|
391
|
+
color: var(--el-color-warning-light-4);
|
|
352
392
|
}
|
|
353
393
|
.el-alert--warning.is-dark {
|
|
354
394
|
background-color: var(--el-color-warning);
|
|
355
395
|
color: var(--el-color-white);
|
|
356
396
|
}
|
|
397
|
+
.el-alert--warning.is-light .el-alert__close-btn {
|
|
398
|
+
color: var(--el-color-warning-light-5);
|
|
399
|
+
}
|
|
357
400
|
|
|
358
401
|
.el-alert--error {
|
|
359
|
-
--el-alert-bg-color: var(--el-color-error-light-
|
|
402
|
+
--el-alert-bg-color: var(--el-color-error-light-1);
|
|
403
|
+
--el-alert-border-color: var(--el-color-error-light-3);
|
|
360
404
|
}
|
|
361
405
|
.el-alert--error.is-light {
|
|
362
406
|
background-color: var(--el-alert-bg-color);
|
|
363
|
-
color: var(--el-color-error);
|
|
407
|
+
color: var(--el-color-error-light-5);
|
|
364
408
|
}
|
|
365
409
|
.el-alert--error.is-light .el-alert__description {
|
|
366
|
-
color: var(--el-color-error);
|
|
410
|
+
color: var(--el-color-error-light-4);
|
|
367
411
|
}
|
|
368
412
|
.el-alert--error.is-dark {
|
|
369
413
|
background-color: var(--el-color-error);
|
|
370
414
|
color: var(--el-color-white);
|
|
371
415
|
}
|
|
416
|
+
.el-alert--error.is-light .el-alert__close-btn {
|
|
417
|
+
color: var(--el-color-error-light-5);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.el-alert--danger {
|
|
421
|
+
--el-alert-bg-color: var(--el-color-danger-light-1);
|
|
422
|
+
--el-alert-border-color: var(--el-color-danger-light-3);
|
|
423
|
+
}
|
|
424
|
+
.el-alert--danger.is-light {
|
|
425
|
+
background-color: var(--el-alert-bg-color);
|
|
426
|
+
color: var(--el-color-danger-light-5);
|
|
427
|
+
}
|
|
428
|
+
.el-alert--danger.is-light .el-alert__description {
|
|
429
|
+
color: var(--el-color-danger-light-4);
|
|
430
|
+
}
|
|
431
|
+
.el-alert--danger.is-dark {
|
|
432
|
+
background-color: var(--el-color-danger);
|
|
433
|
+
color: var(--el-color-white);
|
|
434
|
+
}
|
|
435
|
+
.el-alert--danger.is-light .el-alert__close-btn {
|
|
436
|
+
color: var(--el-color-danger-light-5);
|
|
437
|
+
}
|
|
372
438
|
|
|
439
|
+
.el-alert::before {
|
|
440
|
+
font-family: "iconsax" !important;
|
|
441
|
+
-webkit-font-smoothing: antialiased;
|
|
442
|
+
-moz-osx-font-smoothing: grayscale;
|
|
443
|
+
font-style: normal;
|
|
444
|
+
font-variant: normal;
|
|
445
|
+
font-weight: 600;
|
|
446
|
+
line-height: 1;
|
|
447
|
+
speak: never;
|
|
448
|
+
text-transform: none;
|
|
449
|
+
font-size: var(--el-alert-icon-size);
|
|
450
|
+
line-height: 24px;
|
|
451
|
+
margin-right: 8px;
|
|
452
|
+
}
|
|
453
|
+
.el-alert.el-alert--success::before {
|
|
454
|
+
content: "\ec2a";
|
|
455
|
+
}
|
|
456
|
+
.el-alert.el-alert--info::before {
|
|
457
|
+
content: "\eb4d";
|
|
458
|
+
}
|
|
459
|
+
.el-alert.el-alert--warning::before {
|
|
460
|
+
content: "\e9f6";
|
|
461
|
+
}
|
|
462
|
+
.el-alert.el-alert--danger::before, .el-alert.el-alert--error::before {
|
|
463
|
+
content: "\e9c8";
|
|
464
|
+
}
|
|
465
|
+
.el-alert .el-alert__icon {
|
|
466
|
+
display: none;
|
|
467
|
+
}
|
|
373
468
|
.el-alert__content {
|
|
374
469
|
display: flex;
|
|
375
470
|
flex-direction: column;
|
|
@@ -380,6 +475,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
|
380
475
|
font-size: var(--el-alert-icon-size);
|
|
381
476
|
width: var(--el-alert-icon-size);
|
|
382
477
|
margin-right: 8px;
|
|
478
|
+
margin-top: 3px;
|
|
383
479
|
}
|
|
384
480
|
.el-alert .el-alert__icon.is-big {
|
|
385
481
|
font-size: var(--el-alert-icon-large-size);
|
|
@@ -403,7 +499,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
|
403
499
|
font-size: var(--el-alert-close-font-size);
|
|
404
500
|
opacity: 1;
|
|
405
501
|
position: absolute;
|
|
406
|
-
top:
|
|
502
|
+
top: 14px;
|
|
407
503
|
right: 16px;
|
|
408
504
|
cursor: pointer;
|
|
409
505
|
}
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|
|
@@ -203,6 +203,34 @@
|
|
|
203
203
|
:root {
|
|
204
204
|
--el-color-danger-light-9: #7d1f1f;
|
|
205
205
|
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
206
234
|
:root {
|
|
207
235
|
--el-color-success-light-1: #f0f8ed;
|
|
208
236
|
}
|