📜  如果另一个道具需要 vuelidate - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:08.301000             🧑  作者: Mango

代码示例1
elements: {
            $each: {
              type: {
                required,
              },
              question: {
                required: requiredIf(prop => prop.type === 'input'),
              }
            }
          }