amis icon indicating copy to clipboard operation
amis copied to clipboard

AMisRender.tsx renderSchema增加 acl:xxx 这段代码,导致page组件 data属性不可用

Open yangkun2197 opened this issue 6 years ago • 2 comments

AMisRender.tsx 的 renderSchema增加 acl:xxx 这段代码 导致 page组件中的 data属性 不可用

return renderSchema(
  schema,
  {
    onAction: onAction || this.handleAction,
    location,
    locale,
    data: {
      //权限
      acl: {
        can: (permission: string) => {
          try {
            return store.application.permissions.indexOf(permission) > -1;
          } catch (error) {
            return false;
          }
        },
      },
    },
    theme: store && store.theme,
    ...rest,
  },
  this.env
);

如下: { "data": { "text": "World!" }, "type": "page", "body": "Hello ${text}" }

期望显示的是 Hello World 但是只会显示Hello

这个是怎么回事??

yangkun2197 avatar Aug 19 '20 07:08 yangkun2197

目前不能复现,尝试最新 [email protected] 试试

2betop avatar Aug 19 '20 07:08 2betop

关了,有问题再开

RickCole21 avatar Aug 28 '20 09:08 RickCole21