(component): 补充 msg 案例说明

This commit is contained in:
就眠儀式 2022-10-14 22:09:17 +08:00
parent b4db47988b
commit 7057e4894f
3 changed files with 5 additions and 6 deletions

View File

@ -22,9 +22,7 @@ const getStyle = computed<any>(() => {
let allChild = item.value.parentNode.children; let allChild = item.value.parentNode.children;
let allChildNum = allChild.length; let allChildNum = allChild.length;
//activeIndex let activeIndex, currentIndex = 0;
let activeIndex,
currentIndex = 0;
for (let index = 0; index < allChild.length; index++) { for (let index = 0; index < allChild.length; index++) {
const element = allChild[index]; const element = allChild[index];
// @ts-ignore // @ts-ignore

View File

@ -55,10 +55,11 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
}; };
const changeTheme = (theme: string) => { const changeTheme = (theme: string) => {
const defaultPartial: Partial<Theme> = { const defaultPartial: Partial<Theme> = {
mode: 1, mode: 1,
brightness: 100, brightness: 100,
contrast: 80, contrast: 90,
sepia: 0, sepia: 0,
grayscale: 0, grayscale: 0,
}; };

View File

@ -10,7 +10,7 @@
::: title 基础使用 ::: title 基础使用
::: :::
::: demo ::: demo 通过 layer.msg 方法, 创建一个提示框。
<template> <template>
<lay-button type="primary" @click="openMsg">普通消息</lay-button> <lay-button type="primary" @click="openMsg">普通消息</lay-button>
@ -36,7 +36,7 @@ export default {
::: title 指定图标 ::: title 指定图标
::: :::
::: demo ::: demo 使用 `time``icon` 属性, 设置显示事件与图标。
<template> <template>
<lay-button type="primary" @click="openSuccess">成功消息</lay-button> <lay-button type="primary" @click="openSuccess">成功消息</lay-button>