New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

publicassembly

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publicassembly

- **`组件直接引入即可, 例如 `**

latest
npmnpm
Version
1.0.17
Version published
Maintainers
1
Created
Source

publicassembly

使用办法

第一步 npm i publicassembly 或者 yarn add publicassembly 下载依赖

第二步 在main.js文件中引入依赖

第三步 文件中使用,vue3写法

  • 组件直接引入即可, 例如 <BjbButton/>

  • 引入方法

  • import publicUtils from "publicassembly/dist/publicAssembly.umd.min";

  • const { publicFiltersFn, halfAdjustsFn, downBlobFileFn } = toRefs(publicUtils)

  • 解构后的方法可以在html标签中直接使用,但是在js文件中使用需要以下操作

    • const testFn = () => { return publicFiltersFn }
    • testFn().value(randomArr, 123, 'id', 'value')

功能组件

  • 字典项翻译组件 BjbDictFilter

    • option, 字典项数据
    • value, 当前值
  • 背景组件 BjbBasicContainer

  • ckPlayer播放器组件 BjbCkVideo

    • videoStyle, 播放器样式
    • posterImgUrl, 默认图片
    • videoUrl, 播放地址
    • classValue, class类型

功能方法

  • 公用翻译方法 publicFiltersFn

    • list,数组数据
    • val,当前值
    • valueKey,数据中value的key值
    • labelKey,数据中label的key值
  • 下载文件方法 downBlobFile

    • response, 接口地址返回数据源
    • fileName, 文件名称

FAQs

Package last updated on 08 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts