4.1.11 • Published 1 year ago

basic-frame v4.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Features

  • back-top 组件提供以下方法
参数说明类型默认值
duration动画执行的时间(ms)number500
visibilityHeight指定高度出现按钮numbe|string200
image自定义图片string-
right按钮距离右侧的距离numbe|string35
bottom按钮距离底部的距离numbe|string40
onClick按钮点击时间function|string-
  • empty 组件提供以下方法
参数说明类型默认值
image图片地址(http|https)string-
  • utils 组件提供以下方法
参数说明类型默认值
getQueryString获取浏览器指定参数(name: string)string

Install

Using npm to install:

# install latest BasicFrame for Vue 3 project

npm i basic-frame

# 不支持vue2

Using yarn or pnpm:

# with yarn
yarn add basic-frame

# with pnpm
pnpm add basic-frame

快速开始

import { createApp } from 'basic-frame';
// 1. Import the components you need
import { BackTop } from 'basic-frame';
// 2. Import the components style
import 'basic-frame/lib/index.css';

const app = createApp();

// 3. Register the components you need
app.use(BackTop);

浏览器支持

Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).

子包生态系统

ProjectDescription
basic-frame/utils提供一些公共方式使用
basic-frame/back-top返回顶部小组件
basic-frame/empty空内容小组件

关联相关ui库

ProjectDescription
vantvue3 移动端ui框架

投稿指南

在mobile-h5项目下packages 中进行相关组件添加/修改

LICENSE

MIT

4.1.11

1 year ago

4.1.1

1 year ago

4.1.0

1 year ago

4.0.0-rc.7

1 year ago

4.0.0-rc.6

1 year ago