"use strict";(self.webpackChunkmy_package_ext=self.webpackChunkmy_package_ext||[]).push([[4863],{14863:function(t,e,a){a.r(e),a.d(e,{default:function(){return o}}),e={name:"timeline-config",props:["activeData"],data:function(){return{predefineColors:["#409EFF","#67C23A","#E6A23C","#F56C6C","#909399"]}},computed:{},watch:{},methods:{mulColumnsisEnableChange:function(t){t||this.$set(this.activeData.mulColumns,"columns",[])}}};var o=(0,a(51900).Z)(e,(function(){var t=this,e=t._self._c;return e("el-form",{attrs:{"label-position":"top"}},["entity"===t.activeData.datasource.type?[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n        值字段：选择时间戳值字段"),e("br"),t._v("\n        显示字段：选择内容值字段\n      ")]),t._v(" "),e("div",{staticClass:"mb-10"},[t._v("\n        时间线组件绑定实体说明"),e("i",{staticClass:"el-icon-info"})])])]:t._e(),t._v(" "),"custom"===t.activeData.datasource.type?[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n        自定义数据格式如下；"),e("br"),t._v("\n        也可以自定义时间戳和内容字段："),e("br"),t._v("\n        [{"),e("br"),t._v("\n        content: '活动按期开始',"),e("br"),t._v("\n        timestamp: '2023-08-11',"),e("br"),t._v("\n        }, {"),e("br"),t._v("\n        content: '通过审核',"),e("br"),t._v("\n        timestamp: '2023-08-13',"),e("br"),t._v("\n        color: '#0bbd87'//单个节点颜色"),e("br"),t._v("\n        }, {"),e("br"),t._v("\n        content: '创建成功',"),e("br"),t._v("\n        timestamp: '2023-08-14',"),e("br"),t._v("\n        }]\n      ")]),t._v(" "),e("div",{staticClass:"mb-10"},[t._v("\n        时间线组件绑定自定义数据说明"),e("i",{staticClass:"el-icon-info"})])]),t._v(" "),e("el-form-item",{attrs:{label:"时间戳字段"}},[e("el-input",{attrs:{placeholder:"请输入时间戳字段"},model:{value:t.activeData.datasource.customTimestampField,callback:function(e){t.$set(t.activeData.datasource,"customTimestampField",e)},expression:"activeData.datasource.customTimestampField"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"内容字段"}},[e("el-input",{attrs:{placeholder:"请输入内容显示字段"},model:{value:t.activeData.datasource.customContentField,callback:function(e){t.$set(t.activeData.datasource,"customContentField",e)},expression:"activeData.datasource.customContentField"}})],1)]:t._e(),t._v(" "),"entity"===t.activeData.datasource.type?e("el-form-item",[e("div",{staticStyle:{display:"flex","justify-content":"space-between"},attrs:{slot:"label"},slot:"label"},[e("div",[t._v("\n        排序字段\n        "),e("el-tooltip",[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("默认按降序")]),t._v(" "),e("i",{staticClass:"el-icon-info"})])],1),t._v(" "),e("div",{},[e("el-checkbox",{on:{change:t.mulColumnsisEnableChange},model:{value:t.activeData.datasource.isSortByAsc,callback:function(e){t.$set(t.activeData.datasource,"isSortByAsc",e)},expression:"activeData.datasource.isSortByAsc"}}),t._v("\n        升序\n      ")],1)]),t._v(" "),e("SelectEntityField",{attrs:{"show-children":!0,"entity-name":t.activeData.datasource.entity},model:{value:t.activeData.datasource.sortField,callback:function(e){t.$set(t.activeData.datasource,"sortField",e)},expression:"activeData.datasource.sortField"}})],1):t._e(),t._v(" "),e("el-form-item",{attrs:{label:"时间戳位置"}},[e("el-radio-group",{model:{value:t.activeData.extConfig.placement,callback:function(e){t.$set(t.activeData.extConfig,"placement",e)},expression:"activeData.extConfig.placement"}},[e("el-radio",{attrs:{label:"top"}},[t._v("上方")]),t._v(" "),e("el-radio",{attrs:{label:"bottom"}},[t._v("下方")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"节点颜色"}},[e("el-color-picker",{attrs:{predefine:t.predefineColors},model:{value:t.activeData.extConfig.color,callback:function(e){t.$set(t.activeData.extConfig,"color",e)},expression:"activeData.extConfig.color"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"最后一个节点颜色"}},[e("el-color-picker",{attrs:{predefine:t.predefineColors},model:{value:t.activeData.extConfig.lastColor,callback:function(e){t.$set(t.activeData.extConfig,"lastColor",e)},expression:"activeData.extConfig.lastColor"}})],1)],2)}),[],!1,null,null,null).exports},51900:function(t,e,a){function o(t,e,a,o,n,i,s,l){var c,r,v="function"==typeof t?t.options:t;return e&&(v.render=e,v.staticRenderFns=a,v._compiled=!0),o&&(v.functional=!0),i&&(v._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},v._ssrRegister=c):n&&(c=l?function(){n.call(this,(v.functional?this.parent:this).$root.$options.shadowRoot)}:n),c&&(v.functional?(v._injectStyles=c,r=v.render,v.render=function(t,e){return c.call(e),r(t,e)}):(e=v.beforeCreate,v.beforeCreate=e?[].concat(e,c):[c])),{exports:t,options:v}}a.d(e,{Z:function(){return o}})}}]);