2021-12-23 11:51:10 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/async.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/autoSize.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="resize: none;"
|
2021-12-23 11:51:10 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/basic.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
>
|
|
|
|
@afc163
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/form.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<form
|
|
|
|
class="ant-form ant-form-horizontal"
|
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-row ant-form-item-row"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<label
|
|
|
|
class=""
|
|
|
|
for="coders"
|
|
|
|
title="Top coders"
|
|
|
|
>
|
|
|
|
Top coders
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item-control-input"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item-control-input-content"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
id="coders"
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-12-23 11:51:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-row ant-form-item-row"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<label
|
|
|
|
class="ant-form-item-required"
|
|
|
|
for="bio"
|
|
|
|
title="Bio"
|
|
|
|
>
|
|
|
|
Bio
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item-control-input"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item-control-input-content"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
|
|
|
>
|
|
|
|
<textarea
|
2022-08-24 17:07:50 +08:00
|
|
|
aria-required="true"
|
2022-07-19 16:01:31 +08:00
|
|
|
class="rc-textarea"
|
|
|
|
id="bio"
|
|
|
|
placeholder="You can use @ to ref user here"
|
|
|
|
rows="3"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-12-23 11:51:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-row ant-form-item-row"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-col ant-col-14 ant-col-offset-6 ant-form-item-control"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-19 16:01:31 +08:00
|
|
|
class="ant-form-item-control-input"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2022-07-19 16:01:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-form-item-control-input-content"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
2023-02-04 21:25:12 +08:00
|
|
|
<div
|
|
|
|
class="ant-space ant-space-horizontal ant-space-align-center"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="flex-wrap: wrap; margin-bottom: -8px;"
|
2022-07-19 16:01:31 +08:00
|
|
|
>
|
2023-02-04 21:25:12 +08:00
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="margin-right: 8px; padding-bottom: 8px;"
|
2023-02-04 21:25:12 +08:00
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
|
|
|
type="submit"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Submit
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="padding-bottom: 8px;"
|
2023-02-04 21:25:12 +08:00
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-default"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Reset
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-19 16:01:31 +08:00
|
|
|
</div>
|
2021-12-23 11:51:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/placement.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/prefix.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
placeholder="input @ to mention people, # to mention tag"
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/readonly.tsx extend context correctly 1`] = `
|
2021-12-23 11:51:10 +08:00
|
|
|
Array [
|
|
|
|
<div
|
2023-03-15 00:08:31 +08:00
|
|
|
style="margin-bottom: 10px;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-mentions ant-mentions-disabled"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea rc-textarea-disabled"
|
|
|
|
disabled=""
|
|
|
|
placeholder="this is disabled Mentions"
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>,
|
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%;"
|
2021-12-23 11:51:10 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
placeholder="this is readOnly Mentions"
|
|
|
|
readonly=""
|
|
|
|
rows="1"
|
|
|
|
/>
|
|
|
|
</div>,
|
|
|
|
]
|
|
|
|
`;
|
2022-02-16 21:14:05 +08:00
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/render-panel.tsx extend context correctly 1`] = `
|
2022-07-12 20:46:27 +08:00
|
|
|
<div
|
2023-03-15 00:08:31 +08:00
|
|
|
style="padding-bottom: 0px; position: relative; min-width: 0;"
|
2022-07-12 20:46:27 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-mentions"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="width: 100%; margin: 0px;"
|
2022-07-12 20:46:27 +08:00
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
>
|
|
|
|
@
|
|
|
|
</textarea>
|
2023-03-15 00:08:31 +08:00
|
|
|
<div
|
|
|
|
class="ant-mentions-measure"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
@
|
|
|
|
</span>
|
|
|
|
<div
|
|
|
|
class="ant-mentions-dropdown ant-mentions-dropdown-placement-bottomRight"
|
2023-05-08 23:28:13 +08:00
|
|
|
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
2023-03-15 00:08:31 +08:00
|
|
|
>
|
|
|
|
<ul
|
|
|
|
class="ant-mentions-dropdown-menu ant-mentions-dropdown-menu-root ant-mentions-dropdown-menu-vertical"
|
|
|
|
data-menu-list="true"
|
|
|
|
role="menu"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
class="ant-mentions-dropdown-menu-item ant-mentions-dropdown-menu-item-active"
|
|
|
|
data-menu-id="rc-menu-uuid-test-afc163"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
afc163
|
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
class="ant-mentions-dropdown-menu-item"
|
|
|
|
data-menu-id="rc-menu-uuid-test-zombieJ"
|
|
|
|
role="menuitem"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
zombieJ
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
style="display: none;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-12 20:46:27 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/mentions/demo/status.tsx extend context correctly 1`] = `
|
2022-02-16 21:14:05 +08:00
|
|
|
<div
|
|
|
|
class="ant-space ant-space-vertical"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
2023-03-15 00:08:31 +08:00
|
|
|
style="margin-bottom: 8px;"
|
2022-02-16 21:14:05 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-mentions ant-mentions-status-error"
|
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
>
|
|
|
|
@afc163
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-space-item"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-mentions ant-mentions-status-warning"
|
|
|
|
>
|
|
|
|
<textarea
|
|
|
|
class="rc-textarea"
|
|
|
|
rows="1"
|
|
|
|
>
|
|
|
|
@afc163
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|