Skip to content

联动

显隐

[
  {
    name: "switch",
    text: "显示text",
    type: "switch"
  },
  {
    name: "text2",
    text: "配置2",
    display: (state, { model }) => model.switch
  }
]
显示配置

输入关联

[
  {
    name: "firstName",
    text: "名",
    onChange: (state, v, { model }) => {
        model.fullName = `${model.lastName}${model.firstName}`;
      },
    defaultValue: "三"
  },
  {
    name: "lastName",
    text: "姓",
    onChange: (state, v, { model }) => {
        model.fullName = `${model.lastName}${model.firstName}`;
      },
    defaultValue: "张"
  },
  {
    name: "fullName",
    text: "姓名",
    type: "display",
    defaultValue: "张三"
  }
]
显示配置

Powered by 腾讯视频会员平台技术中心