schangxiang@126.com
2024-04-23 f47411fb53aeee0c7bd514cbc841f9030349f448
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using Admin.NET.Core.Util.LowCode.Front.Model;
using Furion.DatabaseAccessor;
using Furion.Extras.Admin.NET.Util.LowCode.Front.Att;
using Furion.Extras.Admin.NET.Util.LowCode.Front.Interface;
 
namespace Furion.Extras.Admin.NET.Util.LowCode.Front
{
    /// <summary>
    /// 文本框
    /// </summary>
    [FrontType("text")]
    [FrontTypeBindDatabase(DbProvider.SqlServer, typeof(string), "nvarchar(2000)")]
    public class Front_Text : IFront
    {
        public string Key { get; set; }
        public string Label { get; set; }
        public string Type { get; set; }
        public string Model { get; set; }
 
        public Front_Text_Options Options { get; set; }
 
        public ViewDynamic Dynamic
        { get { return null; } }
    }
 
    public class Front_Text_Options
    {
        /// <summary>
        /// 文字对齐方式
        /// </summary>
        public string TextAlign { get; set; }
 
        /// <summary>
        /// 隐藏
        /// </summary>
        public bool Hidden { get; set; }
 
        /// <summary>
        /// 显示必选标记
        /// </summary>
        public bool ShowRequiredMark { get; set; }
 
        /// <summary>
        /// 字体颜色
        /// </summary>
        public string Color { get; set; }
 
        /// <summary>
        /// 字体类型
        /// </summary>
        public string FontFamily { get; set; }
 
        /// <summary>
        /// 字体大小
        /// </summary>
        public string FontSize { get; set; }
    }
}