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