mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-13 00:09:20 +08:00
feat: 新增select下的popper class
This commit is contained in:
parent
c3f4e41cc8
commit
8e192e7cd4
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<m-form
|
<m-form
|
||||||
class="m-editor-props-panel"
|
class="m-editor-props-panel"
|
||||||
|
popper-class="m-editor-props-panel-popper"
|
||||||
ref="configForm"
|
ref="configForm"
|
||||||
size="small"
|
size="small"
|
||||||
:init-values="values"
|
:init-values="values"
|
||||||
|
@ -14,4 +14,18 @@
|
|||||||
.el-tabs__item {
|
.el-tabs__item {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span,
|
||||||
|
a,
|
||||||
|
p {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-editor-props-panel-popper {
|
||||||
|
span,
|
||||||
|
a,
|
||||||
|
p {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,10 @@ export default defineComponent({
|
|||||||
type: String,
|
type: String,
|
||||||
default: '__key',
|
default: '__key',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
popperClass: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
emits: ['change', 'field-input', 'field-change'],
|
emits: ['change', 'field-input', 'field-change'],
|
||||||
@ -117,6 +121,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const formState: FormState = reactive<FormState>({
|
const formState: FormState = reactive<FormState>({
|
||||||
keyProp: props.keyProp,
|
keyProp: props.keyProp,
|
||||||
|
popperClass: props.popperClass,
|
||||||
config: props.config,
|
config: props.config,
|
||||||
initValues: props.initValues,
|
initValues: props.initValues,
|
||||||
parentValues: props.parentValues,
|
parentValues: props.parentValues,
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
ref="select"
|
ref="select"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
|
:popper-class="`m-select-popper ${popperClass}`"
|
||||||
:size="size"
|
:size="size"
|
||||||
:remote="remote"
|
:remote="remote"
|
||||||
:placeholder="config.placeholder"
|
:placeholder="config.placeholder"
|
||||||
@ -346,6 +347,7 @@ export default defineComponent({
|
|||||||
remote,
|
remote,
|
||||||
options,
|
options,
|
||||||
moreLoadingVisible,
|
moreLoadingVisible,
|
||||||
|
popperClass: mForm?.popperClass,
|
||||||
|
|
||||||
getRequestFuc() {
|
getRequestFuc() {
|
||||||
return getConfig('request');
|
return getConfig('request');
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
export type FormState = {
|
export type FormState = {
|
||||||
config: FormConfig;
|
config: FormConfig;
|
||||||
|
popperClass?: string;
|
||||||
initValues: FormValue;
|
initValues: FormValue;
|
||||||
values: FormValue;
|
values: FormValue;
|
||||||
$emit: (event: string, ...args: any[]) => void;
|
$emit: (event: string, ...args: any[]) => void;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user