src/mvc/admin/Bootstrap.Admin/Pages/Components/QueryBase.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using Microsoft.AspNetCore.Components;
using System;

namespace Bootstrap.Admin.Pages.Components
{
    /// <summary>
    /// 查询组件
    /// </summary>
    public class QueryBase<TItem> : ComponentBase
    {
        private readonly string _defaultTitle = "查询条件";
        private readonly string _defaultText = "查询";

        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        public string Id { get; set; } = "";

        /// <summary>
        /// 查询组件标题 默认为 查询条件
        /// </summary>
        [Parameter]
        public string Title { get; set; } = "";

        /// <summary>
        /// 查询按钮显示文字 默认为 查询
        /// </summary>
        [Parameter]
        public string Text { get; set; } = "";

        /// <summary>
        /// 查询组件模板
        /// </summary>
        [Parameter]
        public RenderFragment<TItem>? ChildContent { get; set; }

#nullable disable
        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        public TItem QueryModel { get; set; }
#nullable restore

        /// <summary>
        /// 查询按钮回调方法
        /// </summary>
        [Parameter]
        public Action? OnQuery { get; set; }

        /// <summary>
        /// 参数设置方法
        /// </summary>
        protected override void OnParametersSet()
        {
后面还有 5 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。