Merge branch 'dark' of https://gitee.com/layui-vue/layui-vue into dark
This commit is contained in:
commit
09a5502f54
@ -105,7 +105,7 @@ const handleClick = function () {
|
||||
:lay-skin="skin"
|
||||
>
|
||||
<span v-if="$slots?.default"><slot></slot></span>
|
||||
<i class="layui-icon layui-icon-ok"></i>
|
||||
<i :class="{'layui-icon layui-icon-ok': isChecked}"></i>
|
||||
</div>
|
||||
</span>
|
||||
</template>
|
||||
|
@ -41,9 +41,18 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
|
||||
const changeTheme = (theme: string) => {
|
||||
if (theme === "dark") {
|
||||
enableDarkMode({
|
||||
mode: 1,
|
||||
brightness: 100,
|
||||
contrast: 90,
|
||||
sepia: 10,
|
||||
sepia: 0,
|
||||
// darkSchemeTextColor: 'rgba(255, 255, 255, 0.9)',
|
||||
// darkSchemeBackgroundColor: '#22272E'
|
||||
}, {
|
||||
invert: [],
|
||||
css: ``,
|
||||
ignoreInlineStyle: ['.layui-colorpicker-trigger-span','div.layui-color-picker *'],
|
||||
ignoreImageAnalysis: [],
|
||||
disableStyleSheetsProxy: false,
|
||||
});
|
||||
} else {
|
||||
disableDarkMode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user