!71 加入hook

* 图片翻译插件增加hook
* 增加2个hook  admin.product.name.after   admin.product.content.after 用于实现翻译插件按钮
* 1.增加 @hook('file_manager.content.head.btns.after')
* 1.增加 @hook('file_manager.content.head.btns.after')
* 在文件管理器上加入@hook('file_manager.content.head.btns.after')
This commit is contained in:
what_村长 2023-04-03 02:47:07 +00:00 committed by Edward Yang
parent d074c123d9
commit 0362952282
2 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@
@click="openInputBox('image')" icon="el-icon-edit">{{ __('admin/file_manager.rename') }}</el-link>
<el-link :underline="false" :disabled="!!!images.length && !!!selectImageIndex.length"
@click="selectAll()" icon="el-icon-finished">{{ __('common.select_all') }}</el-link>
@hook('admin.file_manager.content.head.btns.after')
@hook('admin.file_manager.content.head.btns.after')
</div>
<div class="right">
<el-button size="small" plain type="primary" @click="openUploadFile" icon="el-icon-upload2">{{ __('admin/file_manager.upload_files') }}</el-button>

View File

@ -56,6 +56,7 @@
<x-admin-form-input-locale
:width="600" name="descriptions.*.name" title="{{ __('common.name') }}"
:value="$descriptions" :required="true" />
@hook('admin.product.name.after')
<x-admin::form.row title="{{ __('common.image') }}">
<draggable
element="div"
@ -309,6 +310,7 @@
</textarea>
</div>
@endforeach
@hook('admin.product.content.after')
</div>
</x-admin::form.row>
</div>