(all): update

This commit is contained in:
就眠儀式 2022-05-24 12:35:25 +08:00
parent 6724127c32
commit 59e874d3c4
12 changed files with 15 additions and 14 deletions

View File

@ -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();

View File

@ -8,4 +8,4 @@
export default { export default {
name: "LayDropdownMenu", name: "LayDropdownMenu",
}; };
</script> </script>

View File

@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
import Component from "./index.vue"; import Component from "./index.vue";
const component: WithInstallType<typeof Component> = withInstall(Component); const component: WithInstallType<typeof Component> = withInstall(Component);
export default component; export default component;

View File

@ -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";

View File

@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
import Component from "./index.vue"; import Component from "./index.vue";
const component: WithInstallType<typeof Component> = withInstall(Component); const component: WithInstallType<typeof Component> = withInstall(Component);
export default component; export default component;

View File

@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
import Component from "./index.vue"; import Component from "./index.vue";
const component: WithInstallType<typeof Component> = withInstall(Component); const component: WithInstallType<typeof Component> = withInstall(Component);
export default component; export default component;

View File

@ -12,4 +12,4 @@ import "./index.less";
<div class="layui-header"> <div class="layui-header">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>

View File

@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
import Component from "./index.vue"; import Component from "./index.vue";
const component: WithInstallType<typeof Component> = withInstall(Component); const component: WithInstallType<typeof Component> = withInstall(Component);
export default component; export default component;

View File

@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
import Component from "./index.vue"; import Component from "./index.vue";
const component: WithInstallType<typeof Component> = withInstall(Component); const component: WithInstallType<typeof Component> = withInstall(Component);
export default component; export default component;

View File

@ -101,4 +101,4 @@ const classes = computed(() => {
<lay-icon type="layui-icon-close-fill" @click="onClear"></lay-icon> <lay-icon type="layui-icon-close-fill" @click="onClear"></lay-icon>
</span> </span>
</div> </div>
</template> </template>

View File

@ -38,4 +38,4 @@ const classes = computed(() => {
<section :class="classes"> <section :class="classes">
<slot></slot> <slot></slot>
</section> </section>
</template> </template>

View File

@ -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;
} }