Files

1 line
1.3 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{J as e,mr as t,xt as n}from"./common.js";import{n as r,t as i}from"./DragInData.js";import{computed as a,createBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,unref as p,withCtx as m}from"vue";import{InputNumber as h}from"ant-design-vue";import{useDesign as g}from"@mfish/core/hooks";var _=`percentage`,v=t(l({__name:`MfWheelDataConfig`,setup(t){let l=n(),{setFields:v,deleteFields:y,setDataTable:b}=e(),{prefixCls:x}=g(`digits-data-config`),S=a(()=>l.getCurConfigComponent.chart.data.fields?l.getCurConfigComponent.chart.data.fields[_]??[]:[]);function C(){b()}function w(e){e.length>0?(v(_,e),b()):y(_)}return(e,t)=>(d(),o(r,{class:u(p(x)),onRefreshData:C},{"data-select":m(()=>[f(e.$slots,`data-select`,{},void 0,!0)]),"static-data":m(()=>[t[1]||=s(`div`,{class:`title`},`百分比`,-1),c(p(h),{style:{width:`100%`},value:p(l).getCurConfigComponent.chart.data.dataSet.percentage,"onUpdate:value":t[0]||=e=>p(l).getCurConfigComponent.chart.data.dataSet.percentage=e,placeholder:`百分比`,step:1},null,8,[`value`])]),"target-data":m(()=>[t[2]||=s(`div`,{class:`title`},`百分比(不包含%)`,-1),c(i,{"max-count":1,height:150,onDataChange:w,fields:S.value},null,8,[`fields`])]),_:3},8,[`class`]))}}),[[`__scopeId`,`data-v-48c427c5`]]);export{v as default};