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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ydt-private-project

v1.4.1

Published

A Vue.js project

Downloads

138

Readme

###插件使用说明 ###注意 #####1、因为插件中调用借口,需要封装一个$postHttp的方法挂载到 vue上 #####2、页面布局使用了rem和sass,mint-ui ###使用方法说明 ####1、引用

//引入js和css
import "ydt-private-project/dist/ydtPrivateProject.min.css"
import {searchPage,videoPage,detailPage,resourListPage} from 'ydt-private-project'
Vue.use(searchPage)
Vue.use(videoPage)
Vue.use(detailPage)
Vue.use(resourListPage)

####2、各个组件的使用说明 1、resourLIstPage

<resour-list
	v-if="listParams!=null" 
	@goDetail='goDetail' //跳转到详情页路由
	@goSearch='goSearch'//跳转到搜索页路由
	:title="title" //顶部导航栏
	:themeColor='themeColor'//主题色
	:limit='limit'//上啦加载每次需要后台返回的条数
:isType='isType'//是否显示类型
	:listParams='listParams'>//调用借口的参数

	<resour-list>

传入参数说明

   export default {
   data(){
		   return{
		   title: [
			        {
			         name:"全部",
			          type:""
			        },
			        {
			          name:"视频",
			          type:"1"
			          },
			          {
			          name:"课件",
			          type:"2"
			          },
			          {
			          name:"文献",
			          type:"3"
			          },
			          {
			          name:"病例",
			          type:"4"
			          }
      ],
       themeColor:'#23aae5',
       listParams = {
          entid:'32',//学科id
          code:'', //如果分前后路则传入 code否则传入'' 
          qianlu:'qianlu', //前路code
          houlu:'houlu',//后路code
          isShunt:true  //  分前后路true 不分false 
      }
		   
		   }
   },
   methods:{
   goSearch(){
        this.$router.push()
        },
      goDetail(crid,type){
         this.$router.push({
        name:"",//你的详情页路由的name
        params:{
          crid:crid  //接受参数,必填,次数值也可以写在query中
        },
        query:{
          "type":type ////接受参数,必填
        }
      })

      }
   }
         

 }

2、searchPage使用说明

    <search-page :coEntid="coEntid"//传入学院id 
    ></search-page>	

3.detailPage 使用说明

  <detail-page
      v-if="crtype!=''&&crid!=''"
      :crid='crid' //资源id
      :crtype='crtype' //资源类型
      
      ></detail-page>


//子页面 接受String类型 这两个参数在列表页点击到次页面时,已经通过路由传递过来,直接能获取到
 this.crid = this.$route.params.crid.toString(),
          this.crtype= this.$route.query.type.toString();

4、次包中还有videoPage的封装,使用方法暂未整理