UNPKG

nutui-uniapp

Version:

京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)

1,435 lines (1,434 loc) 411 kB
{ "$schema": "http://json.schemastore.org/web-types", "framework": "vue", "name": "nutui-uniapp", "version": "1.8.3", "js-types-syntax": "typescript", "description-markup": "markdown", "contributions": { "html": { "vue-components": [ { "name": "nut-button", "source": { "symbol": "NutButton" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#button-按钮", "props": [ { "name": "type", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "default" }, { "name": "form-type", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "button" }, { "name": "size", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "normal" }, { "name": "shape", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "round" }, { "name": "custom-color", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "plain", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "disabled", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "block", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "loading", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "open-type", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "lang", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "en" }, { "name": "session-from", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "send-message-title", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "send-message-path", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "send-message-img", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "show-message-card", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ] }, { "name": "hover-class", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "string" ], "default": "button-hover" }, { "name": "hover-start-time", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "number" ], "default": "20" }, { "name": "hover-stay-time", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#props", "type": [ "number" ], "default": "70" } ], "slots": [ { "name": "default", "description": "按钮内容", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#slots" }, { "name": "icon", "description": "按钮图标", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#slots" } ], "js": { "events": [ { "name": "click", "description": "点击按钮时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "getphonenumber", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "getuserinfo", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "error", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "opensetting", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "launchapp", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "contact", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "chooseavatar", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "agreeprivacyauthorization", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "addgroupapp", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "chooseaddress", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "chooseinvoicetitle", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "subscribe", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "login", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" }, { "name": "im", "description": "查看[button](https://uniapp.dcloud.net.cn/component/button.html)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/button.html#events" } ] } }, { "name": "nut-cell-group", "source": { "symbol": "NutCellGroup" }, "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup", "props": [ { "name": "title", "description": "分组标题", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup-props", "type": [ "string" ] }, { "name": "desc", "description": "分组描述", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup-props", "type": [ "string" ] } ], "slots": [ { "name": "default", "description": "自定义内容", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup-slots" }, { "name": "title", "description": "自定义 `title` 标题区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup-slots" }, { "name": "desc", "description": "自定义 `desc` 描述区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cellgroup-slots" } ] }, { "name": "nut-cell", "source": { "symbol": "NutCell" }, "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell", "props": [ { "name": "title", "description": "标题名称", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "sub-title", "description": "左侧副标题", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "desc", "description": "右侧描述", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "desc-text-align", "description": "右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ], "default": "right" }, { "name": "is-link", "description": "是否展示右侧箭头并开启点击反馈", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "boolean" ], "default": "false" }, { "name": "to", "description": "跳转地址(uni.navigateTo的url参数)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "round-radius", "description": "圆角半径", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "number | string" ], "default": "6px" }, { "name": "center", "description": "是否使内容垂直居中", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "boolean" ], "default": "false" }, { "name": "size", "description": "单元格大小,可选值为 `large`", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "clickable", "description": "是否启用点击效果(存在 `is-link` 或者 `to` 属性时会自动启用,也可以手动启用)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "boolean" ], "default": "false" }, { "name": "icon", "description": "左侧图标(对应 `nut-icon` 的 `name` 属性)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "string" ] }, { "name": "title-width", "description": "标题宽度", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-props", "type": [ "number | string" ] } ], "slots": [ { "name": "default", "description": "自定义内容", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-slots" }, { "name": "title", "description": "自定义 `title` 标题区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-slots" }, { "name": "icon", "description": "自定义左侧 `icon` 区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-slots" }, { "name": "link", "description": "自定义右侧 `link` 区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-slots" }, { "name": "desc", "description": "自定义 `desc` 描述区域", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-slots" } ], "js": { "events": [ { "name": "click", "description": "点击事件", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/cell.html#cell-events" } ] } }, { "name": "nut-config-provider", "source": { "symbol": "NutConfigProvider" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/configprovider.html#configprovider-全局配置", "props": [ { "name": "theme", "description": "主题风格,设置为 `dark` 来开启深色模式,全局生效", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/configprovider.html#props", "type": [ "string" ] }, { "name": "theme-vars", "description": "自定义主题变量", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/configprovider.html#props", "type": [ "object" ] }, { "name": "z-index", "description": "设置所有弹窗类组件的 z-index,该属性对全局生效", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/configprovider.html#props", "type": [ "number" ], "default": "2000" } ] }, { "name": "nut-icon", "source": { "symbol": "NutIcon" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#icon-图标", "props": [ { "name": "name", "description": "图标名称或图片链接", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#props", "type": [ "String" ] }, { "name": "custom-color", "description": "图标颜色", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#props", "type": [ "String" ] }, { "name": "size", "description": "图标大小,如 `20px` `2em` `2rem`", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#props", "type": [ { "name": "String or Number", "source": { "symbol": "String or Number" } } ] }, { "name": "font-class-name", "description": "自定义 icon 字体基础类名", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#props", "type": [ "String" ], "default": "nutui-iconfont" }, { "name": "class-prefix", "description": "自定义 icon 类名前缀,用于使用自定义图标", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#props", "type": [ "String" ], "default": "nut-icon" } ], "js": { "events": [ { "name": "click", "description": "点击图标时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/icon.html#events" } ] } }, { "name": "nut-overlay", "source": { "symbol": "NutOverlay" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#overlay-遮罩层", "props": [ { "name": "visible", "description": "控制遮罩的显示/隐藏", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "z-index", "description": "自定义遮罩层级", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "number" ] }, { "name": "duration", "description": "显示/隐藏的动画时长,单位毫秒", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "string", "number" ], "default": "300" }, { "name": "overlay-class", "description": "自定义遮罩类名", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "string" ] }, { "name": "overlay-style", "description": "自定义遮罩样式", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ { "name": "CSSProperties", "source": { "symbol": "CSSProperties", "module": "vue" } } ] }, { "name": "lock-scroll", "description": "遮罩显示时的背景是否锁定", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "close-on-click-overlay", "description": "点击遮罩时是否关闭", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "boolean" ], "default": "true" }, { "name": "destroy-on-close", "description": "弹层关闭后 `slot` 内容会不会清空", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#props", "type": [ "boolean" ], "default": "false" } ], "slots": [ { "name": "default", "description": "内嵌遮罩内容自定义", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#slots" } ], "js": { "events": [ { "name": "click", "description": "点击时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/overlay.html#events" } ] } }, { "name": "nut-popup", "source": { "symbol": "NutPopup" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#popup-弹出层", "props": [ { "name": "visible", "description": "控制当前组件显示/隐藏", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "position", "description": "弹出位置(top,bottom,left,right,center)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ], "default": "center" }, { "name": "transition", "description": "动画名", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ] }, { "name": "pop-class", "description": "自定义弹框类名", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ] }, { "name": "round", "description": "是否显示圆角", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "closeable", "description": "是否显示关闭按钮", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "close-icon", "description": "[图标名称](/components/basic/icon) 或图片链接", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ], "default": "close" }, { "name": "close-icon-position", "description": "关闭按钮位置(top-left,top-right,bottom-left,bottom-right)", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ], "default": "top-right" }, { "name": "destroy-on-close", "description": "弹层关闭后 `slot`内容会不会清空", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "true" }, { "name": "overlay", "description": "是否显示遮罩", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "true" }, { "name": "safe-area-inset-bottom", "description": "是否开启 iphone 系列全面屏底部安全区适配,仅当 `position` 为 `bottom` 时有效", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "safe-area-inset-top", "description": "是否开启 iPhone 顶部安全区适配,仅当 `position` 为 `top` 时有效", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "true" }, { "name": "z-index", "description": "遮罩层级", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "number" ], "default": "2000+" }, { "name": "duration", "description": "组件显示/隐藏的动画时长,单位毫秒", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string", "number" ], "default": "300" }, { "name": "overlay-class", "description": "自定义遮罩层类名", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "string" ] }, { "name": "overlay-style", "description": "自定义遮罩层样式", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ { "name": "CSSProperties", "source": { "symbol": "CSSProperties", "module": "vue" } } ] }, { "name": "lock-scroll", "description": "背景是否锁定", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "close-on-click-overlay", "description": "是否点击遮罩关闭", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#props", "type": [ "boolean" ], "default": "true" } ], "slots": [ { "name": "default", "description": "自定义内嵌内容", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#slots" }, { "name": "closeIcon", "description": "关闭按钮的自定义图标", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#slots" } ], "js": { "events": [ { "name": "click-pop", "description": "点击弹出层时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "click-close-icon", "description": "点击关闭图标时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "click-overlay", "description": "点击遮罩触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "open", "description": "打开弹框时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "opened", "description": "遮罩打开动画结束时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "close", "description": "关闭弹框时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" }, { "name": "closed", "description": "遮罩关闭动画结束时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/popup.html#events" } ] } }, { "name": "nut-transition", "source": { "symbol": "NutTransition" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#transition-过渡动画", "props": [ { "name": "name", "description": "内置动画名称,可选值为 `fade` `fade-up` `fade-down` f`ade-left` `fade-right` `slide-up` `slide-down` `slide-left` `slide-right` `zoom`", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ { "name": "NutAnimationName", "source": { "symbol": "NutAnimationName" } } ], "default": "fade" }, { "name": "show", "description": "是否展示过渡动画级", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "duration", "description": "动画时长,单位为毫秒", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ "string | number" ], "default": "300" }, { "name": "timingFunction", "description": "动画函数", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ { "name": "NutAnimationtimingFunction", "source": { "symbol": "NutAnimationtimingFunction" } } ], "default": "ease" }, { "name": "customClass", "description": "自定义class", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ { "name": "ClassType", "source": { "symbol": "ClassType" } } ] }, { "name": "customStyle", "description": "自定义style", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#props", "type": [ { "name": "StyleValue", "source": { "symbol": "StyleValue", "module": "vue" } } ] } ], "slots": [ { "name": "default", "description": "自定义内嵌内容", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#slots" } ], "js": { "events": [ { "name": "before-enter", "description": "进入过渡动画前触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" }, { "name": "enter", "description": "进入过渡动画时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" }, { "name": "after-enter", "description": "进入过渡动画后触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" }, { "name": "before-leave", "description": "离开过渡动画前触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" }, { "name": "leave", "description": "离开过渡动画时触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" }, { "name": "after-leave", "description": "离开过渡动画后触发", "doc-url": "https://nutui-uniapp.pages.dev/components/basic/transition.html#events" } ] } }, { "name": "nut-doll-machine", "source": { "symbol": "NutDollMachine" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#dollmachine-抓娃娃", "props": [ { "name": "prize-list", "description": "奖品列表", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#props", "type": [ "Array" ], "default": "目前需要至少 4 个奖品" }, { "name": "default-claw", "description": "初始化爪子的图片链接", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#props", "type": [ "string" ] }, { "name": "active-claw", "description": "爪子抓到奖品的图片链接", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#props", "type": [ "string" ] }, { "name": "prize-index", "description": "中奖奖品在列表的索引位置", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#props", "type": [ "Number" ], "default": "-1(-1 未中奖)" } ], "js": { "events": [ { "name": "init", "description": "游戏初始化", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#events" }, { "name": "start-turns", "description": "爪子开始下伸,赋值到 prize-index", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#events" }, { "name": "end-turns", "description": "爪子已经抓到/未抓到奖品触发", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/dollmachine.html#events" } ] } }, { "name": "nut-gift-box", "source": { "symbol": "NutGiftBox" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/giftbox.html#giftbox-神秘大礼盒", "js": { "events": [ { "name": "init", "description": "礼盒初始化", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/giftbox.html#events" }, { "name": "start-turns", "description": "礼盒打开时候的回调函数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/giftbox.html#events" }, { "name": "end-turns", "description": "礼盒打开后的回调函数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/giftbox.html#events" } ] } }, { "name": "nut-hiteggs", "source": { "symbol": "NutHiteggs" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#hiteggs-组件", "props": [ { "name": "num", "description": "金蛋个数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#props", "type": [ "number" ], "default": "9" }, { "name": "intact-img", "description": "完整金蛋图片地址", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#props", "type": [ "String" ] }, { "name": "hammer", "description": "锤子图片", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#props", "type": [ "String" ] }, { "name": "width", "description": "金蛋图片宽度", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#props", "type": [ "String" ], "default": "80px" }, { "name": "height", "description": "金蛋图片高度", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#props", "type": [ "String" ], "default": "80px" } ], "js": { "events": [ { "name": "click", "description": "砸击金蛋后触发", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/hiteggs.html#events" } ] } }, { "name": "nut-marquee", "source": { "symbol": "NutMarquee" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#marquee-跑马灯", "props": [ { "name": "prize-list", "description": "奖品列表", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Array" ], "default": "[]" }, { "name": "prize-index", "description": "中奖奖品在列表的索引位置", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Number" ], "default": "-1" }, { "name": "speed", "description": "转动速度", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Number" ], "default": "150" }, { "name": "circle", "description": "转动圈数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Number" ], "default": "30" }, { "name": "disabled", "description": "是否禁用开始抽奖点击数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Boolean" ], "default": "false" }, { "name": "style-opt", "description": "跑马灯中的样式:bgStyle-整个容器样式,itemStyle-每个奖品样式,startStyle-中间按钮样式", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#props", "type": [ "Object" ], "default": "{bgStyle: {},itemStyle: {},startStyle:{}}" } ], "js": { "events": [ { "name": "start-turns", "description": "开始跑动的回调函数,此时将接口中的中奖索引,赋值到 prize-index", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#events" }, { "name": "end-turns", "description": "停止跑动后的回调函数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/marquee.html#events" } ] } }, { "name": "nut-shake-dice", "source": { "symbol": "NutShakeDice" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#shakedice-组件", "props": [ { "name": "time", "description": "旋转时间", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#props", "type": [ "string" ], "default": "1" }, { "name": "speed", "description": "旋转速度,ms", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#props", "type": [ "number" ], "default": "3000" }, { "name": "id", "description": "中奖的 id(1 为 1 点,依次类推)", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#props", "type": [ "number" ], "default": "1" } ], "js": { "events": [ { "name": "shake", "description": "骰子开始摇动", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#events" }, { "name": "end", "description": "骰子摇动结束", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/shakedice.html#events" } ] } }, { "name": "nut-turntable", "source": { "symbol": "NutTurntable" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#turntable-转盘抽奖-<badge-type=\"warning\">h5</badge>", "props": [ { "name": "width", "description": "转盘的宽度", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "String" ], "default": "300px" }, { "name": "height", "description": "转盘的高度", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "String" ], "default": "300px" }, { "name": "prize-list", "description": "奖品列表", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Array" ] }, { "name": "turns-number", "description": "转动的圈数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Number" ], "default": "5" }, { "name": "turns-time", "description": "从开始转动到结束所用时间", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Number" ], "default": "5(单位是秒)" }, { "name": "prize-index", "description": "中奖奖品在列表的索引位置", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Number" ], "default": "-1" }, { "name": "lock-time", "description": "下次抽奖的间隔时间", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Number" ], "default": "0(单位是秒)" }, { "name": "style-opt", "description": "转盘中的样式,包括每个扇区的背景颜色(在每条数据中页可单独设置 prizeColor),扇区的边框颜色", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Object" ], "default": "{prizeBgColors: [],borderColor: }" }, { "name": "pointer-style", "description": "转盘中指针的样式,包括背景图片、大小等", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#props", "type": [ "Object" ], "default": "{width: 80px,height: 80px}" } ], "js": { "events": [ { "name": "rotate-turns", "description": "开始滚动,手动触发", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#events" }, { "name": "start-turns", "description": "转盘开始转动的回调函数,此时将接口中的中奖索引,赋值到 prize-index", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#events" }, { "name": "end-turns", "description": "转盘中停止转动后的回调函数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#events" }, { "name": "lock-turns", "description": "禁止抽奖时回调函数", "doc-url": "https://nutui-uniapp.pages.dev/components/bingo/turntable.html#events" } ] } }, { "name": "nut-address", "source": { "symbol": "NutAddress" }, "description": "", "doc-url": "https://nutui-uniapp.pages.dev/components/business/address.html#address-地址", "props": [ { "name": "visible", "description": "是否打开地址选择", "doc-url": "https://nutui-uniapp.pages.dev/components/business/address.html#props", "type": [ "boolean" ], "default": "false" }, { "name": "value", "description": "设置默认选中值", "doc-url": "https://nutui-uniapp.pages.dev/components/business/address.html#props", "type": [ "Array" ], "default": "[]" }, { "name": "type", "description": "地址选择类型 `exist/custom/custom2`", "doc-url": "https://nutui-uniapp.pages.dev/components/business/address.html#props", "type": [ "string" ], "default": "custom" }, { "name": "province", "description": "省,每个省的对象中,必须有 `name` 字段,如果类型选择 `custom2`,必须指定 `title` 字段为首字母", "doc-url": "https://nutui-uniapp.pages.dev/components/business/address.html#props", "type": [ "Array" ],