Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions src/app/for-internal/demo/pc/assets/demo.common.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
.demo-options .demo-options-item {
display: flex;
align-items: center;
margin-bottom: 5px;
}

.demo-options .demo-options-item>span:first-of-type {
margin-right: 5px;
}

.demo-options .demo-options-item>span:not(:first-of-type) {
padding-left: 10px;
}

.demo-options .demo-options-item>*[class^="jigsaw-"]:not(:first-child),
.demo-options .demo-options-item>*[class^="j-"]:not(:first-child) {
margin-left: 5px;
.demo-options .demo-options-item {
display: flex;
align-items: center;
flex-wrap: wrap;
margin-bottom: 5px;
}

.demo-options .demo-options-item>span:first-of-type {
margin-right: 5px;
}

.demo-options .demo-options-item>span:not(:first-of-type) {
padding-left: 10px;
}

.demo-options .demo-options-item>*[class^="jigsaw-"]:not(:first-child),
.demo-options .demo-options-item>*[class^="j-"]:not(:first-child) {
margin-left: 5px;
}

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions src/app/for-internal/demo/pc/auto-display/assets/graph-templates.json

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions src/app/for-internal/demo/pc/auto-display/basic/demo.component.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<!-- ignore the following lines, they are not important to this demo -->
<jigsaw-demo-description [summary]="summary" [content]="description">
</jigsaw-demo-description>

<jigsaw-header [level]="1">Auto-display</jigsaw-header>
<ul class="demo-options">
<li class="demo-options-item">
<span>数据控制</span>
<jigsaw-button (click)="clearData()">清空数据</jigsaw-button>
<jigsaw-button (click)="addTableData()">添加表格</jigsaw-button>
<jigsaw-button (click)="addBarGraph()">添加柱状图</jigsaw-button>
<jigsaw-button (click)="addStackGraph()">添加堆叠区域图</jigsaw-button>
<jigsaw-button (click)="addPieGraph()">添加饼图</jigsaw-button>
<jigsaw-button (click)="addGaugeGraph()">添加仪表盘</jigsaw-button>
</li>
<li class="demo-options-item">
<span>数据删除</span>
<div class="data-tags">
<jigsaw-tag *ngFor="let item of data; let i = index" [closable]="true" (close)="removeData(i)">数据源 - {{i +
1}}</jigsaw-tag>
</div>
</li>
</ul>

<jigsaw-header>基本用法</jigsaw-header>
<div class="demo-container">
<jigsaw-auto-display #autoDisplay [data]="data"></jigsaw-auto-display>
<!-- ignore the following lines, they are not important to this demo -->
<jigsaw-demo-description [summary]="summary" [content]="description">
</jigsaw-demo-description>
<jigsaw-header [level]="1">Auto-display</jigsaw-header>
<ul class="demo-options">
<li class="demo-options-item">
<span>数据控制</span>
<jigsaw-button (click)="clearData()">清空数据</jigsaw-button>
<jigsaw-button (click)="addTableData()">添加表格</jigsaw-button>
<jigsaw-button (click)="addBarGraph()">添加柱状图</jigsaw-button>
<jigsaw-button (click)="addStackGraph()">添加堆叠区域图</jigsaw-button>
<jigsaw-button (click)="addPieGraph()">添加饼图</jigsaw-button>
<jigsaw-button (click)="addGaugeGraph()">添加仪表盘</jigsaw-button>
</li>
<li class="demo-options-item">
<span>数据删除</span>
<div class="data-tags">
<jigsaw-tag *ngFor="let item of data; let i = index" [closable]="true" (close)="removeData(i)">数据源 - {{i +
1}}</jigsaw-tag>
</div>
</li>
</ul>
<jigsaw-header>基本用法</jigsaw-header>
<div class="demo-container">
<jigsaw-auto-display #autoDisplay [data]="data"></jigsaw-auto-display>
</div>
Loading