Refactor #3965 - Refactor on Dropdown
parent
22e6c7a53e
commit
ff403897d2
|
@ -6,6 +6,7 @@ const styles = `
|
||||||
.p-dropdown {
|
.p-dropdown {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,10 +97,6 @@ input.p-dropdown-label {
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const inlineStyles = {
|
|
||||||
root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined })
|
|
||||||
};
|
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props, state }) => [
|
root: ({ props, state }) => [
|
||||||
'p-dropdown p-component p-inputwrapper',
|
'p-dropdown p-component p-inputwrapper',
|
||||||
|
@ -309,7 +306,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
inlineStyles,
|
|
||||||
classes,
|
classes,
|
||||||
loadStyle
|
loadStyle
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div ref="container" :id="id" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptm('root')" data-pc-name="dropdown">
|
<div ref="container" :id="id" :class="cx('root')" @click="onContainerClick" v-bind="ptm('root')" data-pc-name="dropdown">
|
||||||
<input
|
<input
|
||||||
v-if="editable"
|
v-if="editable"
|
||||||
ref="focusInput"
|
ref="focusInput"
|
||||||
|
|
Loading…
Reference in New Issue