fix: typo

This commit is contained in:
vben
2020-10-29 22:29:46 +08:00
parent 404c73de45
commit 7658f4d6e8
13 changed files with 297 additions and 111 deletions

View File

@@ -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: '',
},
},

View File

@@ -35,7 +35,7 @@
default: 'throttle',
},
color: {
type: String as PropType<'error' | 'warning' | 'success'>,
type: String as PropType<'error' | 'warning' | 'success' | ''>,
},
// 防抖节流时间
throttleTime: {

View File

@@ -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

View File

@@ -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)

View File

@@ -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));
}