src/ZKEACMS.SectionWidget/Models/SectionContentTitle.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
using System;
using System.Collections.Generic;
using Easy.MetaData;
using System.ComponentModel.DataAnnotations.Schema;
using ZKEACMS.Extend;
using Easy.RepositoryPattern;
namespace ZKEACMS.SectionWidget.Models
{
[DataTable("SectionContentTitle")]
public class SectionContentTitle : SectionContentBasic
{
public const string H1 = "h1";
public const string H2 = "h2";
public const string H3 = "h3";
public const string H4 = "h4";
public const string H5 = "h5";
public const string H6 = "h6";
public string InnerText { get; set; }
public string Href { get; set; }
public string TitleLevel { get; set; }
[NotMapped]
public override int SectionContentType
{
get
{
return (int)Types.Title;
}
}
}
class SectionContentTitleMetaData : ViewMetaData<SectionContentTitle>
{
protected override void ViewConfigure()
{
ViewConfig(m => m.ID).AsHidden();
ViewConfig(m => m.Title).AsHidden();
ViewConfig(m => m.SectionContentType).AsHidden();
ViewConfig(m => m.Order).AsHidden();
ViewConfig(m => m.SectionGroupId).AsHidden();
ViewConfig(m => m.SectionWidgetId).AsHidden();
ViewConfig(m => m.Status).AsHidden();
ViewConfig(m => m.Description).AsHidden();
ViewConfig(m => m.InnerText).AsTextBox().Required();
ViewConfig(m => m.Href).AsTextBox().PageSelector();
ViewConfig(m => m.TitleLevel).AsDropDownList().DataSource(() => new Dictionary<string, string>
{
{SectionContentTitle.H1,"H1"},
{SectionContentTitle.H2,"H2"},
{SectionContentTitle.H3,"H3"},
{SectionContentTitle.H4,"H4"},
{SectionContentTitle.H5,"H5"},
{SectionContentTitle.H6,"H6"}
});
}
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。