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

uus-layer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uus-layer

--- #### 技术栈

latest
npmnpm
Version
0.1.6
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

uus-layer 为rem开发vue移动端简易弹层

技术栈

vue@2.6.11 typescript scss

前提 vue >= 2.6.11

image

安装

npm install uus-layer --save

使用

 import Vue from 'vue'
 import UUSLayer from 'uus-layer'
 //自行引入hotcs.js转rem,和uus-layer无关;
 import '../node_modules/base_mixins/hotcss.min';
 //引入uus-layer.css
 import "../node_modules/uus-layer/dist/uus-layer.css";
 
 Vue.use(Cube)

组件内使用

    src/components/组件
    <template>
        <div>
            <UUSLayer
                @handleCancel="close"
                :popupSwitch="popupSwitch"
                @handleEnsure="ensure"
                :center="popCenter"
                :title="popTitle"
            /> 
        </div>
    </template>

    export default {
        data() {
            return {
                popupSwitch: false,  //显示弹层
                popCenter: {         //弹层内容
                    text: "弹层内容?"  
                },
                popTitle: {         //标题
                    show: true,
                    text: "标题"
                }
            };
        },
        methods: {
            showPop() {
                this.popupSwitch = true;
            },
            close() {
                this.popupSwitch = false;
            },
            ensure() {
                this.popupSwitch = false;
            }
        }
    };

FAQs

Package last updated on 02 Apr 2020

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