Skip to content

Commit

Permalink
style: code style perf
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Nov 23, 2020
1 parent cc10d54 commit 6c45fa1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<script>
export default {
name: "app",
name: 'app',
methods: {
showDialog(name) {
this.$refs[name].showDialog();
Expand Down
3 changes: 2 additions & 1 deletion examples/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Vue from 'vue';
import Vue from 'vue';
import App from './App.vue';
// 导入ElementProCrud
import plugin from '../src/index';
// 引入ElementUI
import './element';

Vue.use(plugin);
Vue.config.productionTip = false;

Expand Down
1 change: 1 addition & 0 deletions packages/crud-table/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import CrudTable from './src/CrudTable.vue';

// 为组件添加 install 方法,用于按需引入
// eslint-disable-next-line func-names
CrudTable.install = function (Vue) {
Vue.component('CrudTable', CrudTable);
};
Expand Down
4 changes: 2 additions & 2 deletions packages/crud-table/src/SeniorSearchForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class SeniorSearchForm extends Vue {
type: 'input',
dataType: 'string',
placeholder: `请输入${label}`,
width: '100%'
width: '100%',
},
model: prop,
rules: [],
Expand Down Expand Up @@ -177,7 +177,7 @@ export default class SeniorSearchForm extends Vue {
},
model: prop,
rules: [],
width: '100%'
width: '100%',
},
],
};
Expand Down
1 change: 1 addition & 0 deletions packages/form-designer/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import FormDesignerDialog from './src/FormDesignerDialog.vue';

// 为组件添加 install 方法,用于按需引入
// eslint-disable-next-line func-names
FormDesignerDialog.install = function (Vue) {
Vue.component(FormDesignerDialog.name, FormDesignerDialog);
};
Expand Down
1 change: 1 addition & 0 deletions packages/table-designer/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import TableDesignerDialog from './src/TableDesignerDialog.vue';

// 为组件添加 install 方法,用于按需引入
// eslint-disable-next-line func-names
TableDesignerDialog.install = function (Vue) {
Vue.component(TableDesignerDialog.name, TableDesignerDialog);
};
Expand Down

0 comments on commit 6c45fa1

Please sign in to comment.