Yb-components Yb-components
首页
开发规范
yb-cli
  • 开发指南
  • 更新日志
  • 组件
关于
首页
开发规范
yb-cli
  • 开发指南
  • 更新日志
  • 组件
关于
  • 开发指南
  • 更新日志
  • 数据展示

    • YbTable 表格
    • YbCardList 卡片列表
    • YbTree 树
    • YbCascaderList 级联列表
    • YbSimpleTablePage 分页查询表格
    • YbSimpleCardPage 分页卡片列表
    • YbBasicProfile 基础详情数据展示
    • YbOutscrollLayout 固定在滚动区域外
    • YbOutscrollTree 固定在滚动区域外的Tree
    • YbInfoLayout 信息页布局
    • YbEditLayout 编辑页布局
  • 数据录入

    • YbRowsPopoverForm 浮层多行表单
    • YbFormily 配置式表单
    • YbForm 表单
    • YbRowsForm 多行表单
    • YbCollapseForm 折叠表单
    • YbQueryFilter 筛选表单
    • YbFilesSelect 文件选择器
    • YbRangeWrapper 范围结构
    • YbRangeDatepicker 日期范围
    • YbRange 范围
    • YbFormulaInput 简单运算公式输入
    • YbCron 表达式生成器
    • YbTreeSelect 树型选择器
    • YbInputgroupWrapper 复合组
    • YbThemeSelect 主题风格选择器
    • YbSelect 选择器
    • YbPaginationSelect 分页选择器
    • YbCodemirror 代码编辑器
    • YbCodemirrorSql SQL编辑器
    • YbCodemirrorJson JSON编辑器
    • YbCodemirrorXml XML编辑器
    • YbCombiDatepicker 组合时间
    • YbQuarterPicker 季度选择器
    • YbRangeQuarterPicker 季度范围选择器
    • YbConditionSelect 条件选择器
    • YbCheckboxGroup 多选框组
    • YbIconSelect 选择器
    • YbTagsInput 标签输入框
  • 其他组件

    • YbBallLoading 加载中
    • YbSymbolIcon 多色小图标
    • YbKeybuttonsPopover
    • YbPercentBattery 电池百分比
    • YbAffix 固钉
    • YbPagination 分页器
    • YbCollapse 折叠面板
    • YbScrollTool 滚动工具
  • 物料

    • YbMainSideMenu 侧栏菜单
    • YbLoadRemote 远程应用加载
    • YbLayoutPro 布局
    • YbMainPro 主页
    • YbAppMain 应用主页
    • YbAppLogin 普通登录页
    • YbAppPortal Portal登录页
    • 指令

      • v-fixed-in-scroller
    • Mixins

      • pageList_mixin
      • getScopedSlot_mixin
      • editFormPage_mixin
      • uploadProgressPage_mixin
      • rowActions_mixin
      • rowDeletes_mixin
      • drawerToRouterTab_mixin
    • 实验室

      • YbSwiper 轮播
    • 组件
    • 物料
    zougt
    2023-06-27

    YbAppPortal Portal登录页

    # 基本使用

    释放数据能源 ● 呵护生命健康
    运营分析
    运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析
    医保门户
    医保门户医保门户医保门户医保门户
    医保医师
    医保医师医保医师医保医师医保医师
    系统管理
    系统管理系统管理系统管理系统管理
    DRG控费
    DRG控费DRG控费DRG控费DRG控费
    病种精细化
    病种精细化病种精细化病种精细化病种精细化
    门特申请
    门特申请门特申请门特申请门特申请门特申请
    物价审核
    DIP控费
    DIP控费DIP控费DIP控费DIP控费DIP控费
    结算清单
    结算清单结算清单结算清单结算清单结算清单
    门诊总控
    公共配置
    智能审核
    医保政策
    智能简报
    医保字典
    Copyright © 2021-2025 广州医博信息技术有限公司
    主题设置
    <template>
        <yb-app-portal
            style="height: 90vh;"
            :cardList="cardList"
            :sysOrgan="sysOrgan"
            :isLogin="isLogin"
            :userInfo="userInfo"
            @submit="onLogin"
            @logout="onLogout"
            @dropdownMenuClick="dropdownMenuClick"
        >
            <template v-slot:titleSubText>释放数据能源 ● 呵护生命健康</template>
        </yb-app-portal>
    </template>
    
    <script>
        export default {
            provide() {
                return {
                    parentAppProvideData: {},
                };
            },
            data() {
                return {
                    cardList: JSON.parse(
                        '[{"key":"94d090c0c0feae44d25afa713329c0c8","illus":"yb-illus2","title":"运营分析","url":"/analysis","disabled":false,"visitor":false,"auth":false,"description":"运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析"},{"key":"24f34a1e9467c09007ef3661f160b9bb","illus":"yb-illus4","title":"医保门户","url":"/portal/medical-homepages-web1","disabled":false,"visitor":false,"auth":true,"description":"医保门户医保门户医保门户医保门户"},{"key":"15b07bd61a81f2bad38c5bf89fac03cc","illus":"yb-illus5","title":"医保医师","url":"/portal/medical-responsibility-web","disabled":false,"visitor":false,"auth":false,"description":"医保医师医保医师医保医师医保医师"},{"key":"203faa0dfd1711e8a79f00ff54c25c86","illus":"yb-illus1","title":"系统管理","url":"/portal/medical-oauth-web","disabled":false,"visitor":false,"auth":true,"description":"系统管理系统管理系统管理系统管理"},{"key":"18a67dbfd6f8678f7eefdda6008c2d9f","illus":"yb-illus10","title":"DRG控费","url":"/calculatedrg","disabled":false,"visitor":false,"auth":true,"description":"DRG控费DRG控费DRG控费DRG控费"},{"key":"a5c0ed21a43f96677811fc6eeb666f69","illus":"yb-illus3","title":"病种精细化","url":"/portal/medical-refine-web","disabled":false,"visitor":false,"auth":true,"description":"病种精细化病种精细化病种精细化病种精细化"},{"key":"8a7a5e231072de9d6b08e1f5349ef27d","illus":"yb-illus9","title":"门特申请","url":"/portal/medical-disease-apply-web","disabled":false,"visitor":false,"auth":true,"description":"门特申请门特申请门特申请门特申请门特申请"},{"key":"8c9d2d91e7167091208e74cc66bc9751","illus":"yb-illus9","title":"物价审核","url":"/PriceReview","disabled":true,"visitor":false,"auth":true},{"key":"3973aac1fda4d784c7d51522e8a77f73","illus":"yb-illus6","title":"DIP控费","url":"/portal/medical-calculate-web","disabled":false,"visitor":false,"auth":true,"description":"DIP控费DIP控费DIP控费DIP控费DIP控费"},{"key":"3bf10a1af9a70f37283eada88b818b59","illus":"yb-illus2","title":"结算清单","url":"/portal/medical-settlement-web","disabled":false,"visitor":true,"auth":true,"description":"结算清单结算清单结算清单结算清单结算清单"},{"key":"b51db2dbb4e0f1362058c7aad53e1a9b","illus":"yb-illus8","title":"门诊总控","url":"/portal/medical-patientcontrol-web","disabled":false,"visitor":false,"auth":true},{"key":"6ed42136d98e5e4ceeef9b817002288d","illus":"yb-illus7","title":"公共配置","url":"/portal/medical-basicdata-web","disabled":false,"visitor":false,"auth":true},{"key":"d8fdafd227de1fdfd55ee93acc4b4f76","illus":"yb-illus4","title":"智能审核","url":"/portal/medical-examine-web","disabled":false,"visitor":false,"auth":true},{"key":"53e7ca7266016fb2f2ae8f2d3896c605","illus":"yb-illus2","title":"医保政策","url":"/portal/medical-knowledge-low-web","disabled":false,"visitor":false,"auth":true},{"key":"31e6faa0ef004beb813c19b64ad3372b","illus":"yb-illus1","title":"智能简报","url":"/portal/medical-briefing-web","disabled":false,"visitor":false,"auth":true},{"key":"66920e86223d2f94f45025ab2c81ba71","illus":"yb-illus7","title":"医保字典","url":"/portal/medical-dictionary-web","disabled":false,"visitor":false,"auth":true}]'
                    ),
                    isLogin: false,
                    userInfo: { name: '' },
                    sysOrgan: {
                        primaryColor: '#FA541C',
                        mainHeaderBgMode: 'primary',
                        mainHeaderGradientDeg: 141,
                        mainHeaderGradientColors: [
                            {
                                color: '#9fb8ad',
                                gradientPlace: 0,
                            },
                            {
                                color: '#1fc8db',
                                gradientPlace: 51,
                            },
                            {
                                color: '#2cb5e8',
                                gradientPlace: 75,
                            },
                        ],
                        systemTitle: '医保综合管理系统',
                    },
                };
            },
            methods: {
                onLogin(query, callback) {
                    console.log(query);
                    this.isLogin = true;
                    this.userInfo.name = 'system';
                    // 将登录提交按钮的loading状态设置为false,调用callback()即可
                    callback();
                },
                /** 退出登录 */
                onLogout(callback) {
                    this.isLogin = false;
                    this.userInfo.name = '';
                    callback();
                },
                dropdownMenuClick(command) {
                    console.log(command);
                },
            },
        };
    </script>
    
    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
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    显示 复制 复制

    # 插槽使用

    • Logo 插槽
      • svgLogo:头部 Logo 和登录页面 Logo
    • 头部插槽
      • headerLeft:头部左边插槽
      • headerRight:头部右边插槽,可替换消息提醒、登录按钮
      • aboveHeaderRight:头部消息提醒左边插槽
    • 标题插槽
      • titleText:中间标题插槽
      • titleSubText:中间副标题插槽
    • 中间轮播插槽
      • centerCard:卡片内容插槽,替换卡片的默认内容
      • centerCardIllus:插画插槽,替换插画的默认内容
      • centerCardList:替换 yb-swiper 插槽
    • 登录表单插槽
      • topFormItem:登录表单项前置插槽
      • bottomFormItem:登录表单项后置插槽
      • footerFormItem:登录按钮底部插槽
    YbAppPortal
    释放数据能源 ● 呵护生命健康
    0
    运营分析
    运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析
    1
    医保门户
    医保门户医保门户医保门户医保门户
    2
    医保医师
    医保医师医保医师医保医师医保医师
    3
    系统管理
    系统管理系统管理系统管理系统管理
    4
    DRG控费
    DRG控费DRG控费DRG控费DRG控费
    5
    病种精细化
    病种精细化病种精细化病种精细化病种精细化
    6
    门特申请
    门特申请门特申请门特申请门特申请门特申请
    7
    物价审核
    8
    DIP控费
    DIP控费DIP控费DIP控费DIP控费DIP控费
    9
    结算清单
    结算清单结算清单结算清单结算清单结算清单
    10
    门诊总控
    11
    公共配置
    12
    智能审核
    13
    医保政策
    14
    智能简报
    15
    医保字典
    Copyright © 2021-2025 广州医博信息技术有限公司
    主题设置
    <template>
        <yb-app-portal
            style="height: 90vh;"
            :cardList="cardList"
            :sysOrgan="sysOrgan"
            :isLogin="isLogin"
            :userInfo="userInfo"
            @submit="onLogin"
            @logout="onLogout"
            @dropdownMenuClick="dropdownMenuClick"
        >
            <template v-slot:svgLogo><img src="/img/yb-logo.png" /> </template>
            <template v-slot:titleSubText>释放数据能源 ● 呵护生命健康</template>
            <template v-slot:titleText>YbAppPortal</template>
            <!-- <template v-slot:headerLeft>icon</template> -->
            <template v-slot:aboveHeaderRight>
                <el-button
                    class="yb-portal-header-message"
                    type="primary"
                    icon="el-icon-setting"
                    circle
                />
            </template>
            <template v-slot:centerCardIllus="{data,index}">
                <div>{{ index }}</div>
            </template>
            <template v-slot:topFormItem="{formModel}">
                <el-form-item
                    prop="email"
                    label="邮箱"
                    :rules="[{ required: true,message:'邮箱不能为空', trigger: 'blur' }]"
                >
                    <el-input
                        v-model="formModel.email"
                        placeholder="请输入邮箱"
                    ></el-input>
                </el-form-item>
            </template>
            <template v-slot:bottomFormItem="{formModel}">
                <el-form-item
                    prop="remember"
                    labelWidth="0px"
                    :rules="[{ required: true, trigger: 'blur' }]"
                >
                    <el-checkbox v-model="formModel.remember">记住密码</el-checkbox>
                </el-form-item>
            </template>
            <!-- <template v-slot:centerCardList="cardLists">
                <el-carousel indicator-position="outside">
                    <el-carousel-item v-for="item in cardLists" :key="item">
                        <h3>{{ item }}</h3>
                    </el-carousel-item>
                </el-carousel>
            </template> -->
        </yb-app-portal>
    </template>
    
    <script>
        export default {
            provide() {
                return {
                    parentAppProvideData: {},
                };
            },
            data() {
                return {
                    cardList: JSON.parse(
                        '[{"key":"94d090c0c0feae44d25afa713329c0c8","illus":"yb-illus2","title":"运营分析","url":"/analysis","disabled":false,"visitor":false,"auth":false,"description":"运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析运营分析"},{"key":"24f34a1e9467c09007ef3661f160b9bb","illus":"yb-illus4","title":"医保门户","url":"/portal/medical-homepages-web1","disabled":false,"visitor":false,"auth":true,"description":"医保门户医保门户医保门户医保门户"},{"key":"15b07bd61a81f2bad38c5bf89fac03cc","illus":"yb-illus5","title":"医保医师","url":"/portal/medical-responsibility-web","disabled":false,"visitor":false,"auth":false,"description":"医保医师医保医师医保医师医保医师"},{"key":"203faa0dfd1711e8a79f00ff54c25c86","illus":"yb-illus1","title":"系统管理","url":"/portal/medical-oauth-web","disabled":false,"visitor":false,"auth":true,"description":"系统管理系统管理系统管理系统管理"},{"key":"18a67dbfd6f8678f7eefdda6008c2d9f","illus":"yb-illus10","title":"DRG控费","url":"/calculatedrg","disabled":false,"visitor":false,"auth":true,"description":"DRG控费DRG控费DRG控费DRG控费"},{"key":"a5c0ed21a43f96677811fc6eeb666f69","illus":"yb-illus3","title":"病种精细化","url":"/portal/medical-refine-web","disabled":false,"visitor":false,"auth":true,"description":"病种精细化病种精细化病种精细化病种精细化"},{"key":"8a7a5e231072de9d6b08e1f5349ef27d","illus":"yb-illus9","title":"门特申请","url":"/portal/medical-disease-apply-web","disabled":false,"visitor":false,"auth":true,"description":"门特申请门特申请门特申请门特申请门特申请"},{"key":"8c9d2d91e7167091208e74cc66bc9751","illus":"yb-illus9","title":"物价审核","url":"/PriceReview","disabled":true,"visitor":false,"auth":true},{"key":"3973aac1fda4d784c7d51522e8a77f73","illus":"yb-illus6","title":"DIP控费","url":"/portal/medical-calculate-web","disabled":false,"visitor":false,"auth":true,"description":"DIP控费DIP控费DIP控费DIP控费DIP控费"},{"key":"3bf10a1af9a70f37283eada88b818b59","illus":"yb-illus2","title":"结算清单","url":"/portal/medical-settlement-web","disabled":false,"visitor":true,"auth":true,"description":"结算清单结算清单结算清单结算清单结算清单"},{"key":"b51db2dbb4e0f1362058c7aad53e1a9b","illus":"yb-illus8","title":"门诊总控","url":"/portal/medical-patientcontrol-web","disabled":false,"visitor":false,"auth":true},{"key":"6ed42136d98e5e4ceeef9b817002288d","illus":"yb-illus7","title":"公共配置","url":"/portal/medical-basicdata-web","disabled":false,"visitor":false,"auth":true},{"key":"d8fdafd227de1fdfd55ee93acc4b4f76","illus":"yb-illus4","title":"智能审核","url":"/portal/medical-examine-web","disabled":false,"visitor":false,"auth":true},{"key":"53e7ca7266016fb2f2ae8f2d3896c605","illus":"yb-illus2","title":"医保政策","url":"/portal/medical-knowledge-low-web","disabled":false,"visitor":false,"auth":true},{"key":"31e6faa0ef004beb813c19b64ad3372b","illus":"yb-illus1","title":"智能简报","url":"/portal/medical-briefing-web","disabled":false,"visitor":false,"auth":true},{"key":"66920e86223d2f94f45025ab2c81ba71","illus":"yb-illus7","title":"医保字典","url":"/portal/medical-dictionary-web","disabled":false,"visitor":false,"auth":true}]'
                    ),
                    isLogin: false,
                    userInfo: { name: '' },
                    sysOrgan: {
                        primaryColor: '#FA541C',
                        mainHeaderBgMode: 'primary',
                        mainHeaderGradientDeg: 141,
                        mainHeaderGradientColors: [
                            {
                                color: '#9fb8ad',
                                gradientPlace: 0,
                            },
                            {
                                color: '#1fc8db',
                                gradientPlace: 51,
                            },
                            {
                                color: '#2cb5e8',
                                gradientPlace: 75,
                            },
                        ],
                        systemTitle: '医保综合管理系统',
                    },
                };
            },
            methods: {
                onLogin(query, callback) {
                    console.log(query);
                    this.isLogin = true;
                    this.userInfo.name = 'system';
                    // 将登录提交按钮的loading状态设置为false,调用callback()即可
                    callback();
                },
                /** 退出登录 */
                onLogout(callback) {
                    this.isLogin = false;
                    this.userInfo.name = '';
                    callback();
                },
                dropdownMenuClick(command) {
                    console.log(command);
                },
            },
        };
    </script>
    
    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
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    显示 复制 复制

    # 机构使用

    释放数据能源●呵护生命健康

    1

    2

    3

    4

      Copyright © 2021-2025 广州医博信息技术有限公司
      主题设置
      <template>
          <yb-app-portal
              :cardList="cardList"
              :sysOrgan="sysOrgan"
              :isLogin="isLogin"
              style="height: 90vh;"
          >
              <template v-slot:titleSubText>释放数据能源●呵护生命健康</template>
              <template v-slot:centerCardList>
                  <el-carousel indicator-position="outside">
                      <el-carousel-item v-for="item in cardList" :key="item">
                          <h3>{{ item }}</h3>
                      </el-carousel-item>
                  </el-carousel>
              </template>
          </yb-app-portal>
      </template>
      <script>
          export default {
              provide() {
                  return {
                      parentAppProvideData: {},
                  };
              },
              data() {
                  return {
                      cardList: [1, 2, 3, 4],
                      isLogin: false,
                      sysOrgan: {
                          organName: '广州医博xx第一医院',
                          systemTitleType: 'img',
                          imgLogo: '/img/yb-logo.png',
                          systemImgTitle: '/img/yb-logo.png',
                          loginSystemImgTitle: '/img/yb-logo.png',
                      },
                  };
              },
          };
      </script>
      <style>
          .el-carousel__item h3 {
              color: #475669;
              font-size: 18px;
              opacity: 0.75;
              line-height: 300px;
              margin: 0;
              text-align: center;
          }
      
          .el-carousel__item:nth-child(2n) {
              background-color: #99a9bf;
          }
      
          .el-carousel__item:nth-child(2n + 1) {
              background-color: #d3dce6;
          }
      </style>
      
      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
      显示 复制 复制

      # YbAppPortal Attributes

      参数 说明 类型 可选值 默认值
      setCustomTheme 设置主题参数函数 function -- --
      cardList swiper 卡片数据 array -- []
      cardProps 卡片数据对应字段映射 ,详见CardProps Attributes object -- {}
      cardLayout 用于计算一页展示的 slider 数量,详见YbSwiper object -- {itemWidth:245,itemMargin:20,itemBoxShadow:24}
      sysOrgan 系统机构参数,详见SysOrgan Attributes object -- {}
      userInfo 用户信息 object -- {name:''}
      isLogin 是否登录状态 boolean -- false
      setDocumentTitle 是否默认更换页面 title 标签内容 boolean -- true

      # YbAppPortal CardProps Attributes

      参数 说明 类型 可选值 默认值
      key 唯一 key string -- 'key'
      illus 卡片插画,对应 yb-illustration 插图库名称 string -- 'illus'
      title 卡片标题 string -- 'title'
      url 卡片点击跳转链接 string -- 'url'
      description 描述,超出长度时鼠标悬浮显示 tooltip string -- 'description'
      disabled 是否禁用 string | ()=>boolean -- 'disabled'
      visitor 是否游客可见,值为 true 时,未登录状态点击可直接跳转 url string | ()=>boolean -- 'visitor'
      auth 是否有权限 string | ()=>boolean -- 'auth'

      # YbAppPortal SysOrgan Attributes

      参数 说明 类型 可选值 默认值
      primaryColor 系统默认主题色 hsl | hsv | hex | rgb -- --
      organName 机构名称 string -- --
      imgLogo 系统 logo,base64 或者有效地址 string -- --
      logoWidth logo 宽度(0 为 auto,负数为百分比,正数为 px) number -- 0
      logoHeight logo 高度(0 为 auto,负数为百分比,正数为 px) number -- 0
      systemTitleType 系统标题的类型 string 'img' | 'text' --
      systemTitle 系统名称,systemTitleType 设置为"text"时显示 string -- --
      systemImgTitle 系统名称图片,base64 或者有效地址 ,systemTitleType 设置为"img"时显示 string -- --
      systemImgTitleWidth 系统名称图片宽度(0 为 auto,负数为百分比,正数为 px) number -- 0
      systemImgTitleHeight 系统名称图片高度(0 为 auto,负数为百分比,正数为 px) number -- 0
      loginSystemImgTitle 系统登录图片,base64 或者有效地址 ,systemTitleType 设置为"img"且系统名称图片存在时显示 string -- 0
      isConcatTitle systemTitleType 设置为"text"时,机构名称与系统名称是否拼接显示 string '0' | '1' '1'
      headerHeight 主页头部高度 number -- 0
      bgImage 主页头部背景图(在背景色之下,需要带透明度的背景色才能看到),base64 或者有效地址 string -- --
      bgImageWidth 主页头部背景图宽度(0 为 auto,负数为百分比,正数为 px) number -- 0
      bgImageHeight 主页头部背景图高度(0 为 auto,负数为百分比,正数为 px) number -- 0
      compact 主页左侧栏紧凑程度 string 'medium' | 'small' | 'mini' 'small'
      sidebarWidth 主页左侧栏默认宽度 number -- 0
      mainHeaderBgMode 主页头部背景色模式 string -- --
      mainHeaderBgColor 主页头部背景固定单色 hsl | hsv | hex | rgb -- --
      mainHeaderGradientDeg 主页头部背景渐变角度 number -90 ~ 180 0
      mainHeaderGradientColors 主页头部背景渐变色 array -- --
      mainHeaderGradientColors[].color 渐变颜色 hsl | hsv | hex | rgb -- --
      mainHeaderGradientColors[].gradientPlace 渐变位置 number -- --

      # YbAppPortal Events

      事件名称 说明 回调参数
      login 登录事件 共两个参数,form 表单数据、callback(用于关闭按钮 loading 状态)
      logout 退出登录事件 共一个参数,callback(用于关闭退出确认弹窗和按钮 loading 状态)
      message 消息提醒点击事件 -
      dropdownMenuClick 用户下拉菜单项点击事件 dropdown-item 的指令,内置 'togglePageMode' | 'custemTheme' | 'logout' | 'personalCenter'

      # YbAppPortal Methods

      方法名称 说明 回调参数
      onHideLoginModal 隐藏登录弹窗 -
      onShowLoginModal 显示登录弹窗 -
      toggleTheme 切换主题颜色 hsl | hsv | hex | rgb

      # YbAppPortal Slots

      name 说明
      svgLogo logo 插槽
      headerLeft 头部左边插槽
      headerRight 头部右边插槽,可替换消息提醒、登录按钮
      aboveHeaderRight 头部消息提醒左边插槽
      titleText 中间标题插槽
      titleSubText 中间副标题插槽

      # YbAppPortal Scoped Slots

      name 说明
      centerCard 替换卡片内容插槽,参数为 cardLayout,data(卡片数据),index
      centerCardIllus 插画插槽,参数为 cardLayout,data(卡片数据),index
      centerCardList 替换 yb-swiper 插槽,参数为 cardList
      topFormItem 登录表单项前置插槽,参数为 formModel
      bottomFormItem 登录表单项后置插槽,参数为 formModel
      footerFormItem 登录按钮底部插槽,参数为 formModel
      上次更新: 2024/03/29, 14:52:08
      YbAppLogin 普通登录页
      v-fixed-in-scroller

      ← YbAppLogin 普通登录页 v-fixed-in-scroller→

      Theme by Vdoing | Copyright © 2021-2025 YB-GZ | MIT License
      • 跟随系统
      • 浅色模式
      • 深色模式
      • 阅读模式