style: update mentions

feat-css-var
tangjinzhou 3 years ago
parent bfbcdaf9b0
commit c341258241

@ -9,7 +9,7 @@ Mention component.
## When To Use
- When need to mention someone or something.
When you need to mention someone or something.
## API

@ -29,8 +29,8 @@ interface MentionsEntity {
export type MentionPlacement = 'top' | 'bottom';
const getMentions = (value = '', config: MentionsConfig): MentionsEntity[] => {
const { prefix = '@', split = ' ' } = config || {};
const getMentions = (value = '', config: MentionsConfig = {}): MentionsEntity[] => {
const { prefix = '@', split = ' ' } = config;
const prefixList: string[] = Array.isArray(prefix) ? prefix : [prefix];
return value

@ -37,6 +37,7 @@
overflow: inherit;
overflow-x: hidden;
overflow-y: auto;
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
font-weight: inherit;
font-size: inherit;
font-family: inherit;
@ -45,6 +46,7 @@
font-size-adjust: inherit;
font-stretch: inherit;
line-height: inherit;
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
direction: inherit;
letter-spacing: inherit;
white-space: inherit;

Loading…
Cancel
Save