Skip to content

Commit

Permalink
ci: remove JSONEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 12, 2020
1 parent 31b42a7 commit 831ff2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
},
"dependencies": {
"@riophae/vue-treeselect": "0.4.0",
"animate.css": "4.1.0",
"axios": "^0.19.2",
"compressing": "^1.4.0",
"core-js": "3.6.5",
"dayjs": "1.8.20",
"element-ui": "^2.13.2",
"inquirer": "^6.5.2",
"jsoneditor": "8.5.3",
"lodash": "^4.17.14",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
Expand Down
10 changes: 1 addition & 9 deletions src/components/BaseDialog/FormDesignerDialog.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
@file 动态表单设计器
依赖jsoneditor、vue-awesome、vuedraggable
依赖vue-awesome、vuedraggable
@author BoBo
@copyright NanJing Anshare Tech .Com
@createDate 2018年11月15日16:11:09
Expand Down Expand Up @@ -209,7 +209,6 @@
<script>
import Draggable from 'vuedraggable';
import Icon from 'vue-awesome/components/Icon.vue';
import JSONEditor from 'jsoneditor';
import { getTables, getFormKey, getFormDetail } from '@/api/system/form';
import { DML, crud } from '@/api/public/crud';
import WidgetConfig from '@/components/FormDesigner/WidgetConfig.vue';
Expand Down Expand Up @@ -243,7 +242,6 @@ import 'vue-awesome/icons/tree';
import 'vue-awesome/icons/random';
import 'vue-awesome/icons/text-width';
import 'vue-awesome/icons/mouse-pointer';
import 'jsoneditor/dist/jsoneditor.min.css';
export default {
name: 'FormDesignerDialog',
Expand Down Expand Up @@ -458,12 +456,6 @@ export default {
this.jsonVisible = true;
// 生成后的json赋值给json编辑器
this.jsonTemplate = this.widgetForm;
// 对话框生成后
this.$nextTick(() => {
// 初始化编辑器?
// eslint-disable-next-line
const editor = ace.edit('jsoneditor');
});
},
// 自动同步后端key
async handleGenerateKey(generateForm = false) {
Expand Down
3 changes: 3 additions & 0 deletions src/components/FormDesigner/CusDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export default class CusDialog extends Vue {

<style lang="scss">
.cus-dialog-container {
.el-dialog__body{
overflow: auto;
}
.el-dialog__footer {
// margin: 0 20px;
// border-top: 1px dashed #ccc;
Expand Down

0 comments on commit 831ff2f

Please sign in to comment.