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 🙏

© 2025 – Pkg Stats / Ryan Hefner

primary-paper

v0.0.1

Published

小学paper组件

Downloads

2

Readme

试卷中questionGroup结构用法基本说明(小学试卷组件)

对一道或多道题目的渲染,要进行2个接口的请求 : ①请求试题数据 ②请求这道questionGroup上复杂属性(questionRules)

试题结构

  • 试题组 questionGroup
    • questionRules 复杂属性
    • questionGroup 当前试题组数据
  • 试题 question

试卷Props属性

|参数|类型|可选值|默认值|说明| |---|:---:|:---:|:---:|:---| | questionGroup | obj | - | - | 一道题目数据 | | questionRules | obj | - | - | 根据questionGroup的type,查看当前questionGroup的部分属性 | | paperResult | obj | - | - |用户作答记录 | | isShowOrder | Boolean | true/false | true | 是否展示题号 | | questionStats | obj | - | - | 作业报告中试题统计结果 | | isShowLastGroupShowSelect | Boolean | true/false | false | 最后一个group选中效果(暂未使用) | | isEdit | Boolean | true/false | false | 是否编辑状态 | | isShowResult | Boolean | true/false | false | 是否展示批改结果 | | isShowUserAnswer | Boolean | true/false | false | 是否展示用户答案 | | isShowAnswer | Boolean | true/false | false | 是否展示正确答案 | | showInstruction | Boolean | true/false | false | 是否展示题目要求 | | isShowAnalysis | Boolean | true/false | false | 一键控制整套试卷试题解析的显示隐藏 | | isShowScore | Boolean | true/false | false | 是否显示分数 | | onTrigger | Function | | | 交互事件 | | defaultShowAnalysisContent | String | 'all'/'groupId'/''| ''| 默认打开解析,'all'表示全部展开解析,'groupId'表示展示该题的解析,''表示不展开解析 |

slot

|name|说明| |---|---| |questionMoreContent|题上内容,解析答案等等| |questionGrid|答题统计柱状图| |groupMoreContent|组上的内容,组上解析答案,操作按钮等等|

题号显示规则

  1. 当题为小题的时候,学科为英语不展示题号,其他学科则展示题号
  2. 如果外层设置 showNumber 为false 则不展示题号
  3. 当题目要求展示的时候,并且题目要求有内容,那么组上的题号与题上的题号都不展示题号