mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 08:37:28 +08:00
修复代码生成器size默认值
This commit is contained in:
parent
865ae59259
commit
b887ae372b
@ -9,9 +9,9 @@
|
||||
<div class="flex-column">
|
||||
<sticky :className="'sub-navbar'">
|
||||
<div class="filter-container">
|
||||
<el-input @keyup.enter.native="handleFilter" size="mini" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="firstQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="mini" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="mini" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
<el-input @keyup.enter.native="handleFilter" size="small" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="firstQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="small" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="small" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</div>
|
||||
</sticky>
|
||||
<div class="app-container flex-item flex-column">
|
||||
@ -40,8 +40,8 @@
|
||||
<span v-if="radio == ''">明细</span>
|
||||
<span v-else>{{ radio }}明细</span>
|
||||
<div class="edit-buttons">
|
||||
<el-button v-if="editModel" class="filter-item edit-button" size="mini" v-waves icon="el-icon-plus" @click="onBtnClicked('btnAddDetail')">添加</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button delete-button" size="mini" v-waves icon="el-icon-delete" @click="onBtnClicked('btnDelDetail')">删除</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button" size="small" v-waves icon="el-icon-plus" @click="onBtnClicked('btnAddDetail')">添加</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button delete-button" size="small" v-waves icon="el-icon-delete" @click="onBtnClicked('btnDelDetail')">删除</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<auth-table style="height:calc(100% - 52px - 34px)" ref="secondTable" border :editModel="editModel" :table-fields="secondHeaderList" :data="secondList" @row-click="rowClickSecondTable" @selection-change="selChangeSecondTable"></auth-table>
|
||||
@ -52,9 +52,9 @@
|
||||
<el-card shadow="nerver" v-if="editModel" style="text-align: right;padding-bottom: 10px;">
|
||||
<el-row>
|
||||
<el-col :span="24"
|
||||
><el-button size="mini" @click="editModel = false">取消</el-button>
|
||||
<el-button size="mini" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">确认</el-button></el-col
|
||||
><el-button size="small" @click="editModel = false">取消</el-button>
|
||||
<el-button size="small" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="small" v-else type="primary" @click="updateData">确认</el-button></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
@ -9,9 +9,9 @@
|
||||
<div class="flex-column">
|
||||
<sticky :className="'sub-navbar'">
|
||||
<div class="filter-container">
|
||||
<el-input @keyup.enter.native="handleFilter" size="mini" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="firstQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="mini" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="mini" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
<el-input @keyup.enter.native="handleFilter" size="small" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="firstQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="small" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="small" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</div>
|
||||
</sticky>
|
||||
<div class="app-container flex-item flex-column">
|
||||
@ -40,8 +40,8 @@
|
||||
<span v-if="radio == ''">明细</span>
|
||||
<span v-else>{{ radio }}明细</span>
|
||||
<div class="edit-buttons">
|
||||
<el-button v-if="editModel" class="filter-item edit-button" size="mini" v-waves icon="el-icon-plus" @click="onBtnClicked('btnAddDetail')">添加</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button delete-button" size="mini" v-waves icon="el-icon-delete" @click="onBtnClicked('btnDelDetail')">删除</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button" size="small" v-waves icon="el-icon-plus" @click="onBtnClicked('btnAddDetail')">添加</el-button>
|
||||
<el-button v-if="editModel" class="filter-item edit-button delete-button" size="small" v-waves icon="el-icon-delete" @click="onBtnClicked('btnDelDetail')">删除</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<auth-table style="height:calc(100% - 52px - 34px)" ref="secondTable" border :editModel="editModel" :table-fields="secondHeaderList" :data="secondList" @row-click="rowClickSecondTable" @selection-change="selChangeSecondTable"></auth-table>
|
||||
@ -52,9 +52,9 @@
|
||||
<el-card shadow="nerver" v-if="editModel" style="text-align: right;padding-bottom: 10px;">
|
||||
<el-row>
|
||||
<el-col :span="24"
|
||||
><el-button size="mini" @click="editModel = false">取消</el-button>
|
||||
<el-button size="mini" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">确认</el-button></el-col
|
||||
><el-button size="small" @click="editModel = false">取消</el-button>
|
||||
<el-button size="small" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="small" v-else type="primary" @click="updateData">确认</el-button></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
@ -7,9 +7,9 @@
|
||||
<div class="flex-column">
|
||||
<sticky :className="'sub-navbar'">
|
||||
<div class="filter-container">
|
||||
<el-input @keyup.enter.native="handleFilter" size="mini" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="listQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="mini" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="mini" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
<el-input @keyup.enter.native="handleFilter" size="small" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="listQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="small" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="small" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</div>
|
||||
</sticky>
|
||||
<div class="app-container flex-item">
|
||||
@ -29,9 +29,9 @@
|
||||
<el-dialog v-el-drag-dialog class="dialog-mini" width="500px" :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<auth-form ref="dataForm" :rules="rules" :edit-model="true" :form-fields="headerList" v-model="temp" :col-num="2"></auth-form>
|
||||
<div slot="footer">
|
||||
<el-button size="mini" @click="dialogFormVisible = false">取消</el-button>
|
||||
<el-button size="mini" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">确认</el-button>
|
||||
<el-button size="small" @click="dialogFormVisible = false">取消</el-button>
|
||||
<el-button size="small" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="small" v-else type="primary" @click="updateData">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -8,20 +8,20 @@
|
||||
<sticky>
|
||||
<el-input
|
||||
@keyup.enter="handleFilter"
|
||||
size="mini"
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
class="filter-item"
|
||||
:placeholder="'名称'"
|
||||
v-model="listQuery.key"></el-input>
|
||||
<el-button
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
@click="handleFilter">
|
||||
搜索
|
||||
</el-button>
|
||||
<permission-btn
|
||||
size="mini"
|
||||
size="small"
|
||||
v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</sticky>
|
||||
|
||||
@ -55,17 +55,17 @@
|
||||
:col-num="2"></auth-form>
|
||||
<template v-slot:footer>
|
||||
<div>
|
||||
<el-button size="mini" @click="dialogFormVisible = false">
|
||||
<el-button size="small" @click="dialogFormVisible = false">
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
size="small"
|
||||
v-if="dialogStatus == 'create'"
|
||||
type="primary"
|
||||
@click="createData">
|
||||
确认
|
||||
</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">
|
||||
<el-button size="small" v-else type="primary" @click="updateData">
|
||||
确认
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -8,20 +8,20 @@
|
||||
<sticky>
|
||||
<el-input
|
||||
@keyup.enter="handleFilter"
|
||||
size="mini"
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
class="filter-item"
|
||||
:placeholder="'名称'"
|
||||
v-model="listQuery.key"></el-input>
|
||||
<el-button
|
||||
class="filter-item"
|
||||
size="mini"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
@click="handleFilter">
|
||||
搜索
|
||||
</el-button>
|
||||
<permission-btn
|
||||
size="mini"
|
||||
size="small"
|
||||
v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</sticky>
|
||||
|
||||
@ -55,17 +55,17 @@
|
||||
:col-num="2"></auth-form>
|
||||
<template v-slot:footer>
|
||||
<div>
|
||||
<el-button size="mini" @click="dialogFormVisible = false">
|
||||
<el-button size="small" @click="dialogFormVisible = false">
|
||||
取消
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
size="small"
|
||||
v-if="dialogStatus == 'create'"
|
||||
type="primary"
|
||||
@click="createData">
|
||||
确认
|
||||
</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">
|
||||
<el-button size="small" v-else type="primary" @click="updateData">
|
||||
确认
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -7,9 +7,9 @@
|
||||
<div class="flex-column">
|
||||
<sticky :className="'sub-navbar'">
|
||||
<div class="filter-container">
|
||||
<el-input @keyup.enter.native="handleFilter" size="mini" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="listQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="mini" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="mini" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
<el-input @keyup.enter.native="handleFilter" size="small" style="width: 200px;" class="filter-item" :placeholder="'名称'" v-model="listQuery.key"> </el-input>
|
||||
<el-button class="filter-item" size="small" v-waves icon="el-icon-search" @click="handleFilter">搜索</el-button>
|
||||
<permission-btn size="small" v-on:btn-event="onBtnClicked"></permission-btn>
|
||||
</div>
|
||||
</sticky>
|
||||
<div class="app-container flex-item">
|
||||
@ -29,9 +29,9 @@
|
||||
<el-dialog v-el-drag-dialog class="dialog-mini" width="500px" :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<auth-form ref="dataForm" :rules="rules" :edit-model="true" :form-fields="headerList" v-model="temp" :col-num="2"></auth-form>
|
||||
<div slot="footer">
|
||||
<el-button size="mini" @click="dialogFormVisible = false">取消</el-button>
|
||||
<el-button size="mini" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="mini" v-else type="primary" @click="updateData">确认</el-button>
|
||||
<el-button size="small" @click="dialogFormVisible = false">取消</el-button>
|
||||
<el-button size="small" v-if="dialogStatus == 'create'" type="primary" @click="createData">确认</el-button>
|
||||
<el-button size="small" v-else type="primary" @click="updateData">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -10,11 +10,11 @@ OpenAuth.Pro封装了一些组件,方便开发使用,组件全部在`src\com
|
||||
|
||||
静态字典。根据【字典分类】模块的`分类标识`关键字获取,如:
|
||||
```html
|
||||
<auth-select :isEdit="isEdit" @change="change" :data-source="'SYS_STATUS'" v-model="val" size="mini"></auth-select>
|
||||
<auth-select :isEdit="isEdit" @change="change" :data-source="'SYS_STATUS'" v-model="val" size="small"></auth-select>
|
||||
```
|
||||
动态列表。从指定Url获取value/label结构的数据进行渲染,如:
|
||||
```html
|
||||
<auth-select :default-props="{label:'name', value:'id'}" :isEdit="isEdit" @change="change" :type="'dynamic'" :data-source="'/CategoryTypes/Load'" v-model="val" size="mini"></auth-select>
|
||||
<auth-select :default-props="{label:'name', value:'id'}" :isEdit="isEdit" @change="change" :type="'dynamic'" :data-source="'/CategoryTypes/Load'" v-model="val" size="small"></auth-select>
|
||||
```
|
||||
|
||||
该组件有以下几个参数:
|
||||
|
Loading…
Reference in New Issue
Block a user