npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lana-rm/more-ui

v0.1.13

Published

A Vue.js UI project

Downloads

2

Readme

@lana-rm/more-ui

这个包是用在一个为了练习使用vue而创建的项目中的,不能直接用在正式的项目中。

This is just a package published for a project which is created to practice using vue,it is not enough to use directly in the commercial project.

##用法

首先安装好插件:

npm i @lana-rm/more-ui

然后在main.js文件中引入:

import MoreUI from '@lana-rm/more-ui'
Vue.use(MoreUI)

目前有分页、音频、日历、下拉选项框、输入框这几个组件。

在项目中使用的方式:

<template>
  <div id="app">
    <mo-pagination :info="paginationInfo" @change="changePage"/>
    <p>
      <mo-audio :info="audioInfo"/>
    </p>
    <p>
      <mo-select :info="selectInfo1" @change="changeSelect1"/>
      <mo-select :info="selectInfo2" @change="changeSelect2"/>
    </p>
    <p class="calendar">
      <mo-calendar @change="changeDate"/>
    </p>
    <p>
      <mo-input :info="title" @change="changeInput"/>
    </p>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      paginationInfo: {
        count: 100, // 总条数
        pageSize: 8, // 每页显示条数
        pageCenterNum: 3 // 正中间显示几页
      },
      audioInfo: {
        singer: '薛之谦',
        url: '../static/test.mp3', // 是一个没有上传的本地测试文件的地址
        name: '摩天大楼'
      },
      selectInfo1: {
        caption: '标签',
        type: 1, // 0代表单选、1代表多选
        options: [
        {
          value: '搞笑',
          label: '搞笑'
        },
        {
          value: 'HE',
          label: 'HE'
        },
        {
          value: '完结',
          label: '完结'
        }]
      },
      selectInfo2: {
        caption: '发型',
        type: 0,
        options: [
          {
            value: '黑长直',
            label: '黑长直'
          },
          {
            value: '长卷发',
            label: '长卷发'
          },
          {
            value: '短发',
            label: '短发'
          }
        ]
      },
      title: {
        label: '标题'
      }
    }
  },
  methods: {
    changePage (val) {
      console.log(val, '分页内容')
    },
    changeSelect1(val) {
      console.log(val, '多选的内容')
    },
    changeSelect2(val) {
      console.log(val, '单选的内容')
    },
    changeDate (val) {
      console.log(val, '日期的内容')
    },
    changeInput (val) {
      console.log(val, '输入框的内容')
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
p {
  margin: 20px 0;
}
.calendar {
  margin-top: 45px;
}
</style>