code: function defaults() {
      const condition = [];
      if (typeof params.condition.valid === 'undefined') {
        condition.push(['[valid] = <%- condition.valid %>']);
      }
      if (parent) {
        condition.push('[type] = <%- condition.type %>');
      }
      return condition;
    }
docs: 缺省的条件