feat: 完成分享、单会话与发布审批改造
- 增加工作流协作分享与知识库卡片分享入口,统一低版本浏览器复制反馈 - Web 新登录替换旧会话,并保持 API Key 会话隔离 - 发布审批增加必填说明并在审批详情展示 - 账号重置与导入改用可配置默认强密码
This commit is contained in:
@@ -89,6 +89,28 @@ describe('cardList', () => {
|
||||
expect(primaryAction).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('异步次级操作执行中会禁用重复点击并展示加载态', async () => {
|
||||
const inlineAction = vi.fn();
|
||||
const wrapper = mountCardList({
|
||||
actions: [
|
||||
{
|
||||
disabled: () => true,
|
||||
loading: () => true,
|
||||
text: '分享',
|
||||
placement: 'inline',
|
||||
onClick: inlineAction,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const actionButton = wrapper.get('.card-action-btn');
|
||||
await actionButton.trigger('click');
|
||||
|
||||
expect(actionButton.classes()).toContain('is-loading');
|
||||
expect(actionButton.classes()).toContain('is-disabled');
|
||||
expect(inlineAction).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('键盘 Enter 可以触发主动作', async () => {
|
||||
const primaryAction = vi.fn();
|
||||
const wrapper = mountCardList({
|
||||
|
||||
Reference in New Issue
Block a user