diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue
index 7cfb9531e..730b20f9c 100644
--- a/src/components/DesignForm/formControlAttr.vue
+++ b/src/components/DesignForm/formControlAttr.vue
@@ -62,7 +62,7 @@
const { formConfig, formData } = toRefs(props)
const store = useDesignFormStore() as any
const controlData = computed(() => {
- console.log("注册自定义事件----------------->",props.formInfo)
+ // console.log("注册自定义事件----------------->",props.formInfo)
// console.log("注册自定义事件--------1--------->",store.controlAttr)
return store.controlAttr
})
@@ -3004,7 +3004,7 @@ const loadNextPage = () => {
高级属性
-
+
diff --git a/src/components/DesignForm/formControlAttres.vue b/src/components/DesignForm/formControlAttres.vue
index 87305a695..67bf990a6 100644
--- a/src/components/DesignForm/formControlAttres.vue
+++ b/src/components/DesignForm/formControlAttres.vue
@@ -120,6 +120,19 @@ const isSearch = state.isSearch
}*/
]
})
+/**
+ * 获取非负整数随机数
+ * @param Min 最小整数
+ * @param Max 最大整数
+ * @returns 随机数
+ */
+const Rand = (Min: number, Max: number) => {
+ switch (Min) {
+ case 0: return Math.round(Math.random() * Max);
+ case 1: return Math.ceil(Math.random() * Max);
+ default: return Math.round(Math.random() * (Max - Min) + Min);
+ }
+}
const attrList = computed(() => {
if (Object.keys(controlData.value).length) {
const {
diff --git a/src/components/DesignForm/formControlProperties.vue b/src/components/DesignForm/formControlProperties.vue
index f36ee10be..6a06faabf 100644
--- a/src/components/DesignForm/formControlProperties.vue
+++ b/src/components/DesignForm/formControlProperties.vue
@@ -62,7 +62,7 @@ const designType = inject('formDesignType')
const dataSourceOption = ref([])
const controlData = computed(() => {
- console.log("注册自定义事件----------------->",store.controlAttr)
+ // console.log("注册自定义事件----------------->",store.controlAttr)
return store.controlAttr
})
/**
@@ -1046,6 +1046,7 @@ const attrList = computed(()=>{
@ 时间: 2024-05-10 13:33:51
@ 功能: 组件属性变化
*/
+const fileSignAry = reactive([])
const controlChange = (obj: any, val: any) => {
switch (obj.eventName) {
case 'selectMultiple':
@@ -1237,20 +1238,32 @@ const showHide = (type: string[], show?: boolean) => {
@ 功能: 判断是否是组件
*/
const cssIsShouw = (val:any) => {
- console.log("判断是否是组件",val)
+ // console.log("判断是否是组件",val)
if(val && val.length && val.length > 0){
return true;
}
return false;
}
-
+/**
+ * 获取非负整数随机数
+ * @param Min 最小整数
+ * @param Max 最大整数
+ * @returns 随机数
+ */
+ const Rand = (Min: number, Max: number) => {
+ switch (Min) {
+ case 0: return Math.round(Math.random() * Max);
+ case 1: return Math.ceil(Math.random() * Max);
+ default: return Math.round(Math.random() * (Max - Min) + Min);
+ }
+ }
/**
@ 作者: 秦东
@ 时间: 2024-05-13 15:46:24
@ 功能:
*/
watch(()=>store.activeKey, (val:string) => {
- console.log("监听数据编号--->", val)
+ // console.log("监听数据编号--->", val)
if(controlData.value.type==='lowcodeCarsusel'){
const carsuselConfigData:CarsuselConfig[] = controlData.value.control.carsuselConfigArr
carsuselConfigData.forEach(element => {
@@ -1261,14 +1274,26 @@ watch(()=>store.activeKey, (val:string) => {
element.imgId = onlyNumber;
}
});
- }else if(controlData.value.type==='associatedForms'){
+ }else if(controlData.value.type==='associatedForms'){
controlData.value.control.fillRoles[0].id = uuidv4().replaceAll('-','').toString();
- }
+ }
+ if (val) {
+ // 有值时自动跳到第一项
+ state.tabsName = 'first'
+ cssIsShouw(attrList)
+ }
+})
+/**
+@ 作者: 秦东
+@ 时间: 2024-05-15 11:07:37
+@ 功能: 获取组件样式Demo
+*/
+const controlDataStyls = computed(() => {
+ return store.controlAttr.styles
})
-
-