提交 7658f4d6 作者: vben

fix: typo

上级 404c73de
......@@ -4,9 +4,10 @@
"scripts": {
"bootstrap": "yarn install",
"serve": "esno ./build/script/preserve.ts && cross-env NODE_ENV=development vite",
"build": "rimraf dist && cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
"build": " rimraf dist && cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
"build:site": "cross-env SITE=true npm run build ",
"build:no-cache": "yarn clean:cache && npm run build",
"typecheck": "typecheck .",
"report": "cross-env REPORT=true npm run build ",
"preview": "npm run build && esno ./build/script/preview.ts",
"preview:dist": "esno ./build/script/preview.ts",
......@@ -59,6 +60,8 @@
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"@vue/compiler-sfc": "^3.0.2",
"@vuedx/typecheck": "^0.2.4-0",
"@vuedx/typescript-plugin-vue": "^0.2.4-0",
"autoprefixer": "^9.8.6",
"commitizen": "^4.2.2",
"conventional-changelog-cli": "^2.1.0",
......
......@@ -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
......
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)
......
<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));
}
......
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 '*.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;
// }
declare module 'ant-design-vue/es/locale/zh_CN';
declare module 'globby!/@/router/routes/modules/**/*.@(ts)';
declare module 'globby!/@/router/menus/modules/**/*.@(ts)';
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 const React: string;
declare module '*.bmp' {
const src: string;
export default src;
......@@ -33,51 +54,50 @@ declare module '*.webp' {
export default src;
}
declare module '*.svg' {
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;
readonly [className: string]: string;
};
export default content;
}
declare module '*.less' {
const content: {
[className: string]: string;
readonly [className: string]: string;
};
export default content;
}
declare module '*.styl' {
const content: {
[className: string]: string;
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' {
/** css 模块
*/
const content: {
[localClassName: string]: string;
};
export default content;
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: '定高/头部自定义',
......
......@@ -10,6 +10,7 @@
"jsx": "react",
"baseUrl": ".",
"allowJs": true,
"sourceMap": true,
"esModuleInterop": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
......@@ -26,6 +27,17 @@
]
}
},
"plugins": [
{
"name": "@vuedx/typescript-plugin-vue"
}
],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"exclude": [
"node_modules",
"dist",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论