Skip to content

Commit

Permalink
chore: ElementProCrud插件更新至0.8.0-2 表单设计器表格设计器name修改
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jan 7, 2021
1 parent 60de913 commit cb535e6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"axios": "^0.19.2",
"core-js": "3.6.5",
"dayjs": "1.8.20",
"element-pro-crud": "^0.8.0-1",
"element-pro-crud": "^0.8.0-2",
"element-ui": "^2.13.2",
"inquirer": "^6.5.2",
"lodash": "^4.17.14",
Expand Down
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@
<% } %> <% if (htmlWebpackPlugin.options.devServer) { %>
<script src="<%= htmlWebpackPlugin.options.devServer%>/webpack-dev-server.js"></script>
<% } %>

<script src="https://cdn.bootcdn.net/ajax/libs/ace/test/ace.js"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ const asyncRouter:RouteConfig[] = [
children: [
{
path: 'form-designer',
name: 'FormDesigner',
component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/FormDesigner.vue'),
name: 'FormDesignerModule',
component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/FormDesignerModule.vue'),
meta: { title: '表单设计' },
},
{
path: 'table-designer',
name: 'TableDesigner',
component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/TableDesigner.vue'),
name: 'TableDesignerModule',
component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/TableDesignerModule.vue'),
meta: { title: '表格设计' },
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@click="btnCopyOnClick(row)">复制</el-button>
</template>
</CrudTable>
<FormDesignerDialog ref="dialog"
<FormDesigner ref="dialog"
tableName="dynamictables"
@after-save="dialogOnClose"/>
</div>
Expand All @@ -37,9 +37,9 @@ import { getTables } from '@/api/system/form';
import { Vue, Component } from 'vue-property-decorator';

@Component({
name: 'FormDesigner',
name: 'FormDesignerModule',
})
export default class FormDesigner extends Vue {
export default class FormDesignerModule extends Vue {
// 添加按钮点击事件
btnAddOnClick() {
this.$refs.dialog.showDialog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@click="btnCopyOnClick(scope.row)">复制</el-button>
</template>
</CrudTable>
<TableDesignerDialog ref="dialog"
<TableDesigner ref="dialog"
tableName="dynamictables"
@after-save="dialogOnClose"
:remoteFuncs="remoteFuncs" />
Expand All @@ -37,9 +37,9 @@ import { getTables } from '@/api/system/form';
import { Vue, Component } from 'vue-property-decorator';

@Component({
name: 'TableDesigner',
name: 'TableDesignerModule',
})
export default class TableDesigner extends Vue {
export default class TableDesignerModule extends Vue {
remoteFuncs = {
getTablesOfDB(resolve) {
// 请求表名列表
Expand Down

0 comments on commit cb535e6

Please sign in to comment.