Skip to content

easyops-cn/brick-next-snippets-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VS Code Brick Next Sippets

This extension provide Brick Next and React snippets in Typescript with babel plugins features for Vs Code

Tutorial

Snippets

property - Insert a property annotaions

  /**
   * @default 
   * @required 
   * @description 
   */
  @property()

method - Insert a method annotaions

  /**
   * @description 
   */
  @method()

event - Insert a event annotaions

  /**
   * @detail 
   * @description 
   */
  @event({type: ""}) 

story - Create a story

import { Story } from "@easyops/brick-types";

export const AlexStory: Story = {
  storyId: "",
  category: "",
  type: "brick",
  author: "",
  text: {
    en: "",
    zh: ""
  },
  tags: [],
  description: {
    en: "",
    zh: ""
  },
  icon: {
    lib: "antd",
    icon: ""
  },
  conf: []
}

routeconf - Create a route conf

import { RouteConf } from "@easyops/brick-types";

export const AlexRoute: RouteConf = {
    path: "",
    type: "routes",
    routes: []
}

About

The essential collection of Brick Next Snippets and commands.

Resources

Stars

Watchers

Forks

Packages

No packages published