Skip to content

NsSatisfactionRate 客户满意度评价

这是一个看似普通的客户评价组件,支持“差评”、“一般”、“好评”三档反馈。

组件特性

  • 自动校准:当用户试图选择“差评”或“一般”时,组件会自动将其转换为“好评”。
  • 结果导向:无论用户最初的选择是什么,最终提交的评价都将是“好评”。
  • 反馈弹窗:点击后会弹出确认窗,告知用户评价已成功校准。

客户满意度评价

Service Quality Feedback

ENFORCED
Secured by Nonsense Labs
Good Vibes Only

Props

属性说明类型默认值
fixedValue锁定的评分值number3 (好评)
title组件标题string"客户满意度评价"
labels选项标签[string, string, string]['差评','一般','好评']
emojis选项图标[string, string, string]['☹️','🙂','😄']

Events

事件名说明回调参数
change评价提交时触发(value: number, meta: { attempted: number })
transform发生自动纠偏时触发({ from, to, trigger })

Built with VitePress