Browse Source

可自定义form宽度

master_hella_20240701
陈薪名 10 months ago
parent
commit
f2e2d67006
  1. 14
      src/components/BasicForm/src/BasicForm.vue
  2. 1
      src/views/wms/basicDataManage/itemarea/index.vue

14
src/components/BasicForm/src/BasicForm.vue

@ -2,7 +2,7 @@
<Dialog <Dialog
:title="dialogTitle" :title="dialogTitle"
v-model="dialogVisible" v-model="dialogVisible"
:width="isBusiness ? '60%' : '40%'" :width="dialogWidth"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<div <div
@ -115,6 +115,11 @@ import TableFormCountPlan from '@/components/TableFormCountPlan/src/TableFormCou
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const props = defineProps({ const props = defineProps({
//
basicFormWidth: {
type: String,
default: ''
},
// TableForm / // TableForm /
isShowButton: { isShowButton: {
type: Boolean, type: Boolean,
@ -236,6 +241,13 @@ const props = defineProps({
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
const dialogWidth = ref()
if (props.basicFormWidth) {
console.log('111111111111111')
dialogWidth.value = props.basicFormWidth
} else {
dialogWidth.value = props.isBusiness ? '60%' : '40%'
}
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const dialogTitle = ref('') // const dialogTitle = ref('') //

1
src/views/wms/basicDataManage/itemarea/index.vue

@ -48,6 +48,7 @@
:apiCreate="ItemareaApi.createItemarea" :apiCreate="ItemareaApi.createItemarea"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" :isBusiness="false"
:basicFormWidth="'60%'"
/> />
<!-- 详情 --> <!-- 详情 -->

Loading…
Cancel
Save