예제 #1
0
        /// <summary>
        /// 创建表单项生成器
        /// </summary>
        /// <param name="config">配置</param>
        public static FormItemBuilder CreateFormItemBuilder(Config config)
        {
            var result = new FormItemBuilder();

            result.AddGutter(GridHelper.GetGutter(config));
            if (FormItemFlex(config))
            {
                result.AddAttribute("[nzFlex]", "true");
            }
            return(result);
        }
예제 #2
0
        /// <summary>
        /// 创建表单项生成器
        /// </summary>
        /// <param name="config">配置</param>
        public static FormItemBuilder CreateFormItemBuilder(Config config)
        {
            var result = new FormItemBuilder();

            result.AddGutter(GridHelper.GetGutter(config));
            var isFlex = config.GetValue <bool?>(UiConst.IsFlex);

            if (isFlex == true)
            {
                result.AddAttribute("[nzFlex]", "true");
            }
            return(result);
        }