adverich-kun-ui
Version:
Una librería de componentes Vue.js con Tailwind CSS
93 lines (92 loc) • 2.08 kB
JavaScript
const e = {
label: {
type: String
},
itemValue: {
type: String,
default: null
},
itemTitle: {
type: [String, Array],
default: null
},
itemText: {
type: [String, Array],
default: null
},
itemSubtitle: {
type: [String, Array],
default: null
},
returnObject: {
type: Boolean,
default: !1
},
searchableKeys: {
type: Array,
default: []
},
focusOnRender: {
type: Boolean,
default: !1
},
focusOnSelect: {
type: Boolean,
default: !1
},
clearable: {
type: Boolean,
default: !1
},
clearOnSelect: {
type: Boolean,
default: !1
},
clearSearchOnSelect: {
type: Boolean,
default: !0
},
clearOnNotFound: { type: Boolean, default: !0 },
closeOnSelect: { type: Boolean, default: !0 },
menuOrigin: { type: String, default: "bottom left" },
startEmtpy: { type: Boolean, default: !1 },
placeholderText: { type: String, default: "Seleccionar" },
textNoItems: { type: String, default: "No hay elementos" },
hasCreateItem: { type: Boolean, default: !1 },
btnCreateClass: { type: String, default: "w-full" },
btnCreateBg: { typer: String, default: "bg-green-700" },
btnCreateText: { typer: String, default: "Crear item" },
multiple: { type: Boolean, default: !1 },
required: {
type: Boolean,
default: !1
},
// ***** STYLE ***** //
height: { default: "h-[500px]" },
maxHeight: { default: "max-h-1/2" },
density: { type: String, default: "default" },
zIndex: { type: String, default: "z-250" },
hideDetails: {
type: Boolean,
default: !0
},
hasIcons: {
type: Boolean,
default: !0
},
bgMenuColor: { type: String, default: "bg-menu" },
bgItemListColor: { type: String, default: "bg-transparent" },
selectedItemListColor: { type: String, default: "bg-select-background" },
hoverItemListColor: { type: String, default: "hover:bg-select-hover" },
attach: {
type: Boolean,
default: !1
},
rules: {
type: Array,
default: () => []
}
};
export {
e as KunAutocompleteProps
};