text: (window.webpackJsonp=window.webpackJsonp||[]).push([[29],{400:function(e,t,a){"use strict";a.r(t);var r=a(42),d=Object(r.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"从-crud-1-x-迁移"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#从-crud-1-x-迁移"}},[e._v("#")]),e._v(" 从 CRUD 1.x 迁移")]),e._v(" "),a("h2",{attrs:{id:"d2-data-change-事件移除"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#d2-data-change-事件移除"}},[e._v("#")]),e._v(" d2-data-change 事件移除")]),e._v(" "),a("p",[e._v("在2.0版本中，你可以使用 "),a("code",[e._v("cell-data-change")]),e._v(" 事件更加细化的监听表格内编辑的数据变化。"),a("br"),e._v("\n示例: "),a("a",{attrs:{href:"https://d2.pub/d2-admin/preview/#/demo/d2-crud/demo23",target:"_blank",rel:"noopener noreferrer"}},[e._v("🔗 Link"),a("OutboundLink")],1)]),e._v(" "),a("h2",{attrs:{id:"d2data-属性修改"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#d2data-属性修改"}},[e._v("#")]),e._v(" d2Data 属性修改")]),e._v(" "),a("p",[e._v("修改为 "),a("code",[e._v("d2CrudData")]),e._v(" ，更加语义化。")]),e._v(" "),a("h2",{attrs:{id:"移除-title-add-mode-add-button-选项-headerbutton-插槽修改为-header"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#移除-title-add-mode-add-button-选项-headerbutton-插槽修改为-header"}},[e._v("#")]),e._v(" 移除 title add-mode add-button 选项，headerButton 插槽修改为 header")]),e._v(" "),a("p",[e._v("2.0版本将header中的插槽完全暴露给用户，因此移除了新增按钮。"),a("br"),e._v("\n开启新增的方法请参考示例: "),a("a",{attrs:{href:"https://d2.pub/d2-admin/preview/#/demo/d2-crud/demo16",target:"_blank",rel:"noopener noreferrer"}},[e._v("🔗 Link"),a("OutboundLink")],1)]),e._v(" "),a("h2",{attrs:{id:"form-template-拆分为-add-template-和-edit-template"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#form-template-拆分为-add-template-和-edit-template"}},[e._v("#")]),e._v(" form-template 拆分为 add-template 和 edit-template")]),e._v(" "),a("p",[e._v("add-template示例: "),a("a",{attrs:{href:"https://d2.pub/d2-admin/preview/#/demo/d2-crud/demo16",target:"_blank",rel:"noopener noreferrer"}},[e._v("🔗 Link"),a("OutboundLink")],1),a("br"),e._v("\nedit-template示例: "),a("a",{attrs:{href:"https://d2.pub/d2-admin/preview/#/demo/d2-crud/demo17",target:"_blank",rel:"noopener noreferrer"}},[e._v("🔗 Link"),a("OutboundLink")],1)]),e._v(" "),a("h2",{attrs:{id:"pagination-配置修改"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pagination-配置修改"}},[e._v("#")]),e._v(" pagination 配置修改")]),e._v(" "),a("p",[e._v("2.0取消了纯前端分页，把分页逻辑交给用户，让用户可以更方便的和后端进行数据通讯。"),a("br"),e._v("\n示例: "),a("a",{attrs:{href:"https://d2.pub/d2-admin/preview/#/demo/d2-crud/demo29",target:"_blank",rel:"noopener noreferrer"}},[e._v("🔗 Link"),a("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=d.exports}}]);