@xizs/nuxt-antui 0.0.49 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -259,7 +259,10 @@ export default defineComponent({
|
|
|
259
259
|
})}
|
|
260
260
|
<div class="flex gap-2">
|
|
261
261
|
{props.form?.option?.search !== false && <AButton type="primary" onClick={()=>tableData.load()}>{$t('搜索')}</AButton>}
|
|
262
|
-
{props.form?.option?.reset !== false && <AButton onClick={() =>
|
|
262
|
+
{props.form?.option?.reset !== false && <AButton onClick={() =>{
|
|
263
|
+
patch(metaForm,form.value,true)
|
|
264
|
+
tableData.load()
|
|
265
|
+
}}>{$t('重置')}</AButton>}
|
|
263
266
|
{props.form?.option?.export === true && <AButton type="primary" loading={exportLoading.value} onClick={()=>{
|
|
264
267
|
exportLoading.value=true
|
|
265
268
|
exportExcel(props.title??'导出', props.table.columns,async (page,pageSize)=>{
|
|
@@ -27,21 +27,23 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
<div class=" flex items-center">
|
|
29
29
|
<slot name="header-right-extend"></slot>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
<slot name="header-right-language">
|
|
31
|
+
<div class="flex items-center p-2 ml-2">
|
|
32
|
+
<a-dropdown >
|
|
33
|
+
<div class=" cursor-pointer flex items-center">
|
|
34
|
+
<GlobalOutlined class="text-[26px]" />
|
|
35
|
+
</div>
|
|
36
|
+
<template #overlay>
|
|
37
|
+
<a-menu>
|
|
38
|
+
<a-menu-item v-for="locale in locales" @click="setLocale(locale.code)">
|
|
39
|
+
{{ locale.name }}
|
|
40
|
+
</a-menu-item>
|
|
41
|
+
</a-menu>
|
|
42
|
+
</template>
|
|
43
|
+
</a-dropdown>
|
|
44
|
+
</div>
|
|
45
|
+
</slot>
|
|
46
|
+
|
|
45
47
|
<div >
|
|
46
48
|
<a-dropdown >
|
|
47
49
|
<div class="h-[30px] leading-[30px] cursor-pointer">{{ useAdmin().value?.username ?? 'Admin'}}</div>
|