Refactor #5437
parent
4d640c4442
commit
7e177678f0
|
@ -4,6 +4,7 @@ const classes = {
|
|||
root: ({ props }) => [
|
||||
'p-listbox p-component',
|
||||
{
|
||||
'p-listbox-striped': props.stripedRows,
|
||||
'p-disabled': props.disabled,
|
||||
'p-invalid': props.invalid
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ export default {
|
|||
},
|
||||
severity: {
|
||||
type: String,
|
||||
default: null
|
||||
default: 'secondary'
|
||||
},
|
||||
tabindex: {
|
||||
type: Number,
|
||||
|
|
|
@ -232,6 +232,7 @@ export interface OrderListProps {
|
|||
tabindex?: number | string | undefined;
|
||||
/**
|
||||
* Defines the style of the button.
|
||||
* @defaultValue secondary
|
||||
*/
|
||||
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
|
||||
/**
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
:dataKey="dataKey"
|
||||
:autoOptionFocus="autoOptionFocus"
|
||||
:focusOnHover="focusOnHover"
|
||||
:stripedRows="stripedRows"
|
||||
:disabled="disabled"
|
||||
:ariaLabel="ariaLabel"
|
||||
:ariaLabelledby="ariaLabelledby"
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-orderlist p-component',
|
||||
{
|
||||
'p-orderlist-striped': props.stripedRows
|
||||
}
|
||||
],
|
||||
root: 'p-orderlist p-component',
|
||||
controls: 'p-orderlist-controls',
|
||||
container: 'p-orderlist-list-container',
|
||||
header: 'p-orderlist-header',
|
||||
|
|
|
@ -56,7 +56,7 @@ export default {
|
|||
},
|
||||
severity: {
|
||||
type: String,
|
||||
default: null
|
||||
default: 'secondary'
|
||||
},
|
||||
tabindex: {
|
||||
type: Number,
|
||||
|
|
|
@ -11,7 +11,7 @@ import { TransitionProps, VNode } from 'vue';
|
|||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ButtonPassThroughOptions } from '../button';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
import { ClassComponent, GlobalComponentConstructor, HintedString, PassThrough } from '../ts-helpers';
|
||||
|
||||
export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -364,6 +364,11 @@ export interface PickListProps {
|
|||
* @defaultValue true
|
||||
*/
|
||||
showTargetControls?: boolean | undefined;
|
||||
/**
|
||||
* Defines the style of the button.
|
||||
* @defaultValue secondary
|
||||
*/
|
||||
severity?: HintedString<'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast'> | undefined;
|
||||
/**
|
||||
* Index of the list element in tabbing order.
|
||||
*/
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
:dataKey="dataKey"
|
||||
:autoOptionFocus="autoOptionFocus"
|
||||
:focusOnHover="focusOnHover"
|
||||
:stripedRows="stripedRows"
|
||||
:disabled="disabled"
|
||||
:pt="ptm('list')"
|
||||
:unstyled="unstyled"
|
||||
|
@ -109,6 +110,7 @@
|
|||
:dataKey="dataKey"
|
||||
:autoOptionFocus="autoOptionFocus"
|
||||
:focusOnHover="focusOnHover"
|
||||
:stripedRows="stripedRows"
|
||||
:disabled="disabled"
|
||||
:pt="ptm('list')"
|
||||
:unstyled="unstyled"
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-picklist p-component',
|
||||
{
|
||||
'p-picklist-striped': props.stripedRows
|
||||
}
|
||||
],
|
||||
root: 'p-picklist p-component',
|
||||
sourceControls: 'p-picklist-buttons p-picklist-source-controls',
|
||||
sourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
|
||||
sourceHeader: 'p-picklist-header',
|
||||
|
|
Loading…
Reference in New Issue