饿了么 实现点击一行新增一行相同的样式

如下方图片:


image.png

          
dynamicValidateForm: {
        signReward: [
          {
            continuousSigninDays: "",
            integralValue: "",
          },
        ],
      },
addDomain() {
      this.dynamicValidateForm.signReward.push({
        continuousSigninDays: "",
        integralValue: "",
        key: Date.now(),
      });
    },
removeDomain(item) {
      const index = this.dynamicValidateForm.signReward.indexOf(item);
      if (index !== -1) {
        this.dynamicValidateForm.signReward.splice(index, 1);
      }
    },

你可能感兴趣的:(饿了么 实现点击一行新增一行相同的样式)