update at 2026-01-28 16:45:27

This commit is contained in:
douboer@gmail.com
2026-01-28 16:45:27 +08:00
parent 9fcc29782e
commit b54cc3f623
24 changed files with 39255 additions and 1490 deletions

View File

@@ -5,11 +5,11 @@
import { describe, it, expect } from 'vitest';
import { mount } from '@vue/test-utils';
import Luopan from '../src/Luopan.vue';
import type { LuopanConfig } from '../src/types';
import type { LuopanConfigInput } from '../src/types';
const flushPromises = () => new Promise((resolve) => setTimeout(resolve, 0));
const baseConfig: LuopanConfig = {
const baseConfig: LuopanConfigInput = {
name: '测试配置',
background: '#000000',
theme: {
@@ -26,20 +26,18 @@ const baseConfig: LuopanConfig = {
},
{
type: 'degreeRing',
degreeRing: {
rInner: 90,
rOuter: 100,
showDegree: 1,
mode: 'both',
opacity: 0.3,
tickLength: 6,
tickLengthStep: 1,
majorTick: 10,
minorTick: 5,
microTick: 1,
tickColor: '#ffffff',
ringColor: '#ffffff',
},
rInner: 90,
rOuter: 100,
showDegree: 1,
mode: 'both',
opacity: 0.3,
tickLength: 6,
tickLengthStep: 1,
majorTick: 10,
minorTick: 5,
microTick: 1,
tickColor: '#ffffff',
ringColor: '#ffffff',
},
{
type: 'centerIcon',