element-plus
Version:
A Component Library for Vue 3
60 lines (56 loc) • 1.61 kB
JavaScript
;
var lodashUnified = require('lodash-unified');
var runtime = require('../../../utils/vue/props/runtime.js');
var shared = require('@vue/shared');
var event = require('../../../constants/event.js');
const colorPickerPanelProps = runtime.buildProps({
/**
* @description binding value
*/
modelValue: {
type: runtime.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: runtime.definePropType(Array)
},
/**
* @description whether to trigger form validation
*/
validateEvent: {
type: Boolean,
default: true
}
});
const colorPickerPanelEmits = {
[event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || lodashUnified.isNil(val)
};
const ROOT_COMMON_COLOR_INJECTION_KEY = /* @__PURE__ */ Symbol("colorCommonPickerKey");
const colorPickerPanelContextKey = /* @__PURE__ */ Symbol("colorPickerPanelContextKey");
exports.ROOT_COMMON_COLOR_INJECTION_KEY = ROOT_COMMON_COLOR_INJECTION_KEY;
exports.colorPickerPanelContextKey = colorPickerPanelContextKey;
exports.colorPickerPanelEmits = colorPickerPanelEmits;
exports.colorPickerPanelProps = colorPickerPanelProps;
//# sourceMappingURL=color-picker-panel.js.map