Commit 573a44300792b1bbf2a52f88b6e7a50a754d5653

Authored by Dack Wang
Committed by GitHub
1 parent 79eb909c

fix(ApiCascader): 引入缺少useI18n库的t方法 (#1648)

* fix():  The Style of tableTitle slot

* fix(ApiCascader): 引入缺少useI18n库的t方法

Co-authored-by: 王英琦 <wangyingqi@91bihu.com>
Co-authored-by: wangyingqi <wangyingqi@chinapost.com.cn>
src/components/Form/src/components/ApiCascader.vue
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 import { get, omit } from 'lodash-es'; 26 import { get, omit } from 'lodash-es';
27 import { useRuleFormItem } from '/@/hooks/component/useFormItem'; 27 import { useRuleFormItem } from '/@/hooks/component/useFormItem';
28 import { LoadingOutlined } from '@ant-design/icons-vue'; 28 import { LoadingOutlined } from '@ant-design/icons-vue';
29 - 29 + import { useI18n } from '/@/hooks/web/useI18n';
30 interface Option { 30 interface Option {
31 value: string; 31 value: string;
32 label: string; 32 label: string;
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
76 const loading = ref<boolean>(false); 76 const loading = ref<boolean>(false);
77 const emitData = ref<any[]>([]); 77 const emitData = ref<any[]>([]);
78 const isFirstLoad = ref(true); 78 const isFirstLoad = ref(true);
79 - 79 + const { t } = useI18n();
80 // Embedded in the form, just use the hook binding to perform form verification 80 // Embedded in the form, just use the hook binding to perform form verification
81 const [state] = useRuleFormItem(props, 'value', 'change', emitData); 81 const [state] = useRuleFormItem(props, 'value', 'change', emitData);
82 82
@@ -188,6 +188,7 @@ @@ -188,6 +188,7 @@
188 state, 188 state,
189 options, 189 options,
190 loading, 190 loading,
  191 + t,
191 handleChange, 192 handleChange,
192 loadData, 193 loadData,
193 handleRenderDisplay, 194 handleRenderDisplay,