Parcourir la source

GridDesign load/save

luoyifan il y a 3 ans
Parent
commit
72c42c5377
3 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. 4 1
      src/Defaults.ts
  2. 2 0
      src/index.ts
  3. 4 0
      src/message.ts

+ 4 - 1
src/Defaults.ts

@@ -91,7 +91,7 @@ export const form = {
 export const grid = {
     border: true,
     columnLines: true,
-    // rowLines: true
+    rowLines: true,
     plugins: {
         cellediting: {
             clicksToEdit: 1
@@ -121,6 +121,9 @@ export const grid = {
     enableLocking: true,
     enableColumnMove: true,
     enableColumnHide: true,
+    enableColumnResize: true,
+    hidden: false,
+    disabled: false,
 }
 
 export const search = {

+ 2 - 0
src/index.ts

@@ -8,6 +8,7 @@ import moment from 'moment'
 import './wotu-ui.css'
 import {PropertyDescriptionTable} from './PropertyDescriptionTable'
 import * as recast from 'recast'
+import {msgError} from './message'
 
 export {
     axios,
@@ -19,6 +20,7 @@ export {
     Defaults,
     PropertyDescriptionTable,
     recast,
+    msgError,
 }
 
 export * from './Scope'

+ 4 - 0
src/message.ts

@@ -17,6 +17,10 @@ export function showErrorDialog(msg, sender?) {
     });
 }
 
+export function msgError(msg, sender?) {
+    showErrorDialog(msg, sender)
+}
+
 /**
  * 中间灰底白字提示
  */