!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:
parent
d074c123d9
commit
0362952282
|
|
@ -82,7 +82,7 @@
|
||||||
@click="openInputBox('image')" icon="el-icon-edit">{{ __('admin/file_manager.rename') }}</el-link>
|
@click="openInputBox('image')" icon="el-icon-edit">{{ __('admin/file_manager.rename') }}</el-link>
|
||||||
<el-link :underline="false" :disabled="!!!images.length && !!!selectImageIndex.length"
|
<el-link :underline="false" :disabled="!!!images.length && !!!selectImageIndex.length"
|
||||||
@click="selectAll()" icon="el-icon-finished">{{ __('common.select_all') }}</el-link>
|
@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>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<el-button size="small" plain type="primary" @click="openUploadFile" icon="el-icon-upload2">{{ __('admin/file_manager.upload_files') }}</el-button>
|
<el-button size="small" plain type="primary" @click="openUploadFile" icon="el-icon-upload2">{{ __('admin/file_manager.upload_files') }}</el-button>
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@
|
||||||
<x-admin-form-input-locale
|
<x-admin-form-input-locale
|
||||||
:width="600" name="descriptions.*.name" title="{{ __('common.name') }}"
|
:width="600" name="descriptions.*.name" title="{{ __('common.name') }}"
|
||||||
:value="$descriptions" :required="true" />
|
:value="$descriptions" :required="true" />
|
||||||
|
@hook('admin.product.name.after')
|
||||||
<x-admin::form.row title="{{ __('common.image') }}">
|
<x-admin::form.row title="{{ __('common.image') }}">
|
||||||
<draggable
|
<draggable
|
||||||
element="div"
|
element="div"
|
||||||
|
|
@ -309,6 +310,7 @@
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@hook('admin.product.content.after')
|
||||||
</div>
|
</div>
|
||||||
</x-admin::form.row>
|
</x-admin::form.row>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue