review:【mall 商城】product 相关代码
This commit is contained in:
@@ -27,6 +27,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
// TODO @霖:用户头像,有点丑,多了一层
|
||||
{
|
||||
fieldName: 'userAvatar',
|
||||
label: '用户头像',
|
||||
@@ -45,6 +46,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
component: 'Textarea',
|
||||
rules: 'required',
|
||||
},
|
||||
// TODO @霖:星级缺了;
|
||||
{
|
||||
fieldName: 'descriptionScores',
|
||||
label: '描述星级',
|
||||
@@ -57,6 +59,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
component: 'Rate',
|
||||
rules: 'required',
|
||||
},
|
||||
// TODO @霖:评价图片,有点丑,多了一层
|
||||
{
|
||||
fieldName: 'picUrls',
|
||||
label: '评论图片',
|
||||
@@ -111,6 +114,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
}
|
||||
|
||||
/** 表格列配置 */
|
||||
// TODO @霖:列表的宽度需要优化下,样式~
|
||||
export function useGridColumns<T = MallCommentApi.Comment>(
|
||||
onStatusChange?: (
|
||||
newStatus: boolean,
|
||||
|
||||
@@ -59,6 +59,7 @@ function handleReply(row: MallCommentApi.Comment) {
|
||||
}
|
||||
|
||||
/** 更新状态 */
|
||||
// TODO @霖:貌似刷新后,就会触发
|
||||
async function handleStatusChange(
|
||||
newStatus: boolean,
|
||||
row: MallCommentApi.Comment,
|
||||
|
||||
Reference in New Issue
Block a user