- Run
pnpm install
- Run
pnpm link
- Run
pnpm install-demo
- Run
pnpm serve to run demo app
If you want to use this repo as the @supplycart/ui packages for ADAM/HUB/EVA repo locally, run pnpm link "@supplycart/ui" at the root directory of the repo.
| Props |
Type |
Default |
Description |
| value |
int, string |
|
Money value in decimal or integer |
| convertPrecision |
int |
|
convert precision of Dinero object |
| Props |
Type |
Default |
Description |
| value |
int, string |
|
Money value in decimal or integer |
| Props |
Type |
Default |
Description |
| value |
int, string |
|
Money value in decimal or integer |
| Props |
Type |
Default |
Description |
| value |
int, string |
|
Money value in decimal or integer |
| Props |
Type |
Default |
Description |
| value |
Date, string |
|
Datetime value in date or string |
| timezone |
string |
Asia/Kuala_Lumpur |
Timezone value in string |
| format |
string |
YYYY-MM-DD HH:mm:ss |
Format value in string |
| isUtc |
Boolean |
true |
display date in UTC format with specified timezone |
| Props |
Type |
Default |
Description |
| value |
int, string |
null |
Input value |
| Props |
Type |
Default |
Description |
| value |
Object |
|
value of the address |
| type |
string |
|
type of the address |
| country |
string |
Malaysia |
country of the address |
| display |
array |
|
specific field to display |
| Props |
Type |
Default |
Description |
| value |
Object |
|
value of the address |
| type |
string |
|
type of the address 'billing' or 'delivery' |
| country |
string |
Malaysia |
country of the address |
| countries |
Array |
Malaysia |
array of countries for dropdown list |
| disableFields |
Array |
|
array fields to be disabled. Available value: 'unit' 'floor' 'building' 'street' 'city' 'postcode' 'state' 'country' or 'all' to disable all |
| Props |
Type |
Default |
Description |
| value |
int, string |
null |
Input value |
| Props |
Type |
Default |
Description |
| value |
Array |
[] |
Input value |
| label |
String |
|
Button label |
| mode |
String |
multiple |
Only 'single' or 'multiple' accepted |
| maxSize |
Number |
20000000 |
Maximum size of file to be upload |
| format |
Array |
[] |
List of allowed format. (csv, pdf, etc) |
| Event |
Description |
| deleted |
return deleted data contains index and deleted file |
| Props |
Type |
Default |
Description |
| value |
String |
|
Input value |
| label |
String |
|
Form label |
This component is based on vue-select . Can refer to this documentation
| Props |
Type |
Default |
Description |
| value |
String |
|
Input value |
| form-label |
String |
|
Form label |