提交 7658f4d6 作者: vben

fix: typo

上级 404c73de
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
"scripts": { "scripts": {
"bootstrap": "yarn install", "bootstrap": "yarn install",
"serve": "esno ./build/script/preserve.ts && cross-env NODE_ENV=development vite", "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:site": "cross-env SITE=true npm run build ",
"build:no-cache": "yarn clean:cache && npm run build", "build:no-cache": "yarn clean:cache && npm run build",
"typecheck": "typecheck .",
"report": "cross-env REPORT=true npm run build ", "report": "cross-env REPORT=true npm run build ",
"preview": "npm run build && esno ./build/script/preview.ts", "preview": "npm run build && esno ./build/script/preview.ts",
"preview:dist": "esno ./build/script/preview.ts", "preview:dist": "esno ./build/script/preview.ts",
...@@ -59,6 +60,8 @@ ...@@ -59,6 +60,8 @@
"@typescript-eslint/eslint-plugin": "^4.6.0", "@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0", "@typescript-eslint/parser": "^4.6.0",
"@vue/compiler-sfc": "^3.0.2", "@vue/compiler-sfc": "^3.0.2",
"@vuedx/typecheck": "^0.2.4-0",
"@vuedx/typescript-plugin-vue": "^0.2.4-0",
"autoprefixer": "^9.8.6", "autoprefixer": "^9.8.6",
"commitizen": "^4.2.2", "commitizen": "^4.2.2",
"conventional-changelog-cli": "^2.1.0", "conventional-changelog-cli": "^2.1.0",
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
props: { props: {
// 指定角色可见 // 指定角色可见
value: { value: {
type: [Number, Array, String] as PropType<RoleEnum | RoleEnum[]>, type: [Number, Array, String] as PropType<RoleEnum | RoleEnum[] | string | string[]>,
default: '', default: '',
}, },
}, },
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
default: 'throttle', default: 'throttle',
}, },
color: { color: {
type: String as PropType<'error' | 'warning' | 'success'>, type: String as PropType<'error' | 'warning' | 'success' | ''>,
}, },
// 防抖节流时间 // 防抖节流时间
throttleTime: { throttleTime: {
......
...@@ -10,7 +10,7 @@ export interface DescItem { ...@@ -10,7 +10,7 @@ export interface DescItem {
labelStyle?: any; labelStyle?: any;
field: string; field: string;
label: string; label: any;
// 和并列 // 和并列
span?: number; span?: number;
show?: (...arg: any) => boolean; show?: (...arg: any) => boolean;
...@@ -30,7 +30,7 @@ export interface DescOptions { ...@@ -30,7 +30,7 @@ export interface DescOptions {
* 数据 * 数据
* @type object * @type object
*/ */
data: object; data: any;
/** /**
* 内置的CollapseContainer组件配置 * 内置的CollapseContainer组件配置
* @type CollapseContainerOptions * @type CollapseContainerOptions
......
import { ColSpanType } from 'ant-design-vue/types/grid/col'; import { ColSpanType } from 'ant-design-vue/types/grid/col';
export interface ColEx { export interface ColEx {
style: object; style?: any;
/** /**
* raster number of cells to occupy, 0 corresponds to display: none * raster number of cells to occupy, 0 corresponds to display: none
* @default none (0) * @default none (0)
......
<template> <template>
<div class="tinymce-container" :style="{ width: containerWidth }"> <div class="tinymce-container" :style="{ width: containerWidth }">
<textarea :id="tinymceId" visibility="hidden" ref="elRef"></textarea> <textarea :id="tinymceId" ref="elRef"></textarea>
</div> </div>
</template> </template>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
import { useScript } from '/@/hooks/web/useScript'; import { useScript } from '/@/hooks/web/useScript';
import { snowUuid } from '/@/utils/uuid'; import { snowUuid } from '/@/utils/uuid';
import { bindHandlers } from './helper'; 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'; const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
} }
function initEditor() { function initEditor() {
// getTinymce().PluginManager.add('lineHeight', lineHeight(getTinymce())); getTinymce().PluginManager.add('lineHeight', lineHeight(getTinymce()));
getTinymce().init(unref(initOptions)); 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 '*.vue' {
declare module 'globby!/@/router/routes/modules/**/*.@(ts)'; import { defineComponent } from 'vue';
declare module 'globby!/@/router/menus/modules/**/*.@(ts)'; 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' { declare module '*.bmp' {
const src: string; const src: string;
export default src; export default src;
...@@ -33,51 +54,50 @@ declare module '*.webp' { ...@@ -33,51 +54,50 @@ declare module '*.webp' {
export default src; export default src;
} }
declare module '*.svg' {
const src: string;
export default src;
}
declare module '*.json' { declare module '*.json' {
/** 得到json表达的对象/数组【混入到代码中】
*/
const content: any | any[]; const content: any | any[];
export default content; export default content;
} }
declare module '*.svg' {
/** 文件路径
*/
const content: string;
export = content;
}
declare module '*.scss' { declare module '*.scss' {
/** scss 导出 (:export{})
*/
const content: { const content: {
[className: string]: string; readonly [className: string]: string;
}; };
export default content; export default content;
} }
declare module '*.less' { declare module '*.less' {
const content: { const content: {
[className: string]: string; readonly [className: string]: string;
}; };
export default content; export default content;
} }
declare module '*.styl' { declare module '*.styl' {
const content: { const content: {
[className: string]: string; readonly [className: string]: string;
}; };
export default content; export default content;
} }
declare module '*.css' { declare module '*.css' {
/** 一个空对象
*/
const content: any; const content: any;
export default content; export default content;
} }
declare module '*.module.css' {
const classes: { readonly [key: string]: string };
export default classes;
}
declare module '*.module.scss' { declare module '*.module.scss' {
/** css 模块 const classes: { readonly [key: string]: string };
*/ export default classes;
const content: { }
[localClassName: string]: string;
}; declare module '*.module.sass' {
export default content; const classes: { readonly [key: string]: string };
export default classes;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<template #customTitle> <template #customTitle>
<span> <span>
姓名 姓名
<BaseHelp class="ml-2" text="姓名" /> <BasicHelp class="ml-2" text="姓名" />
</span> </span>
</template> </template>
<template #customAddress> <template #customAddress>
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
import { getCustomHeaderColumns } from './tableData'; import { getCustomHeaderColumns } from './tableData';
import { FormOutlined } from '@ant-design/icons-vue'; import { FormOutlined } from '@ant-design/icons-vue';
import { demoListApi } from '/@/api/demo/table'; import { demoListApi } from '/@/api/demo/table';
import { BasicHelp } from '/@/components/Basic';
export default defineComponent({ export default defineComponent({
components: { BasicTable, FormOutlined }, components: { BasicTable, FormOutlined, BasicHelp },
setup() { setup() {
const [registerTable] = useTable({ const [registerTable] = useTable({
title: '定高/头部自定义', title: '定高/头部自定义',
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"jsx": "react", "jsx": "react",
"baseUrl": ".", "baseUrl": ".",
"allowJs": true, "allowJs": true,
"sourceMap": true,
"esModuleInterop": true, "esModuleInterop": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
...@@ -26,6 +27,17 @@ ...@@ -26,6 +27,17 @@
] ]
} }
}, },
"plugins": [
{
"name": "@vuedx/typescript-plugin-vue"
}
],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist", "dist",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论