Commit e20f3d0f authored by 田翔's avatar 田翔

fix: 数值只读后缀样式修复

parent 50d5e226
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>jsonToHtml examples</title>
<title>panda-xform examples</title>
<link rel="stylesheet" href="/global.css" />
</head>
......
{
"name": "panda-xform",
"version": "4.5.3",
"description": "4.5.3 文件流设置参数",
"version": "4.5.4",
"description": "4.5.4 数值只读后缀样式修复",
"keywords": [
"panda-xform"
],
......
import React, { useEffect, useMemo, useState } from 'react'
import { InputNumber } from 'antd'
import styles from './index.less'
function formatMoney(number, places, symbol, thousand, decimal) {
number = number || 0;
......@@ -55,6 +56,7 @@ const NumberInput = (props) => {
}
return (
<div className={styles.inputNumber} isdisabled={JSON.stringify(disabled)}>
<InputNumber
min={min || Number.MIN_SAFE_INTEGER}
max={max || Number.MAX_SAFE_INTEGER}
......@@ -69,6 +71,7 @@ const NumberInput = (props) => {
onChange={inputChange}
style={{ width: '100%' }}
/>
</div>
)
}
......
@import '~antd/es/style/themes/default.less';
.inputNumber {
&[isdisabled='true'] {
.@{ant-prefix}-input-number-group-addon {
border: 1px solid #e9e9e9;
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment