arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

input-number readOnly cannnot render suffix

Open kingshuaishuai opened this issue 6 months ago • 0 comments
trafficstars

Basic Info

  • Package Name And Version: @arco-design/[email protected]
  • Framework version: Vue
  • Browser: chrome135.0.0.0

Steps to reproduce

input-number cannot render suffix on read-only. This is very unreasonable. You can provider hide props but not default. This part of the source code is very bad

const renderSuffix = () => {
      if (props.readOnly) {
        return null;
      }
      return (xxx)
}

<!--- Disclaimer: Submitting offensive issues will result in being blocked from arco-design organization. -->
<!-- generated by arco-issue. DO NOT REMOVE -->

kingshuaishuai avatar Apr 21 '25 03:04 kingshuaishuai