0.8.7 • Published 11 months ago

e-lib-components v0.8.7

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Components library install

npm i e-library-components

Usage

В main.js импортируем библиотеку

import ecomponents from 'e-library-components';

Далее пишем

Vue.use(ecomponents);

Button

Customization Props

  1. Size
    1. s
    2. m
    3. l
    4. xl
  2. Variant
    1. primary
    2. outline-primary
    3. link
    4. default
  3. Plus svg (Boolean) - added plus in button

Use this code, for embedding

<e-button variant="primary" size="m" @click="yourMethod"> yourtext</e-button>

Input

Customization Props

  1. placeholder - String value - enter the text you need for the input
    <e-input placeholder="Search" />
  2. type - String value - input type text, number, password, etc.
    <e-input type="password" />
  3. searchIcon - Boolean value(default - true) responsible for displaying the search icon

    <e-input :searchIcon="false" />
  4. error_text - text your error

    <e-input error_text="Its my error text" />
  5. error - Boolean value(default - false) highlights the input in red color

    <e-input :error="true" />
  6. label - String value - showing the label over the input
    <e-input label="Label" />

Dropdown

Customization Props

position - String(top, bottom - default)

Slots

  1. button -Replaces the button component with your
  2. text-button - Replaces text in button
  3. items - use `js <e-dropdown-item @click="clickMethod">Text

<template>
  <e-dropdown position="top">
    <template #button>
      // Replaces the button component with your
      <e-button>Dropdown</e-button>
    </template>
    <template #text-button> // Replaces text in button Dropdown2</template>
    <template #items>
      // Add your elements dropdown
      <e-dropdown-item @click="clickMethod">Text</e-dropdown-item>
    </template>
  </e-dropdown>
</template>

<script>
import EDropdownItem from './EDropdownItem';

export default {
  components: {EDropdownItem},
};
</script>

Resizable Table

Props

  1. show_table_header_slot: type: Boolean, default: false
  2. foot: type: Boolean, default: false
  3. default_fields: default: () => [], type: []
  4. items: default: () => [], type: Array
  5. empty_text: type: String, default: 'Ничего не найдено'
  6. busy: type: Boolean, default: true
  7. show_product_search: Boolean
  8. table_name: type: String, required: true

Directive

v-table-resize - be sure to use it so that the table can change size

How to use this component

<div style='width: 100%; height: 100vh; display: flex;'>
<div style='overflow: hidden; display: flex; flex-direction: column;  flex: 1'>
  <resizable-table
      style='display: flex;'
      table_name="table_name" v-table-resize
      @resize="(e) => yourMethod"
      v-bind="$props">
    <template #body_code>2222</template>
  </resizable-table>
</div>
</div>

Use this code, for embedding

<e-input :props="props"/>
0.8.5

11 months ago

0.8.4

11 months ago

0.8.7

11 months ago

0.8.6

11 months ago

0.8.1

11 months ago

0.8.3

11 months ago

0.8.2

11 months ago

0.6.7

11 months ago

0.4.9

12 months ago

0.6.6

11 months ago

0.4.8

12 months ago

0.6.9

11 months ago

0.6.8

11 months ago

0.7.2

11 months ago

0.5.4

12 months ago

0.3.6

12 months ago

0.7.1

11 months ago

0.5.3

12 months ago

0.3.5

12 months ago

0.7.4

11 months ago

0.5.6

12 months ago

0.3.8

12 months ago

0.7.3

11 months ago

0.5.5

12 months ago

0.3.7

12 months ago

0.5.0

12 months ago

0.7.0

11 months ago

0.5.2

12 months ago

0.3.4

12 months ago

0.5.1

12 months ago

0.3.3

12 months ago

0.7.9

11 months ago

0.7.6

11 months ago

0.5.8

12 months ago

0.7.5

11 months ago

0.5.7

12 months ago

0.3.9

12 months ago

0.7.8

11 months ago

0.7.7

11 months ago

0.5.9

11 months ago

0.6.3

11 months ago

0.4.5

12 months ago

0.8.0

11 months ago

0.6.2

11 months ago

0.4.4

12 months ago

0.6.5

11 months ago

0.4.7

12 months ago

0.6.4

11 months ago

0.4.6

12 months ago

0.4.1

12 months ago

0.4.0

12 months ago

0.6.1

11 months ago

0.4.3

12 months ago

0.6.0

11 months ago

0.4.2

12 months ago

0.3.2

12 months ago

0.3.1

12 months ago

0.3.0

12 months ago

0.2.9

12 months ago

0.2.8

12 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago