Unverified 提交 573a4430 作者: Dack Wang 提交者: GitHub

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>
上级 79eb909c
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
import { get, omit } from 'lodash-es'; import { get, omit } from 'lodash-es';
import { useRuleFormItem } from '/@/hooks/component/useFormItem'; import { useRuleFormItem } from '/@/hooks/component/useFormItem';
import { LoadingOutlined } from '@ant-design/icons-vue'; import { LoadingOutlined } from '@ant-design/icons-vue';
import { useI18n } from '/@/hooks/web/useI18n';
interface Option { interface Option {
value: string; value: string;
label: string; label: string;
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
const loading = ref<boolean>(false); const loading = ref<boolean>(false);
const emitData = ref<any[]>([]); const emitData = ref<any[]>([]);
const isFirstLoad = ref(true); const isFirstLoad = ref(true);
const { t } = useI18n();
// Embedded in the form, just use the hook binding to perform form verification // Embedded in the form, just use the hook binding to perform form verification
const [state] = useRuleFormItem(props, 'value', 'change', emitData); const [state] = useRuleFormItem(props, 'value', 'change', emitData);
...@@ -188,6 +188,7 @@ ...@@ -188,6 +188,7 @@
state, state,
options, options,
loading, loading,
t,
handleChange, handleChange,
loadData, loadData,
handleRenderDisplay, handleRenderDisplay,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论