1.1.9 • Published 2 years ago

js-gy-head v1.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

js-gy-head

引入文件

<header
  :themeType="['#ddd', '#000']"
  :headerType="1"
  defaultTheme="blue"
  spaceTitle=""
  @logout="logout"
>
  <div slot="spaceTitle">我是插槽</div>
</header>
<footer>
  <div slot="spaceFooter">这是底部</div>
</footer>

<script>
  import base from "js-gy-head";
  import "js-gy-head/js-header/js-header.css";
  Vue.use(base);
  export default {
    methods: {
      logout(e) {
        // do something
      },
    },
  };
</script>

参数

参数说明类型默认值
defaultTheme默认主题( 优先级最高 )stringred,bule,yellow,pink,black,green,gray
themeType主题颜色,array背景色,字体色'#f33', '#000'
spaceTitle头部左侧标题string'我是标题'

事件

事件名称说明回调参数
toUserCenter点击个人中心触发Function
toUserPage点击个人主页触发Function
logout点击退出账号触发Function

版本更新日志

版本 v1.1.9(2021 年 12 月 15 日)

1. 右侧用户操作
2. 底部插槽

版本 v1.1.8(2021 年 12 月 15 日)

1. 标题
2. 插槽

版本 v1.1.7(2021 年 12 月 15 日)

1. 主题色
1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago