✨(all): update
This commit is contained in:
parent
6724127c32
commit
59e874d3c4
@ -30,7 +30,7 @@ onClickOutside(dropdownRef, (event) => {
|
|||||||
openState.value = false;
|
openState.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
const open = function (event?: Event) : void {
|
const open = function (event?: Event): void {
|
||||||
if (props.disabled === false) {
|
if (props.disabled === false) {
|
||||||
if (event) {
|
if (event) {
|
||||||
const el = event.currentTarget;
|
const el = event.currentTarget;
|
||||||
@ -47,12 +47,12 @@ const open = function (event?: Event) : void {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const hide = function () : void {
|
const hide = function (): void {
|
||||||
openState.value = false;
|
openState.value = false;
|
||||||
emit("hide");
|
emit("hide");
|
||||||
};
|
};
|
||||||
|
|
||||||
const toggle = function (event?: Event) : void {
|
const toggle = function (event?: Event): void {
|
||||||
if (props.disabled === false)
|
if (props.disabled === false)
|
||||||
if (openState.value) {
|
if (openState.value) {
|
||||||
hide();
|
hide();
|
||||||
|
@ -24,7 +24,7 @@ import Schema, {
|
|||||||
Rule,
|
Rule,
|
||||||
RuleItem,
|
RuleItem,
|
||||||
Rules,
|
Rules,
|
||||||
ValidateCallback
|
ValidateCallback,
|
||||||
} from "async-validator";
|
} from "async-validator";
|
||||||
import cnValidateMessage from "./cnValidateMessage";
|
import cnValidateMessage from "./cnValidateMessage";
|
||||||
|
|
||||||
|
@ -102,7 +102,8 @@ onMounted(() => {
|
|||||||
const foundCodes = meta.value.getElementsByClassName("language-html");
|
const foundCodes = meta.value.getElementsByClassName("language-html");
|
||||||
|
|
||||||
if (foundDescs.length) {
|
if (foundDescs.length) {
|
||||||
codeAreaHeight.value = foundDescs[0].clientHeight + foundCodes[0].clientHeight + 30;
|
codeAreaHeight.value =
|
||||||
|
foundDescs[0].clientHeight + foundCodes[0].clientHeight + 30;
|
||||||
} else {
|
} else {
|
||||||
codeAreaHeight.value = foundCodes[0].clientHeight + 20;
|
codeAreaHeight.value = foundCodes[0].clientHeight + 20;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user