# 骨架屏 **Repository Path**: peirm/pm-skeleton ## Basic Information - **Project Name**: 骨架屏 - **Description**: 骨架屏 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-16 - **Last Updated**: 2022-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pm-skeleton(骨架屏) ## 安装教程 ``` yarn install ``` ### 启动项目 ``` yarn serve ``` ### 发布 npm 版本 ``` npm publish --access=public ``` ### 打包项目 ``` yarn build ``` ### 使用方法 1. 安装骨架屏插件:`yarn add pm-skeleton` 2. 在需要使用的页面引入 `import { PmSquareSkeleton } from 'pm-skeleton'` 3. 在`components`中使用该插件 4. 在需要用到的地方挂载该插件`` 5. 组件:PmSquareSkeleton、PmLongSkeleton ### 参数说明 Props | 属性名 | 类型 | 描述 | | ------ | ------ | -------------------------------------------------------------- | | lines | Number | 判断需要显示几行(默认为 3 行) | | afew | Number | 判断一行展示几块(默认为 4 块),在 ``时有效 | | grid | Number | 判断一行展示几块(默认为 6 块),在 ``"时有效 |