chore: 修复换默认主题导致的单元测试报错 (#2409)

This commit is contained in:
吴多益 2021-08-18 20:25:51 +08:00 committed by GitHub
parent 2c8720e704
commit 3645affb82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
65 changed files with 2132 additions and 2131 deletions

View File

@ -36,7 +36,7 @@ exports[`factory load Renderer on need 1`] = `
exports[`factory unregistered Renderer 1`] = `
<div>
<div
class="a-Alert a-Alert--danger"
class="cxd-Alert cxd-Alert--danger"
>
<p>
Error: 找不到对应的渲染器
@ -60,22 +60,22 @@ exports[`factory unregistered Renderer 1`] = `
exports[`factory:definitions 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-header"
class="cxd-Page-header"
>
<h2
class="a-Page-title"
class="cxd-Page-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
引用
@ -84,20 +84,20 @@ exports[`factory:definitions 1`] = `
</h2>
</div>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
表单
@ -106,22 +106,22 @@ exports[`factory:definitions 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
text2
@ -130,10 +130,10 @@ exports[`factory:definitions 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -146,10 +146,10 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
@ -159,15 +159,15 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
combo
@ -176,34 +176,34 @@ exports[`factory:definitions 1`] = `
</span>
</label>
<div
class="a-ComboControl a-Form-control"
class="cxd-ComboControl cxd-Form-control"
>
<div
class="a-Combo a-Combo--multi a-Combo--ver"
class="cxd-Combo cxd-Combo--multi cxd-Combo--ver"
>
<div
class="a-Combo-items"
class="cxd-Combo-items"
>
<div
class="a-Combo-item"
class="cxd-Combo-item"
>
<div
class="a-Combo-itemInner"
class="cxd-Combo-itemInner"
>
<div
class="a-Form a-Form--normal a-Combo-form"
class="cxd-Form cxd-Form--normal cxd-Combo-form"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
combo 1
@ -212,10 +212,10 @@ exports[`factory:definitions 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -229,15 +229,15 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
combo 2
@ -246,10 +246,10 @@ exports[`factory:definitions 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -262,10 +262,10 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
@ -275,15 +275,15 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
children
@ -292,10 +292,10 @@ exports[`factory:definitions 1`] = `
</span>
</label>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
@ -311,7 +311,7 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<a
class="a-Combo-delBtn "
class="cxd-Combo-delBtn "
data-position="bottom"
data-tooltip="删除"
>
@ -323,10 +323,10 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Combo-toolbar"
class="cxd-Combo-toolbar"
>
<button
class="a-Button a-Combo-addBtn"
class="cxd-Button cxd-Combo-addBtn"
data-tooltip="新增"
type="button"
>
@ -342,10 +342,10 @@ exports[`factory:definitions 1`] = `
</div>
</div>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
@ -410,22 +410,22 @@ exports[`factory:definitions 1`] = `
exports[`factory:definitions override 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-header"
class="cxd-Page-header"
>
<h2
class="a-Page-title"
class="cxd-Page-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
引用
@ -434,20 +434,20 @@ exports[`factory:definitions override 1`] = `
</h2>
</div>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
表单
@ -456,22 +456,22 @@ exports[`factory:definitions override 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
text2
@ -480,10 +480,10 @@ exports[`factory:definitions override 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -496,10 +496,10 @@ exports[`factory:definitions override 1`] = `
</div>
</div>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
@ -509,15 +509,15 @@ exports[`factory:definitions override 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
combo
@ -526,10 +526,10 @@ exports[`factory:definitions override 1`] = `
</span>
</label>
<div
class="a-CheckboxesControl a-Form-control is-inline"
class="cxd-CheckboxesControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
checked=""
@ -543,7 +543,7 @@ exports[`factory:definitions override 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -557,10 +557,10 @@ exports[`factory:definitions override 1`] = `
</label>
</div>
<div
class="a-Remark a-Form-remark"
class="cxd-Remark cxd-Form-remark"
>
<span
class="a-Remark-icon"
class="cxd-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"

View File

@ -1,6 +1,7 @@
import React = require('react');
import NotFound from '../../src/components/404';
import * as renderer from 'react-test-renderer';
import '../../src/themes/default';
import {render, fireEvent, cleanup} from '@testing-library/react';
afterEach(cleanup);

View File

@ -37,11 +37,11 @@ test('Renderer:carousel', async () => {
)
);
const image = document.querySelector('div.a-Carousel-item');
const image = document.querySelector('div.cxd-Carousel-item');
fireEvent.mouseEnter(image as HTMLDivElement);
const leftArrow = document.querySelector('div.a-Carousel-leftArrow');
const leftArrow = document.querySelector('div.cxd-Carousel-leftArrow');
fireEvent.click(leftArrow as HTMLDivElement);
const rightArrow = document.querySelector('div.a-Carousel-rightArrow');
const rightArrow = document.querySelector('div.cxd-Carousel-rightArrow');
fireEvent.click(rightArrow as HTMLDivElement);
expect(container).toMatchSnapshot();

View File

@ -24,7 +24,7 @@ test('Renderer:date', async () => {
)
);
const input = container.querySelector('.a-DateField');
const input = container.querySelector('.cxd-DateField');
expect(input?.innerHTML).toEqual(
moment('1559836800', 'X').format('YYYY-MM-DD')
);

View File

@ -42,7 +42,7 @@ test('Renderer:dropdown-button', async () => {
)
);
const dropdowmButton = document.querySelector('button.a-Button');
const dropdowmButton = document.querySelector('button.cxd-Button');
fireEvent.click(dropdowmButton as HTMLDivElement);
expect(container).toMatchSnapshot();
fireEvent.click(dropdowmButton as HTMLDivElement);

View File

@ -3,17 +3,17 @@
exports[`Renderer:array 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:array 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
颜色集合

View File

@ -3,17 +3,17 @@
exports[`Renderer:button 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:button 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<i
class="a-Button-icon fa fa-plus"
class="cxd-Button-icon fa fa-plus"
/>
<span>
Text
@ -45,11 +45,11 @@ exports[`Renderer:button 1`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -58,11 +58,11 @@ exports[`Renderer:button 1`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="submit"
>
<span>
@ -71,11 +71,11 @@ exports[`Renderer:button 1`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal r-2x"
class="cxd-Form-item cxd-Form-item--normal r-2x"
data-role="form-item"
>
<button
class="a-Button a-Button--danger a-Button--sm"
class="cxd-Button cxd-Button--danger cxd-Button--sm"
type="reset"
>
<span>
@ -135,17 +135,17 @@ exports[`Renderer:button 1`] = `
exports[`Renderer:button 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -154,22 +154,22 @@ exports[`Renderer:button 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<i
class="a-Button-icon fa fa-plus"
class="cxd-Button-icon fa fa-plus"
/>
<span>
Text
@ -177,11 +177,11 @@ exports[`Renderer:button 2`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -190,11 +190,11 @@ exports[`Renderer:button 2`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="submit"
>
<span>
@ -203,11 +203,11 @@ exports[`Renderer:button 2`] = `
</button>
</div>
<div
class="a-Form-item a-Form-item--normal r-2x"
class="cxd-Form-item cxd-Form-item--normal r-2x"
data-role="form-item"
>
<button
class="a-Button a-Button--danger a-Button--sm"
class="cxd-Button cxd-Button--danger cxd-Button--sm"
type="reset"
>
<span>
@ -262,20 +262,20 @@ exports[`Renderer:button 2`] = `
</div>
</div>
<div
class="amis-dialog-widget a-Modal a-Modal--1th"
class="amis-dialog-widget cxd-Modal cxd-Modal--1th"
role="dialog"
>
<div
class="a-Modal-overlay in"
class="cxd-Modal-overlay in"
/>
<div
class="a-Modal-content in"
class="cxd-Modal-content in"
>
<div
class="a-Modal-header"
class="cxd-Modal-header"
>
<a
class="a-Modal-close"
class="cxd-Modal-close"
data-position="left"
data-tooltip="关闭"
>
@ -285,16 +285,16 @@ exports[`Renderer:button 2`] = `
/>
</a>
<div
class="a-Modal-title"
class="cxd-Modal-title"
>
提示
</div>
</div>
<div
class="a-Modal-body"
class="cxd-Modal-body"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
对,你刚点击了!
@ -302,10 +302,10 @@ exports[`Renderer:button 2`] = `
</span>
</div>
<div
class="a-Modal-footer"
class="cxd-Modal-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -313,7 +313,7 @@ exports[`Renderer:button 2`] = `
</span>
</button>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="button"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:button-group 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:button-group 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
单选
@ -46,10 +46,10 @@ exports[`Renderer:button-group 1`] = `
</span>
</label>
<div
class="a-ButtonGroup a-Form-control"
class="cxd-ButtonGroup cxd-Form-control"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -57,7 +57,7 @@ exports[`Renderer:button-group 1`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -67,15 +67,15 @@ exports[`Renderer:button-group 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -84,13 +84,13 @@ exports[`Renderer:button-group 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -153,17 +153,17 @@ exports[`Renderer:button-group 1`] = `
exports[`Renderer:button-group:multiple clearable 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -172,22 +172,22 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
多选
@ -196,10 +196,10 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</span>
</label>
<div
class="a-ButtonGroup a-Form-control"
class="cxd-ButtonGroup cxd-Form-control"
>
<button
class="a-Button a-Button--primary is-active"
class="cxd-Button cxd-Button--primary is-active"
type="button"
>
<span>
@ -207,7 +207,7 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</span>
</button>
<button
class="a-Button a-Button--primary is-active"
class="cxd-Button cxd-Button--primary is-active"
type="button"
>
<span>
@ -217,15 +217,15 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -234,13 +234,13 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
a,b
</span>
@ -299,17 +299,17 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
exports[`Renderer:button-group:multiple clearable 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -318,22 +318,22 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
多选
@ -342,10 +342,10 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</span>
</label>
<div
class="a-ButtonGroup a-Form-control"
class="cxd-ButtonGroup cxd-Form-control"
>
<button
class="a-Button a-Button--primary is-active"
class="cxd-Button cxd-Button--primary is-active"
type="button"
>
<span>
@ -353,7 +353,7 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -363,15 +363,15 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -380,13 +380,13 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
a
</span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:button-toolbar 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,25 +22,25 @@ exports[`Renderer:button-toolbar 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-ButtonToolbar a-Form-control"
class="cxd-ButtonToolbar cxd-Form-control"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -48,7 +48,7 @@ exports[`Renderer:button-toolbar 1`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -56,7 +56,7 @@ exports[`Renderer:button-toolbar 1`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="reset"
>
<span>
@ -118,17 +118,17 @@ exports[`Renderer:button-toolbar 1`] = `
exports[`Renderer:button-toolbar 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -137,25 +137,25 @@ exports[`Renderer:button-toolbar 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-ButtonToolbar a-Form-control"
class="cxd-ButtonToolbar cxd-Form-control"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -163,7 +163,7 @@ exports[`Renderer:button-toolbar 2`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -171,7 +171,7 @@ exports[`Renderer:button-toolbar 2`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="reset"
>
<span>
@ -228,20 +228,20 @@ exports[`Renderer:button-toolbar 2`] = `
</div>
</div>
<div
class="amis-dialog-widget a-Modal a-Modal--1th"
class="amis-dialog-widget cxd-Modal cxd-Modal--1th"
role="dialog"
>
<div
class="a-Modal-overlay in"
class="cxd-Modal-overlay in"
/>
<div
class="a-Modal-content in"
class="cxd-Modal-content in"
>
<div
class="a-Modal-header"
class="cxd-Modal-header"
>
<a
class="a-Modal-close"
class="cxd-Modal-close"
data-position="left"
data-tooltip="关闭"
>
@ -251,16 +251,16 @@ exports[`Renderer:button-toolbar 2`] = `
/>
</a>
<div
class="a-Modal-title"
class="cxd-Modal-title"
>
提示
</div>
</div>
<div
class="a-Modal-body"
class="cxd-Modal-body"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
对,你刚点击了!
@ -268,10 +268,10 @@ exports[`Renderer:button-toolbar 2`] = `
</span>
</div>
<div
class="a-Modal-footer"
class="cxd-Modal-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -279,7 +279,7 @@ exports[`Renderer:button-toolbar 2`] = `
</span>
</button>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="button"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:checkbox 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:checkbox 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Checkbox
@ -46,10 +46,10 @@ exports[`Renderer:checkbox 1`] = `
</span>
</label>
<div
class="a-CheckboxControl a-Form-control"
class="cxd-CheckboxControl cxd-Form-control"
>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -59,7 +59,7 @@ exports[`Renderer:checkbox 1`] = `
class=""
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项说明

View File

@ -3,17 +3,17 @@
exports[`Renderer:checkboxes 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:checkboxes 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Checkboxes
@ -46,10 +46,10 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<div
class="a-CheckboxesControl a-Form-control is-inline"
class="cxd-CheckboxesControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -62,7 +62,7 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -75,7 +75,7 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -88,7 +88,7 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -103,15 +103,15 @@ exports[`Renderer:checkboxes 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -120,13 +120,13 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -189,17 +189,17 @@ exports[`Renderer:checkboxes 1`] = `
exports[`Renderer:checkboxes 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -208,22 +208,22 @@ exports[`Renderer:checkboxes 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Checkboxes
@ -232,10 +232,10 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<div
class="a-CheckboxesControl a-Form-control is-inline"
class="cxd-CheckboxesControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -248,7 +248,7 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -261,7 +261,7 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -274,7 +274,7 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--checkbox a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--checkbox cxd-Checkbox--full"
>
<input
type="checkbox"
@ -289,15 +289,15 @@ exports[`Renderer:checkboxes 2`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -306,13 +306,13 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"

View File

@ -3,17 +3,17 @@
exports[`Renderer:city 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:city 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
city
@ -46,27 +46,27 @@ exports[`Renderer:city 1`] = `
</span>
</label>
<div
class="a-CityPicker"
class="cxd-CityPicker"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-0-label"
class="a-Select"
class="cxd-Select"
role="combobox"
tabindex="0"
>
<div
class="a-Select-valueWrap"
class="cxd-Select-valueWrap"
>
<div
class="a-Select-value"
class="cxd-Select-value"
>
北京市
</div>
</div>
<a
class="a-Select-clear"
class="cxd-Select-clear"
>
<icon-mock
classname="icon icon-close"
@ -74,7 +74,7 @@ exports[`Renderer:city 1`] = `
/>
</a>
<span
class="a-Select-arrow"
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
@ -86,21 +86,21 @@ exports[`Renderer:city 1`] = `
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-1-label"
class="a-Select"
class="cxd-Select"
role="combobox"
tabindex="0"
>
<div
class="a-Select-valueWrap"
class="cxd-Select-valueWrap"
>
<div
class="a-Select-value"
class="cxd-Select-value"
>
北京市市辖区
</div>
</div>
<a
class="a-Select-clear"
class="cxd-Select-clear"
>
<icon-mock
classname="icon icon-close"
@ -108,7 +108,7 @@ exports[`Renderer:city 1`] = `
/>
</a>
<span
class="a-Select-arrow"
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
@ -120,21 +120,21 @@ exports[`Renderer:city 1`] = `
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-2-label"
class="a-Select"
class="cxd-Select"
role="combobox"
tabindex="0"
>
<div
class="a-Select-valueWrap"
class="cxd-Select-valueWrap"
>
<div
class="a-Select-value"
class="cxd-Select-value"
>
东城区
</div>
</div>
<a
class="a-Select-clear"
class="cxd-Select-clear"
>
<icon-mock
classname="icon icon-close"
@ -142,7 +142,7 @@ exports[`Renderer:city 1`] = `
/>
</a>
<span
class="a-Select-arrow"
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"

View File

@ -3,17 +3,17 @@
exports[`Renderer:container 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:container 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--horizontal no-border"
class="cxd-Form-item cxd-Form-item--horizontal no-border"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"
class="cxd-Form-label cxd-Form-itemColumn--normal"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
container
@ -46,23 +46,23 @@ exports[`Renderer:container 1`] = `
</span>
</label>
<div
class="a-Form-value"
class="cxd-Form-value"
>
<div
class="a-Container"
class="cxd-Container"
>
<div
class="a-Container-body bg-white"
class="cxd-Container-body bg-white"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl a-TextControl--withAddOn"
class="cxd-Form-control cxd-TextControl cxd-TextControl--withAddOn"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -74,10 +74,10 @@ exports[`Renderer:container 1`] = `
/>
</div>
<div
class="a-TextControl-button"
class="cxd-TextControl-button"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:date 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:date 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
date
@ -46,19 +46,19 @@ exports[`Renderer:date 1`] = `
</span>
</label>
<div
class="a-DateControl a-Form-control"
class="cxd-DateControl cxd-Form-control"
>
<div
class="a-DatePicker"
class="cxd-DatePicker"
tabindex="0"
>
<span
class="a-DatePicker-value"
class="cxd-DatePicker-value"
>
2019-06-07
</span>
<a
class="a-DatePicker-clear"
class="cxd-DatePicker-clear"
>
<icon-mock
classname="icon icon-close"
@ -66,7 +66,7 @@ exports[`Renderer:date 1`] = `
/>
</a>
<a
class="a-DatePicker-toggler"
class="cxd-DatePicker-toggler"
>
<icon-mock
classname="icon icon-calendar"

View File

@ -3,17 +3,17 @@
exports[`Renderer:dateRange 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:dateRange 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
date-range
@ -46,19 +46,19 @@ exports[`Renderer:dateRange 1`] = `
</span>
</label>
<div
class="a-DateRangeControl a-Form-control"
class="cxd-DateRangeControl cxd-Form-control"
>
<div
class="a-DateRangePicker"
class="cxd-DateRangePicker"
tabindex="0"
>
<span
class="a-DateRangePicker-value"
class="cxd-DateRangePicker-value"
>
2019-06-06 至 2019-06-26
</span>
<a
class="a-DateRangePicker-clear"
class="cxd-DateRangePicker-clear"
>
<icon-mock
classname="icon icon-close"
@ -66,7 +66,7 @@ exports[`Renderer:dateRange 1`] = `
/>
</a>
<a
class="a-DateRangePicker-toggler"
class="cxd-DateRangePicker-toggler"
>
<icon-mock
classname="icon icon-calendar"

View File

@ -3,17 +3,17 @@
exports[`Renderer:date 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:date 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
date
@ -46,19 +46,19 @@ exports[`Renderer:date 1`] = `
</span>
</label>
<div
class="a-DateControl a-Form-control"
class="cxd-DateControl cxd-Form-control"
>
<div
class="a-DatePicker"
class="cxd-DatePicker"
tabindex="0"
>
<span
class="a-DatePicker-value"
class="cxd-DatePicker-value"
>
2019-06-06 21:11:00
</span>
<a
class="a-DatePicker-clear"
class="cxd-DatePicker-clear"
>
<icon-mock
classname="icon icon-close"
@ -66,7 +66,7 @@ exports[`Renderer:date 1`] = `
/>
</a>
<a
class="a-DatePicker-toggler"
class="cxd-DatePicker-toggler"
>
<icon-mock
classname="icon icon-calendar"

View File

@ -3,17 +3,17 @@
exports[`Renderer:fieldSet 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,38 +22,38 @@ exports[`Renderer:fieldSet 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<fieldset
class="a-Collapse a-Collapse--collapsable no-border"
class="cxd-Collapse cxd-Collapse--collapsable no-border"
>
<div
class="a-Collapse-content a-Collapse-body bg-white"
class="cxd-Collapse-content cxd-Collapse-body bg-white"
>
<div
class="a-Form--horizontal"
class="cxd-Form--horizontal"
>
<div
class="a-Form-item a-Form-item--horizontal"
class="cxd-Form-item cxd-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"
class="cxd-Form-label cxd-Form-itemColumn--normal"
>
<span />
</label>
<div
class="a-Form-value"
class="cxd-Form-value"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"

View File

@ -3,17 +3,17 @@
exports[`Renderer:FormItem:validateApi:failed 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,39 +22,39 @@ exports[`Renderer:FormItem:validateApi:failed 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-error is-required"
class="cxd-Form-item cxd-Form-item--normal is-error is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -67,7 +67,7 @@ exports[`Renderer:FormItem:validateApi:failed 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
这是必填项
@ -81,13 +81,13 @@ exports[`Renderer:FormItem:validateApi:failed 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -142,17 +142,17 @@ exports[`Renderer:FormItem:validateApi:failed 1`] = `
exports[`Renderer:FormItem:validateApi:failed 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -161,39 +161,39 @@ exports[`Renderer:FormItem:validateApi:failed 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-error is-required"
class="cxd-Form-item cxd-Form-item--normal is-error is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -206,7 +206,7 @@ exports[`Renderer:FormItem:validateApi:failed 2`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
用户名已存在
@ -220,13 +220,13 @@ exports[`Renderer:FormItem:validateApi:failed 2`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -281,17 +281,17 @@ exports[`Renderer:FormItem:validateApi:failed 2`] = `
exports[`Renderer:FormItem:validateApi:success 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -300,39 +300,39 @@ exports[`Renderer:FormItem:validateApi:success 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-error is-required"
class="cxd-Form-item cxd-Form-item--normal is-error is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -345,7 +345,7 @@ exports[`Renderer:FormItem:validateApi:success 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
这是必填项
@ -359,13 +359,13 @@ exports[`Renderer:FormItem:validateApi:success 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:formula 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:formula 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
a
@ -46,46 +46,46 @@ exports[`Renderer:formula 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="1"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
@ -97,15 +97,15 @@ exports[`Renderer:formula 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
b
@ -114,46 +114,46 @@ exports[`Renderer:formula 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="2"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
@ -165,15 +165,15 @@ exports[`Renderer:formula 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
sum1
@ -182,46 +182,46 @@ exports[`Renderer:formula 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="3"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
@ -233,15 +233,15 @@ exports[`Renderer:formula 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
sum2
@ -250,46 +250,46 @@ exports[`Renderer:formula 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="4"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
@ -301,15 +301,15 @@ exports[`Renderer:formula 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
sum3
@ -318,46 +318,46 @@ exports[`Renderer:formula 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="5"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"

View File

@ -3,17 +3,17 @@
exports[`Renderer:hbox 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,31 +22,31 @@ exports[`Renderer:hbox 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Grid"
class="cxd-Grid"
>
<div
class="a-Grid-col--md3 bg-white"
class="cxd-Grid-col--md3 bg-white"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -61,10 +61,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Grid-col--md9"
class="cxd-Grid-col--md9"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
其他渲染器类型

View File

@ -3,17 +3,17 @@
exports[`Renderer:group 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,28 +22,28 @@ exports[`Renderer:group 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-group a-Form-group--hor a-Form-group--horizontal bg-white"
class="cxd-Form-group cxd-Form-group--hor cxd-Form-group--horizontal bg-white"
>
<div
class="a-Form-groupColumn"
class="cxd-Form-groupColumn"
>
<div
class="a-Form-item a-Form-item--horizontal"
class="cxd-Form-item cxd-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--0"
class="cxd-Form-label cxd-Form-itemColumn--0"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -52,13 +52,13 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-value a-Form-itemColumn--10"
class="cxd-Form-value cxd-Form-itemColumn--10"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -74,18 +74,18 @@ exports[`Renderer:group 1`] = `
</div>
</div>
<div
class="a-Form-groupColumn"
class="cxd-Form-groupColumn"
>
<div
class="a-Form-item a-Form-item--horizontal"
class="cxd-Form-item cxd-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--0"
class="cxd-Form-label cxd-Form-itemColumn--0"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -94,13 +94,13 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-value a-Form-itemColumn--10"
class="cxd-Form-value cxd-Form-itemColumn--10"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -117,18 +117,18 @@ exports[`Renderer:group 1`] = `
</div>
</div>
<div
class="a-Form-group a-Form-group--hor a-Form-group--inline bg-white"
class="cxd-Form-group cxd-Form-group--hor cxd-Form-group--inline bg-white"
>
<div
class="a-Form-item a-Form-item--inline"
class="cxd-Form-item cxd-Form-item--inline"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -137,13 +137,13 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-value"
class="cxd-Form-value"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -158,15 +158,15 @@ exports[`Renderer:group 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--inline"
class="cxd-Form-item cxd-Form-item--inline"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -175,13 +175,13 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-value"
class="cxd-Form-value"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -197,18 +197,18 @@ exports[`Renderer:group 1`] = `
</div>
</div>
<div
class="a-Form-group a-Form-group--ver a-Form-group--normal"
class="cxd-Form-group cxd-Form-group--ver cxd-Form-group--normal"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -217,10 +217,10 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -234,15 +234,15 @@ exports[`Renderer:group 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -251,10 +251,10 @@ exports[`Renderer:group 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"

View File

@ -3,17 +3,17 @@
exports[`Renderer:hbox 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,31 +22,31 @@ exports[`Renderer:hbox 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Hbox a-Hbox--xs"
class="cxd-Hbox cxd-Hbox--xs"
>
<div
class="a-Hbox-col w-sm"
class="cxd-Hbox-col w-sm"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -61,10 +61,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Hbox-col"
class="cxd-Hbox-col"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
其他类型的渲染器

View File

@ -3,17 +3,17 @@
exports[`Renderer:icon-picker 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:icon-picker 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
icon-picker
@ -46,20 +46,20 @@ exports[`Renderer:icon-picker 1`] = `
</span>
</label>
<div
class="a-Form-control a-IconPickerControl"
class="cxd-Form-control cxd-IconPickerControl"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-0-label"
class="a-IconPickerControl-input a-IconPickerControl-input--withAC"
class="cxd-IconPickerControl-input cxd-IconPickerControl-input--withAC"
role="combobox"
>
<div
class="a-IconPickerControl-valueWrap"
class="cxd-IconPickerControl-valueWrap"
>
<div
class="a-IconPickerControl-value"
class="cxd-IconPickerControl-value"
>
<i
class="glyphicon glyphicon-plus"

View File

@ -3,17 +3,17 @@
exports[`Renderer:Form 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:Form 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -46,10 +46,10 @@ exports[`Renderer:Form 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -69,13 +69,13 @@ exports[`Renderer:Form 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -149,17 +149,17 @@ Object {
exports[`Renderer:Form initApi 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -168,28 +168,28 @@ exports[`Renderer:Form initApi 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay"
class="cxd-Spinner cxd-Spinner--overlay"
/>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
A
@ -198,10 +198,10 @@ exports[`Renderer:Form initApi 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -215,15 +215,15 @@ exports[`Renderer:Form initApi 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
B
@ -232,10 +232,10 @@ exports[`Renderer:Form initApi 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -255,13 +255,13 @@ exports[`Renderer:Form initApi 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="submit"
>
<span>
@ -316,17 +316,17 @@ exports[`Renderer:Form initApi 1`] = `
exports[`Renderer:Form sendOn:true 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -335,28 +335,28 @@ exports[`Renderer:Form sendOn:true 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay"
class="cxd-Spinner cxd-Spinner--overlay"
/>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
A
@ -365,10 +365,10 @@ exports[`Renderer:Form sendOn:true 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -382,15 +382,15 @@ exports[`Renderer:Form sendOn:true 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
B
@ -399,10 +399,10 @@ exports[`Renderer:Form sendOn:true 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -422,13 +422,13 @@ exports[`Renderer:Form sendOn:true 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
type="submit"
>
<span>
@ -483,17 +483,17 @@ exports[`Renderer:Form sendOn:true 1`] = `
exports[`Renderer:Form:onValidate 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -502,22 +502,22 @@ exports[`Renderer:Form:onValidate 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-error"
class="cxd-Form-item cxd-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
A
@ -526,10 +526,10 @@ exports[`Renderer:Form:onValidate 1`] = `
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -542,7 +542,7 @@ exports[`Renderer:Form:onValidate 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
a is wrong
@ -550,15 +550,15 @@ exports[`Renderer:Form:onValidate 1`] = `
</ul>
</div>
<div
class="a-Form-item a-Form-item--normal is-error"
class="cxd-Form-item cxd-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
B
@ -567,10 +567,10 @@ exports[`Renderer:Form:onValidate 1`] = `
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -583,7 +583,7 @@ exports[`Renderer:Form:onValidate 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
b is wrong
@ -600,13 +600,13 @@ exports[`Renderer:Form:onValidate 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -668,17 +668,17 @@ Object {
exports[`Renderer:Form:onValidate 3`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -687,22 +687,22 @@ exports[`Renderer:Form:onValidate 3`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
A
@ -711,10 +711,10 @@ exports[`Renderer:Form:onValidate 3`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -728,15 +728,15 @@ exports[`Renderer:Form:onValidate 3`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
B
@ -745,10 +745,10 @@ exports[`Renderer:Form:onValidate 3`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -768,13 +768,13 @@ exports[`Renderer:Form:onValidate 3`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -836,17 +836,17 @@ Object {
exports[`Renderer:Form:remoteValidate 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -855,28 +855,28 @@ exports[`Renderer:Form:remoteValidate 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay"
class="cxd-Spinner cxd-Spinner--overlay"
/>
<div
class="a-Form-item a-Form-item--normal is-error"
class="cxd-Form-item cxd-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -885,10 +885,10 @@ exports[`Renderer:Form:remoteValidate 1`] = `
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -901,7 +901,7 @@ exports[`Renderer:Form:remoteValidate 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
这个字段服务端验证失败
@ -915,13 +915,13 @@ exports[`Renderer:Form:remoteValidate 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -976,17 +976,17 @@ exports[`Renderer:Form:remoteValidate 1`] = `
exports[`Renderer:Form:valdiate 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -995,39 +995,39 @@ exports[`Renderer:Form:valdiate 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-error is-required"
class="cxd-Form-item cxd-Form-item--normal is-error is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control is-error a-TextControl"
class="cxd-Form-control is-error cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -1040,7 +1040,7 @@ exports[`Renderer:Form:valdiate 1`] = `
</div>
</div>
<ul
class="a-Form-feedback"
class="cxd-Form-feedback"
>
<li>
这是必填项
@ -1054,13 +1054,13 @@ exports[`Renderer:Form:valdiate 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -1115,17 +1115,17 @@ exports[`Renderer:Form:valdiate 1`] = `
exports[`Renderer:Form:valdiate 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -1134,39 +1134,39 @@ exports[`Renderer:Form:valdiate 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-required"
class="cxd-Form-item cxd-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -1186,13 +1186,13 @@ exports[`Renderer:Form:valdiate 2`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>

View File

@ -3,18 +3,18 @@
exports[`Form:initData 1`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -28,14 +28,14 @@ exports[`Form:initData 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -49,7 +49,7 @@ exports[`Form:initData 1`] = `
</div>
</div>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -74,17 +74,17 @@ Object {
exports[`Form:initData:remote 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -93,28 +93,28 @@ exports[`Form:initData:remote 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay in"
class="cxd-Spinner-overlay in"
/>
<div
class="a-Spinner in a-Spinner--overlay"
class="cxd-Spinner in cxd-Spinner--overlay"
/>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -123,10 +123,10 @@ exports[`Form:initData:remote 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl is-disabled"
class="cxd-Form-control cxd-TextControl is-disabled"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -147,13 +147,13 @@ exports[`Form:initData:remote 1`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<div
class="a-Button a-Button--default is-disabled"
class="cxd-Button cxd-Button--default is-disabled"
disabled=""
>
<span>
@ -224,17 +224,17 @@ Object {
exports[`Form:initData:remote 3`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -243,28 +243,28 @@ exports[`Form:initData:remote 3`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay"
class="cxd-Spinner cxd-Spinner--overlay"
/>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
Label
@ -273,10 +273,10 @@ exports[`Form:initData:remote 3`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -296,13 +296,13 @@ exports[`Form:initData:remote 3`] = `
</form>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="a-Panel-btnToolbar a-Panel-footer"
class="cxd-Panel-btnToolbar cxd-Panel-footer"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -364,30 +364,30 @@ Object {
exports[`Form:initData:super 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -401,14 +401,14 @@ exports[`Form:initData:super 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -422,7 +422,7 @@ exports[`Form:initData:super 1`] = `
</div>
</div>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -444,30 +444,30 @@ exports[`Form:initData:super 1`] = `
exports[`Form:initData:without-super 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -481,14 +481,14 @@ exports[`Form:initData:without-super 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -502,7 +502,7 @@ exports[`Form:initData:without-super 1`] = `
</div>
</div>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:fieldSet 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:fieldSet 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--horizontal no-border"
class="cxd-Form-item cxd-Form-item--horizontal no-border"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"
class="cxd-Form-label cxd-Form-itemColumn--normal"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
input-group
@ -46,13 +46,13 @@ exports[`Renderer:fieldSet 1`] = `
</span>
</label>
<div
class="a-Form-value"
class="cxd-Form-value"
>
<div
class="a-InputGroup a-Form-control"
class="cxd-InputGroup cxd-Form-control"
>
<div
class="a-TextControl-input a-Form-control"
class="cxd-TextControl-input cxd-Form-control"
>
<input
autocomplete="off"

View File

@ -3,17 +3,17 @@
exports[`Renderer:list 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:list 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
单选
@ -46,34 +46,34 @@ exports[`Renderer:list 1`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control"
class="cxd-ListControl cxd-Form-control"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option A
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option B
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemImage"
class="cxd-ListControl-itemImage"
>
<img
alt="OptionC"
@ -81,7 +81,7 @@ exports[`Renderer:list 1`] = `
/>
</div>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
OptionC
</div>
@ -141,17 +141,17 @@ exports[`Renderer:list 1`] = `
exports[`Renderer:list:multiple clearable 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -160,22 +160,22 @@ exports[`Renderer:list:multiple clearable 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
多选
@ -184,25 +184,25 @@ exports[`Renderer:list:multiple clearable 1`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control"
class="cxd-ListControl cxd-Form-control"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option A
</div>
</div>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option B
</div>
@ -211,15 +211,15 @@ exports[`Renderer:list:multiple clearable 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -228,13 +228,13 @@ exports[`Renderer:list:multiple clearable 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -297,17 +297,17 @@ exports[`Renderer:list:multiple clearable 1`] = `
exports[`Renderer:list:multiple clearable 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -316,22 +316,22 @@ exports[`Renderer:list:multiple clearable 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
多选
@ -340,25 +340,25 @@ exports[`Renderer:list:multiple clearable 2`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control"
class="cxd-ListControl cxd-Form-control"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option A
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
Option B
</div>
@ -367,15 +367,15 @@ exports[`Renderer:list:multiple clearable 2`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -384,13 +384,13 @@ exports[`Renderer:list:multiple clearable 2`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"

View File

@ -3,17 +3,17 @@
exports[`Renderer:number 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:number 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
number
@ -46,46 +46,46 @@ exports[`Renderer:number 1`] = `
</span>
</label>
<div
class="a-NumberControl a-Form-control"
class="cxd-NumberControl cxd-Form-control"
>
<div
class="a-Number"
class="cxd-Number"
>
<div
class="a-Number-handler-wrap"
class="cxd-Number-handler-wrap"
>
<span
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up"
class="cxd-Number-handler cxd-Number-handler-up"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
class="cxd-Number-handler-up-inner"
unselectable="on"
/>
</span>
<span
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down"
class="cxd-Number-handler cxd-Number-handler-down"
role="button"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
class="cxd-Number-handler-down-inner"
unselectable="on"
/>
</span>
</div>
<div
class="a-Number-input-wrap"
class="cxd-Number-input-wrap"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="456"
autocomplete="off"
class="a-Number-input"
class="cxd-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"

View File

@ -3,19 +3,19 @@
exports[`options:linkage 1`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项x
@ -24,34 +24,34 @@ exports[`options:linkage 1`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control is-inline"
class="cxd-ListControl cxd-Form-control is-inline"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项1
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项2
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项3
</div>
@ -60,15 +60,15 @@ exports[`options:linkage 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项y
@ -77,10 +77,10 @@ exports[`options:linkage 1`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -93,7 +93,7 @@ exports[`options:linkage 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -118,19 +118,19 @@ exports[`options:linkage 1`] = `
exports[`options:linkage 2`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项x
@ -139,34 +139,34 @@ exports[`options:linkage 2`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control is-inline"
class="cxd-ListControl cxd-Form-control is-inline"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项1
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项2
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项3
</div>
@ -175,15 +175,15 @@ exports[`options:linkage 2`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项y
@ -192,10 +192,10 @@ exports[`options:linkage 2`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
disabled=""
@ -209,7 +209,7 @@ exports[`options:linkage 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -234,19 +234,19 @@ exports[`options:linkage 2`] = `
exports[`options:linkage 3`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项x
@ -255,34 +255,34 @@ exports[`options:linkage 3`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control is-inline"
class="cxd-ListControl cxd-Form-control is-inline"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项1
</div>
</div>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项2
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项3
</div>
@ -291,15 +291,15 @@ exports[`options:linkage 3`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项y
@ -308,10 +308,10 @@ exports[`options:linkage 3`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -336,19 +336,19 @@ exports[`options:linkage 3`] = `
exports[`options:linkage 4`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项x
@ -357,34 +357,34 @@ exports[`options:linkage 4`] = `
</span>
</label>
<div
class="a-ListControl a-Form-control is-inline"
class="cxd-ListControl cxd-Form-control is-inline"
>
<div
class="a-ListControl-items"
class="cxd-ListControl-items"
>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项1
</div>
</div>
<div
class="a-ListControl-item"
class="cxd-ListControl-item"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项2
</div>
</div>
<div
class="a-ListControl-item is-active"
class="cxd-ListControl-item is-active"
>
<div
class="a-ListControl-itemLabel"
class="cxd-ListControl-itemLabel"
>
选项3
</div>
@ -393,15 +393,15 @@ exports[`options:linkage 4`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label text-muted"
class="cxd-Form-label text-muted"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
选项y
@ -410,10 +410,10 @@ exports[`options:linkage 4`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -426,7 +426,7 @@ exports[`options:linkage 4`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -439,7 +439,7 @@ exports[`options:linkage 4`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"

View File

@ -3,17 +3,17 @@
exports[`Renderer:panel 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,38 +22,38 @@ exports[`Renderer:panel 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Hbox a-Hbox--xs"
class="cxd-Hbox cxd-Hbox--xs"
>
<div
class="a-Hbox-col"
class="cxd-Hbox-col"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Panel a-Panel--default"
class="cxd-Panel cxd-Panel--default"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
bla bla
@ -65,7 +65,7 @@ exports[`Renderer:panel 1`] = `
class="bg-white"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -75,13 +75,13 @@ exports[`Renderer:panel 1`] = `
</span>
</div>
<div
class="a-Panel-footerWrap"
class="cxd-Panel-footerWrap"
>
<div
class="bg-black"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
<p>
@ -134,24 +134,24 @@ exports[`Renderer:panel 1`] = `
</div>
</div>
<div
class="a-Hbox-col"
class="cxd-Hbox-col"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Panel a-Panel--default"
class="cxd-Panel cxd-Panel--default"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
bla bla
@ -160,17 +160,17 @@ exports[`Renderer:panel 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -183,14 +183,14 @@ exports[`Renderer:panel 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"

View File

@ -3,17 +3,17 @@
exports[`Renderer:radios 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:radios 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
radios
@ -46,10 +46,10 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -62,7 +62,7 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -75,7 +75,7 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -88,7 +88,7 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -103,15 +103,15 @@ exports[`Renderer:radios 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -120,13 +120,13 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -189,17 +189,17 @@ exports[`Renderer:radios 1`] = `
exports[`Renderer:radios 2`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -208,22 +208,22 @@ exports[`Renderer:radios 2`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
radios
@ -232,10 +232,10 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<div
class="a-RadiosControl a-Form-control is-inline"
class="cxd-RadiosControl cxd-Form-control is-inline"
>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -248,7 +248,7 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -261,7 +261,7 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -274,7 +274,7 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<label
class="a-Checkbox a-Checkbox--radio a-Checkbox--full"
class="cxd-Checkbox cxd-Checkbox--radio cxd-Checkbox--full"
>
<input
type="radio"
@ -289,15 +289,15 @@ exports[`Renderer:radios 2`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
当前值
@ -306,13 +306,13 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
a
</span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:number 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:number 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
range
@ -46,37 +46,37 @@ exports[`Renderer:number 1`] = `
</span>
</label>
<div
class="a-RangeControl a-RangeControl--withInput a-RangeControl--clearable a-Form-control"
class="cxd-RangeControl cxd-RangeControl--withInput cxd-RangeControl--clearable cxd-Form-control"
>
<div
aria-disabled="false"
class="a-InputRange"
class="cxd-InputRange"
>
<span
class="a-InputRange-label a-InputRange-label--min"
class="cxd-InputRange-label cxd-InputRange-label--min"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
0
</span>
</span>
<div
class="a-InputRange-track a-InputRange-track--background"
class="cxd-InputRange-track cxd-InputRange-track--background"
>
<div
class="a-InputRange-track"
class="cxd-InputRange-track"
style="left: 0%; width: 40%;"
/>
<span
class="a-InputRange-sliderContainer"
class="cxd-InputRange-sliderContainer"
style="position: absolute; left: 40%;"
>
<span
class="a-InputRange-label a-InputRange-label--value"
class="cxd-InputRange-label cxd-InputRange-label--value"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
8
</span>
@ -85,7 +85,7 @@ exports[`Renderer:number 1`] = `
aria-valuemax="20"
aria-valuemin="0"
aria-valuenow="8"
class="a-InputRange-slider"
class="cxd-InputRange-slider"
draggable="false"
role="slider"
tabindex="0"
@ -93,28 +93,28 @@ exports[`Renderer:number 1`] = `
</span>
</div>
<span
class="a-InputRange-label a-InputRange-label--max"
class="cxd-InputRange-label cxd-InputRange-label--max"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
20
</span>
</span>
</div>
<span
class="a-InputRange-label a-InputRange-label--mid"
class="cxd-InputRange-label cxd-InputRange-label--mid"
style="left: 50%;"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
10
</span>
</span>
<div
class="a-InputRange-input"
class="cxd-InputRange-input"
>
<input
class="is-active"
@ -124,7 +124,7 @@ exports[`Renderer:number 1`] = `
/>
</div>
<a
class="a-InputRange-clear is-active"
class="cxd-InputRange-clear is-active"
>
<icon-mock
classname="icon icon-close"
@ -185,17 +185,17 @@ exports[`Renderer:number 1`] = `
exports[`Renderer:range:multiple 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -204,22 +204,22 @@ exports[`Renderer:range:multiple 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
range
@ -228,37 +228,37 @@ exports[`Renderer:range:multiple 1`] = `
</span>
</label>
<div
class="a-RangeControl a-RangeControl--withInput a-RangeControl--clearable is-multiple a-Form-control"
class="cxd-RangeControl cxd-RangeControl--withInput cxd-RangeControl--clearable is-multiple cxd-Form-control"
>
<div
aria-disabled="false"
class="a-InputRange"
class="cxd-InputRange"
>
<span
class="a-InputRange-label a-InputRange-label--min"
class="cxd-InputRange-label cxd-InputRange-label--min"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
0
</span>
</span>
<div
class="a-InputRange-track a-InputRange-track--background"
class="cxd-InputRange-track cxd-InputRange-track--background"
>
<div
class="a-InputRange-track is-active"
class="cxd-InputRange-track is-active"
style="left: 0%; width: 100%;"
/>
<span
class="a-InputRange-sliderContainer"
class="cxd-InputRange-sliderContainer"
style="position: absolute; left: 0%;"
>
<span
class="a-InputRange-label a-InputRange-label--value"
class="cxd-InputRange-label cxd-InputRange-label--value"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
0
</span>
@ -267,21 +267,21 @@ exports[`Renderer:range:multiple 1`] = `
aria-valuemax="20"
aria-valuemin="0"
aria-valuenow="0"
class="a-InputRange-slider"
class="cxd-InputRange-slider"
draggable="false"
role="slider"
tabindex="0"
/>
</span>
<span
class="a-InputRange-sliderContainer"
class="cxd-InputRange-sliderContainer"
style="position: absolute; left: 100%;"
>
<span
class="a-InputRange-label a-InputRange-label--value"
class="cxd-InputRange-label cxd-InputRange-label--value"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
20
</span>
@ -290,7 +290,7 @@ exports[`Renderer:range:multiple 1`] = `
aria-valuemax="20"
aria-valuemin="0"
aria-valuenow="20"
class="a-InputRange-slider"
class="cxd-InputRange-slider"
draggable="false"
role="slider"
tabindex="0"
@ -298,28 +298,28 @@ exports[`Renderer:range:multiple 1`] = `
</span>
</div>
<span
class="a-InputRange-label a-InputRange-label--max"
class="cxd-InputRange-label cxd-InputRange-label--max"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
20
</span>
</span>
</div>
<span
class="a-InputRange-label a-InputRange-label--mid"
class="cxd-InputRange-label cxd-InputRange-label--mid"
style="left: 50%;"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
10
</span>
</span>
<div
class="a-InputRange-input is-multiple"
class="cxd-InputRange-input is-multiple"
>
<input
class=""
@ -328,7 +328,7 @@ exports[`Renderer:range:multiple 1`] = `
value="0"
/>
<span
class="a-InputRange-input-separator"
class="cxd-InputRange-input-separator"
>
-
</span>
@ -340,7 +340,7 @@ exports[`Renderer:range:multiple 1`] = `
/>
</div>
<a
class="a-InputRange-clear is-active"
class="cxd-InputRange-clear is-active"
>
<icon-mock
classname="icon icon-close"

View File

@ -3,17 +3,17 @@
exports[`Renderer:rating 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:rating 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
rating
@ -46,41 +46,41 @@ exports[`Renderer:rating 1`] = `
</span>
</label>
<div
class="a-RatingControl a-Form-control"
class="cxd-RatingControl cxd-Form-control"
>
<div
class=""
>
<span
class="a-Rating is-active"
class="cxd-Rating is-active"
data-forhalf="★"
data-index="0"
>
</span>
<span
class="a-Rating is-active"
class="cxd-Rating is-active"
data-forhalf="★"
data-index="1"
>
</span>
<span
class="a-Rating is-active"
class="cxd-Rating is-active"
data-forhalf="★"
data-index="2"
>
</span>
<span
class="a-Rating"
class="cxd-Rating"
data-forhalf="★"
data-index="3"
>
</span>
<span
class="a-Rating"
class="cxd-Rating"
data-forhalf="★"
data-index="4"
>

View File

@ -3,17 +3,17 @@
exports[`Renderer:repeat 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:repeat 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
repeat
@ -46,7 +46,7 @@ exports[`Renderer:repeat 1`] = `
</span>
</label>
<div
class="a-RepeatControl a-Form-control"
class="cxd-RepeatControl cxd-Form-control"
>
<div
class="repeat-control hbox"
@ -64,33 +64,33 @@ exports[`Renderer:repeat 1`] = `
>
<div
aria-disabled="false"
class="a-InputRange"
class="cxd-InputRange"
>
<span
class="a-InputRange-label a-InputRange-label--min"
class="cxd-InputRange-label cxd-InputRange-label--min"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
1
</span>
</span>
<div
class="a-InputRange-track a-InputRange-track--background"
class="cxd-InputRange-track cxd-InputRange-track--background"
>
<div
class="a-InputRange-track"
class="cxd-InputRange-track"
style="left: 0%; width: 0%;"
/>
<span
class="a-InputRange-sliderContainer"
class="cxd-InputRange-sliderContainer"
style="position: absolute; left: 0%;"
>
<span
class="a-InputRange-label a-InputRange-label--value"
class="cxd-InputRange-label cxd-InputRange-label--value"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
1
</span>
@ -99,7 +99,7 @@ exports[`Renderer:repeat 1`] = `
aria-valuemax="20"
aria-valuemin="1"
aria-valuenow="1"
class="a-InputRange-slider"
class="cxd-InputRange-slider"
draggable="false"
role="slider"
tabindex="0"
@ -107,10 +107,10 @@ exports[`Renderer:repeat 1`] = `
</span>
</div>
<span
class="a-InputRange-label a-InputRange-label--max"
class="cxd-InputRange-label cxd-InputRange-label--max"
>
<span
class="a-InputRange-labelContainer"
class="cxd-InputRange-labelContainer"
>
20
</span>
@ -125,22 +125,22 @@ exports[`Renderer:repeat 1`] = `
aria-haspopup="listbox"
aria-labelledby="downshift-0-label"
aria-owns="downshift-0-menu"
class="a-Select is-opened pull-right has-popover"
class="cxd-Select is-opened pull-right has-popover"
role="combobox"
style="position: relative;"
tabindex="0"
>
<div
class="a-Select-valueWrap"
class="cxd-Select-valueWrap"
>
<div
class="a-Select-value"
class="cxd-Select-value"
>
</div>
</div>
<span
class="a-Select-arrow"
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
@ -148,18 +148,18 @@ exports[`Renderer:repeat 1`] = `
/>
</span>
<div
class="a-PopOver a-Select-popover a-PopOver--leftBottomLeftTop"
class="cxd-PopOver cxd-Select-popover cxd-PopOver--leftBottomLeftTop"
style="display: block; min-width: 0; left: 0px; top: 0px; position: relative;"
theme="default"
theme="cxd"
>
<div
class="a-PopOver-overlay"
class="cxd-PopOver-overlay"
/>
<div
class="a-Select-menu"
class="cxd-Select-menu"
>
<div
class="a-Select-option invisible"
class="cxd-Select-option invisible"
>
<span>
Placeholder
@ -167,7 +167,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-0"
role="option"
>
@ -177,7 +177,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-1"
role="option"
>
@ -187,7 +187,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-2"
role="option"
>
@ -197,7 +197,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-3"
role="option"
>
@ -207,7 +207,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-4"
role="option"
>
@ -217,7 +217,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-5"
role="option"
>
@ -227,7 +227,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-6"
role="option"
>
@ -237,7 +237,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option"
class="cxd-Select-option"
id="downshift-0-item-7"
role="option"
>
@ -247,7 +247,7 @@ exports[`Renderer:repeat 1`] = `
</div>
<div
aria-selected="false"
class="a-Select-option is-active"
class="cxd-Select-option is-active"
id="downshift-0-item-8"
role="option"
>

View File

@ -3,17 +3,17 @@
exports[`Renderer:service 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,56 +22,56 @@ exports[`Renderer:service 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal is-required"
class="cxd-Form-item cxd-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
模板
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-SelectControl a-Form-control is-inline"
class="cxd-SelectControl cxd-Form-control is-inline"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-0-label"
class="a-Select"
class="cxd-Select"
role="combobox"
tabindex="0"
>
<div
class="a-Select-valueWrap"
class="cxd-Select-valueWrap"
>
<div
class="a-Select-value"
class="cxd-Select-value"
>
模板1
</div>
</div>
<span
class="a-Select-arrow"
class="cxd-Select-arrow"
>
<icon-mock
classname="icon icon-caret"
@ -82,38 +82,38 @@ exports[`Renderer:service 1`] = `
</div>
</div>
<div
class="a-Service m-t"
class="cxd-Service m-t"
>
<div
class="a-Service-body"
class="cxd-Service-body"
>
<div
class="a-Form-item a-Form-item--normal is-required"
class="cxd-Form-item cxd-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
动态字段1
</span>
</span>
<span
class="a-Form-star"
class="cxd-Form-star"
>
*
</span>
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -127,15 +127,15 @@ exports[`Renderer:service 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
动态字段2
@ -144,10 +144,10 @@ exports[`Renderer:service 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -162,10 +162,10 @@ exports[`Renderer:service 1`] = `
</div>
</div>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay a-Spinner--lg"
class="cxd-Spinner cxd-Spinner--overlay cxd-Spinner--lg"
/>
</div>
<input
@ -220,24 +220,24 @@ exports[`Renderer:service 1`] = `
exports[`form:service:remoteData 1`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Service"
class="cxd-Service"
>
<div
class="a-Service-body"
class="cxd-Service-body"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -252,18 +252,18 @@ exports[`form:service:remoteData 1`] = `
</div>
</div>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay a-Spinner--lg"
class="cxd-Spinner cxd-Spinner--overlay cxd-Spinner--lg"
/>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -282,24 +282,24 @@ exports[`form:service:remoteData 1`] = `
exports[`form:service:remoteSchmea+data 1`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Service"
class="cxd-Service"
>
<div
class="a-Service-body"
class="cxd-Service-body"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -313,14 +313,14 @@ exports[`form:service:remoteSchmea+data 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -335,18 +335,18 @@ exports[`form:service:remoteSchmea+data 1`] = `
</div>
</div>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay a-Spinner--lg"
class="cxd-Spinner cxd-Spinner--overlay cxd-Spinner--lg"
/>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>
@ -365,30 +365,30 @@ exports[`form:service:remoteSchmea+data 1`] = `
exports[`form:service:super-remoteData 1`] = `
<div>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay"
class="cxd-Spinner cxd-Spinner--overlay"
/>
<div
class="a-Service"
class="cxd-Service"
>
<div
class="a-Service-body"
class="cxd-Service-body"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -404,11 +404,11 @@ exports[`form:service:super-remoteData 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="submit"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:static 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:static 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal bg-white"
class="cxd-Form-item cxd-Form-item--normal bg-white"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
label
@ -46,20 +46,20 @@ exports[`Renderer:static 1`] = `
</span>
</label>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control is-inline"
class="cxd-Form-control is-inline"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
static
</span>
</div>
</div>
<span
class="a-TplField a-Form-description"
class="cxd-TplField cxd-Form-description"
>
<span>
static description
@ -67,17 +67,17 @@ exports[`Renderer:static 1`] = `
</span>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"
@ -89,17 +89,17 @@ exports[`Renderer:static 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-static"
class="cxd-Form-static"
>
<div
class="a-Form-control"
class="cxd-Form-control"
>
<span
class="a-PlainField"
class="cxd-PlainField"
>
<span
class="text-muted"

View File

@ -3,17 +3,17 @@
exports[`Renderer:switch 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:switch 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal block"
class="cxd-Form-item cxd-Form-item--normal block"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
开关
@ -46,14 +46,14 @@ exports[`Renderer:switch 1`] = `
</span>
</label>
<div
class="a-SwitchControl a-Form-control"
class="cxd-SwitchControl cxd-Form-control"
>
<label
class="a-Switch is-checked"
class="cxd-Switch is-checked"
>
<input
checked=""
theme="default"
theme="cxd"
type="checkbox"
/>
<span
@ -64,7 +64,7 @@ exports[`Renderer:switch 1`] = `
/>
</label>
<span
class="a-Switch-option"
class="cxd-Switch-option"
>
switch
</span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:tabs 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,28 +22,28 @@ exports[`Renderer:tabs 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Tabs"
class="cxd-Tabs cxd-Tabs--line"
>
<ul
class="a-Tabs-links"
class="cxd-Tabs-links"
role="tablist"
>
<li
class="a-Tabs-link is-active"
class="cxd-Tabs-link is-active"
>
<a>
基本配置
</a>
</li>
<li
class="a-Tabs-link"
class="cxd-Tabs-link"
>
<a>
其他配置
@ -51,13 +51,13 @@ exports[`Renderer:tabs 1`] = `
</li>
</ul>
<div
class="a-Tabs-content"
class="cxd-Tabs-content"
>
<div
class="in is-active a-Tabs-pane"
class="in is-active cxd-Tabs-pane"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
<p>
@ -67,18 +67,18 @@ exports[`Renderer:tabs 1`] = `
</span>
</div>
<div
class="a-Tabs-pane"
class="cxd-Tabs-pane"
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
文本3
@ -87,10 +87,10 @@ exports[`Renderer:tabs 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"
@ -104,15 +104,15 @@ exports[`Renderer:tabs 1`] = `
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
文本4
@ -121,10 +121,10 @@ exports[`Renderer:tabs 1`] = `
</span>
</label>
<div
class="a-Form-control a-TextControl"
class="cxd-Form-control cxd-TextControl"
>
<div
class="a-TextControl-input"
class="cxd-TextControl-input"
>
<input
autocomplete="off"

View File

@ -3,17 +3,17 @@
exports[`Renderer:textarea 1`] = `
<div>
<div
class="a-Panel a-Panel--default a-Panel--form"
class="cxd-Panel cxd-Panel--default cxd-Panel--form"
style="position: relative;"
>
<div
class="a-Panel-heading"
class="cxd-Panel-heading"
>
<h3
class="a-Panel-title"
class="cxd-Panel-title"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The form
@ -22,22 +22,22 @@ exports[`Renderer:textarea 1`] = `
</h3>
</div>
<div
class="a-Panel-body"
class="cxd-Panel-body"
>
<form
class="a-Form a-Form--normal"
class="cxd-Form cxd-Form--normal"
novalidate=""
>
<div
class="a-Form-item a-Form-item--normal"
class="cxd-Form-item cxd-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
textarea
@ -48,7 +48,7 @@ exports[`Renderer:textarea 1`] = `
<textarea
autocomplete="off"
autocorrect="off"
class="a-TextareaControl a-Form-control"
class="cxd-TextareaControl cxd-Form-control"
name="a"
spellcheck="false"
style="height: -40px;"

View File

@ -1,46 +1,46 @@
import React = require('react');
import {render, cleanup} from '@testing-library/react';
import '../../../src/themes/default';
import {
render as amisRender
} from '../../../src/index';
import {render as amisRender} from '../../../src/index';
import {makeEnv} from '../../helper';
import { clearStoresCache } from '../../../src/factory';
import {clearStoresCache} from '../../../src/factory';
afterEach(() => {
cleanup();
clearStoresCache();
cleanup();
clearStoresCache();
});
test('Renderer:array', async () => {
const {
container
} = render(amisRender({
const {container} = render(
amisRender(
{
type: 'form',
title: 'The form',
controls: [
{
name: 'array',
label: '颜色集合',
type: 'array',
addable: true,
removeable: true,
minLength: 1,
maxLength: 4,
addButtonText: '新增',
draggable: true,
draggableTip: '可通过拖动每行中的【交换】按钮进行顺序调整',
value: [
'red'
],
inline: true,
items: {
type: 'color'
}
{
name: 'array',
label: '颜色集合',
type: 'array',
addable: true,
removeable: true,
minLength: 1,
maxLength: 4,
addButtonText: '新增',
draggable: true,
draggableTip: '可通过拖动每行中的【交换】按钮进行顺序调整',
value: ['red'],
inline: true,
items: {
type: 'color'
}
}
],
submitText: null,
actions: []
}, {}, makeEnv()));
expect(container).toMatchSnapshot();
});
},
{},
makeEnv()
)
);
expect(container).toMatchSnapshot();
});

View File

@ -31,7 +31,7 @@ test('Renderer:date', async () => {
)
);
const input = container.querySelector('.a-DatePicker-value');
const input = container.querySelector('.cxd-DatePicker-value');
expect(input?.innerHTML).toEqual(
moment(1559836800, 'X').format('YYYY-MM-DD')
);

View File

@ -31,7 +31,7 @@ test('Renderer:dateRange', async () => {
)
);
const input = container.querySelector('.a-DateRangePicker-value');
const input = container.querySelector('.cxd-DateRangePicker-value');
expect(input?.innerHTML).toEqual(
`${moment(1559750400, 'X').format('YYYY-MM-DD')}${moment(
1561564799,

View File

@ -31,7 +31,7 @@ test('Renderer:date', async () => {
)
);
const input = container.querySelector('.a-DatePicker-value');
const input = container.querySelector('.cxd-DatePicker-value');
expect(input?.innerHTML).toEqual(
moment(1559826660, 'X').format('YYYY-MM-DD HH:mm:ss')
);

View File

@ -40,7 +40,7 @@ test('Renderer:icon-picker', async () => {
)
);
const faIcon = container.querySelector('.a-IconPickerControl-value');
const faIcon = container.querySelector('.cxd-IconPickerControl-value');
expect(faIcon?.innerHTML.replace(/<\s*i[^>]*><\s*\/\s*i>/g, '')).toEqual(
'address-card'
);

View File

@ -89,7 +89,7 @@ test('Renderer:range:multiple', async () => {
}
});
fireEvent.blur(inputs[1]);
const close = container.querySelector('a.a-InputRange-clear');
const close = container.querySelector('a.cxd-InputRange-clear');
fireEvent.click(close!);
expect(container).toMatchSnapshot();

View File

@ -30,7 +30,7 @@ test('Renderer:time', async () => {
// );
// await wait(200);
// todo 这个用例有问题,先注释
// const input = container.querySelector('.a-DatePicker-value');
// const input = container.querySelector('.cxd-DatePicker-value');
// expect(input?.innerHTML).toEqual('01:01');
// expect(container).toMatchSnapshot();
});

View File

@ -2,7 +2,7 @@
exports[`Renderers:Action [actionType = "link"] show active class 1`] = `
<button
className="a-Button a-Button--default a"
className="cxd-Button cxd-Button--default a"
onClick={[Function]}
type="button"
>
@ -14,7 +14,7 @@ exports[`Renderers:Action [actionType = "link"] show active class 1`] = `
exports[`Renderers:Action [actionType = "link"] show active class 2`] = `
<button
className="a-Button a-Button--default a is-active"
className="cxd-Button cxd-Button--default a is-active"
onClick={[Function]}
type="button"
>
@ -75,7 +75,7 @@ exports[`Renderers:Action MenuItem display icon 2`] = `
onClick={[Function]}
>
<i
className="a-Button-icon fa fa-cloud"
className="cxd-Button-icon fa fa-cloud"
/>
<span>
123
@ -85,7 +85,7 @@ exports[`Renderers:Action MenuItem display icon 2`] = `
exports[`Renderers:Action custom activeClass 1`] = `
<button
className="a-Button a-Button--default a"
className="cxd-Button cxd-Button--default a"
onClick={[Function]}
type="button"
>
@ -97,7 +97,7 @@ exports[`Renderers:Action custom activeClass 1`] = `
exports[`Renderers:Action custom activeClass 2`] = `
<button
className="a-Button a-Button--default a custom-active"
className="cxd-Button cxd-Button--default a custom-active"
onClick={[Function]}
type="button"
>

View File

@ -3,22 +3,22 @@
exports[`Renderer:alert 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Alert a-Alert--success"
class="cxd-Alert cxd-Alert--success"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
提示内容

View File

@ -3,10 +3,10 @@
exports[`Renderer:audio 1`] = `
<div>
<div
class="a-Audio a-Audio--inline"
class="cxd-Audio cxd-Audio--inline"
>
<audio
class="a-Audio-original"
class="cxd-Audio-original"
controls=""
>
<source
@ -14,10 +14,10 @@ exports[`Renderer:audio 1`] = `
/>
</audio>
<div
class="a-Audio-controls"
class="cxd-Audio-controls"
>
<div
class="a-Audio-play"
class="cxd-Audio-play"
>
<icon-mock
classname="icon icon-play"
@ -25,14 +25,14 @@ exports[`Renderer:audio 1`] = `
/>
</div>
<div
class="a-Audio-times"
class="cxd-Audio-times"
>
0:00
/
0:00
</div>
<div
class="a-Audio-process"
class="cxd-Audio-process"
>
<input
max="1"
@ -43,7 +43,7 @@ exports[`Renderer:audio 1`] = `
/>
</div>
<div
class="a-Audio-volume"
class="cxd-Audio-volume"
>
<icon-mock
classname="icon icon-volume"

View File

@ -3,15 +3,15 @@
exports[`Renderer:button-toolbar 1`] = `
<div>
<div
class="a-Form-item a-Form-item--normal show"
class="cxd-Form-item cxd-Form-item--normal show"
data-role="form-item"
>
<label
class="a-Form-label"
class="cxd-Form-label"
>
<span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
button-toolbar
@ -20,10 +20,10 @@ exports[`Renderer:button-toolbar 1`] = `
</span>
</label>
<div
class="a-ButtonToolbar a-Form-control"
class="cxd-ButtonToolbar cxd-Form-control"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -31,7 +31,7 @@ exports[`Renderer:button-toolbar 1`] = `
</span>
</button>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>

View File

@ -3,17 +3,17 @@
exports[`Renderer:carousel 1`] = `
<div>
<div
class="a-Carousel a-Carousel--light show"
class="cxd-Carousel cxd-Carousel--light show"
style="width: 500px; height: 300px;"
>
<div
class="a-Carousel-container"
class="cxd-Carousel-container"
>
<div
class="a-Carousel-item fade in"
class="cxd-Carousel-item fade in"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
@ -48,10 +48,10 @@ exports[`Renderer:carousel 1`] = `
</span>
</div>
<div
class="a-Carousel-item fade out"
class="cxd-Carousel-item fade out"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
@ -70,23 +70,23 @@ exports[`Renderer:carousel 1`] = `
</span>
</div>
<div
class="a-Carousel-dotsControl"
class="cxd-Carousel-dotsControl"
>
<span
class="a-Carousel-dot is-active"
class="cxd-Carousel-dot is-active"
/>
<span
class="a-Carousel-dot"
class="cxd-Carousel-dot"
/>
<span
class="a-Carousel-dot"
class="cxd-Carousel-dot"
/>
</div>
<div
class="a-Carousel-arrowsControl"
class="cxd-Carousel-arrowsControl"
>
<div
class="a-Carousel-leftArrow"
class="cxd-Carousel-leftArrow"
>
<icon-mock
classname="icon icon-left-arrow"
@ -94,7 +94,7 @@ exports[`Renderer:carousel 1`] = `
/>
</div>
<div
class="a-Carousel-rightArrow"
class="cxd-Carousel-rightArrow"
>
<icon-mock
classname="icon icon-right-arrow"

View File

@ -3,32 +3,32 @@
exports[`Renderer:container 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Container bg-white"
class="cxd-Container bg-white"
>
<div
class="a-Container-body"
class="cxd-Container-body"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
内容1
</span>
</span>
<span
class="a-PlainField"
class="cxd-PlainField"
>
内容2
</span>

View File

@ -3,7 +3,7 @@
exports[`Renderer:date 1`] = `
<div>
<span
class="a-DateField show"
class="cxd-DateField show"
>
2019-06-07
</span>

View File

@ -3,13 +3,13 @@
exports[`Renderer:dropdown-button 1`] = `
<div>
<div
class="a-DropDown is-opened show"
class="cxd-DropDown is-opened show"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
>
<span
class="a-DropDown-caret"
class="cxd-DropDown-caret"
>
<icon-mock
classname="icon icon-caret"
@ -18,7 +18,7 @@ exports[`Renderer:dropdown-button 1`] = `
</span>
</button>
<ul
class="a-DropDown-menu"
class="cxd-DropDown-menu"
>
<li
class=""
@ -50,13 +50,13 @@ exports[`Renderer:dropdown-button 1`] = `
exports[`Renderer:dropdown-button 2`] = `
<div>
<div
class="a-DropDown show"
class="cxd-DropDown show"
>
<button
class="a-Button a-Button--primary"
class="cxd-Button cxd-Button--primary"
>
<span
class="a-DropDown-caret"
class="cxd-DropDown-caret"
>
<icon-mock
classname="icon icon-caret"

View File

@ -3,17 +3,17 @@
exports[`Renderer:each 1`] = `
<div>
<div
class="a-Each show"
class="cxd-Each show"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
jack
</span>
</span>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
martin

View File

@ -3,13 +3,13 @@
exports[`Renderer:hbox 1`] = `
<div>
<div
class="a-Hbox a-Hbox--xs"
class="cxd-Hbox cxd-Hbox--xs"
>
<div
class="a-Hbox-col w-xs"
class="cxd-Hbox-col w-xs"
>
<div
class="a-TplField bg-info"
class="cxd-TplField bg-info"
>
<span>
w-xs
@ -17,10 +17,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Hbox-col w-sm"
class="cxd-Hbox-col w-sm"
>
<div
class="a-TplField bg-info lter"
class="cxd-TplField bg-info lter"
>
<span>
w-sm
@ -28,10 +28,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Hbox-col w"
class="cxd-Hbox-col w"
>
<div
class="a-TplField bg-info dk"
class="cxd-TplField bg-info dk"
>
<span>
w
@ -39,10 +39,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Hbox-col"
class="cxd-Hbox-col"
>
<div
class="a-TplField bg-success"
class="cxd-TplField bg-success"
>
<span>
平均分配
@ -50,10 +50,10 @@ exports[`Renderer:hbox 1`] = `
</div>
</div>
<div
class="a-Hbox-col"
class="cxd-Hbox-col"
>
<div
class="a-TplField bg-primary"
class="cxd-TplField bg-primary"
>
<span>
平均分配

View File

@ -3,16 +3,16 @@
exports[`Renderer:image 1`] = `
<div>
<div
class="a-ImageField show"
class="cxd-ImageField show"
>
<div
class="a-Image"
class="cxd-Image"
>
<div
class="a-Image-thumbWrap"
class="cxd-Image-thumbWrap"
>
<div
class="a-Image-thumb a-Image-thumb--contain a-Image-thumb--1-1"
class="cxd-Image-thumb cxd-Image-thumb--contain cxd-Image-thumb--1-1"
>
<img
class="b"
@ -21,10 +21,10 @@ exports[`Renderer:image 1`] = `
</div>
</div>
<div
class="a-Image-info"
class="cxd-Image-info"
>
<div
class="a-Image-title"
class="cxd-Image-title"
title="图片"
>
图片

View File

@ -3,7 +3,7 @@
exports[`Renderer:link 1`] = `
<div>
<a
class="a-Link show"
class="cxd-Link show"
href="https://www.baidu.com"
target="_blank"
>

View File

@ -3,7 +3,7 @@
exports[`Renderer:mapping 1`] = `
<div>
<span
class="a-MappingField"
class="cxd-MappingField"
>
<span
class="text-muted"

File diff suppressed because it is too large Load Diff

View File

@ -3,19 +3,19 @@
exports[`Renderer:qr-code 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-QrCode"
class="cxd-QrCode"
>
<svg
class=""

View File

@ -3,21 +3,21 @@
exports[`Renderer:tabs 1`] = `
<div>
<div
class="a-Tabs"
class="cxd-Tabs cxd-Tabs--line"
>
<ul
class="a-Tabs-links"
class="cxd-Tabs-links"
role="tablist"
>
<li
class="a-Tabs-link is-active"
class="cxd-Tabs-link is-active"
>
<a>
基本配置
</a>
</li>
<li
class="a-Tabs-link"
class="cxd-Tabs-link"
>
<a>
其他配置
@ -25,13 +25,13 @@ exports[`Renderer:tabs 1`] = `
</li>
</ul>
<div
class="a-Tabs-content"
class="cxd-Tabs-content"
>
<div
class="in is-active a-Tabs-pane"
class="in is-active cxd-Tabs-pane"
>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
<p>

View File

@ -3,10 +3,10 @@
exports[`Renderer:alert 1`] = `
<div>
<div
class="a-Video"
class="cxd-Video"
>
<div
class="a-Video-player"
class="cxd-Video-player"
>
<div
class="video-react-controls-enabled video-react-paused video-react-fluid video-react-user-active video-react-workinghover video-react"

File diff suppressed because it is too large Load Diff

View File

@ -3,19 +3,19 @@
exports[`api:cache 1`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-toolbar"
class="cxd-Page-toolbar"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -24,16 +24,16 @@ exports[`api:cache 1`] = `
</button>
</div>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay a-Spinner--lg"
class="cxd-Spinner cxd-Spinner--overlay cxd-Spinner--lg"
/>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The variable value is 1
@ -49,19 +49,19 @@ exports[`api:cache 1`] = `
exports[`api:cache 2`] = `
<div>
<div
class="a-Page"
class="cxd-Page"
>
<div
class="a-Page-content"
class="cxd-Page-content"
>
<div
class="a-Page-main"
class="cxd-Page-main"
>
<div
class="a-Page-toolbar"
class="cxd-Page-toolbar"
>
<button
class="a-Button a-Button--default"
class="cxd-Button cxd-Button--default"
type="button"
>
<span>
@ -70,16 +70,16 @@ exports[`api:cache 2`] = `
</button>
</div>
<div
class="a-Page-body"
class="cxd-Page-body"
>
<div
class="a-Spinner-overlay"
class="cxd-Spinner-overlay"
/>
<div
class="a-Spinner a-Spinner--overlay a-Spinner--lg"
class="cxd-Spinner cxd-Spinner--overlay cxd-Spinner--lg"
/>
<span
class="a-TplField"
class="cxd-TplField"
>
<span>
The variable value is 1