Browse Source
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>
pull/1734/head
Dack Wang
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
src/components/Form/src/components/ApiCascader.vue
|
|
@ -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 @@ |
|
|
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 @@ |
|
|
state, |
|
|
state, |
|
|
options, |
|
|
options, |
|
|
loading, |
|
|
loading, |
|
|
|
|
|
t, |
|
|
handleChange, |
|
|
handleChange, |
|
|
loadData, |
|
|
loadData, |
|
|
handleRenderDisplay, |
|
|
handleRenderDisplay, |
|
|
|