20260921231313

This commit is contained in:
oneao committed 2026-09-21 23:13:14 +08:00
1 parent ac710c1801
commit 583984c24f
81 files changed
+2523 -288

No files matched your search

@@ -23,6 +23,11 @@ describe('Button 组件', () => {
expect(btn.classes()).toContain('button-loading')
})
it('danger-outline 描边危险变体映射 class', () => {
const wrapper = mount(Button, { props: { type: 'danger-outline' } })
expect(wrapper.find('button').classes()).toContain('button-danger-outline')
})
it('loading 或 disabled 时禁用原生按钮', () => {
const loading = mount(Button, { props: { loading: true } })
expect(loading.find('button').attributes('disabled')).toBeDefined()