# lims **Repository Path**: GrapeCity/lims ## Basic Information - **Project Name**: lims - **Description**: 如何在实验室信息管理系统实现不定行,不定列检测? - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-30 - **Last Updated**: 2024-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GC.Spread.Sheets.Designer Wrapper for VUE ### `npm install` The dependencies required to install ### `npm run dev` Start the dev server ### SpreadJS Designer Vue Wrapper Component Markup ```js ``` **styleInfo prop** Pass styleInfo to the component props to customize the designer's style. ```js export default { data: function () { return { styleInfo: { height: '800px', width: '1200px', border: 'solid red 1px' } }; } } ``` **config prop** Pass in the custom **config** to customize the Designer. ```js export default { data: function () { return { config: config //default config json import from local }; }, computed: { customConfig: function () { this.config.ribbon[0].buttonGroups.unshift( { "label":"NewDesigner", "thumbnailClass":"welcome", "commandGroup":{ "children":[ { "direction":"vertical", "commands":[ "Welcome" ] } ] } } ); let customCommand = { title: "Welcome", text: "Welcome", iconClass: "ribbon-button-welcome", bigButton: "true", commandName: "Welcome", execute: async (context, propertyName) => { alert('Welcome to new designer.'); } } this.config.commandMap = { Welcome: customCommand } return this.config; } } } ``` **spreadOptions prop** Pass spreadOptions to the component props to customize the spread's options. ```js export default { data: function () { return { spreadOptions: { sheetCount: 2 } }; } } ``` **designerInitialized event** Fired after instantiation. ```js export default { methods: { designerInitialized(designer) { //this is designer instance console.log(designer); } } } ``` **Apply License** You can register the below code in the component.vue file. ```js //In src/App.vue file import '@grapecity/spread-sheets-designer-resources-en' import * as GC from '@grapecity/spread-sheets'; import '@grapecity/spread-sheets-designer'; //Apply License GC.Spread.Sheets.LicenseKey = 'Your License'; GC.Spread.Sheets.Designer.LicenseKey = 'Your License'; ```