Show Posts
|
Pages: 1 2 3 [4] 5 6
|
46
|
General Category / EasyUI for Vue / Re: datagrid how to set fit or height 100%
|
on: September 04, 2018, 03:00:28 AM
|
I did not use the tabs component directly.Instead use the panel component. see example code,datagrid is full,bug pagination is Invisible <Panel class="f-column f-full" :border="false" bodyCls="f-column"> <DataGrid selectionMode="single" :border="false" :data="data" :striped="true" class="f-full" :lazy="true" :total="total" :loading="loading" :pageSize="pageSize" :pagination="true" :pageLayout="['list','sep','first','prev','next','last','sep','refresh','info']" @pageChange="onPageChange($event)" > <GridColumn align="center" cellCss="datagrid-td-rownumber" width="30"> <template slot="body" slot-scope="scope"> {{scope.rowIndex + 1}} </template> </GridColumn> <GridColumn field="name" title="姓名" align="center"></GridColumn> <GridColumn field="type" title="受理类型" :width="100" align="center"></GridColumn> <GridColumn field="status" title="状态" :width="100" align="center"></GridColumn> <GridColumn field="items" title="咨询项目" halign="center"></GridColumn> <GridColumn field="date" title="受理日期" :width="100" align="center"></GridColumn> <GridColumn field="time" title="预约时间" align="center"></GridColumn> <GridColumn field="cometime" title="到院日期" align="center"></GridColumn> <GridColumn field="created_at" title="录入时间" align="center"></GridColumn> <GridColumn field="ascription" title="咨询人员" :width="100" align="center"></GridColumn> <GridColumn field="user_id" title="录入人员" :width="100" align="center"></GridColumn> </DataGrid> </Panel>
|
|
|
59
|
General Category / EasyUI for Vue / LayoutPanel how to auto resize
|
on: August 16, 2018, 04:59:37 AM
|
折叠左侧菜单,布局无法自动伸缩。 toggle SideMenu state,LayoutPanel don't auto resize <template> <Layout> <LayoutPanel region="north" :border="false" bodyCls="cywebos-header"> <LinkButton @click="toggle">折叠</LinkButton> </LayoutPanel> <LayoutPanel :style="{width:width+'px'}" region="west" :border="false" bodyCls="cywebos-sidebar"> <SideMenu :data="menus" :collapsed="collapsed" @selectionChange="selection=$event"> </SideMenu> </LayoutPanel> <LayoutPanel region="center" :border="false" bodyCls="cywebos-body" style="height:100%"> 121221 </LayoutPanel> </Layout> </template>
<script> export default { data() { return { width: 230, collapsed: false, selection: null, menus: [ { text: "Item1", iconCls: "icon-sum", state: "open", children: [ { text: "Option1" }, { text: "Option2" }, { text: "Option3", children: [ { text: "Option31" }, { text: "Option32" } ] } ] }, { text: "Item2", iconCls: "icon-more", children: [ { text: "Option4" }, { text: "Option5" }, { text: "Option6" } ] } ] }; }, methods: { toggle() { this.collapsed = !this.collapsed; this.width = this.collapsed ? 50 : 230; } } }; </script>
<style> .cywebos-header { color: #fff; height: 50px; line-height: 50px; background-color: #3c8dbc; } .cywebos-sidebar { background-color: #1a2226; } .cywebos-body { background: #ecf0f5; } </style>
|
|
|
|