Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nutui-uniapp

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nutui-uniapp - npm Package Compare versions

Comparing version 1.5.6 to 1.5.7

6

components/calendar/calendar.ts

@@ -97,5 +97,9 @@ import type { ExtractPropTypes } from 'vue'

/**
* @description 是否使用 footer 插槽,如果使用此值必须为 true
* @description 是否使用 footer 插槽,如果使用,此值必须为 true
*/
footerSlot: Boolean,
/**
* @description 是否使用 btn 插槽,如果使用,此值必须为 true
*/
btnSlot: Boolean,
}

@@ -102,0 +106,0 @@

@@ -96,5 +96,9 @@ import type { ExtractPropTypes } from 'vue'

/**
* @description 是否使用 footer 插槽,如果使用此值必须为 true
* @description 是否使用 footer 插槽,如果使用,此值必须为 true
*/
footerSlot: Boolean,
/**
* @description 是否使用 btn 插槽,如果使用,此值必须为 true
*/
btnSlot: Boolean,
}

@@ -101,0 +105,0 @@

4

components/collapse/collapse.ts

@@ -1,2 +0,2 @@

import type { ExtractPropTypes } from 'vue'
import type { ExtractPropTypes, PropType } from 'vue'
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants'

@@ -10,3 +10,3 @@ import { commonProps, isBoolean, isNumber, isString } from '../_utils'

*/
modelValue: { type: [String, Number, Array<string | number>], default: '' },
modelValue: { type: [String, Number, Array] as PropType<string | number | (string | number)[]> },
/**

@@ -13,0 +13,0 @@ * @description 是否开启手风琴模式

import type { ExtractPropTypes } from 'vue'
import { commonProps, makeObjectProp } from '../_utils'
import type { ErrorMessage, FormRules } from './types'
import { commonProps, makeObjectProp, makeStringProp } from '../_utils'
import type { ErrorMessage, FormLabelPosition, FormRules, FormStarPosition } from './types'

@@ -18,2 +18,10 @@ export const FORM_KEY = Symbol('Form')

rules: makeObjectProp<FormRules>({}),
/**
* @description 表单项 label 的位置
*/
labelPosition: makeStringProp<FormLabelPosition>('left'),
/**
* @description 必填表单项 label 的红色星标位置
*/
starPosition: makeStringProp<FormStarPosition>('left'),
}

@@ -20,0 +28,0 @@

@@ -1,2 +0,2 @@

import type { FormItemRule } from '../formitem/types'
import type { FormItemLabelPosition, FormItemRule, FormItemStarPosition } from '../formitem/types'

@@ -31,1 +31,4 @@ export interface FormRules {

}
export type FormLabelPosition = FormItemLabelPosition
export type FormStarPosition = FormItemStarPosition
import type { ExtractPropTypes } from 'vue'
import { commonProps, makeArrayProp, makeNumericProp, makeStringProp, nullableBooleanProp, truthProp } from '../_utils'
import type { FormItemRule } from './types'
import type { FormItemLabelPosition, FormItemRule, FormItemStarPosition } from './types'

@@ -56,4 +56,12 @@ export const formitemProps = {

showErrorMessage: truthProp,
/**
* @description 表单项 label 的位置,优先级高于 form 中的 `label-position`
*/
labelPosition: makeStringProp<FormItemLabelPosition | undefined>(undefined),
/**
* @description 必填表单项 label 的红色星标位置,优先级高于 form 中的 `star-position`
*/
starPosition: makeStringProp<FormItemStarPosition | undefined>(undefined),
}
export type FormItemProps = ExtractPropTypes<typeof formitemProps>

@@ -8,4 +8,10 @@ export class FormItemRuleWithoutValidator {

export class FormItemRule extends FormItemRuleWithoutValidator {
validator?: (value: any, ruleCfg?: FormItemRuleWithoutValidator) => Promise<string | boolean>
export interface FormItemRule extends FormItemRuleWithoutValidator {
validator?: (
value: any,
ruleCfg: FormItemRuleWithoutValidator
) => boolean | Promise<string> | Promise<boolean> | Promise<void> | Promise<unknown>
}
export type FormItemLabelPosition = 'left' | 'right' | 'top'
export type FormItemStarPosition = 'left' | 'right'
{
"name": "nutui-uniapp",
"displayName": "nutui-uniapp",
"version": "1.5.6",
"version": "1.5.7",
"description": "京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)",

@@ -6,0 +6,0 @@ "author": "yang1206 <y1149221897@outlook.com>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc