primevue
Version:
PrimeVue is a premium UI library for Vue featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, wh
58 lines (52 loc) • 1.46 kB
JavaScript
import { mergeProps, openBlock, createBlock, resolveDynamicComponent, renderSlot, normalizeClass } from 'vue';
import BaseComponent from '@primevue/core/basecomponent';
import InputColorAreaBackgroundStyle from 'primevue/inputcolorareabackground/style';
var script$1 = {
name: 'BaseInputColorAreaBackground',
"extends": BaseComponent,
props: {
as: {
type: [String, Object, Function],
"default": 'DIV'
},
asChild: {
type: Boolean,
"default": false
}
},
style: InputColorAreaBackgroundStyle,
provide: function provide() {
return {
$pcInputColorAreaBackground: this,
$parentInstance: this
};
}
};
var script = {
name: 'InputColorAreaBackground',
"extends": script$1,
inheritAttrs: false,
inject: ['$pcInputColor'],
computed: {
attrs: function attrs() {
return mergeProps(this.a11yAttrs, this.ptmi('root'));
},
a11yAttrs: function a11yAttrs() {
return {
'aria-hidden': 'true'
};
}
}
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return !_ctx.asChild ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps({
key: 0,
"class": _ctx.cx('root')
}, $options.attrs), null, 16, ["class"])) : renderSlot(_ctx.$slots, "default", {
key: 1,
a11yAttrs: $options.a11yAttrs,
"class": normalizeClass(_ctx.cx('root'))
});
}
script.render = render;
export { script as default };