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

@beisen-cmps/platform-date-time

v0.0.26

Published

平台日期时间组件,绑定平台元数据

Readme

组件使用、扩展文档

提交

  1. npm install
  2. 修改代码后执行 npm run lib 进行编译
  3. 更新 package.json 中的 version 版本号
  4. push 代码
  5. 在 cmp.beisen.io 站点,头部导航的《服务》中查看编译是否通过

使用参数

{
  text: this.props.text || '',
  value: this.props.value || '',
  "cmp_id": "2a5e8670-6ea6-474d-b682-be8f55a46b4b",
  "cmp_name": "BeisenCloudDemofirst_extriqisetting_100013_1358372099",
  "cmp_type": "BC_DateTime",
  "cmp_label": "日期setting----年月",
  "cmp_data": {
      "title": "日期setting----年月",
      "field_name": "dxkforeignsjy",
      "required": false,   //必填
      "cmp_state": "create",
      "cmp_status": "editable",
      "editdisplaystate": "editable",
      "createdisplaystate": "editable",
      "showdisplaystate": "readonly",
      "datasourcename": "NativePlace",
      "metaObjectName":"BeisenCloudDemo.first",
      "dataType": "Text",
      "desc":"日期",  //title后面的帮助问号显示的文字
      "isShowTime": true, //true or false,是否开启选择时分秒的功能
      "data_format": "yyyy/MM",  //format格式,展示出来的格式
      "disabledDate": "empty",    /**指定不可选择日期 (string)
                                    注意:仅对单日历有效!!
                                    "all" 所有日期都不可选
                                    "beforeToday" 不可选择今天之前的日期(包括今天)
                                    "afterToday" 不可选择今天之后的日期
                                    "empty" 所有日期都可选
                                  **/
      "dateTimeType": "years"  //日期类型,有如下几种 ,date,dateTime,years,dateRange,dateTimeRange
  },
  "search_data": {
    metaFieldRelationIDPath: null,
    metaobjectname: "BeisenCloudDemo.first",
    opeartor: "eq",
    seperator: "-"
  },
  "ifError": false, //true 或者false,是否显示错误状态
  "biz_data": { "text": "" },
  "validators": {},
  "placeholder":"这是提示",   //输入框内提示信息,只有非只读禁用时显示,没有则取title
  styleTitle: 'rightFlush',        // "upAndDown" , "rightFlush",  "leftFlush", label的位置上下还是左右
  onChange: (value,target) => {},  //onchange回调事件,
  "translation":  { // 翻译及其对应语言字段
    "startTimeText": '开始时间TT',
    "endTimeText": '截止时间TT',
    "dateTimeLocaleName": 'zh_CN' //语言类型名称
  }
}



组件使用

  1. npm install @beisen-cmps/platform-date-time
  2. 该组件有两种使用方式, 第一种会走组件内部的获取数据方式(如果组件需要请求接口),数据会存在 state 里,第二种会走外部传入的 action
  3. import XXX from '@beisen-cmps/platform-date-time'
  4. import {DateTime} from '@beisen-cmps/platform-date-time'
render() {
  return <DateTime {...this.props}/>;
}