UNPKG

element-plus

Version:

A Component Library for Vue 3

55 lines (52 loc) 1.44 kB
import { isNil } from 'lodash-unified'; import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs'; import { isString } from '@vue/shared'; import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs'; const colorPickerPanelProps = buildProps({ /** * @description binding value */ modelValue: { type: definePropType(String), default: void 0 }, /** * @description whether the color picker is bordered */ border: { type: Boolean, default: true }, /** * @description whether to display the alpha slider */ showAlpha: Boolean, /** * @description color format of v-model */ colorFormat: String, /** * @description whether to disable the color picker */ disabled: Boolean, /** * @description predefined color options */ predefine: { type: definePropType(Array) }, /** * @description whether to trigger form validation */ validateEvent: { type: Boolean, default: true } }); const colorPickerPanelEmits = { [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNil(val) }; const ROOT_COMMON_COLOR_INJECTION_KEY = /* @__PURE__ */ Symbol("colorCommonPickerKey"); const colorPickerPanelContextKey = /* @__PURE__ */ Symbol("colorPickerPanelContextKey"); export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps }; //# sourceMappingURL=color-picker-panel.mjs.map