Skip to content

设置单元格可见范围

有些单元格只应该在PC页面使用,有些只应该在手机页面上使用,通过SupportUsingScope可以控制单元格的可见范围

csharp
    [SupportUsingScope(PageScope.AllPCPage, ListViewScope.None)]
    public class MyPluginCellType : CellType
    {

    }

PageScope 值

NormalPCPage普通PC页面
NormalMobilePage普通手机页面
MasterPCPagePC 母版页
MasterMobilePage手机母版页
TemplatePCPagePC页图文列表模板
TemplateMobilePage手机页图文列表模板
UserControlPage组件
AllPCPage所有PC页
AllMobilePage所有手机页
AllNormalPage所有普通页
AllMasterPage所有母版页
AllTemplatePage所有图文列表模板
AllPage所有页面(默认值)

注意,目前没有支持把插件单元格保存的表格中,所以ListViewScope应该传None

更新: 2022-12-03 18:57:35
原文: https://www.yuque.com/robert-bh51n/ea8l6c/rmmskoppqvdyuao5