Socket
Book a DemoInstallSign in
Socket

@betao/ds

Package Overview
Dependencies
Maintainers
4
Versions
905
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betao/ds

Vue components library for Portail project.

latest
Source
npmnpm
Version
0.4.441
Version published
Weekly downloads
47
-94.81%
Maintainers
4
Weekly downloads
 
Created
Source

Portail Design System

Vue components library for Portail project.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Adding new components

  • Create a new MyComponent.vue file in src/components using this template:
<!--
  Component description

  Usage:

    <MyComponent
      :prop1="..."  - Short description of prop1
      :prop2="..."  - Short description of prop2
      @event="..."  - Short description of event
    >
      Hello, World!
    </MyComponent>

  Properties:

    ...

  Events:

    ...
-->

<template>
  <div class="my-component">
    ...
  </div>
</template>

<script>
export default {
  name: 'MyComponent',
  props: {
    ...
  },
  data: () => ({
    ...
  }),
}
</script>

<style lang="less">
.my-component {
  ...
}
</style>
  • Create a new MyComponentDemo.vue file in src/demos/components with this template:
<template>
  <div class="row-col">
    <h3>MyComponent</h3>

    Description

    <pre v-highlightjs="usage"><code class="html"></code></pre>

    <MyComponent>Hello, World!</MyComponent>
  </div>
</template>

<script>
import MyComponent from '../../components/MyComponent.vue'

let usage = `
<MyComponent>Hello, World!</MyComponent>
`.slice(1)

export default {
  name: 'MyComponentDemo',
  components: {MyComponent},
  data: () => ({usage}),
}
</script>
  • Push your changes and Open a PR

FAQs

Package last updated on 08 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts