前端爱码士
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
9 additions and
9 deletions
-
src/components/Form/src/props.ts
-
src/components/Menu/src/props.ts
-
src/components/Tinymce/src/Editor.vue
-
src/components/Upload/src/props.ts
-
src/components/Verify/src/props.ts
|
|
|
@ -9,7 +9,7 @@ import { propTypes } from '/@/utils/propTypes'; |
|
|
|
export const basicProps = { |
|
|
|
model: { |
|
|
|
type: Object as PropType<Recordable>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
// 标签宽度 固定宽度
|
|
|
|
labelWidth: { |
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ export const basicProps = { |
|
|
|
export const itemProps = { |
|
|
|
item: { |
|
|
|
type: Object as PropType<Menu>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
level: propTypes.number, |
|
|
|
theme: propTypes.oneOf(['dark', 'light']), |
|
|
|
|
|
|
|
@ -76,7 +76,7 @@ |
|
|
|
const tinymceProps = { |
|
|
|
options: { |
|
|
|
type: Object as PropType<Partial<RawEditorSettings>>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
value: { |
|
|
|
type: String, |
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ export const basicProps = { |
|
|
|
}, |
|
|
|
uploadParams: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
api: { |
|
|
|
type: Function as PropType<PromiseFn>, |
|
|
|
|
|
|
|
@ -38,19 +38,19 @@ export const basicProps = { |
|
|
|
|
|
|
|
wrapStyle: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
contentStyle: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
barStyle: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
actionStyle: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
}; |
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ export const rotateProps = { |
|
|
|
|
|
|
|
imgWrapStyle: { |
|
|
|
type: Object as PropType<any>, |
|
|
|
default: {}, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
|
|
|
|
minDegree: { |
|
|
|
|