修复一些 jest 的报错

This commit is contained in:
wuduoyi 2020-12-02 23:06:38 +08:00
parent 3bb36ac024
commit f8ec77d388
48 changed files with 1925 additions and 1418 deletions

View File

@ -77,7 +77,9 @@ exports[`factory:definitions 1`] = `
<span
class="a-TplField"
>
引用
<span>
引用
</span>
</span>
</h2>
</div>
@ -97,7 +99,9 @@ exports[`factory:definitions 1`] = `
<span
class="a-TplField"
>
表单
<span>
表单
</span>
</span>
</h3>
</div>
@ -110,6 +114,7 @@ exports[`factory:definitions 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -137,13 +142,19 @@ exports[`factory:definitions 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -173,6 +184,7 @@ exports[`factory:definitions 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -200,6 +212,7 @@ exports[`factory:definitions 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -227,13 +240,19 @@ exports[`factory:definitions 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -245,9 +264,14 @@ exports[`factory:definitions 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
</div>
@ -261,6 +285,7 @@ exports[`factory:definitions 1`] = `
data-tooltip="删除"
>
<icon-mock
classname="icon icon-close"
icon="close"
/>
</a>
@ -275,8 +300,9 @@ exports[`factory:definitions 1`] = `
data-tooltip="新增一条数据"
type="button"
>
<i
class="a-Button-icon fa fa-plus"
<icon-mock
classname="icon icon-plus"
icon="plus"
/>
<span>
新增
@ -288,9 +314,14 @@ exports[`factory:definitions 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
</form>
@ -362,7 +393,9 @@ exports[`factory:definitions override 1`] = `
<span
class="a-TplField"
>
引用
<span>
引用
</span>
</span>
</h2>
</div>
@ -382,7 +415,9 @@ exports[`factory:definitions override 1`] = `
<span
class="a-TplField"
>
表单
<span>
表单
</span>
</span>
</h3>
</div>
@ -395,6 +430,7 @@ exports[`factory:definitions override 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -422,13 +458,19 @@ exports[`factory:definitions override 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -471,9 +513,14 @@ exports[`factory:definitions override 1`] = `
<div
class="a-Remark a-Form-remark"
>
<i
class="a-Remark-icon fa fa-question-circle"
/>
<span
class="a-Remark-icon"
>
<icon-mock
classname=" icon-warning-mark"
icon="warning-mark"
/>
</span>
</div>
</div>
</form>

View File

@ -1,23 +1,23 @@
import { RenderOptions } from "../src/factory";
import {RenderOptions} from '../src/factory';
// jest.useFakeTimers 会修改 global 的 setTimeout 所以需要把原始的记录下来。
const timerFn = setTimeout;
export function wait(duration:number, fn?:Function) {
return new Promise((resolve) => {
timerFn(() => {
fn && fn();
resolve();
}, duration);
});
const timerFn = setTimeout;
export function wait(duration: number, fn?: Function) {
return new Promise<void>(resolve => {
timerFn(() => {
fn && fn();
resolve();
}, duration);
});
}
export function makeEnv(env?:Partial<RenderOptions>):RenderOptions {
return {
session: 'test-case',
isCancel: () => false,
notify: (msg:string) => null,
jumpTo: (to:string) => console.info('Now should jump to ' + to),
alert: (msg) => console.info(`Alert: ${msg}`),
...env
}
}
export function makeEnv(env?: Partial<RenderOptions>): RenderOptions {
return {
session: 'test-case',
isCancel: () => false,
notify: (msg: string) => null,
jumpTo: (to: string) => console.info('Now should jump to ' + to),
alert: msg => console.info(`Alert: ${msg}`),
...env
};
}

View File

@ -15,7 +15,9 @@ exports[`Renderer:array 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:array 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:button 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:button 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default a-Form-control"
@ -43,6 +46,7 @@ exports[`Renderer:button 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default a-Form-control"
@ -55,6 +59,7 @@ exports[`Renderer:button 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--primary a-Form-control"
@ -67,6 +72,7 @@ exports[`Renderer:button 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal r-2x"
data-role="form-item"
>
<button
class="a-Button a-Button--danger a-Button--sm a-Form-control"
@ -137,7 +143,9 @@ exports[`Renderer:button 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -150,6 +158,7 @@ exports[`Renderer:button 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default a-Form-control"
@ -165,6 +174,7 @@ exports[`Renderer:button 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--default a-Form-control"
@ -177,6 +187,7 @@ exports[`Renderer:button 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<button
class="a-Button a-Button--primary a-Form-control"
@ -189,6 +200,7 @@ exports[`Renderer:button 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal r-2x"
data-role="form-item"
>
<button
class="a-Button a-Button--danger a-Button--sm a-Form-control"

View File

@ -15,7 +15,9 @@ exports[`Renderer:button-group 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:button-group 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -63,6 +66,7 @@ exports[`Renderer:button-group 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -72,7 +76,7 @@ exports[`Renderer:button-group 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -80,10 +84,12 @@ exports[`Renderer:button-group 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -149,7 +155,9 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -162,6 +170,7 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -197,6 +206,7 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -206,7 +216,7 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -214,10 +224,12 @@ exports[`Renderer:button-group:multiple clearable 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -283,7 +295,9 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -296,6 +310,7 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -331,6 +346,7 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -340,7 +356,7 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -348,10 +364,12 @@ exports[`Renderer:button-group:multiple clearable 2`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:button-toolbar 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:button-toolbar 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-ButtonToolbar a-Form-control"
@ -118,7 +121,9 @@ exports[`Renderer:button-toolbar 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -131,6 +136,7 @@ exports[`Renderer:button-toolbar 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-ButtonToolbar a-Form-control"

View File

@ -15,7 +15,9 @@ exports[`Renderer:checkbox 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:checkbox 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -52,7 +55,9 @@ exports[`Renderer:checkbox 1`] = `
<span
class="a-TplField"
>
选项说明
<span>
选项说明
</span>
</span>
</span>
</label>

View File

@ -15,7 +15,9 @@ exports[`Renderer:checkboxes 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:checkboxes 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -95,6 +98,7 @@ exports[`Renderer:checkboxes 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -104,7 +108,7 @@ exports[`Renderer:checkboxes 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -112,10 +116,12 @@ exports[`Renderer:checkboxes 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -181,7 +187,9 @@ exports[`Renderer:checkboxes 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -194,6 +202,7 @@ exports[`Renderer:checkboxes 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -261,6 +270,7 @@ exports[`Renderer:checkboxes 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -270,7 +280,7 @@ exports[`Renderer:checkboxes 2`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -278,10 +288,12 @@ exports[`Renderer:checkboxes 2`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:color 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:color 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -54,7 +57,7 @@ exports[`Renderer:color 1`] = `
class="a-ColorPicker-clear"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>

View File

@ -15,7 +15,9 @@ exports[`Renderer:container 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:container 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal no-border"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"
@ -47,6 +50,7 @@ exports[`Renderer:container 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"

View File

@ -15,7 +15,9 @@ exports[`Renderer:date 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:date 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -52,13 +55,18 @@ exports[`Renderer:date 1`] = `
class="a-DatePicker-clear"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>
<a
class="a-DatePicker-toggler"
/>
>
<icon-mock
classname="icon icon-calendar"
icon="calendar"
/>
</a>
</div>
</div>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:dateRange 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:dateRange 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -52,15 +55,16 @@ exports[`Renderer:dateRange 1`] = `
class="a-DateRangePicker-clear"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>
<a
class="a-DateRangePicker-toggler"
>
<i
class="fa fa-calendar"
<icon-mock
classname="icon icon-calendar"
icon="calendar"
/>
</a>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:date 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:date 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -52,13 +55,18 @@ exports[`Renderer:date 1`] = `
class="a-DatePicker-clear"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>
<a
class="a-DatePicker-toggler"
/>
>
<icon-mock
classname="icon icon-calendar"
icon="calendar"
/>
</a>
</div>
</div>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:fieldSet 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -37,6 +39,7 @@ exports[`Renderer:fieldSet 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"

View File

@ -15,7 +15,9 @@ exports[`Renderer:formula 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:formula 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -46,40 +49,40 @@ exports[`Renderer:formula 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="1"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="1"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="1"
/>
@ -89,6 +92,7 @@ exports[`Renderer:formula 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -107,40 +111,40 @@ exports[`Renderer:formula 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="2"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="2"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="2"
/>
@ -150,6 +154,7 @@ exports[`Renderer:formula 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -168,40 +173,40 @@ exports[`Renderer:formula 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="3"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="3"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="3"
/>
@ -211,6 +216,7 @@ exports[`Renderer:formula 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -229,40 +235,40 @@ exports[`Renderer:formula 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="4"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="4"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="4"
/>
@ -272,6 +278,7 @@ exports[`Renderer:formula 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -290,40 +297,40 @@ exports[`Renderer:formula 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="5"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="5"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="5"
/>

View File

@ -15,7 +15,9 @@ exports[`Renderer:hbox 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:hbox 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Grid a-Form-control"
@ -40,6 +43,7 @@ exports[`Renderer:hbox 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
@ -66,7 +70,9 @@ exports[`Renderer:hbox 1`] = `
<span
class="a-TplField"
>
其他渲染器类型
<span>
其他渲染器类型
</span>
</span>
</div>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:group 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -34,6 +36,7 @@ exports[`Renderer:group 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--0"
@ -69,6 +72,7 @@ exports[`Renderer:group 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--0"
@ -105,6 +109,7 @@ exports[`Renderer:group 1`] = `
>
<div
class="a-Form-item a-Form-item--inline"
data-role="form-item"
>
<label
class="a-Form-label"
@ -136,6 +141,7 @@ exports[`Renderer:group 1`] = `
</div>
<div
class="a-Form-item a-Form-item--inline"
data-role="form-item"
>
<label
class="a-Form-label"
@ -171,6 +177,7 @@ exports[`Renderer:group 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -198,6 +205,7 @@ exports[`Renderer:group 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:hbox 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:hbox 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-FormHbox a-Form-control"
@ -40,6 +43,7 @@ exports[`Renderer:hbox 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
@ -65,7 +69,9 @@ exports[`Renderer:hbox 1`] = `
<span
class="a-TplField"
>
其他类型的渲染器
<span>
其他类型的渲染器
</span>
</span>
</div>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:icon-picker 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:icon-picker 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:Form 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:Form 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -143,7 +146,9 @@ exports[`Renderer:Form initApi 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -162,6 +167,7 @@ exports[`Renderer:Form initApi 1`] = `
/>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -189,6 +195,7 @@ exports[`Renderer:Form initApi 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -288,7 +295,9 @@ exports[`Renderer:Form sendOn:true 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -307,6 +316,7 @@ exports[`Renderer:Form sendOn:true 1`] = `
/>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -334,6 +344,7 @@ exports[`Renderer:Form sendOn:true 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -433,7 +444,9 @@ exports[`Renderer:Form:onValidate 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -446,6 +459,7 @@ exports[`Renderer:Form:onValidate 1`] = `
>
<div
class="a-Form-item a-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
@ -480,6 +494,7 @@ exports[`Renderer:Form:onValidate 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
@ -596,7 +611,9 @@ exports[`Renderer:Form:onValidate 3`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -609,6 +626,7 @@ exports[`Renderer:Form:onValidate 3`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -636,6 +654,7 @@ exports[`Renderer:Form:onValidate 3`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -742,7 +761,9 @@ exports[`Renderer:Form:remoteValidate 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -761,6 +782,7 @@ exports[`Renderer:Form:remoteValidate 1`] = `
/>
<div
class="a-Form-item a-Form-item--normal is-error"
data-role="form-item"
>
<label
class="a-Form-label"
@ -867,7 +889,9 @@ exports[`Renderer:Form:valdiate 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -880,6 +904,7 @@ exports[`Renderer:Form:valdiate 1`] = `
>
<div
class="a-Form-item a-Form-item--normal is-error is-required"
data-role="form-item"
>
<label
class="a-Form-label"
@ -992,7 +1017,9 @@ exports[`Renderer:Form:valdiate 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -1005,6 +1032,7 @@ exports[`Renderer:Form:valdiate 2`] = `
>
<div
class="a-Form-item a-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:fieldSet 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:fieldSet 1`] = `
>
<div
class="a-Form-item a-Form-item--horizontal no-border"
data-role="form-item"
>
<label
class="a-Form-label a-Form-itemColumn--normal"

View File

@ -15,7 +15,9 @@ exports[`Renderer:list 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:list 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -140,7 +143,9 @@ exports[`Renderer:list:multiple clearable 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -153,6 +158,7 @@ exports[`Renderer:list:multiple clearable 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -190,6 +196,7 @@ exports[`Renderer:list:multiple clearable 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -199,7 +206,7 @@ exports[`Renderer:list:multiple clearable 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -207,10 +214,12 @@ exports[`Renderer:list:multiple clearable 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -276,7 +285,9 @@ exports[`Renderer:list:multiple clearable 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -289,6 +300,7 @@ exports[`Renderer:list:multiple clearable 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -326,6 +338,7 @@ exports[`Renderer:list:multiple clearable 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -335,7 +348,7 @@ exports[`Renderer:list:multiple clearable 2`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -343,10 +356,12 @@ exports[`Renderer:list:multiple clearable 2`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:number 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:number 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -46,40 +49,40 @@ exports[`Renderer:number 1`] = `
class="a-Number-handler-wrap"
>
<span
aria-disabled="false"
aria-label="Increase Value"
class="a-Number-handler a-Number-handler-up "
class="a-Number-handler a-Number-handler-up"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-up-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
<span
aria-disabled="false"
aria-label="Decrease Value"
class="a-Number-handler a-Number-handler-down "
class="a-Number-handler a-Number-handler-down"
role="button"
unselectable="unselectable"
unselectable="on"
>
<span
class="a-Number-handler-down-inner"
unselectable="unselectable"
unselectable="on"
/>
</span>
</div>
<div
aria-valuemin="-9007199254740991"
aria-valuenow="456"
class="a-Number-input-wrap"
role="spinbutton"
>
<input
aria-valuemax="9007199254740991"
aria-valuemin="-9007199254740991"
aria-valuenow="456"
autocomplete="off"
class="a-Number-input"
max="9007199254740991"
min="-9007199254740991"
role="spinbutton"
step="1"
value="456"
/>

View File

@ -15,7 +15,9 @@ exports[`Renderer:panel 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:panel 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-FormHbox a-Form-control"
@ -51,7 +54,9 @@ exports[`Renderer:panel 1`] = `
<span
class="a-TplField"
>
bla bla
<span>
bla bla
</span>
</span>
</h3>
</div>
@ -75,9 +80,11 @@ exports[`Renderer:panel 1`] = `
<span
class="a-TplField"
>
<p>
footer 内容
</p>
<span>
<p>
footer 内容
</p>
</span>
</span>
</div>
</div>
@ -138,7 +145,9 @@ exports[`Renderer:panel 1`] = `
<span
class="a-TplField"
>
bla bla
<span>
bla bla
</span>
</span>
</h3>
</div>
@ -150,6 +159,7 @@ exports[`Renderer:panel 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
@ -170,6 +180,7 @@ exports[`Renderer:panel 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"

View File

@ -15,7 +15,9 @@ exports[`Renderer:radios 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:radios 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -95,6 +98,7 @@ exports[`Renderer:radios 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -104,7 +108,7 @@ exports[`Renderer:radios 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -112,10 +116,12 @@ exports[`Renderer:radios 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -181,7 +187,9 @@ exports[`Renderer:radios 2`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -194,6 +202,7 @@ exports[`Renderer:radios 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -261,6 +270,7 @@ exports[`Renderer:radios 2`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -270,7 +280,7 @@ exports[`Renderer:radios 2`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -278,10 +288,8 @@ exports[`Renderer:radios 2`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
a
</span>
</span>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:number 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:number 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -65,6 +68,7 @@ exports[`Renderer:number 1`] = `
>
<span
class="a-InputRange-label a-InputRange-label--value"
style="left: calc(50% - 0px);"
>
<span
class="a-InputRange-labelContainer"
@ -95,6 +99,7 @@ exports[`Renderer:number 1`] = `
</div>
<span
class="a-InputRange-label a-InputRange-label--mid"
style="left: calc(50% - 60px);"
>
<span
class="a-InputRange-labelContainer"
@ -116,7 +121,7 @@ exports[`Renderer:number 1`] = `
class="a-InputRange-clear is-active"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>
@ -182,7 +187,9 @@ exports[`Renderer:range:multiple 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -195,6 +202,7 @@ exports[`Renderer:range:multiple 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -285,6 +293,7 @@ exports[`Renderer:range:multiple 1`] = `
</div>
<span
class="a-InputRange-label a-InputRange-label--mid"
style="left: calc(50% - 60px);"
>
<span
class="a-InputRange-labelContainer"
@ -317,7 +326,7 @@ exports[`Renderer:range:multiple 1`] = `
class="a-InputRange-clear is-active"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>

View File

@ -15,7 +15,9 @@ exports[`Renderer:rating 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:rating 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:repeat 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:repeat 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -118,6 +121,7 @@ exports[`Renderer:repeat 1`] = `
aria-owns="downshift-0-menu"
class="a-Select is-opened pull-right has-popover"
role="combobox"
style="position: relative;"
tabindex="0"
>
<div
@ -131,10 +135,16 @@ exports[`Renderer:repeat 1`] = `
</div>
<span
class="a-Select-arrow"
/>
>
<icon-mock
classname="icon icon-caret"
icon="caret"
/>
</span>
<div
class="a-PopOver a-Select-popover a-PopOver--leftBottomLeftTop"
style="display: block; min-width: 0; left: 0px; top: 0px;"
style="display: block; min-width: 0; left: 0px; top: 0px; position: relative;"
theme="default"
>
<div
class="a-PopOver-overlay"
@ -142,6 +152,13 @@ exports[`Renderer:repeat 1`] = `
<div
class="a-Select-menu"
>
<div
class="a-Select-option invisible"
>
<span>
Placeholder
</span>
</div>
<div
aria-selected="false"
class="a-Select-option"
@ -233,6 +250,84 @@ exports[`Renderer:repeat 1`] = `
</span>
</div>
</div>
<div
class="resize-sensor"
style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
class="resize-sensor-expand"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
style="position: absolute; left: 0px; top: 0px; width: 10px; height: 10px;"
/>
</div>
<div
class="resize-sensor-shrink"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
style="position: absolute; left: 0; top: 0; width: 200%; height: 200%"
/>
</div>
<div
class="resize-sensor-appear"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;animation-name: apearSensor; animation-duration: 0.2s;"
/>
</div>
</div>
<div
class="resize-sensor"
style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
class="resize-sensor-expand"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
style="position: absolute; left: 0px; top: 0px; width: 10px; height: 10px;"
/>
</div>
<div
class="resize-sensor-shrink"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;"
>
<div
style="position: absolute; left: 0; top: 0; width: 200%; height: 200%"
/>
</div>
<div
class="resize-sensor-appear"
style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;animation-name: apearSensor; animation-duration: 0.2s;"
/>
</div>
</div>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:service 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:service 1`] = `
>
<div
class="a-Form-item a-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"
@ -63,7 +66,12 @@ exports[`Renderer:service 1`] = `
</div>
<span
class="a-Select-arrow"
/>
>
<icon-mock
classname="icon icon-caret"
icon="caret"
/>
</span>
</div>
</div>
</div>
@ -75,6 +83,7 @@ exports[`Renderer:service 1`] = `
>
<div
class="a-Form-item a-Form-item--normal is-required"
data-role="form-item"
>
<label
class="a-Form-label"
@ -107,6 +116,7 @@ exports[`Renderer:service 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:static 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:static 1`] = `
>
<div
class="a-Form-item a-Form-item--normal bg-white"
data-role="form-item"
>
<label
class="a-Form-label"
@ -37,7 +40,7 @@ exports[`Renderer:static 1`] = `
</span>
</label>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control is-inline"
@ -45,21 +48,26 @@ exports[`Renderer:static 1`] = `
<span
class="a-TplField"
>
static
<span>
static
</span>
</span>
</div>
</div>
<span
class="a-TplField a-Form-description"
>
static description
<span>
static description
</span>
</span>
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -67,10 +75,12 @@ exports[`Renderer:static 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>
@ -78,9 +88,10 @@ exports[`Renderer:static 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="form-control-static"
class="a-Form-static"
>
<div
class="a-Form-control"
@ -88,10 +99,12 @@ exports[`Renderer:static 1`] = `
<span
class="a-TplField"
>
<span
class="text-muted"
>
-
<span>
<span
class="text-muted"
>
-
</span>
</span>
</span>
</div>

View File

@ -15,7 +15,9 @@ exports[`Renderer:switch 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:switch 1`] = `
>
<div
class="a-Form-item a-Form-item--normal block"
data-role="form-item"
>
<label
class="a-Form-label"
@ -44,6 +47,7 @@ exports[`Renderer:switch 1`] = `
>
<input
checked=""
theme="default"
type="checkbox"
/>
<i />

View File

@ -15,7 +15,9 @@ exports[`Renderer:tabs 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -59,9 +61,11 @@ exports[`Renderer:tabs 1`] = `
<span
class="a-TplField"
>
<p>
tab1 内容
</p>
<span>
<p>
tab1 内容
</p>
</span>
</span>
</div>
<div
@ -72,6 +76,7 @@ exports[`Renderer:tabs 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -99,6 +104,7 @@ exports[`Renderer:tabs 1`] = `
</div>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:textarea 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:textarea 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"

View File

@ -15,7 +15,9 @@ exports[`Renderer:time 1`] = `
<span
class="a-TplField"
>
The form
<span>
The form
</span>
</span>
</h3>
</div>
@ -28,6 +30,7 @@ exports[`Renderer:time 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<label
class="a-Form-label"
@ -52,13 +55,18 @@ exports[`Renderer:time 1`] = `
class="a-DatePicker-clear"
>
<icon-mock
classname="icon"
classname="icon icon-close"
icon="close"
/>
</a>
<a
class="a-DatePicker-toggler"
/>
>
<icon-mock
classname="icon icon-calendar"
icon="calendar"
/>
</a>
</div>
</div>
</div>

View File

@ -20,7 +20,9 @@ exports[`Renderer:alert 1`] = `
<span
class="a-TplField"
>
提示内容
<span>
提示内容
</span>
</span>
</div>
</div>

View File

@ -15,33 +15,35 @@ exports[`Renderer:carousel 1`] = `
<span
class="a-TplField"
>
<span>
<div
class="image "
style="background-image: url(https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png); background-size: contain; background-repeat: no-repeat; background-position: center center;"
/>
<div
class="image "
style="background-image: url('https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png'); background-size: contain; background-repeat: no-repeat; background-position: center center;"
/>
<div
class="title block"
>
标题
</div>
<div
class="title block"
>
标题
</div>
<div
class="description block"
>
描述
</div>
<div
class="description block"
>
描述
</div>
</span>
</span>
</div>
<div
@ -50,17 +52,19 @@ exports[`Renderer:carousel 1`] = `
<span
class="a-TplField"
>
<span>
<div
class="image "
style="background-image: url(https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg); background-size: contain; background-repeat: no-repeat; background-position: center center;"
/>
<div
class="image "
style="background-image: url('https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg'); background-size: contain; background-repeat: no-repeat; background-position: center center;"
/>
</span>
</span>
</div>
<div
@ -83,7 +87,7 @@ exports[`Renderer:carousel 1`] = `
class="a-Carousel-leftArrow"
>
<icon-mock
classname="icon"
classname="icon icon-left-arrow"
icon="left-arrow"
/>
</div>
@ -91,7 +95,7 @@ exports[`Renderer:carousel 1`] = `
class="a-Carousel-rightArrow"
>
<icon-mock
classname="icon"
classname="icon icon-right-arrow"
icon="right-arrow"
/>
</div>

View File

@ -23,7 +23,9 @@ exports[`Renderer:container 1`] = `
<span
class="a-TplField"
>
内容1
<span>
内容1
</span>
</span>
<span
class="a-PlainField"

View File

@ -8,9 +8,14 @@ exports[`Renderer:dropdown-button 1`] = `
<button
class="a-Button show a-Button--primary"
>
<i
class="a-DropDown-caret fa fa-angle-down"
/>
<span
class="a-DropDown-caret"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
/>
</span>
</button>
<ul
class="a-DropDown-menu"
@ -42,9 +47,14 @@ exports[`Renderer:dropdown-button 2`] = `
<button
class="a-Button show a-Button--primary"
>
<i
class="a-DropDown-caret fa fa-angle-down"
/>
<span
class="a-DropDown-caret"
>
<icon-mock
classname="icon icon-caret"
icon="caret"
/>
</span>
</button>
</div>
</div>

View File

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

View File

@ -11,7 +11,9 @@ exports[`Renderer:hbox 1`] = `
<div
class="a-TplField bg-info"
>
w-xs
<span>
w-xs
</span>
</div>
</div>
<div
@ -20,7 +22,9 @@ exports[`Renderer:hbox 1`] = `
<div
class="a-TplField bg-info lter"
>
w-sm
<span>
w-sm
</span>
</div>
</div>
<div
@ -29,7 +33,9 @@ exports[`Renderer:hbox 1`] = `
<div
class="a-TplField bg-info dk"
>
w
<span>
w
</span>
</div>
</div>
<div
@ -38,7 +44,9 @@ exports[`Renderer:hbox 1`] = `
<div
class="a-TplField bg-success"
>
平均分配
<span>
平均分配
</span>
</div>
</div>
<div
@ -47,7 +55,9 @@ exports[`Renderer:hbox 1`] = `
<div
class="a-TplField bg-primary"
>
平均分配
<span>
平均分配
</span>
</div>
</div>
</div>

View File

@ -23,18 +23,25 @@ exports[`Renderer:Page 1`] = `
<span
className="a-TplField"
>
This is Title
<span>
This is Title
</span>
</span>
<div
className="a-Remark a-Remark--warning"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<i
className="a-Remark-icon fa fa-question-circle"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
/>
<span
className="a-Remark-icon icon"
>
<icon-mock
className=" icon-question-mark"
icon="question-mark"
/>
</span>
</div>
</h2>
<small
@ -43,7 +50,9 @@ exports[`Renderer:Page 1`] = `
<span
className="a-TplField"
>
This is SubTitle
<span>
This is SubTitle
</span>
</span>
</small>
</div>
@ -53,7 +62,9 @@ exports[`Renderer:Page 1`] = `
<span
className="a-TplField"
>
This is toolbar
<span>
This is toolbar
</span>
</span>
</div>
</div>
@ -63,7 +74,9 @@ exports[`Renderer:Page 1`] = `
<span
className="a-TplField"
>
This is body
<span>
This is body
</span>
</span>
</div>
</div>
@ -82,7 +95,9 @@ exports[`Renderer:Page classNames 1`] = `
<div
className="a-TplField a-Page-asideTplWrapper"
>
This is aside
<span>
This is aside
</span>
</div>
</div>
<div
@ -103,18 +118,25 @@ exports[`Renderer:Page classNames 1`] = `
<span
className="a-TplField"
>
This is Title
<span>
This is Title
</span>
</span>
<div
className="a-Remark a-Remark--warning"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<i
className="a-Remark-icon fa fa-question-circle"
onBlur={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
/>
<span
className="a-Remark-icon icon"
>
<icon-mock
className=" icon-question-mark"
icon="question-mark"
/>
</span>
</div>
</h2>
<small
@ -123,7 +145,9 @@ exports[`Renderer:Page classNames 1`] = `
<span
className="a-TplField"
>
This is SubTitle
<span>
This is SubTitle
</span>
</span>
</small>
</div>
@ -133,7 +157,9 @@ exports[`Renderer:Page classNames 1`] = `
<span
className="a-TplField"
>
This is toolbar
<span>
This is toolbar
</span>
</span>
</div>
</div>
@ -143,7 +169,9 @@ exports[`Renderer:Page classNames 1`] = `
<span
className="a-TplField"
>
This is body
<span>
This is body
</span>
</span>
</div>
</div>
@ -186,7 +214,9 @@ exports[`Renderer:Page handleAction actionType=ajax & feedback 1`] = `
<span
class="a-TplField"
>
The variable a is 6
<span>
The variable a is 6
</span>
</span>
</div>
</div>
@ -224,7 +254,9 @@ exports[`Renderer:Page handleAction actionType=ajax & feedback 2`] = `
<span
class="a-TplField"
>
The variable a is 6
<span>
The variable a is 6
</span>
</span>
</div>
</div>
@ -268,7 +300,9 @@ exports[`Renderer:Page handleAction actionType=ajax 1`] = `
<span
class="a-TplField"
>
The variable a is 6
<span>
The variable a is 6
</span>
</span>
</div>
</div>
@ -370,7 +404,9 @@ exports[`Renderer:Page handleAction actionType=dialog mergeData 1`] = `
<span
class="a-TplField"
>
The variable a is
<span>
The variable a is
</span>
</span>
</div>
</div>
@ -408,7 +444,9 @@ exports[`Renderer:Page handleAction actionType=dialog mergeData 2`] = `
<span
class="a-TplField"
>
The variable a is 3
<span>
The variable a is 3
</span>
</span>
</div>
</div>
@ -510,7 +548,9 @@ exports[`Renderer:Page handleAction actionType=drawer mergeData 1`] = `
<span
class="a-TplField"
>
The variable a is
<span>
The variable a is
</span>
</span>
</div>
</div>
@ -548,7 +588,9 @@ exports[`Renderer:Page handleAction actionType=drawer mergeData 2`] = `
<span
class="a-TplField"
>
The variable a is 3
<span>
The variable a is 3
</span>
</span>
</div>
</div>
@ -580,7 +622,9 @@ exports[`Renderer:Page initApi 1`] = `
<span
className="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -617,7 +661,7 @@ exports[`Renderer:Page initApi error show Message 1`] = `
type="button"
>
<icon-mock
className="icon"
className="icon icon-close"
icon="close"
/>
</button>
@ -652,7 +696,9 @@ exports[`Renderer:Page initApi reFetch when condition changes 1`] = `
<span
className="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -677,7 +723,9 @@ exports[`Renderer:Page initApi reFetch when condition changes 2`] = `
<span
className="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -720,7 +768,9 @@ exports[`Renderer:Page initApi reload by Dialog action 1`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -758,7 +808,9 @@ exports[`Renderer:Page initApi reload by Dialog action 2`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -796,7 +848,9 @@ exports[`Renderer:Page initApi reload by Dialog action 3`] = `
<span
class="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -840,7 +894,9 @@ exports[`Renderer:Page initApi reload by Drawer action 1`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -878,7 +934,9 @@ exports[`Renderer:Page initApi reload by Drawer action 2`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -922,7 +980,9 @@ exports[`Renderer:Page initApi reload by Drawer action 3`] = `
<span
class="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -958,7 +1018,9 @@ exports[`Renderer:Page initApi reload by Form submit 1`] = `
<span
class="a-TplField"
>
表单
<span>
表单
</span>
</span>
</h3>
</div>
@ -971,6 +1033,7 @@ exports[`Renderer:Page initApi reload by Form submit 1`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
@ -1058,7 +1121,9 @@ exports[`Renderer:Page initApi reload by Form submit 1`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -1094,7 +1159,9 @@ exports[`Renderer:Page initApi reload by Form submit 2`] = `
<span
class="a-TplField"
>
表单
<span>
表单
</span>
</span>
</h3>
</div>
@ -1107,6 +1174,7 @@ exports[`Renderer:Page initApi reload by Form submit 2`] = `
>
<div
class="a-Form-item a-Form-item--normal"
data-role="form-item"
>
<div
class="a-Form-control a-TextControl"
@ -1194,7 +1262,9 @@ exports[`Renderer:Page initApi reload by Form submit 2`] = `
<span
class="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -1238,7 +1308,9 @@ exports[`Renderer:Page initApi reload by action 1`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -1282,7 +1354,9 @@ exports[`Renderer:Page initApi reload by action 2`] = `
<span
class="a-TplField"
>
The variable value is 2
<span>
The variable value is 2
</span>
</span>
</div>
</div>
@ -1314,7 +1388,9 @@ exports[`Renderer:Page initApi show loading 1`] = `
<span
className="a-TplField"
>
The variable value is
<span>
The variable value is
</span>
</span>
</div>
</div>
@ -1345,7 +1421,9 @@ exports[`Renderer:Page initApi show loading 2`] = `
<span
className="a-TplField"
>
The variable value is 3
<span>
The variable value is 3
</span>
</span>
</div>
</div>
@ -1376,7 +1454,9 @@ exports[`Renderer:Page initApi silentPolling 1`] = `
<span
className="a-TplField"
>
The variable value is
<span>
The variable value is
</span>
</span>
</div>
</div>
@ -1407,7 +1487,9 @@ exports[`Renderer:Page initApi silentPolling 2`] = `
<span
className="a-TplField"
>
The variable value is 3
<span>
The variable value is 3
</span>
</span>
</div>
</div>
@ -1432,7 +1514,9 @@ exports[`Renderer:Page initApi silentPolling 3`] = `
<span
className="a-TplField"
>
The variable value is 3
<span>
The variable value is 3
</span>
</span>
</div>
</div>
@ -1457,7 +1541,9 @@ exports[`Renderer:Page initApi silentPolling 4`] = `
<span
className="a-TplField"
>
The variable value is 4
<span>
The variable value is 4
</span>
</span>
</div>
</div>
@ -1482,7 +1568,9 @@ exports[`Renderer:Page initData 1`] = `
<span
className="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -1513,7 +1601,9 @@ exports[`Renderer:Page initFetchOn trigger initApi fetch when condition becomes
<span
className="a-TplField"
>
The variable value is 6
<span>
The variable value is 6
</span>
</span>
</div>
</div>
@ -1538,7 +1628,9 @@ exports[`Renderer:Page location query 1`] = `
<span
className="a-TplField"
>
The variable value is 5
<span>
The variable value is 5
</span>
</span>
</div>
</div>
@ -1563,7 +1655,9 @@ exports[`Renderer:Page location query 2`] = `
<span
className="a-TplField"
>
The variable value is 6
<span>
The variable value is 6
</span>
</span>
</div>
</div>

View File

@ -17,11 +17,22 @@ exports[`Renderer:qr-code 1`] = `
<div
class="a-QrCode"
>
<canvas
<svg
class=""
height="128"
style="height: 128px; width: 128px;"
shape-rendering="crispEdges"
viewBox="0 0 21 21"
width="128"
/>
>
<path
d="M0,0 h21v21H0z"
fill="#fff"
/>
<path
d="M0 0h7v1H0zM9 0h1v1H9zM12 0h1v1H12zM14,0 h7v1H14zM0 1h1v1H0zM6 1h1v1H6zM8 1h1v1H8zM11 1h1v1H11zM14 1h1v1H14zM20,1 h1v1H20zM0 2h1v1H0zM2 2h3v1H2zM6 2h1v1H6zM9 2h1v1H9zM14 2h1v1H14zM16 2h3v1H16zM20,2 h1v1H20zM0 3h1v1H0zM2 3h3v1H2zM6 3h1v1H6zM8 3h1v1H8zM11 3h1v1H11zM14 3h1v1H14zM16 3h3v1H16zM20,3 h1v1H20zM0 4h1v1H0zM2 4h3v1H2zM6 4h1v1H6zM10 4h3v1H10zM14 4h1v1H14zM16 4h3v1H16zM20,4 h1v1H20zM0 5h1v1H0zM6 5h1v1H6zM8 5h3v1H8zM12 5h1v1H12zM14 5h1v1H14zM20,5 h1v1H20zM0 6h7v1H0zM8 6h1v1H8zM10 6h1v1H10zM12 6h1v1H12zM14,6 h7v1H14zM10 7h3v1H10zM0 8h5v1H0zM6 8h4v1H6zM12 8h2v1H12zM15 8h1v1H15zM17 8h1v1H17zM19 8h1v1H19zM2 9h4v1H2zM7 9h4v1H7zM12 9h1v1H12zM15 9h1v1H15zM17 9h1v1H17zM20,9 h1v1H20zM3 10h1v1H3zM6 10h3v1H6zM11 10h1v1H11zM13 10h1v1H13zM16 10h4v1H16zM0 11h1v1H0zM5 11h1v1H5zM7 11h1v1H7zM10 11h1v1H10zM15 11h5v1H15zM1 12h1v1H1zM3 12h1v1H3zM5 12h3v1H5zM11 12h1v1H11zM13 12h1v1H13zM16 12h1v1H16zM8 13h2v1H8zM11 13h4v1H11zM20,13 h1v1H20zM0 14h7v1H0zM8 14h3v1H8zM12 14h1v1H12zM14 14h2v1H14zM17 14h3v1H17zM0 15h1v1H0zM6 15h1v1H6zM9 15h1v1H9zM11 15h4v1H11zM17 15h2v1H17zM0 16h1v1H0zM2 16h3v1H2zM6 16h1v1H6zM8 16h1v1H8zM12 16h1v1H12zM15 16h1v1H15zM17 16h1v1H17zM19 16h1v1H19zM0 17h1v1H0zM2 17h3v1H2zM6 17h1v1H6zM8 17h1v1H8zM10 17h1v1H10zM12 17h1v1H12zM15 17h1v1H15zM18 17h1v1H18zM0 18h1v1H0zM2 18h3v1H2zM6 18h1v1H6zM8 18h1v1H8zM11 18h1v1H11zM13 18h1v1H13zM16 18h2v1H16zM0 19h1v1H0zM6 19h1v1H6zM8 19h1v1H8zM15 19h2v1H15zM18 19h1v1H18zM0 20h7v1H0zM8 20h4v1H8zM13 20h1v1H13zM16 20h1v1H16zM18 20h2v1H18z"
fill="#000"
/>
</svg>
</div>
</div>
</div>

View File

@ -35,9 +35,11 @@ exports[`Renderer:tabs 1`] = `
<span
class="a-TplField"
>
<p>
tab1 内容
</p>
<span>
<p>
tab1 内容
</p>
</span>
</span>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -3,140 +3,23 @@
exports[`store:index 1`] = `
Object {
"storeType": "RendererStore",
"stores": Object {},
}
`;
exports[`store:index 2`] = `
Object {
"storeType": "RendererStore",
"stores": Object {
"1": Object {
"action": undefined,
"busying": false,
"checking": false,
"childrenIds": Array [],
"data": Object {},
"dialogData": undefined,
"dialogOpen": false,
"disposed": false,
"drawerData": undefined,
"drawerOpen": false,
"error": false,
"fetching": false,
"hasRemoteData": false,
"id": "1",
"initedAt": 0,
"initializing": false,
"msg": "",
"parentId": "",
"path": "/xxx",
"pristine": Object {},
"saving": false,
"schema": null,
"schemaKey": "",
"storeType": "ServiceStore",
"updatedAt": 0,
},
},
}
`;
exports[`store:index 3`] = `
Object {
"storeType": "RendererStore",
"stores": Object {
"1": Object {
"action": undefined,
"busying": false,
"checking": false,
"childrenIds": Array [
"2",
],
"data": Object {},
"dialogData": undefined,
"dialogOpen": false,
"disposed": false,
"drawerData": undefined,
"drawerOpen": false,
"error": false,
"fetching": false,
"hasRemoteData": false,
"id": "1",
"initedAt": 0,
"initializing": false,
"msg": "",
"parentId": "",
"path": "/xxx",
"pristine": Object {},
"saving": false,
"schema": null,
"schemaKey": "",
"storeType": "ServiceStore",
"updatedAt": 0,
},
"2": Object {
"action": undefined,
"busying": false,
"checking": false,
"childrenIds": Array [],
"data": Object {},
"dialogData": undefined,
"dialogOpen": false,
"disposed": false,
"drawerData": undefined,
"drawerOpen": false,
"error": false,
"fetching": false,
"hasRemoteData": false,
"id": "2",
"initedAt": 0,
"initializing": false,
"msg": "",
"parentId": "1",
"path": "/yyy",
"pristine": Object {},
"saving": false,
"schema": null,
"schemaKey": "",
"storeType": "ServiceStore",
"updatedAt": 0,
},
},
}
`;
exports[`store:index 4`] = `
Object {
"storeType": "RendererStore",
"stores": Object {
"1": Object {
"action": undefined,
"busying": false,
"checking": false,
"childrenIds": Array [],
"data": Object {},
"dialogData": undefined,
"dialogOpen": false,
"disposed": false,
"drawerData": undefined,
"drawerOpen": false,
"error": false,
"fetching": false,
"hasRemoteData": false,
"id": "1",
"initedAt": 0,
"initializing": false,
"msg": "",
"parentId": "",
"path": "/xxx",
"pristine": Object {},
"saving": false,
"schema": null,
"schemaKey": "",
"storeType": "ServiceStore",
"updatedAt": 0,
},
},
}
`;

View File

@ -35,7 +35,9 @@ exports[`api:cache 1`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>
@ -79,7 +81,9 @@ exports[`api:cache 2`] = `
<span
class="a-TplField"
>
The variable value is 1
<span>
The variable value is 1
</span>
</span>
</div>
</div>

View File

@ -95,7 +95,7 @@
"@types/dom-helpers": "^3.4.1",
"@types/history": "^4.6.0",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^24.0.11",
"@types/jest": "^24.9.1",
"@types/jquery": "^3.3.1",
"@types/lodash": "^4.14.76",
"@types/mkdirp": "^1.0.1",
@ -143,8 +143,8 @@
"fs-walk": "0.0.2",
"glob": "^7.1.6",
"husky": "^2.2.0",
"jest": "^24.5.0",
"jest-canvas-mock": "^2.1.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.0",
"js-yaml": "^3.10.0",
"lint-staged": "^8.1.6",
"marked": "^1.1.1",
@ -157,7 +157,7 @@
"react-test-renderer": "^16.8.6",
"react-testing-library": "6.0.4",
"strip-json-comments": "^2.0.1",
"ts-jest": "^24.0.0",
"ts-jest": "^26.4.4",
"ts-json-schema-generator": "^0.80.0",
"ts-node": "^9.0.0",
"typescript": "~4.1.2"

View File

@ -67,7 +67,7 @@ export class QueryBuilder extends React.Component<ConditionBuilderProps> {
}
@autobind
handleDragOver(e: DragEvent) {
handleDragOver(e: React.DragEvent) {
e.preventDefault();
const item = (e.target as HTMLElement).closest('[data-id]') as HTMLElement;