hongluan-ui
Version:
Hongluan Component Library for Vue 3
583 lines (582 loc) • 22.7 kB
TypeScript
import type { Modifier } from '@popperjs/core';
import type { PopperContentProps } from '../content';
export declare const usePopperContent: (props: PopperContentProps) => {
attributes: import("vue").ComputedRef<{
[x: string]: {
[x: string]: string | boolean;
};
}>;
arrowRef: import("vue").Ref<HTMLElement>;
contentRef: import("vue").Ref<HTMLElement>;
instanceRef: import("vue").ComputedRef<import("@popperjs/core").Instance>;
state: import("vue").ComputedRef<{
elements?: {
reference: Element | import("@popperjs/core").VirtualElement;
popper: HTMLElement;
arrow?: HTMLElement;
};
options?: import("@popperjs/core").OptionsGeneric<any>;
placement?: import("@popperjs/core").Placement;
strategy?: import("@popperjs/core").PositioningStrategy;
orderedModifiers?: Modifier<any, any>[];
rects?: import("@popperjs/core").StateRects;
scrollParents?: {
reference: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
popper: (Element | import("@popperjs/core").Window | import("@popperjs/core").VisualViewport)[];
};
styles?: {
[key: string]: Partial<CSSStyleDeclaration>;
};
attributes?: {
[key: string]: {
[key: string]: string | boolean;
};
};
modifiersData?: {
[key: string]: any;
arrow?: {
x?: number;
y?: number;
centerOffset: number;
};
hide?: {
isReferenceHidden: boolean;
hasPopperEscaped: boolean;
referenceClippingOffsets: import("@popperjs/core").SideObject;
popperEscapeOffsets: import("@popperjs/core").SideObject;
};
offset?: {
left?: import("@popperjs/core").Offsets;
right?: import("@popperjs/core").Offsets;
auto?: import("@popperjs/core").Offsets;
"auto-start"?: import("@popperjs/core").Offsets;
"auto-end"?: import("@popperjs/core").Offsets;
top?: import("@popperjs/core").Offsets;
bottom?: import("@popperjs/core").Offsets;
"top-start"?: import("@popperjs/core").Offsets;
"top-end"?: import("@popperjs/core").Offsets;
"bottom-start"?: import("@popperjs/core").Offsets;
"bottom-end"?: import("@popperjs/core").Offsets;
"right-start"?: import("@popperjs/core").Offsets;
"right-end"?: import("@popperjs/core").Offsets;
"left-start"?: import("@popperjs/core").Offsets;
"left-end"?: import("@popperjs/core").Offsets;
};
preventOverflow?: import("@popperjs/core").Offsets;
popperOffsets?: import("@popperjs/core").Offsets;
};
reset?: boolean;
}>;
styles: import("vue").ComputedRef<{
[x: string]: {
[x: number]: string;
accentColor?: string;
alignContent?: string;
alignItems?: string;
alignSelf?: string;
alignmentBaseline?: string;
all?: string;
animation?: string;
animationDelay?: string;
animationDirection?: string;
animationDuration?: string;
animationFillMode?: string;
animationIterationCount?: string;
animationName?: string;
animationPlayState?: string;
animationTimingFunction?: string;
appearance?: string;
aspectRatio?: string;
backfaceVisibility?: string;
background?: string;
backgroundAttachment?: string;
backgroundBlendMode?: string;
backgroundClip?: string;
backgroundColor?: string;
backgroundImage?: string;
backgroundOrigin?: string;
backgroundPosition?: string;
backgroundPositionX?: string;
backgroundPositionY?: string;
backgroundRepeat?: string;
backgroundSize?: string;
baselineShift?: string;
blockSize?: string;
border?: string;
borderBlock?: string;
borderBlockColor?: string;
borderBlockEnd?: string;
borderBlockEndColor?: string;
borderBlockEndStyle?: string;
borderBlockEndWidth?: string;
borderBlockStart?: string;
borderBlockStartColor?: string;
borderBlockStartStyle?: string;
borderBlockStartWidth?: string;
borderBlockStyle?: string;
borderBlockWidth?: string;
borderBottom?: string;
borderBottomColor?: string;
borderBottomLeftRadius?: string;
borderBottomRightRadius?: string;
borderBottomStyle?: string;
borderBottomWidth?: string;
borderCollapse?: string;
borderColor?: string;
borderEndEndRadius?: string;
borderEndStartRadius?: string;
borderImage?: string;
borderImageOutset?: string;
borderImageRepeat?: string;
borderImageSlice?: string;
borderImageSource?: string;
borderImageWidth?: string;
borderInline?: string;
borderInlineColor?: string;
borderInlineEnd?: string;
borderInlineEndColor?: string;
borderInlineEndStyle?: string;
borderInlineEndWidth?: string;
borderInlineStart?: string;
borderInlineStartColor?: string;
borderInlineStartStyle?: string;
borderInlineStartWidth?: string;
borderInlineStyle?: string;
borderInlineWidth?: string;
borderLeft?: string;
borderLeftColor?: string;
borderLeftStyle?: string;
borderLeftWidth?: string;
borderRadius?: string;
borderRight?: string;
borderRightColor?: string;
borderRightStyle?: string;
borderRightWidth?: string;
borderSpacing?: string;
borderStartEndRadius?: string;
borderStartStartRadius?: string;
borderStyle?: string;
borderTop?: string;
borderTopColor?: string;
borderTopLeftRadius?: string;
borderTopRightRadius?: string;
borderTopStyle?: string;
borderTopWidth?: string;
borderWidth?: string;
bottom?: string;
boxShadow?: string;
boxSizing?: string;
breakAfter?: string;
breakBefore?: string;
breakInside?: string;
captionSide?: string;
caretColor?: string;
clear?: string;
clip?: string;
clipPath?: string;
clipRule?: string;
color?: string;
colorInterpolation?: string;
colorInterpolationFilters?: string;
colorScheme?: string;
columnCount?: string;
columnFill?: string;
columnGap?: string;
columnRule?: string;
columnRuleColor?: string;
columnRuleStyle?: string;
columnRuleWidth?: string;
columnSpan?: string;
columnWidth?: string;
columns?: string;
contain?: string;
content?: string;
counterIncrement?: string;
counterReset?: string;
counterSet?: string;
cssFloat?: string;
cssText?: string;
cursor?: string;
direction?: string;
display?: string;
dominantBaseline?: string;
emptyCells?: string;
fill?: string;
fillOpacity?: string;
fillRule?: string;
filter?: string;
flex?: string;
flexBasis?: string;
flexDirection?: string;
flexFlow?: string;
flexGrow?: string;
flexShrink?: string;
flexWrap?: string;
float?: string;
floodColor?: string;
floodOpacity?: string;
font?: string;
fontFamily?: string;
fontFeatureSettings?: string;
fontKerning?: string;
fontOpticalSizing?: string;
fontSize?: string;
fontSizeAdjust?: string;
fontStretch?: string;
fontStyle?: string;
fontSynthesis?: string;
fontVariant?: string;
fontVariantAlternates?: string;
fontVariantCaps?: string;
fontVariantEastAsian?: string;
fontVariantLigatures?: string;
fontVariantNumeric?: string;
fontVariantPosition?: string;
fontVariationSettings?: string;
fontWeight?: string;
gap?: string;
grid?: string;
gridArea?: string;
gridAutoColumns?: string;
gridAutoFlow?: string;
gridAutoRows?: string;
gridColumn?: string;
gridColumnEnd?: string;
gridColumnGap?: string;
gridColumnStart?: string;
gridGap?: string;
gridRow?: string;
gridRowEnd?: string;
gridRowGap?: string;
gridRowStart?: string;
gridTemplate?: string;
gridTemplateAreas?: string;
gridTemplateColumns?: string;
gridTemplateRows?: string;
height?: string;
hyphens?: string;
imageOrientation?: string;
imageRendering?: string;
inlineSize?: string;
inset?: string;
insetBlock?: string;
insetBlockEnd?: string;
insetBlockStart?: string;
insetInline?: string;
insetInlineEnd?: string;
insetInlineStart?: string;
isolation?: string;
justifyContent?: string;
justifyItems?: string;
justifySelf?: string;
left?: string;
readonly length?: number;
letterSpacing?: string;
lightingColor?: string;
lineBreak?: string;
lineHeight?: string;
listStyle?: string;
listStyleImage?: string;
listStylePosition?: string;
listStyleType?: string;
margin?: string;
marginBlock?: string;
marginBlockEnd?: string;
marginBlockStart?: string;
marginBottom?: string;
marginInline?: string;
marginInlineEnd?: string;
marginInlineStart?: string;
marginLeft?: string;
marginRight?: string;
marginTop?: string;
marker?: string;
markerEnd?: string;
markerMid?: string;
markerStart?: string;
mask?: string;
maskType?: string;
maxBlockSize?: string;
maxHeight?: string;
maxInlineSize?: string;
maxWidth?: string;
minBlockSize?: string;
minHeight?: string;
minInlineSize?: string;
minWidth?: string;
mixBlendMode?: string;
objectFit?: string;
objectPosition?: string;
offset?: string;
offsetAnchor?: string;
offsetDistance?: string;
offsetPath?: string;
offsetRotate?: string;
opacity?: string;
order?: string;
orphans?: string;
outline?: string;
outlineColor?: string;
outlineOffset?: string;
outlineStyle?: string;
outlineWidth?: string;
overflow?: string;
overflowAnchor?: string;
overflowWrap?: string;
overflowX?: string;
overflowY?: string;
overscrollBehavior?: string;
overscrollBehaviorBlock?: string;
overscrollBehaviorInline?: string;
overscrollBehaviorX?: string;
overscrollBehaviorY?: string;
padding?: string;
paddingBlock?: string;
paddingBlockEnd?: string;
paddingBlockStart?: string;
paddingBottom?: string;
paddingInline?: string;
paddingInlineEnd?: string;
paddingInlineStart?: string;
paddingLeft?: string;
paddingRight?: string;
paddingTop?: string;
pageBreakAfter?: string;
pageBreakBefore?: string;
pageBreakInside?: string;
paintOrder?: string;
readonly parentRule?: {
cssText: string;
readonly parentRule: any;
readonly parentStyleSheet: {
readonly cssRules: {
[x: number]: any;
readonly length: number;
item: (index: number) => CSSRule;
[Symbol.iterator]: () => IterableIterator<CSSRule>;
};
readonly ownerRule: any;
readonly rules: {
[x: number]: any;
readonly length: number;
item: (index: number) => CSSRule;
[Symbol.iterator]: () => IterableIterator<CSSRule>;
};
addRule: (selector?: string, style?: string, index?: number) => number;
deleteRule: (index: number) => void;
insertRule: (rule: string, index?: number) => number;
removeRule: (index?: number) => void;
disabled: boolean;
readonly href: string;
readonly media: {
[x: number]: string;
readonly length: number;
mediaText: string;
toString: () => string;
appendMedium: (medium: string) => void;
deleteMedium: (medium: string) => void;
item: (index: number) => string;
[Symbol.iterator]: () => IterableIterator<string>;
};
readonly ownerNode: Element | ProcessingInstruction;
readonly parentStyleSheet: any;
readonly title: string;
readonly type: string;
};
readonly type: number;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
};
perspective?: string;
perspectiveOrigin?: string;
placeContent?: string;
placeItems?: string;
placeSelf?: string;
pointerEvents?: string;
position?: string;
quotes?: string;
resize?: string;
right?: string;
rotate?: string;
rowGap?: string;
rubyPosition?: string;
scale?: string;
scrollBehavior?: string;
scrollMargin?: string;
scrollMarginBlock?: string;
scrollMarginBlockEnd?: string;
scrollMarginBlockStart?: string;
scrollMarginBottom?: string;
scrollMarginInline?: string;
scrollMarginInlineEnd?: string;
scrollMarginInlineStart?: string;
scrollMarginLeft?: string;
scrollMarginRight?: string;
scrollMarginTop?: string;
scrollPadding?: string;
scrollPaddingBlock?: string;
scrollPaddingBlockEnd?: string;
scrollPaddingBlockStart?: string;
scrollPaddingBottom?: string;
scrollPaddingInline?: string;
scrollPaddingInlineEnd?: string;
scrollPaddingInlineStart?: string;
scrollPaddingLeft?: string;
scrollPaddingRight?: string;
scrollPaddingTop?: string;
scrollSnapAlign?: string;
scrollSnapStop?: string;
scrollSnapType?: string;
shapeImageThreshold?: string;
shapeMargin?: string;
shapeOutside?: string;
shapeRendering?: string;
stopColor?: string;
stopOpacity?: string;
stroke?: string;
strokeDasharray?: string;
strokeDashoffset?: string;
strokeLinecap?: string;
strokeLinejoin?: string;
strokeMiterlimit?: string;
strokeOpacity?: string;
strokeWidth?: string;
tabSize?: string;
tableLayout?: string;
textAlign?: string;
textAlignLast?: string;
textAnchor?: string;
textCombineUpright?: string;
textDecoration?: string;
textDecorationColor?: string;
textDecorationLine?: string;
textDecorationSkipInk?: string;
textDecorationStyle?: string;
textDecorationThickness?: string;
textEmphasis?: string;
textEmphasisColor?: string;
textEmphasisPosition?: string;
textEmphasisStyle?: string;
textIndent?: string;
textOrientation?: string;
textOverflow?: string;
textRendering?: string;
textShadow?: string;
textTransform?: string;
textUnderlineOffset?: string;
textUnderlinePosition?: string;
top?: string;
touchAction?: string;
transform?: string;
transformBox?: string;
transformOrigin?: string;
transformStyle?: string;
transition?: string;
transitionDelay?: string;
transitionDuration?: string;
transitionProperty?: string;
transitionTimingFunction?: string;
translate?: string;
unicodeBidi?: string;
userSelect?: string;
verticalAlign?: string;
visibility?: string;
webkitAlignContent?: string;
webkitAlignItems?: string;
webkitAlignSelf?: string;
webkitAnimation?: string;
webkitAnimationDelay?: string;
webkitAnimationDirection?: string;
webkitAnimationDuration?: string;
webkitAnimationFillMode?: string;
webkitAnimationIterationCount?: string;
webkitAnimationName?: string;
webkitAnimationPlayState?: string;
webkitAnimationTimingFunction?: string;
webkitAppearance?: string;
webkitBackfaceVisibility?: string;
webkitBackgroundClip?: string;
webkitBackgroundOrigin?: string;
webkitBackgroundSize?: string;
webkitBorderBottomLeftRadius?: string;
webkitBorderBottomRightRadius?: string;
webkitBorderRadius?: string;
webkitBorderTopLeftRadius?: string;
webkitBorderTopRightRadius?: string;
webkitBoxAlign?: string;
webkitBoxFlex?: string;
webkitBoxOrdinalGroup?: string;
webkitBoxOrient?: string;
webkitBoxPack?: string;
webkitBoxShadow?: string;
webkitBoxSizing?: string;
webkitFilter?: string;
webkitFlex?: string;
webkitFlexBasis?: string;
webkitFlexDirection?: string;
webkitFlexFlow?: string;
webkitFlexGrow?: string;
webkitFlexShrink?: string;
webkitFlexWrap?: string;
webkitJustifyContent?: string;
webkitLineClamp?: string;
webkitMask?: string;
webkitMaskBoxImage?: string;
webkitMaskBoxImageOutset?: string;
webkitMaskBoxImageRepeat?: string;
webkitMaskBoxImageSlice?: string;
webkitMaskBoxImageSource?: string;
webkitMaskBoxImageWidth?: string;
webkitMaskClip?: string;
webkitMaskComposite?: string;
webkitMaskImage?: string;
webkitMaskOrigin?: string;
webkitMaskPosition?: string;
webkitMaskRepeat?: string;
webkitMaskSize?: string;
webkitOrder?: string;
webkitPerspective?: string;
webkitPerspectiveOrigin?: string;
webkitTextFillColor?: string;
webkitTextStroke?: string;
webkitTextStrokeColor?: string;
webkitTextStrokeWidth?: string;
webkitTransform?: string;
webkitTransformOrigin?: string;
webkitTransformStyle?: string;
webkitTransition?: string;
webkitTransitionDelay?: string;
webkitTransitionDuration?: string;
webkitTransitionProperty?: string;
webkitTransitionTimingFunction?: string;
webkitUserSelect?: string;
whiteSpace?: string;
widows?: string;
width?: string;
willChange?: string;
wordBreak?: string;
wordSpacing?: string;
wordWrap?: string;
writingMode?: string;
zIndex?: string;
getPropertyPriority?: (property: string) => string;
getPropertyValue?: (property: string) => string;
item?: (index: number) => string;
removeProperty?: (property: string) => string;
setProperty?: (property: string, value: string, priority?: string) => void;
[Symbol.iterator]?: () => IterableIterator<string>;
};
}>;
role: import("vue").ComputedRef<string>;
forceUpdate: () => void;
update: () => Promise<Partial<import("@popperjs/core").State>>;
};
export declare type UsePopperContentReturn = ReturnType<typeof usePopperContent>;