Ben Lin
2024-06-18 ebbd788fbb2c0b45d4473798efc57eec8ba74a25
src/views/form-design/components/VFormDesign/config/componentPropsConfig.ts
@@ -907,7 +907,7 @@
      },
    },
    {
      name: 'dropdownClassName',
      name: 'popupClassName',
      label: '下拉菜单的 className 属性',
      component: 'Input',
      componentProps: {
@@ -1099,7 +1099,7 @@
function deleteProps(list: Omit<IBaseFormAttrs, 'tag'>[], key: string) {
  list.forEach((element, index) => {
    if (element.name == key) {
    if (element.name === key) {
      list.splice(index, 1);
    }
  });
@@ -1122,13 +1122,11 @@
//在所有的选项中查找需要配置项
const findCompoentProps = (props, name) => {
  const idx = props.findIndex((value: BaseFormAttrs, _index) => {
    return value.name == name;
  const idx = props.findIndex((value: BaseFormAttrs) => {
    return value.name === name;
  });
  if (idx) {
    if (props[idx].componentProps) {
      return props[idx].componentProps;
    }
  if (props[idx] && props[idx].componentProps) {
    return props[idx].componentProps;
  }
};