2021-12-23 11:51:10 +08:00
|
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/async.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/autoSize.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/basic.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
rows="1"
|
|
|
|
|
>
|
|
|
|
|
@afc163
|
|
|
|
|
</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/form.md extend context correctly 1`] = `
|
|
|
|
|
<form
|
|
|
|
|
class="ant-form ant-form-horizontal"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-row ant-form-item"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
|
|
|
|
>
|
|
|
|
|
<label
|
|
|
|
|
class=""
|
|
|
|
|
for="coders"
|
|
|
|
|
title="Top coders"
|
|
|
|
|
>
|
|
|
|
|
Top coders
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input-content"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
id="coders"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-row ant-form-item"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
|
|
|
|
>
|
|
|
|
|
<label
|
|
|
|
|
class="ant-form-item-required"
|
|
|
|
|
for="bio"
|
|
|
|
|
title="Bio"
|
|
|
|
|
>
|
|
|
|
|
Bio
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input-content"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
id="bio"
|
|
|
|
|
placeholder="You can use @ to ref user here"
|
|
|
|
|
rows="3"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-row ant-form-item"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-col ant-col-14 ant-col-offset-6 ant-form-item-control"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input-content"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
class="ant-btn ant-btn-primary"
|
|
|
|
|
type="submit"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
Submit
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
|
class="ant-btn ant-btn-default"
|
2021-12-23 11:51:10 +08:00
|
|
|
|
type="button"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
Reset
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/placement.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/prefix.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
placeholder="input @ to mention people, # to mention tag"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/readonly.md extend context correctly 1`] = `
|
|
|
|
|
Array [
|
|
|
|
|
<div
|
|
|
|
|
style="margin-bottom:10px"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions ant-mentions-disabled"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea rc-textarea-disabled"
|
|
|
|
|
disabled=""
|
|
|
|
|
placeholder="this is disabled Mentions"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>,
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
|
|
|
|
placeholder="this is readOnly Mentions"
|
|
|
|
|
readonly=""
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>,
|
|
|
|
|
]
|
|
|
|
|
`;
|
2022-02-16 21:14:05 +08:00
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/status.md extend context correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-space ant-space-vertical"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-space-item"
|
|
|
|
|
style="margin-bottom:8px"
|
|
|
|
|
>
|
|
|
|
|
<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>
|
|
|
|
|
`;
|