zhaoxiaoqiang
2022-08-30 496fd3866f44ad362539b316d16e34d03cf169e3
头部组件
2 files modified
14 ■■■■ changed files
src/components/cell/h-cell.vue 6 ●●●● patch | view | raw | blame | history
src/components/v-navbar.vue 8 ●●●● patch | view | raw | blame | history
src/components/cell/h-cell.vue
@@ -2,7 +2,7 @@
 * @Author: 小明丶
 * @Date: 2020-05-09 13:38:38
 * @LastEditors: zxq
 * @LastEditTime: 2022-08-30 16:43:01
 * @LastEditTime: 2022-08-30 16:45:16
 * @Description: cell框组件
 -->
<template>
@@ -15,7 +15,7 @@
      <span class="label" :class="[isTitle? 'title' : '']">{{label}}</span>
    </div>
    <div class="right flex-end-g">
      <template name="v-cell-right">
      <!-- <template name="v-cell-right"> -->
        <div class="c-text-999-g" v-if="!Show_input">
          {{calcValue}}
        </div>
@@ -38,7 +38,7 @@
        >
          <use xlink:href="#iconright" />
        </svg>
      </template>
      <!-- </template> -->
      <slot name="button">
        
      </slot>
src/components/v-navbar.vue
@@ -1,17 +1,17 @@
<!--
 * @Author: 小明丶
 * @Date: 2019-08-15 15:44:44
 * @LastEditors: 小明丶
 * @LastEditTime: 2020-06-22 18:17:12
 * @LastEditors: zxq
 * @LastEditTime: 2022-08-30 16:46:40
 * @Description: 头部组件
 -->
<template>
    <div class="nav-bar flex-start-g" :class="[fixed ? 'fixed' : '']" :style="{'background':background}">
        <slot name="left-back">
        <!-- <slot name="left-back"> -->
            <svg class="icon" aria-hidden="true" style="width:25px;height:44px;" @click="go">
                <use xlink:href="#iconzuojiantou"></use>
            </svg>
        </slot>
        <!-- </slot> -->
        <h4 class="title text-center-g" :style="{'color':titleColor}">{{title}}</h4>
        <div class="rightText" @click="rightClick">
            <slot name="right">{{rightText}}</slot>