antd-mini
Advanced tools
Comparing version 0.0.8 to 0.0.9-beta.1
@@ -8,41 +8,48 @@ import { IBaseFormItemProps } from '../_base'; | ||
/** | ||
* @description 搜索框的值 | ||
* @description 辅助图标类型 | ||
* @default 'AudioFill' | ||
*/ | ||
value?: string; | ||
bizIconType: string; | ||
/** | ||
* @description 提示文字 | ||
* @description 取消按钮文案 | ||
* @default "取消" | ||
*/ | ||
placeholder?: string; | ||
cancelText?: string; | ||
/** | ||
* @description submit 回调 | ||
* @description 是否受控模式 | ||
* @default false | ||
*/ | ||
onSubmit?: (v: string) => void; | ||
controlled?: boolean; | ||
/** | ||
* @description 点击取消回调 | ||
* @description 是否启用 Native 渲染 | ||
* @default false | ||
*/ | ||
onCancel?: (v: string) => void; | ||
enableNative?: boolean; | ||
/** | ||
* @description 点击删除回调 | ||
* @description 最大长度 | ||
*/ | ||
onClear?: (v: string) => void; | ||
maxLength?: number; | ||
/** | ||
* @description 是否显示取消按钮 | ||
* @default false | ||
* @description 提示文字 | ||
*/ | ||
showCancelButton?: boolean; | ||
placeholder?: string; | ||
/** | ||
* @description 取消按钮文案 | ||
* @default "取消" | ||
* @description 是否展示辅助图标 | ||
* @default false | ||
*/ | ||
cancelText?: string; | ||
showBizIcon?: boolean; | ||
/** | ||
* @description 最大长度 | ||
* @description 是否显示取消按钮 | ||
* @default false | ||
*/ | ||
maxLength?: number; | ||
showCancelButton?: boolean; | ||
/** | ||
* @description 辅助图标类型 | ||
* @default AudioFill | ||
*/ | ||
bizIconType: string; | ||
/** | ||
* @deprecated | ||
@@ -53,12 +60,14 @@ * @description 是否展示语音图标 | ||
showVoice?: boolean; | ||
/** | ||
* @description 是否展示辅助图标 | ||
* @default false | ||
* @description 搜索框的类型 | ||
* @default 'text' | ||
*/ | ||
showBizIcon?: boolean; | ||
type: 'text' | 'number' | 'idcard' | 'digit' | 'numberpad' | 'digitpad' | 'idcardpad' | ||
/** | ||
* @description 是否受控模式 | ||
* @default false | ||
* @description 搜索框的值 | ||
*/ | ||
controlled?: boolean; | ||
value?: string; | ||
/** | ||
@@ -68,17 +77,30 @@ * @deprecated | ||
*/ | ||
onVoiceTap?: () => void; | ||
onBizIconTap?: () => void; | ||
/** | ||
* @deprecated | ||
* @description 点击语音图标回调 | ||
* @description 点击取消回调 | ||
*/ | ||
onBizIconTap?: () => void; | ||
onCancel?: (v: string) => void; | ||
/** | ||
* @description 点击删除回调 | ||
*/ | ||
onClear?: (v: string) => void; | ||
/** | ||
* @description input 输入回调 | ||
*/ | ||
onInput?: (v: string) => void; | ||
/** | ||
* @description 是否启用 Native 渲染 | ||
* @description submit 回调 | ||
*/ | ||
enableNative?: boolean; | ||
onSubmit?: (v: string) => void; | ||
/** | ||
* @deprecated | ||
* @description 点击语音图标回调 | ||
*/ | ||
onVoiceTap?: () => void; | ||
} | ||
export declare const SearchBarDefaultProps: Partial<ISearchBarProps>; |
@@ -15,4 +15,5 @@ "use strict"; | ||
disabled: false, | ||
bizIconType: 'AudioOutline' | ||
bizIconType: 'AudioOutline', | ||
type: 'text' | ||
}; | ||
exports.SearchBarDefaultProps = SearchBarDefaultProps; |
@@ -63,7 +63,17 @@ | ||
/** | ||
* @description 内部 swiper 组件属性 touch-angle。计算用户手势时所依赖的滑动角度。角度根据 touchstart 事件和首次 touchmove 事件的坐标计算得出。数值越小越对用户的滑动方向准确度要求越高。 | ||
* @description 用户左右滑动手势生效的滑动角度。角度根据 touchstart 事件和首次 touchmove 事件的坐标计算得出。数值越小越对用户的滑动方向准确度要求越高 | ||
* @default 45 | ||
*/ | ||
touchAngle?: number; | ||
/** | ||
* @description 用户左右滑动手势触发切换的阈值,当滑动距离超过阈值时进行 `swiper-item` 切换 | ||
* @default 0.2 | ||
*/ | ||
swipeRatio?: number | ||
/** | ||
* @description 用户左右滑动手势对应的滑动距离,数值越小则需要用户手势相同位移下 `swiper-item` 位移越小 | ||
* @default 0.05 | ||
*/ | ||
swipeSpeed?: number | ||
} | ||
export declare const TabsDefaultProps: Partial<ITabsProps>; |
@@ -16,2 +16,4 @@ "use strict"; | ||
touchAngle: 45, | ||
swipeRatio: 0.2, | ||
swipeSpeed: 0.05, | ||
onGetRef: function onGetRef() {}, | ||
@@ -18,0 +20,0 @@ uid: 'tabs' |
{ | ||
"name": "antd-mini", | ||
"version": "0.0.8", | ||
"version": "0.0.9-beta.1", | ||
"scripts": { | ||
"dev": "minidev dev --less --typescript --no-source-map", | ||
"dev:site": "dumi dev", | ||
"build": "npm run build:component && npm run build:site", | ||
@@ -73,3 +74,3 @@ "build:component": "NODE_ENV=production node scripts/compile.js", | ||
"dumi": "^1.1.35", | ||
"dumi-theme-mobile": "^1.1.17", | ||
"dumi-theme-antd-mini": "0.2.0", | ||
"eslint": "^8.4.1", | ||
@@ -94,2 +95,3 @@ "eslint-config-ali": "^13.0.0", | ||
"marked": "^4.0.12", | ||
"monaco-editor-webpack-plugin": "1.9.0", | ||
"minidev": "^1.0.7", | ||
@@ -96,0 +98,0 @@ "path": "^0.12.7", |
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
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
367476
335
6670
65