nutui-uniapp
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -17,2 +17,7 @@ /** | ||
export const nullableBooleanProp = { | ||
type: Boolean as PropType<boolean | undefined>, | ||
default: undefined, | ||
} | ||
export function makeRequiredProp<T>(type: T) { | ||
@@ -19,0 +24,0 @@ return { |
import type { ExtractPropTypes } from 'vue' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeStringProp, nullableBooleanProp, truthProp } from '../_utils' | ||
import type { FormItemRule } from './types' | ||
@@ -10,3 +10,3 @@ | ||
*/ | ||
required: Boolean, | ||
required: nullableBooleanProp, | ||
@@ -13,0 +13,0 @@ /** |
@@ -10,7 +10,7 @@ import type { ExtractPropTypes } from 'vue' | ||
*/ | ||
width: makeNumericProp(uni.getSystemInfoSync().windowWidth), | ||
width: makeNumericProp(''), | ||
/** | ||
* @description 轮播卡片的高度 | ||
*/ | ||
height: makeNumericProp(0), | ||
height: makeNumericProp(''), | ||
/** | ||
@@ -17,0 +17,0 @@ * @description 轮播方向,可选值 `horizontal`, `vertical` |
{ | ||
"name": "nutui-uniapp", | ||
"displayName": "nutui-uniapp", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2113357
20469