Socket
Socket
Sign inDemoInstall

mina-mixins

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mina-mixins

zm


Version published
Weekly downloads
10
decreased by-9.09%
Maintainers
1
Install size
44.8 kB
Created
Weekly downloads
 

Readme

Source

vue mixins 的小程序版实现

安装

npm i mina-mixins

合并策略

  • 生命周期依次触发混合数组中的同名周期,最后触发页面的同名周期
  • data等属性依次合并,最后和页面data合并
  • 自定义函数优先页面函数,数组中的同名函数以最后一个为准

使用

app.js:

import minaMixins from 'mina-mixins'
Page=minaMixins.extend(Page);

页面组件

Page({
  mixins:[mixin1,mixin2]
})

Keywords

FAQs

Last updated on 01 Aug 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc