67 lines
1.9 KiB
JavaScript
67 lines
1.9 KiB
JavaScript
"use strict";
|
|
require("./common/vendor.js");
|
|
require("./uni_modules/nutui-uni/components/_utils/env.js");
|
|
const uni_modules_nutuiUni_components__utils_props = require("./uni_modules/nutui-uni/components/_utils/props.js");
|
|
const MENU_KEY = Symbol("nut-menu");
|
|
const menuProps = {
|
|
...uni_modules_nutuiUni_components__utils_props.commonProps,
|
|
/**
|
|
* @description 选项的选中态图标颜色
|
|
*/
|
|
activeColor: uni_modules_nutuiUni_components__utils_props.makeStringProp(""),
|
|
/**
|
|
* @description 是否显示遮罩
|
|
*/
|
|
overlay: uni_modules_nutuiUni_components__utils_props.truthProp,
|
|
/**
|
|
* @description 是否锁定滚动
|
|
*/
|
|
lockScroll: uni_modules_nutuiUni_components__utils_props.truthProp,
|
|
/**
|
|
* @description 动画时长
|
|
*/
|
|
duration: {
|
|
type: [Number, String],
|
|
default: 300
|
|
},
|
|
/**
|
|
* @description 标题图标
|
|
*/
|
|
titleIcon: String,
|
|
/**
|
|
* @description 是否在点击遮罩层后关闭菜单
|
|
*/
|
|
closeOnClickOverlay: uni_modules_nutuiUni_components__utils_props.truthProp,
|
|
/**
|
|
* @description 展开方向
|
|
*/
|
|
direction: uni_modules_nutuiUni_components__utils_props.makeStringProp("down"),
|
|
/**
|
|
* @description 滚动后是否固定,可设置固定位置(需要配合 `scrollTop` 使用)
|
|
*/
|
|
scrollFixed: {
|
|
type: [Boolean, String, Number],
|
|
default: false
|
|
},
|
|
/**
|
|
* @description 页面的滚动距离,通过 `onPageScroll` 获取
|
|
*/
|
|
scrollTop: uni_modules_nutuiUni_components__utils_props.makeNumberProp(0),
|
|
/**
|
|
* @description 标题样式类名
|
|
*/
|
|
titleClass: [String],
|
|
/**
|
|
* @description 收起的图标
|
|
*/
|
|
upIcon: uni_modules_nutuiUni_components__utils_props.makeStringProp("rect-up"),
|
|
/**
|
|
* @description 展开时的图标
|
|
*/
|
|
downIcon: uni_modules_nutuiUni_components__utils_props.makeStringProp("rect-down"),
|
|
offset: Number
|
|
};
|
|
exports.MENU_KEY = MENU_KEY;
|
|
exports.menuProps = menuProps;
|
|
//# sourceMappingURL=../.sourcemap/mp-weixin/menu.js.map
|