1
0
Fork 0
owl-admin-starter/README.md

1.4 KiB

Owl Admin Start

  • Laravel 10.x
  • slowlyo/owl-admin
  • tucker-eric/eloquentfilter

修改前端文件

resources\admin-views\src\pages\amis\index.tsx

return (
        <>
            <Spin loading={initPage.loading}
                  dot
                  size={8}
                  className="w-full"
                  style={{minHeight: initPage.loading ? "500px" : ""}}>
                <AmisRender schema={schema}/>
            </Spin>
            {(settings.footer && !initPage.loading) && <Footer/>}
        </>
    )

resources\admin-views\src\components\AmisRender\CustomComponents\components\WangEditor\index.tsx

// 编辑器配置
const editorConfig: Partial<IEditorConfig> = {
    placeholder: props.placeholder,
    readOnly: props.disabled || props.static,
    autoFocus: props.autoFocus,
    maxLength: props.maxLength,
    MENU_CONF: {
        uploadImage: {
            server: props.uploadImageServer,
            maxFileSize: props.uploadImageMaxSize || (1024 * 1024 * 2),
            maxNumberOfFiles: props.uploadImageMaxNumber || 100,
            headers: {
                Authorization: `Bearer ${token}`
            }
        },
        uploadVideo: {
            server: props.uploadVideoServer,
            maxFileSize: props.uploadVideoMaxSize || (1024 * 1024 * 10),
            maxNumberOfFiles: props.uploadVideoMaxNumber || 10,
        }
    }
}