* chore(@vben/common-ui): 增加拖拽校验组件 * chore: 增加样式 * Merge branch 'main' into wangjue-verify-comp * chore: 封装action组件 * chore: 拆分完成拖拽功能 * chore: 样式调整为tailwindcss语法 * chore: 导出check图标 * chore: 拖动的图标变为@vben/icons的 * chore: 完成插槽功能迁移 * fix: ci error * chore: 适配暗黑主题 * chore: 国际化 * chore: resolve conflict * chore: 迁移v2的图片旋转校验组件 * chore: 完善选择校验demo * chore: 转换为tailwindcss * chore: 替换为系统的颜色变量 * chore: 使用interface代替组件的props声明 * chore: 调整props * chore: 优化demo背景 * chore: follow suggest * chore: rm unnecessary style tag * chore: update demo * perf: improve the experience of Captcha components --------- Co-authored-by: vince <vince292007@gmail.com> Co-authored-by: Vben <ann.vben@gmail.com>
146 lines
4.2 KiB
TypeScript
146 lines
4.2 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
import { $t } from '#/locales';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
component: BasicLayout,
|
|
meta: {
|
|
icon: 'ion:layers-outline',
|
|
keepAlive: true,
|
|
order: 1000,
|
|
title: $t('page.examples.title'),
|
|
},
|
|
name: 'Examples',
|
|
path: '/examples',
|
|
children: [
|
|
{
|
|
name: 'ModalExample',
|
|
path: '/examples/modal',
|
|
component: () => import('#/views/examples/modal/index.vue'),
|
|
meta: {
|
|
icon: 'system-uicons:window-content',
|
|
title: $t('page.examples.modal.title'),
|
|
},
|
|
},
|
|
{
|
|
name: 'DrawerExample',
|
|
path: '/examples/drawer',
|
|
component: () => import('#/views/examples/drawer/index.vue'),
|
|
meta: {
|
|
icon: 'iconoir:drawer',
|
|
title: $t('page.examples.drawer.title'),
|
|
},
|
|
},
|
|
{
|
|
name: 'EllipsisExample',
|
|
path: '/examples/ellipsis',
|
|
component: () => import('#/views/examples/ellipsis/index.vue'),
|
|
meta: {
|
|
icon: 'ion:ellipsis-horizontal',
|
|
title: $t('page.examples.ellipsis.title'),
|
|
},
|
|
},
|
|
|
|
{
|
|
name: 'FormExample',
|
|
path: '/examples/form',
|
|
meta: {
|
|
icon: 'mdi:form-select',
|
|
title: $t('page.examples.form.title'),
|
|
},
|
|
children: [
|
|
{
|
|
name: 'FormBasicExample',
|
|
path: '/examples/form/basic',
|
|
component: () => import('#/views/examples/form/basic.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.basic'),
|
|
},
|
|
},
|
|
{
|
|
name: 'FormQueryExample',
|
|
path: '/examples/form/query',
|
|
component: () => import('#/views/examples/form/query.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.query'),
|
|
},
|
|
},
|
|
{
|
|
name: 'FormRulesExample',
|
|
path: '/examples/form/rules',
|
|
component: () => import('#/views/examples/form/rules.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.rules'),
|
|
},
|
|
},
|
|
{
|
|
name: 'FormDynamicExample',
|
|
path: '/examples/form/dynamic',
|
|
component: () => import('#/views/examples/form/dynamic.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.dynamic'),
|
|
},
|
|
},
|
|
{
|
|
name: 'FormCustomExample',
|
|
path: '/examples/form/custom',
|
|
component: () => import('#/views/examples/form/custom.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.custom'),
|
|
},
|
|
},
|
|
{
|
|
name: 'FormApiExample',
|
|
path: '/examples/form/api',
|
|
component: () => import('#/views/examples/form/api.vue'),
|
|
meta: {
|
|
title: $t('page.examples.form.api'),
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'CaptchaExample',
|
|
path: '/examples/captcha',
|
|
meta: {
|
|
icon: 'logos:recaptcha',
|
|
title: $t('page.examples.captcha.title'),
|
|
},
|
|
children: [
|
|
{
|
|
name: 'DragVerifyExample',
|
|
path: '/examples/captcha/slider',
|
|
component: () =>
|
|
import('#/views/examples/captcha/slider-captcha.vue'),
|
|
meta: {
|
|
title: $t('page.examples.captcha.sliderCaptcha'),
|
|
},
|
|
},
|
|
{
|
|
name: 'RotateVerifyExample',
|
|
path: '/examples/captcha/slider-rotate',
|
|
component: () =>
|
|
import('#/views/examples/captcha/slider-rotate-captcha.vue'),
|
|
meta: {
|
|
title: $t('page.examples.captcha.sliderRotateCaptcha'),
|
|
},
|
|
},
|
|
{
|
|
name: 'CaptchaPointSelectionExample',
|
|
path: '/examples/captcha/point-selection',
|
|
component: () =>
|
|
import('#/views/examples/captcha/point-selection-captcha.vue'),
|
|
meta: {
|
|
title: $t('page.examples.captcha.pointSelection'),
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|