Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb6dbe9

Browse files
authored
Merge pull request#32 from zhangchunlin/master
demo: use adminlte style layout
2 parents1c1cce2 +962a59f commitfb6dbe9

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* override uliweb_layout/layout/static/layout.css */
2+
.main-footer {background-color:#3c8dbc;color:#e0e0e0;margin-left:0}
3+
#layout-body .content-wrapper {border-left:none}
4+
#layout-body.full .main-header .container {width:100%; }
5+
#layout-body.full .content-wrapper> .container {width:100%;padding:0; }

‎demo/apps/apijson_demo/templates/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{{extend "layout_demo.html"}}
22

3+
{{block content_header_title}}<h1>uliweb-apijson api examples</h1>{{end content_header_title}}
4+
35
{{block content_main}}
46
{{use "ui.vue"}}
57
{{use "ui.iview"}}
68

7-
<divid="app">
9+
<divid="app"class='box'>
10+
<divclass="box-body">
811
<tabsv-model:value="tab_current"type="card":animated="false">
912
<tab-panelabel="apijson get"name="tab_get"></tab-pane>
1013
<tab-panelabel="apijson head"name="tab_head"></tab-pane>
@@ -96,6 +99,7 @@
9699
<i-colspan="8"><i-inputv-model="response_data"type="textarea"readonly:autosize="{minRows: 5,maxRows: 30}"/></i-col>
97100
</Row>
98101
</div>
102+
</div>
99103
<script>
100104
varvm=newVue({
101105
el:'#app',

‎demo/apps/tables/templates/Tables/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{{extend "Tables/layout.html"}}
22

3+
{{block content_header_title}}<h1>apijson-table examples</h1>{{end content_header_title}}
4+
35
{{block content_main}}
46
{{use "ui.vue"}}
57
{{use "ui.iview"}}
68
{{include "vue/inc_apijson_table.html"}}
79
{{if role!="ADMIN":}}
810
<divclass="alert alert-warning"role="alert">You should<aclass="btn btn-primary btn-sm"href="{{=url_for('uliweb_apps.login.views.login')}}"role="button">login</a> with user<strong>admin</strong> to view all the tables</div>
911
{{pass #if}}
10-
<divid="app">
12+
<divid="app"class='box'>
13+
<divclass="box-body">
1114
<tabsv-model:value="tab_current"type="card">
1215
<tab-panev-for="item in tabs":key="item":label="item":name="item">
1316
<apijson-table:model_name="item":config="apijson_tables[item]"></apijson-table>
1417
</tab-pane>
1518
</tabs>
1619
</div>
20+
</div>
1721

1822
<script>
1923
varvm=newVue({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp