mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 15:41:32 +08:00
fix: typo
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
props: {
|
||||
// 指定角色可见
|
||||
value: {
|
||||
type: [Number, Array, String] as PropType<RoleEnum | RoleEnum[]>,
|
||||
type: [Number, Array, String] as PropType<RoleEnum | RoleEnum[] | string | string[]>,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
|
@@ -35,7 +35,7 @@
|
||||
default: 'throttle',
|
||||
},
|
||||
color: {
|
||||
type: String as PropType<'error' | 'warning' | 'success'>,
|
||||
type: String as PropType<'error' | 'warning' | 'success' | ''>,
|
||||
},
|
||||
// 防抖节流时间
|
||||
throttleTime: {
|
||||
|
@@ -10,7 +10,7 @@ export interface DescItem {
|
||||
labelStyle?: any;
|
||||
|
||||
field: string;
|
||||
label: string;
|
||||
label: any;
|
||||
// 和并列
|
||||
span?: number;
|
||||
show?: (...arg: any) => boolean;
|
||||
@@ -30,7 +30,7 @@ export interface DescOptions {
|
||||
* 数据
|
||||
* @type object
|
||||
*/
|
||||
data: object;
|
||||
data: any;
|
||||
/**
|
||||
* 内置的CollapseContainer组件配置
|
||||
* @type CollapseContainerOptions
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { ColSpanType } from 'ant-design-vue/types/grid/col';
|
||||
|
||||
export interface ColEx {
|
||||
style: object;
|
||||
style?: any;
|
||||
/**
|
||||
* raster number of cells to occupy, 0 corresponds to display: none
|
||||
* @default none (0)
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="tinymce-container" :style="{ width: containerWidth }">
|
||||
<textarea :id="tinymceId" visibility="hidden" ref="elRef"></textarea>
|
||||
<textarea :id="tinymceId" ref="elRef"></textarea>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import { useScript } from '/@/hooks/web/useScript';
|
||||
import { snowUuid } from '/@/utils/uuid';
|
||||
import { bindHandlers } from './helper';
|
||||
// import lineHeight from './lineHeight';
|
||||
import lineHeight from './lineHeight';
|
||||
|
||||
const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
}
|
||||
|
||||
function initEditor() {
|
||||
// getTinymce().PluginManager.add('lineHeight', lineHeight(getTinymce()));
|
||||
getTinymce().PluginManager.add('lineHeight', lineHeight(getTinymce()));
|
||||
getTinymce().init(unref(initOptions));
|
||||
}
|
||||
|
||||
|
4
src/types/module.d.ts
vendored
Normal file
4
src/types/module.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare module 'ant-design-vue/es/locale/zh_CN';
|
||||
declare module 'globby!/@/router/routes/modules/**/*.@(ts)';
|
||||
declare module 'globby!/@/router/menus/modules/**/*.@(ts)';
|
||||
declare const React: string;
|
11
src/types/shim-vue.d.ts
vendored
11
src/types/shim-vue.d.ts
vendored
@@ -1,11 +0,0 @@
|
||||
declare module '*.vue' {
|
||||
import { defineComponent } from 'vue';
|
||||
const component: ReturnType<defineComponent>;
|
||||
// import { ComponentOptions } from 'vue';
|
||||
// const component: ReturnType<ComponentOptions>;
|
||||
export default component;
|
||||
}
|
||||
// declare module '*.vue' {
|
||||
// import Vue from 'vue';
|
||||
// export default Vue;
|
||||
// }
|
83
src/types/source.d.ts
vendored
83
src/types/source.d.ts
vendored
@@ -1,83 +0,0 @@
|
||||
declare module 'ant-design-vue/es/locale/zh_CN';
|
||||
declare module 'globby!/@/router/routes/modules/**/*.@(ts)';
|
||||
declare module 'globby!/@/router/menus/modules/**/*.@(ts)';
|
||||
|
||||
declare const React: string;
|
||||
declare module '*.bmp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.gif' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpeg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.png' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.json' {
|
||||
/** 得到json表达的对象/数组【混入到代码中】
|
||||
*/
|
||||
const content: any | any[];
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
/** 文件路径
|
||||
*/
|
||||
const content: string;
|
||||
export = content;
|
||||
}
|
||||
declare module '*.scss' {
|
||||
/** scss 导出 (:export{})
|
||||
*/
|
||||
const content: {
|
||||
[className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.less' {
|
||||
const content: {
|
||||
[className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.styl' {
|
||||
const content: {
|
||||
[className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.css' {
|
||||
/** 一个空对象
|
||||
*/
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.module.scss' {
|
||||
/** css 模块
|
||||
*/
|
||||
const content: {
|
||||
[localClassName: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
103
src/types/vue-app-env.d.ts
vendored
Normal file
103
src/types/vue-app-env.d.ts
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
declare module '*.vue' {
|
||||
import { defineComponent } from 'vue';
|
||||
const Component: ReturnType<typeof defineComponent>;
|
||||
export default Component;
|
||||
}
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface Process {
|
||||
env: ProcessEnv;
|
||||
}
|
||||
interface ProcessEnv {
|
||||
/**
|
||||
* By default, there are two modes in Vite:
|
||||
*
|
||||
* * `development` is used by vite and vite serve
|
||||
* * `production` is used by vite build
|
||||
*
|
||||
* You can overwrite the default mode used for a command by passing the --mode option flag.
|
||||
*
|
||||
*/
|
||||
readonly NODE_ENV: 'development' | 'production';
|
||||
}
|
||||
}
|
||||
|
||||
declare let process: NodeJS.Process;
|
||||
|
||||
declare module '*.bmp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.gif' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpeg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.png' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.json' {
|
||||
const content: any | any[];
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.scss' {
|
||||
const content: {
|
||||
readonly [className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.less' {
|
||||
const content: {
|
||||
readonly [className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.styl' {
|
||||
const content: {
|
||||
readonly [className: string]: string;
|
||||
};
|
||||
export default content;
|
||||
}
|
||||
declare module '*.css' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.module.css' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.scss' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.sass' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
@@ -4,7 +4,7 @@
|
||||
<template #customTitle>
|
||||
<span>
|
||||
姓名
|
||||
<BaseHelp class="ml-2" text="姓名" />
|
||||
<BasicHelp class="ml-2" text="姓名" />
|
||||
</span>
|
||||
</template>
|
||||
<template #customAddress>
|
||||
@@ -20,9 +20,10 @@
|
||||
import { getCustomHeaderColumns } from './tableData';
|
||||
import { FormOutlined } from '@ant-design/icons-vue';
|
||||
import { demoListApi } from '/@/api/demo/table';
|
||||
import { BasicHelp } from '/@/components/Basic';
|
||||
|
||||
export default defineComponent({
|
||||
components: { BasicTable, FormOutlined },
|
||||
components: { BasicTable, FormOutlined, BasicHelp },
|
||||
setup() {
|
||||
const [registerTable] = useTable({
|
||||
title: '定高/头部自定义',
|
||||
|
Reference in New Issue
Block a user