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>
This commit is contained in:
parent
79eb909c66
commit
573a443007
|
|
@ -26,7 +26,7 @@
|
|||
import { get, omit } from 'lodash-es';
|
||||
import { useRuleFormItem } from '/@/hooks/component/useFormItem';
|
||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
interface Option {
|
||||
value: string;
|
||||
label: string;
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
const loading = ref<boolean>(false);
|
||||
const emitData = ref<any[]>([]);
|
||||
const isFirstLoad = ref(true);
|
||||
|
||||
const { t } = useI18n();
|
||||
// Embedded in the form, just use the hook binding to perform form verification
|
||||
const [state] = useRuleFormItem(props, 'value', 'change', emitData);
|
||||
|
||||
|
|
@ -188,6 +188,7 @@
|
|||
state,
|
||||
options,
|
||||
loading,
|
||||
t,
|
||||
handleChange,
|
||||
loadData,
|
||||
handleRenderDisplay,
|
||||
|
|
|
|||
Loading…
Reference in New Issue