1234567891011121314151617181920212223242526 |
- <template>
- <a-input-number
- v-bind="$attrs"
- :formatter="(value) => `¥${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
- :parser="(value) => value.replace(/¥\s?|(,*)/g, '')"
- @change="(value) => $emit('input', value)"
- v-on="$listeners"
- />
- </template>
- <script>
- import components from './_import-components/xm-money-input-render-import'
- export default {
- name: 'XmMoneyInputRender',
- components,
- data() {
- return {}
- },
- methods: {},
- }
- </script>
- <style module lang="scss">
- @use '@/common/design' as *;
- </style>
|