Socket
Book a DemoInstallSign in
Socket

cf-page-design

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-page-design

```javascript

2.2.6
latest
npmnpm
Version published
Weekly downloads
14
600%
Maintainers
0
Weekly downloads
 
Created
Source

PageDesign


import PageDesign from 'cf-page-design'

app.use(PageDesign, {
    APP_ENV: import.meta.env.VITE_NODE_ENV, //运行环境
    BASE_API: import.meta.env.VITE_API_BASE_PATH, //接口请求路径
    GET_HEADER:() => {}, // 获取请求头方法
    UN_AUTH: () => {}, // 401 自定义处理方法
    customFormatter:customFormatter//自定义用户信息格式化
})

数据集 DataSet

后台数据通用接口

表格 MzTable

表单 MzForm

1、表需要存在id字段作为唯一主键2、outerObject 通过弹框传递的外部参数

常用变量

系统变量:

变量名说明
$lastYear上一年的年份(格式:YYYY)
$lastMonth上一个月的月份(格式:MM)
$lastMonthYear上一个月的年份和月份(格式:YYYY-MM)
$currentYear当前年的年份(格式:YYYY)
$currentMonth当前月份的月份(格式:MM)
$currentDay当前日期(格式:YYYY-MM-DD)
$systemDate系统当前日期(格式:YYYY-MM-DD)
$systemTime系统当前时间(格式:HH:mm:ss)

会话变量

变量名说明
$userId当前用户的唯一标识符
$context.brandId当前会话中品牌的唯一标识符

Keywords

page design

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.