

<script>
/* eslint-disable */
// sd-skip-auto-import
import components from"./_import-components/sd-number-import";export const metaInfo={caption:"数值框",component:"a-input-number",icon:"number",order:300,category:"basic"};export const fieldProps={dataType:"number",attr:{decimalPrecision:"0"}};var _render=function e(){var t=this,n=t._self._c;return n("div",[!t.component.readonly?n("a-form-model-item",{attrs:{label:"范围"}},[n("sd-range-input",{attrs:{min:t.component.attr.minValue,max:t.component.attr.maxValue},on:{"update:min":function(e){return t.$set(t.component.attr,"minValue",e)},"update:max":function(e){return t.$set(t.component.attr,"maxValue",e)}}})],1):t._e(),n("a-form-model-item",{attrs:{label:"小数位数"}},[n("sd-ugly-number",{attrs:{precision:0,min:0,max:6,disabled:t.component.isDbSynch},model:{value:t.component.attr.decimalPrecision,callback:function(e){t.$set(t.component.attr,"decimalPrecision",e)},expression:"component.attr.decimalPrecision"}})],1),!t.noDefaultValue?n("a-form-model-item",{attrs:{label:"默认值"}},[n("sd-ugly-number",{attrs:{precision:isNaN(Number(t.component.attr.decimalPrecision))?void 0:Number(t.component.attr.decimalPrecision)},model:{value:t.component.attr.defaultValue,callback:function(e){t.$set(t.component.attr,"defaultValue",e)},expression:"component.attr.defaultValue"}})],1):t._e()],1)};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdNumber",components:components,data(){return{}},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
