2022-02-16 11:20:17 +08:00

866 lines
23 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`React Renderer render basic case 1`] = `
<div
className="lce-page lce-test"
style={
Object {
"padding": "0 5px 0 5px",
}
}
>
<div
__id="node_dockcy8n9xed"
className="next-box"
style={
Object {
"backgroundColor": "rgba(31,56,88,0.1)",
"flexDirection": "column",
"flexWrap": "nowrap",
"msFlexDirection": "column",
"msFlexWrap": "none",
"padding": "12px 12px 12px 12px",
}
}
>
<div
__id="node_dockcy8n9xee"
className="next-box"
style={
Object {
"backgroundColor": "#ffffff",
"flexDirection": "column",
"flexWrap": "nowrap",
"msFlexDirection": "column",
"msFlexWrap": "none",
"padding": "12px 12px 12px 12px",
}
}
>
<nav
__id="node_dockcy8n9xef"
aria-label="Breadcrumb"
style={
Object {
"position": "relative",
}
}
>
<ul
className="next-breadcrumb"
>
<li
className="next-breadcrumb-item"
dir={null}
>
<span
__id="node_dockcy8n9xeg"
className="next-breadcrumb-text"
>
首页
</span>
<span
className="next-breadcrumb-separator"
>
<i
className="next-icon next-icon-arrow-right next-medium next-breadcrumb-icon-sep"
style={Object {}}
/>
</span>
</li>
<li
className="next-breadcrumb-item"
dir={null}
>
<span
__id="node_dockcy8n9xei"
className="next-breadcrumb-text"
>
品质中台
</span>
<span
className="next-breadcrumb-separator"
>
<i
className="next-icon next-icon-arrow-right next-medium next-breadcrumb-icon-sep"
style={Object {}}
/>
</span>
</li>
<li
className="next-breadcrumb-item"
dir={null}
>
<span
__id="node_dockcy8n9xek"
className="next-breadcrumb-text"
>
商家品质页面管理
</span>
<span
className="next-breadcrumb-separator"
>
<i
className="next-icon next-icon-arrow-right next-medium next-breadcrumb-icon-sep"
style={Object {}}
/>
</span>
</li>
<li
className="next-breadcrumb-item"
dir={null}
>
<span
__id="node_dockcy8n9xem"
aria-current="page"
className="next-breadcrumb-text activated"
>
质检知识条配置
</span>
</li>
</ul>
</nav>
</div>
<div
__id="node_dockcy8n9xeo"
className="next-box"
style={
Object {
"backgroundColor": "#ffffff",
"flexDirection": "column",
"flexWrap": "nowrap",
"marginTop": "12px",
"msFlexDirection": "column",
"msFlexWrap": "none",
}
}
>
<form
__events={Array []}
__id="node_dockcy8n9xep"
className="next-form next-inline next-medium"
onSubmit={[Function]}
role="grid"
style={
Object {
"marginLeft": "12px",
"marginRight": "12px",
"marginTop": "12px",
}
}
>
<div
__id="node_dockcy8n9xeq"
className="next-form-item next-left next-medium"
style={
Object {
"marginBottom": "0",
}
}
>
<div
className="next-form-item-label"
>
<label>
类目名:
</label>
</div>
<div
className="next-form-item-control"
>
<span
aria-haspopup={true}
className="next-select next-select-trigger next-select-single next-medium next-inactive next-no-search"
onClick={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"width": "150px",
}
}
>
<span
className="next-input next-medium next-select-inner"
>
<span
className="next-select-values next-input-text-field"
>
<span
className="next-select-trigger-search"
>
<input
__id="node_dockcy8n9xer"
autoComplete="off"
disabled={false}
height="100%"
maxLength={null}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="请选择"
readOnly={true}
role="combobox"
size="1"
tabIndex={0}
value=""
/>
<span
aria-hidden={true}
>
<span>
请选择
</span>
<span>
 
</span>
</span>
</span>
</span>
<span
className="next-input-control"
>
<span
aria-hidden={true}
className="next-select-arrow"
onClick={[Function]}
>
<i
className="next-icon next-icon-arrow-down next-medium next-select-symbol-fold"
style={Object {}}
/>
</span>
</span>
</span>
<span
aria-live="polite"
className="next-sr-only"
>
</span>
</span>
</div>
</div>
<div
__id="node_dockcy8n9xes"
className="next-form-item next-left next-medium"
style={
Object {
"marginBottom": "0",
}
}
>
<div
className="next-form-item-label"
>
<label>
项目类型:
</label>
</div>
<div
className="next-form-item-control"
>
<span
aria-haspopup={true}
className="next-select next-select-trigger next-select-single next-medium next-inactive next-no-search"
onClick={[Function]}
onKeyDown={[Function]}
onMouseDown={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
style={
Object {
"width": "200px",
}
}
>
<span
className="next-input next-medium next-select-inner"
>
<span
className="next-select-values next-input-text-field"
>
<span
className="next-select-trigger-search"
>
<input
__id="node_dockcy8n9xet"
autoComplete="off"
disabled={false}
height="100%"
maxLength={null}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
placeholder="请选择"
readOnly={true}
role="combobox"
size="1"
tabIndex={0}
value=""
/>
<span
aria-hidden={true}
>
<span>
请选择
</span>
<span>
 
</span>
</span>
</span>
</span>
<span
className="next-input-control"
>
<span
aria-hidden={true}
className="next-select-arrow"
onClick={[Function]}
>
<i
className="next-icon next-icon-arrow-down next-medium next-select-symbol-fold"
style={Object {}}
/>
</span>
</span>
</span>
<span
aria-live="polite"
className="next-sr-only"
>
</span>
</span>
</div>
</div>
<div
__id="node_dockcy8n9xeu"
className="next-form-item next-left next-medium"
style={
Object {
"marginBottom": "0",
}
}
>
<div
className="next-form-item-label"
>
<label>
项目 ID
</label>
</div>
<div
className="next-form-item-control"
>
<span
className="next-input next-medium"
style={
Object {
"width": "200px",
}
}
>
<input
__id="node_dockcy8n9xev"
autoComplete="off"
disabled={false}
height="100%"
maxLength={null}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
readOnly={false}
value=""
/>
</span>
</div>
</div>
<div
__id="node_dockcy8n9xew"
className="next-btn-group"
>
<button
__id="node_dockcy8n9xex"
className="next-btn next-medium next-btn-primary"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
style={
Object {
"margin": "0 5px 0 5px",
}
}
type="submit"
>
<span
className="next-btn-helper"
>
搜索
</span>
</button>
<button
__id="node_dockcy8n9xe10"
className="next-btn next-medium next-btn-normal"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
style={
Object {
"margin": "0 5px 0 5px",
}
}
type="reset"
>
<span
className="next-btn-helper"
>
清空
</span>
</button>
</div>
</form>
</div>
<div
__id="node_dockcy8n9xe1f"
className="next-box"
style={
Object {
"backgroundColor": "#ffffff",
"display": "flex",
"flexDirection": "row",
"flexWrap": "nowrap",
"justifyContent": "flex-end",
"msFlexDirection": "column",
"msFlexWrap": "none",
"paddingBottom": "24px",
}
}
>
<button
__events={
Array [
Object {
"name": "onClick",
"relatedEventName": "onClick",
"type": "componentEvent",
},
]
}
__id="node_dockd5nrh9p4"
className="next-btn next-medium next-btn-primary"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
style={Object {}}
type="button"
>
<span
className="next-btn-helper"
>
新建配置
</span>
</button>
</div>
<div
__id="node_dockd5nrh9p5"
className="next-box"
style={
Object {
"flexDirection": "column",
"flexWrap": "nowrap",
"msFlexDirection": "column",
"msFlexWrap": "none",
}
}
>
<div
__id="node_dockjielosj1"
actionBar={
Array [
Object {
"title": "新增",
"type": "primary",
},
Object {
"title": "编辑",
},
]
}
actionColumn={
Array [
Object {
"callback": [Function],
"device": Array [
"desktop",
],
"title": "编辑",
},
Object {
"callback": [Function],
"mode": "EDIT",
"title": "保存",
},
]
}
actionFixed="right"
actionHidden={false}
actionTitle="操作"
actionType="link"
actionWidth={180}
className="next-table next-table-medium"
data={
Array [
Object {
"age": 15000,
"email": "aaa@abc.com",
"id": "1",
"name": "王小",
},
Object {
"age": 25000,
"email": "bbb@abc.com",
"id": "2",
"name": "王中",
},
Object {
"age": 35000,
"email": "ccc@abc.com",
"id": "3",
"name": "王大",
},
]
}
maxWebShownActionCount={2}
showActionBar={true}
showMiniPager={true}
style={Object {}}
>
<table
role="table"
style={
Object {
"width": undefined,
}
}
>
<colgroup>
<col
style={
Object {
"width": 200,
}
}
/>
<col
style={
Object {
"width": 200,
}
}
/>
<col
style={
Object {
"width": 200,
}
}
/>
</colgroup>
<thead
className="next-table-header"
>
<tr>
<th
className="next-table-cell next-table-header-node"
dataKey="name"
editType="text"
role="gridcell"
rowSpan={1}
style={
Object {
"textAlign": "center",
}
}
>
<div
className="next-table-cell-wrapper"
data-next-table-col={0}
>
姓名
</div>
</th>
<th
className="next-table-cell next-table-header-node"
dataKey="age"
role="gridcell"
rowSpan={1}
style={
Object {
"textAlign": "center",
}
}
>
<div
className="next-table-cell-wrapper"
data-next-table-col={1}
>
年龄
</div>
</th>
<th
className="next-table-cell next-table-header-node"
dataKey="email"
role="gridcell"
rowSpan={1}
style={
Object {
"textAlign": "center",
}
}
>
<div
className="next-table-cell-wrapper"
data-next-table-col={2}
>
邮箱
</div>
</th>
</tr>
</thead>
<tbody
className="next-table-body"
>
<tr>
<td
colSpan={3}
>
<div
className="next-table-empty"
style={
Object {
"left": 0,
"overflow": "hidden",
"position": "sticky",
"width": -1,
}
}
>
没有数据
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div
__id="node_dockd5nrh9pg"
className="next-box"
style={
Object {
"display": "flex",
"flexDirection": "row",
"flexWrap": "nowrap",
"justifyContent": "flex-end",
"msFlexDirection": "column",
"msFlexWrap": "none",
}
}
>
<div
__id="node_dockd5nrh9pf"
className="next-pagination next-medium next-normal"
style={Object {}}
>
<div
className="next-pagination-pages"
>
<button
aria-label="上一页当前第1页"
className="next-btn next-medium next-btn-normal next-pagination-item next-prev"
disabled={true}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<i
className="next-icon next-icon-arrow-left next-xs next-btn-icon next-icon-first next-pagination-icon-prev"
style={Object {}}
/>
<span
className="next-btn-helper"
>
上一页
</span>
</button>
<div
className="next-pagination-list"
>
<button
aria-label="第1页共10页"
className="next-btn next-medium next-btn-normal next-pagination-item next-current"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
1
</span>
</button>
<button
aria-label="第2页共10页"
className="next-btn next-medium next-btn-normal next-pagination-item"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
2
</span>
</button>
<button
aria-label="第3页共10页"
className="next-btn next-medium next-btn-normal next-pagination-item"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
3
</span>
</button>
<button
aria-label="第4页共10页"
className="next-btn next-medium next-btn-normal next-pagination-item"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
4
</span>
</button>
<i
className="next-icon next-icon-ellipsis next-medium next-pagination-ellipsis next-pagination-icon-ellipsis"
style={Object {}}
/>
<button
aria-label="第10页共10页"
className="next-btn next-medium next-btn-normal next-pagination-item"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
10
</span>
</button>
</div>
<button
aria-label="下一页当前第1页"
className="next-btn next-medium next-btn-normal next-pagination-item next-next"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
下一页
</span>
<i
className="next-icon next-icon-arrow-right next-xs next-btn-icon next-icon-last next-pagination-icon-next"
style={Object {}}
/>
</button>
<span
className="next-pagination-display"
>
<em>
1
</em>
/
10
</span>
<span
className="next-pagination-jump-text"
>
到第
</span>
<span
className="next-input next-medium next-pagination-jump-input"
>
<input
aria-label="请输入跳转到第几页"
autoComplete="off"
disabled={false}
height="100%"
maxLength={null}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
readOnly={false}
value=""
/>
</span>
<span
className="next-pagination-jump-text"
>
</span>
<button
className="next-btn next-medium next-btn-normal next-pagination-jump-go"
disabled={false}
onClick={[Function]}
onMouseUp={[Function]}
type="button"
>
<span
className="next-btn-helper"
>
确定
</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div
__id="node_dockd5nrh9pr"
name="error"
>
Component Not Found
</div>
</div>
`;