press-next
Version:
Vue3 组件库,支持 Composition API
55 lines (47 loc) • 1.01 kB
text/typescript
interface FeedbackContent {
title: string;
list: { text: string }[];
textareaPlaceholder: string;
textarea: string;
buttonColor: string;
}
interface ComponentProps {
content: FeedbackContent;
}
export function getMockData(): ComponentProps {
const content = {
title: '您认为AI助手还有哪些需要改进的:',
list: [
{
text: '语音识别不准确',
},
{
text: '没有解决我的问题',
},
{
text: '回复内容错误',
},
{
text: '流程太繁琐了',
},
{
text: '赛事不是我想要的',
},
{
text: '回复文字太多不想看',
},
],
textareaPlaceholder: '还有什么想对我说的',
textarea: '',
buttonColor: 'linear-gradient(to right, #966FFB, #6736F3)',
};
// 组件属性配置
const componentProps = {
content,
};
return componentProps;
}
const DEMO_DATA = {
...getMockData(),
};
export default DEMO_DATA;