1.0.8 • Published 1 year ago
eagle-yxh-uni v1.0.8
eagle-uni
# 开发维护组件前提:
# 1.node 10.23.0 + vue2
# 安装:npm install eagle-uni
# 引入:
import eagle from 'eagle-uni';
Vue.use(eagle);
支持的组件
卡片式列表 eagle-card
# @params array 列表
# 示例:
# [
# {
# main:{
# image:'全链接',// 主图
# },
# basics:{
# title:"xxfsadfasdfasdfasfdfsafasdfasfasdf",// 标题
# name:'sss',// 发布人
# create_time:'2022-11-16 12:00:00',// 发布时间
# label:'端迭代'// 标签
# },
# id:1,// id
# }
# ]
# @params direction 方向
# left 图片在左,内容在右。默认模式
# right 图片在右,内容在左
# @params cardPad 灰色内边距
# 0 不显示内边距
# 1 显示内边距
2列列表 eagle-palace
# @params array 列表
# 示例:
# [
# {
# image:'全链接',
# title:''
# }
# ]
Api
调用的示例:
如 调用获取当前月第一天:this.eagle.getNowMonthFirstDay()
# getNowMonthFirstDay 获取当前月第一天
# getNowMonthLastDay 获取当前月最后一天
# getTimeType 获取时间戳不同格式
# @params $time 时间戳。毫秒级 or 秒级均可
# @params $type 格式类型。
# 'yyyy' 返回年份。如 2022
# 'yyyy-mmmm' 返回年月。如 2022-11
# 'yyyy-mmmm-dddd' 返回年月日。如 2022-11-02
# 'default' 返回年月日时分秒。如2022-11-02 12:00:00