sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
16 lines (15 loc) • 455 B
JavaScript
import { defaultConfig } from '../config';
export const defaultDropdownProps = () => ({
direction: 'down',
disabled: false,
awayClosable: true,
overlayClosable: true,
duration: 200,
separator: 'shadow',
...defaultConfig.dropdown,
});
export const defaultDropdownItemProps = () => ({
options: () => [],
});
export const dropdownContextSymbol = Symbol('dropdown-context');
export const defaultValueOnClear = () => undefined;