2019-05-17 12:05:03 +08:00
|
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/async.md correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/autoSize.md correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="rc-textarea"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/basic.md correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
rows="1"
|
|
|
|
|
>
|
|
|
|
|
@afc163
|
|
|
|
|
</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/form.md correctly 1`] = `
|
|
|
|
|
<form
|
|
|
|
|
class="ant-form ant-form-horizontal"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2019-11-20 11:13:24 +08:00
|
|
|
|
class="ant-row ant-form-item"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<label
|
|
|
|
|
class=""
|
2019-08-26 16:44:36 +08:00
|
|
|
|
for="coders"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
title="Top coders"
|
|
|
|
|
>
|
|
|
|
|
Top coders
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2019-08-29 23:41:46 +08:00
|
|
|
|
class="ant-form-item-control-input"
|
2019-11-24 12:44:58 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2020-02-19 22:04:25 +08:00
|
|
|
|
class="ant-form-item-control-input-content"
|
2019-11-24 12:44:58 +08:00
|
|
|
|
>
|
2020-02-19 22:04:25 +08:00
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2020-02-19 22:04:25 +08:00
|
|
|
|
id="coders"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2019-11-24 12:44:58 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-08-26 16:44:36 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2019-11-20 11:13:24 +08:00
|
|
|
|
class="ant-row ant-form-item"
|
2019-08-26 16:44:36 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
|
class="ant-col ant-col-6 ant-form-item-label"
|
2019-08-26 16:44:36 +08:00
|
|
|
|
>
|
|
|
|
|
<label
|
|
|
|
|
class="ant-form-item-required"
|
|
|
|
|
for="bio"
|
|
|
|
|
title="Bio"
|
|
|
|
|
>
|
|
|
|
|
Bio
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2019-05-17 12:05:03 +08:00
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
|
class="ant-col ant-col-16 ant-form-item-control"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2019-07-03 20:14:39 +08:00
|
|
|
|
class="ant-form-item-control-input"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
2019-07-03 20:14:39 +08:00
|
|
|
|
<div
|
2020-02-19 22:04:25 +08:00
|
|
|
|
class="ant-form-item-control-input-content"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
2020-02-19 22:04:25 +08:00
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2020-02-19 22:04:25 +08:00
|
|
|
|
id="bio"
|
|
|
|
|
placeholder="You can use @ to ref user here"
|
|
|
|
|
rows="3"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2019-07-03 20:14:39 +08:00
|
|
|
|
</div>
|
2019-05-17 12:05:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2019-11-20 11:13:24 +08:00
|
|
|
|
class="ant-row ant-form-item"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2020-01-03 15:20:28 +08:00
|
|
|
|
class="ant-col ant-col-14 ant-col-offset-6 ant-form-item-control"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
|
|
|
|
<div
|
2019-07-03 20:14:39 +08:00
|
|
|
|
class="ant-form-item-control-input"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
>
|
2020-02-19 22:04:25 +08:00
|
|
|
|
<div
|
|
|
|
|
class="ant-form-item-control-input-content"
|
2019-07-03 20:14:39 +08:00
|
|
|
|
>
|
2020-02-19 22:04:25 +08:00
|
|
|
|
<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"
|
2020-02-19 22:04:25 +08:00
|
|
|
|
type="button"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
|
|
|
|
Reset
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2019-05-17 12:05:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/placement.md correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/prefix.md correctly 1`] = `
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
placeholder="input @ to mention people, # to mention tag"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/readonly.md correctly 1`] = `
|
2020-07-07 23:04:27 +08:00
|
|
|
|
Array [
|
2019-05-17 12:05:03 +08:00
|
|
|
|
<div
|
|
|
|
|
style="margin-bottom:10px"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions ant-mentions-disabled"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea rc-textarea-disabled"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
disabled=""
|
|
|
|
|
placeholder="this is disabled Mentions"
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2020-07-07 23:04:27 +08:00
|
|
|
|
</div>,
|
2019-05-17 12:05:03 +08:00
|
|
|
|
<div
|
|
|
|
|
class="ant-mentions"
|
|
|
|
|
style="width:100%"
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
2020-06-28 22:41:59 +08:00
|
|
|
|
class="rc-textarea"
|
2019-05-17 12:05:03 +08:00
|
|
|
|
placeholder="this is readOnly Mentions"
|
|
|
|
|
readonly=""
|
|
|
|
|
rows="1"
|
|
|
|
|
/>
|
2020-07-07 23:04:27 +08:00
|
|
|
|
</div>,
|
|
|
|
|
]
|
2019-05-17 12:05:03 +08:00
|
|
|
|
`;
|
2022-02-16 21:14:05 +08:00
|
|
|
|
|
|
|
|
|
exports[`renders ./components/mentions/demo/status.md 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>
|
|
|
|
|
`;
|