| | |
| | | button-style="solid" |
| | | size="small" |
| | | name="color" |
| | | @change="groupChange" |
| | | > |
| | | <a-radio-button |
| | | v-for="item in colors" |
| | |
| | | // 当本地值发生变化时,发出 update:modelValue 事件,通知父组件更新 |
| | | watch(localValue, (newValue) => { |
| | | emit('update:modelValue', newValue); |
| | | emit('change', newValue); |
| | | // emit('change', newValue); |
| | | }); |
| | | |
| | | function groupChange() { |
| | | console.log(localValue.value, '------------2'); |
| | | emit('change', localValue.value); |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | |
| | | height: 8px; |
| | | background-color: #fff; |
| | | clip-path: polygon(50% 60%, 0% 100%, 100% 100%); /* Triangle at the bottom */ |
| | | |
| | | } |
| | | </style> |