@vc-shell/framework 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/types/index.ts +4 -2
- package/dist/core/types/index.d.ts +3 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +56 -56
- package/dist/shared/blade-navigation/index.d.ts +1 -1
- package/dist/shared/blade-navigation/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +6 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +19 -5
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +34 -34
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +0 -68
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/assets/components/assets-details/assets-details.vue +1 -1
- package/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +1 -1
- package/shared/blade-navigation/index.ts +7 -7
- package/tailwind.config.js +1 -1
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +7 -1
- package/ui/components/atoms/vc-badge/vc-badge.vue +2 -1
- package/ui/components/atoms/vc-button/index.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button-model.ts +20 -12
- package/ui/components/atoms/vc-button/vc-button.vue +32 -8
- package/ui/components/atoms/vc-card/vc-card.vue +31 -6
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +25 -6
- package/ui/components/atoms/vc-col/vc-col.vue +4 -2
- package/ui/components/atoms/vc-container/vc-container.vue +18 -11
- package/ui/components/atoms/vc-icon/vc-icon.vue +5 -2
- package/ui/components/atoms/vc-image/vc-image.vue +37 -11
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +20 -6
- package/ui/components/atoms/vc-label/vc-label.vue +12 -8
- package/ui/components/atoms/vc-link/vc-link.vue +9 -4
- package/ui/components/atoms/vc-loading/vc-loading.vue +5 -4
- package/ui/components/atoms/vc-progress/vc-progress.vue +11 -5
- package/ui/components/atoms/vc-status/vc-status.vue +15 -5
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +7 -11
- package/ui/components/atoms/vc-switch/vc-switch.vue +24 -6
- package/ui/components/atoms/vc-widget/vc-widget.vue +19 -3
- package/ui/components/index.ts +34 -34
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +11 -2
- package/ui/components/molecules/vc-editor/vc-editor.vue +52 -15
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +33 -12
- package/ui/components/molecules/vc-notification/vc-notification.vue +10 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +16 -6
- package/ui/components/molecules/vc-rating/vc-rating.vue +10 -2
- package/ui/components/molecules/vc-slider/vc-slider.vue +25 -7
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +47 -9
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +1 -2
- package/ui/components/organisms/vc-app/vc-app.vue +31 -6
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +32 -17
- package/ui/components/organisms/vc-blade/vc-blade.vue +34 -9
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +94 -66
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +21 -31
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +81 -22
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +14 -3
- package/ui/components/organisms/vc-popup/vc-popup.vue +15 -4
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +2 -2
- package/ui/components/organisms/vc-table/vc-table.vue +41 -9
- package/ui/types/index.ts +1 -188
- package/dist/ui/components/atoms/vc-card/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +0 -16
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +0 -14
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +0 -11
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +0 -9
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +0 -15
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +0 -11
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +0 -9
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +0 -5
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +0 -10
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +0 -8
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +0 -13
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +0 -12
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +0 -16
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +0 -10
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +0 -11
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +0 -13
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +0 -14
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +0 -17
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +0 -26
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +0 -17
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +0 -14
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +0 -32
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +0 -10
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +0 -11
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +0 -66
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +0 -1
- package/ui/components/atoms/vc-card/index.ts +0 -7
- package/ui/components/atoms/vc-card/vc-card-model.ts +0 -17
- package/ui/components/atoms/vc-checkbox/index.ts +0 -7
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +0 -15
- package/ui/components/atoms/vc-col/index.ts +0 -6
- package/ui/components/atoms/vc-col/vc-col-model.ts +0 -9
- package/ui/components/atoms/vc-container/index.ts +0 -7
- package/ui/components/atoms/vc-container/vc-container-model.ts +0 -12
- package/ui/components/atoms/vc-hint/index.ts +0 -2
- package/ui/components/atoms/vc-icon/index.ts +0 -7
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +0 -10
- package/ui/components/atoms/vc-image/index.ts +0 -7
- package/ui/components/atoms/vc-image/vc-image-model.ts +0 -27
- package/ui/components/atoms/vc-info-row/index.ts +0 -7
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +0 -12
- package/ui/components/atoms/vc-label/index.ts +0 -7
- package/ui/components/atoms/vc-label/vc-label-model.ts +0 -11
- package/ui/components/atoms/vc-link/index.ts +0 -7
- package/ui/components/atoms/vc-link/vc-link-model.ts +0 -11
- package/ui/components/atoms/vc-loading/index.ts +0 -7
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +0 -9
- package/ui/components/atoms/vc-progress/index.ts +0 -7
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +0 -10
- package/ui/components/atoms/vc-row/index.ts +0 -2
- package/ui/components/atoms/vc-row/vc-row-model.ts +0 -5
- package/ui/components/atoms/vc-status/index.ts +0 -7
- package/ui/components/atoms/vc-status/vc-status-model.ts +0 -17
- package/ui/components/atoms/vc-status-icon/index.ts +0 -7
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +0 -9
- package/ui/components/atoms/vc-switch/index.ts +0 -7
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +0 -14
- package/ui/components/atoms/vc-widget/index.ts +0 -7
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +0 -13
- package/ui/components/molecules/vc-breadcrumbs/index.ts +0 -7
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +0 -15
- package/ui/components/molecules/vc-editor/index.ts +0 -7
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +0 -17
- package/ui/components/molecules/vc-file-upload/index.ts +0 -7
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +0 -15
- package/ui/components/molecules/vc-form/index.ts +0 -2
- package/ui/components/molecules/vc-notification/index.ts +0 -7
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +0 -11
- package/ui/components/molecules/vc-pagination/index.ts +0 -7
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +0 -12
- package/ui/components/molecules/vc-rating/index.ts +0 -7
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +0 -14
- package/ui/components/molecules/vc-slider/index.ts +0 -7
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +0 -15
- package/ui/components/molecules/vc-textarea/index.ts +0 -7
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +0 -18
- package/ui/components/organisms/vc-app/index.ts +0 -6
- package/ui/components/organisms/vc-app/vc-app-model.ts +0 -27
- package/ui/components/organisms/vc-blade/index.ts +0 -7
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +0 -18
- package/ui/components/organisms/vc-dynamic-property/index.ts +0 -7
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +0 -25
- package/ui/components/organisms/vc-gallery/index.ts +0 -7
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +0 -33
- package/ui/components/organisms/vc-login-form/index.ts +0 -7
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +0 -11
- package/ui/components/organisms/vc-popup/index.ts +0 -7
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +0 -12
- package/ui/components/organisms/vc-table/index.ts +0 -7
- package/ui/components/organisms/vc-table/vc-table-model.ts +0 -56
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Field
|
|
3
3
|
v-if="
|
|
4
|
-
(property
|
|
4
|
+
(property.dictionary || property.isDictionary) && !property.multivalue
|
|
5
5
|
"
|
|
6
6
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
7
|
-
:name="property
|
|
7
|
+
:name="property.displayName || property.name"
|
|
8
8
|
:modelValue="getter(property, true)"
|
|
9
9
|
:rules="rules"
|
|
10
10
|
>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-bind="$attrs"
|
|
13
13
|
:error="!!errors.length"
|
|
14
14
|
:error-message="errorMessage"
|
|
15
|
-
:label="handleDisplayName || property
|
|
15
|
+
:label="handleDisplayName || property.displayName"
|
|
16
16
|
:modelValue="getter(property, true)"
|
|
17
17
|
@update:modelValue="
|
|
18
18
|
(e) => {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
setter(property, e, items);
|
|
21
21
|
}
|
|
22
22
|
"
|
|
23
|
-
:required="property
|
|
24
|
-
:placeholder="handleDisplayName || property
|
|
23
|
+
:required="property.required || property.isRequired"
|
|
24
|
+
:placeholder="handleDisplayName || property.defaultValue"
|
|
25
25
|
:options="items"
|
|
26
26
|
option-value="id"
|
|
27
27
|
:option-label="handleDisplayProperty"
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
|
|
35
35
|
<Field
|
|
36
36
|
v-else-if="
|
|
37
|
-
property
|
|
38
|
-
property
|
|
39
|
-
!(property
|
|
37
|
+
property.valueType === 'ShortText' &&
|
|
38
|
+
property.multivalue &&
|
|
39
|
+
!(property.dictionary || property.isDictionary)
|
|
40
40
|
"
|
|
41
41
|
v-slot="{ errorMessage, handleChange }"
|
|
42
|
-
:name="property
|
|
43
|
-
:modelValue="property
|
|
42
|
+
:name="property.name"
|
|
43
|
+
:modelValue="property.values"
|
|
44
44
|
:rules="rules"
|
|
45
45
|
>
|
|
46
46
|
<VcMultivalue
|
|
47
47
|
v-bind="$attrs"
|
|
48
48
|
:error-message="errorMessage"
|
|
49
49
|
:label="handleDisplayName"
|
|
50
|
-
:modelValue="property
|
|
50
|
+
:modelValue="property.values"
|
|
51
51
|
@update:modelValue="
|
|
52
52
|
(e) => {
|
|
53
53
|
handleChange(e);
|
|
54
54
|
setter(property, e);
|
|
55
55
|
}
|
|
56
56
|
"
|
|
57
|
-
:required="property
|
|
57
|
+
:required="property.required || property.isRequired"
|
|
58
58
|
placeholder="Add value"
|
|
59
59
|
:disabled="disabled"
|
|
60
60
|
></VcMultivalue>
|
|
@@ -62,29 +62,29 @@
|
|
|
62
62
|
|
|
63
63
|
<Field
|
|
64
64
|
v-else-if="
|
|
65
|
-
property
|
|
66
|
-
property
|
|
67
|
-
(property
|
|
65
|
+
property.valueType === 'ShortText' &&
|
|
66
|
+
property.multivalue &&
|
|
67
|
+
(property.dictionary || property.isDictionary)
|
|
68
68
|
"
|
|
69
69
|
v-slot="{ errorMessage, handleChange }"
|
|
70
|
-
:name="property
|
|
71
|
-
:modelValue="property
|
|
70
|
+
:name="property.name"
|
|
71
|
+
:modelValue="property.values"
|
|
72
72
|
:rules="rules"
|
|
73
73
|
>
|
|
74
74
|
<VcMultivalue
|
|
75
75
|
v-bind="$attrs"
|
|
76
76
|
:error-message="errorMessage"
|
|
77
77
|
:label="handleDisplayName"
|
|
78
|
-
:modelValue="property
|
|
78
|
+
:modelValue="property.values"
|
|
79
79
|
@update:modelValue="
|
|
80
80
|
(e) => {
|
|
81
81
|
handleChange(e);
|
|
82
82
|
setter(property, e, items);
|
|
83
83
|
}
|
|
84
84
|
"
|
|
85
|
-
:required="property
|
|
85
|
+
:required="property.required || property.isRequired"
|
|
86
86
|
placeholder="Add value"
|
|
87
|
-
:multivalue="property
|
|
87
|
+
:multivalue="property.multivalue"
|
|
88
88
|
:disabled="disabled"
|
|
89
89
|
:options="items"
|
|
90
90
|
keyProperty="id"
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
</Field>
|
|
96
96
|
|
|
97
97
|
<Field
|
|
98
|
-
v-else-if="property
|
|
98
|
+
v-else-if="property.valueType === 'ShortText'"
|
|
99
99
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
100
|
-
:name="property
|
|
100
|
+
:name="property.displayName || property.name"
|
|
101
101
|
:modelValue="getter(property)"
|
|
102
102
|
:rules="rules"
|
|
103
103
|
>
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
v-bind="$attrs"
|
|
106
106
|
:error="!!errors.length"
|
|
107
107
|
:error-message="errorMessage"
|
|
108
|
-
:label="handleDisplayName || property
|
|
109
|
-
:modelValue="
|
|
108
|
+
:label="handleDisplayName || property.displayName"
|
|
109
|
+
:modelValue="getter(property)"
|
|
110
110
|
@update:modelValue="
|
|
111
111
|
(e) => {
|
|
112
112
|
handleChange(e);
|
|
@@ -114,23 +114,23 @@
|
|
|
114
114
|
}
|
|
115
115
|
"
|
|
116
116
|
clearable
|
|
117
|
-
:required="property
|
|
117
|
+
:required="property.required || property.isRequired"
|
|
118
118
|
:placeholder="handleDisplayName || 'Add value'"
|
|
119
119
|
:disabled="disabled"
|
|
120
120
|
></VcInput>
|
|
121
121
|
</Field>
|
|
122
122
|
|
|
123
123
|
<Field
|
|
124
|
-
v-else-if="property
|
|
124
|
+
v-else-if="property.valueType === 'Number' && property.multivalue"
|
|
125
125
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
126
|
-
:name="property
|
|
127
|
-
:modelValue="property
|
|
126
|
+
:name="property.name"
|
|
127
|
+
:modelValue="property.values"
|
|
128
128
|
:rules="rules"
|
|
129
129
|
>
|
|
130
130
|
<VcSelect
|
|
131
131
|
v-bind="$attrs"
|
|
132
132
|
:label="handleDisplayName"
|
|
133
|
-
:modelValue="property
|
|
133
|
+
:modelValue="property.values"
|
|
134
134
|
@update:modelValue="
|
|
135
135
|
(e) => {
|
|
136
136
|
handleChange(e);
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
"
|
|
140
140
|
type="number"
|
|
141
|
-
:required="property
|
|
141
|
+
:required="property.required || property.isRequired"
|
|
142
142
|
placeholder="Add value"
|
|
143
143
|
:disabled="disabled"
|
|
144
144
|
:error="!!errors.length"
|
|
@@ -151,9 +151,9 @@
|
|
|
151
151
|
</Field>
|
|
152
152
|
|
|
153
153
|
<Field
|
|
154
|
-
v-else-if="property
|
|
154
|
+
v-else-if="property.valueType === 'Number'"
|
|
155
155
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
156
|
-
:name="property
|
|
156
|
+
:name="property.name"
|
|
157
157
|
:modelValue="getter(property)"
|
|
158
158
|
:rules="rules"
|
|
159
159
|
>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
:error="!!errors.length"
|
|
163
163
|
:error-message="errorMessage"
|
|
164
164
|
:label="handleDisplayName"
|
|
165
|
-
:modelValue="
|
|
165
|
+
:modelValue="getter(property)"
|
|
166
166
|
@update:modelValue="
|
|
167
167
|
(e) => {
|
|
168
168
|
handleChange(e);
|
|
@@ -171,16 +171,16 @@
|
|
|
171
171
|
"
|
|
172
172
|
clearable
|
|
173
173
|
type="number"
|
|
174
|
-
:required="property
|
|
175
|
-
:placeholder="handleDisplayName || property
|
|
174
|
+
:required="property.required || property.isRequired"
|
|
175
|
+
:placeholder="handleDisplayName || property.defaultValue"
|
|
176
176
|
:disabled="disabled"
|
|
177
177
|
></VcInput>
|
|
178
178
|
</Field>
|
|
179
179
|
|
|
180
180
|
<Field
|
|
181
|
-
v-else-if="property
|
|
181
|
+
v-else-if="property.valueType === 'Integer'"
|
|
182
182
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
183
|
-
:name="property
|
|
183
|
+
:name="property.name"
|
|
184
184
|
:modelValue="getter(property)"
|
|
185
185
|
:rules="rules"
|
|
186
186
|
>
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
:error="!!errors.length"
|
|
190
190
|
:error-message="errorMessage"
|
|
191
191
|
:label="handleDisplayName"
|
|
192
|
-
:modelValue="
|
|
192
|
+
:modelValue="getter(property)"
|
|
193
193
|
@update:modelValue="
|
|
194
194
|
(e) => {
|
|
195
195
|
handleChange(e);
|
|
@@ -199,16 +199,16 @@
|
|
|
199
199
|
clearable
|
|
200
200
|
type="number"
|
|
201
201
|
step="1"
|
|
202
|
-
:required="property
|
|
203
|
-
:placeholder="handleDisplayName || property
|
|
202
|
+
:required="property.required || property.isRequired"
|
|
203
|
+
:placeholder="handleDisplayName || property.defaultValue"
|
|
204
204
|
:disabled="disabled"
|
|
205
205
|
></VcInput>
|
|
206
206
|
</Field>
|
|
207
207
|
|
|
208
208
|
<Field
|
|
209
|
-
v-else-if="property
|
|
209
|
+
v-else-if="property.valueType === 'DateTime'"
|
|
210
210
|
v-slot="{ errorMessage, handleChange, errors }"
|
|
211
|
-
:name="property
|
|
211
|
+
:name="property.name"
|
|
212
212
|
:modelValue="getter(property)"
|
|
213
213
|
:rules="rules"
|
|
214
214
|
>
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
:error="!!errors.length"
|
|
218
218
|
:error-message="errorMessage"
|
|
219
219
|
:label="handleDisplayName"
|
|
220
|
-
:modelValue="
|
|
220
|
+
:modelValue="getter(property)"
|
|
221
221
|
@update:modelValue="
|
|
222
222
|
(e) => {
|
|
223
223
|
handleChange(e);
|
|
@@ -225,16 +225,16 @@
|
|
|
225
225
|
}
|
|
226
226
|
"
|
|
227
227
|
type="datetime-local"
|
|
228
|
-
:required="property
|
|
229
|
-
:placeholder="handleDisplayName || property
|
|
228
|
+
:required="property.required || property.isRequired"
|
|
229
|
+
:placeholder="handleDisplayName || property.defaultValue"
|
|
230
230
|
:disabled="disabled"
|
|
231
231
|
></VcInput>
|
|
232
232
|
</Field>
|
|
233
233
|
|
|
234
234
|
<Field
|
|
235
|
-
v-else-if="property
|
|
235
|
+
v-else-if="property.valueType === 'LongText'"
|
|
236
236
|
v-slot="{ errorMessage, handleChange }"
|
|
237
|
-
:name="property
|
|
237
|
+
:name="property.name"
|
|
238
238
|
:modelValue="getter(property)"
|
|
239
239
|
:rules="rules"
|
|
240
240
|
>
|
|
@@ -242,65 +242,65 @@
|
|
|
242
242
|
v-bind="$attrs"
|
|
243
243
|
:error-message="errorMessage"
|
|
244
244
|
:label="handleDisplayName"
|
|
245
|
-
:modelValue="getter(property)
|
|
245
|
+
:modelValue="getter(property)"
|
|
246
246
|
@update:modelValue="
|
|
247
247
|
(e) => {
|
|
248
248
|
handleChange(e);
|
|
249
249
|
setter(property, e);
|
|
250
250
|
}
|
|
251
251
|
"
|
|
252
|
-
:
|
|
253
|
-
:placeholder="handleDisplayName || property
|
|
252
|
+
:isRequired="property.required || property.isRequired"
|
|
253
|
+
:placeholder="handleDisplayName || property.defaultValue"
|
|
254
254
|
:disabled="disabled"
|
|
255
255
|
></VcTextarea>
|
|
256
256
|
</Field>
|
|
257
257
|
|
|
258
258
|
<Field
|
|
259
|
-
v-else-if="property
|
|
259
|
+
v-else-if="property.valueType === 'Boolean'"
|
|
260
260
|
v-slot="{ errorMessage, handleChange }"
|
|
261
|
-
:name="property
|
|
261
|
+
:name="property.displayName || property.name"
|
|
262
262
|
:modelValue="getter(property)"
|
|
263
263
|
:rules="rules"
|
|
264
264
|
>
|
|
265
265
|
<VcCheckbox
|
|
266
266
|
v-bind="$attrs"
|
|
267
267
|
:error-message="errorMessage"
|
|
268
|
-
:modelValue="getter(property)
|
|
268
|
+
:modelValue="getter(property)"
|
|
269
269
|
@update:modelValue="
|
|
270
270
|
(e) => {
|
|
271
271
|
handleChange(e);
|
|
272
272
|
setter(property, e);
|
|
273
273
|
}
|
|
274
274
|
"
|
|
275
|
-
:required="property
|
|
275
|
+
:required="property.required || property.isRequired"
|
|
276
276
|
:disabled="disabled"
|
|
277
|
-
:name="property
|
|
277
|
+
:name="property.displayName || property.name"
|
|
278
278
|
>
|
|
279
|
-
{{ handleDisplayName || property
|
|
279
|
+
{{ handleDisplayName || property.displayName }}
|
|
280
280
|
</VcCheckbox>
|
|
281
281
|
</Field>
|
|
282
282
|
|
|
283
283
|
<Field
|
|
284
|
-
v-else-if="property
|
|
284
|
+
v-else-if="property.valueType === 'Html'"
|
|
285
285
|
v-slot="{ errorMessage, handleChange }"
|
|
286
|
-
:name="property
|
|
286
|
+
:name="property.displayName || property.name"
|
|
287
287
|
:modelValue="getter(property)"
|
|
288
288
|
:rules="rules"
|
|
289
289
|
>
|
|
290
290
|
<VcEditor
|
|
291
291
|
v-bind="$attrs"
|
|
292
|
-
:label="handleDisplayName || property
|
|
293
|
-
:modelValue="
|
|
292
|
+
:label="handleDisplayName || property.displayName"
|
|
293
|
+
:modelValue="getter(property)"
|
|
294
294
|
@update:modelValue="
|
|
295
295
|
(e) => {
|
|
296
296
|
handleChange(e);
|
|
297
297
|
setter(property, e);
|
|
298
298
|
}
|
|
299
299
|
"
|
|
300
|
-
:required="property
|
|
300
|
+
:required="property.required || property.isRequired"
|
|
301
301
|
:placeholder="handleDisplayName || 'Add value'"
|
|
302
302
|
:disabled="disabled"
|
|
303
|
-
:name="property
|
|
303
|
+
:name="property.displayName || property.name"
|
|
304
304
|
:error-message="errorMessage"
|
|
305
305
|
>
|
|
306
306
|
</VcEditor>
|
|
@@ -311,7 +311,6 @@
|
|
|
311
311
|
import { ref, onMounted, computed } from "vue";
|
|
312
312
|
import { useI18n } from "@/core/composables";
|
|
313
313
|
import { Field } from "vee-validate";
|
|
314
|
-
import { VcDynamicPropertyProps } from "@/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model";
|
|
315
314
|
|
|
316
315
|
type IValidationRules = {
|
|
317
316
|
required?: boolean;
|
|
@@ -325,9 +324,38 @@ interface IDisplayName {
|
|
|
325
324
|
name?: string;
|
|
326
325
|
}
|
|
327
326
|
|
|
328
|
-
const props =
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
const props = defineProps({
|
|
328
|
+
property: {
|
|
329
|
+
type: Object,
|
|
330
|
+
default: () => ({}),
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
dictionaries: {
|
|
334
|
+
type: Object,
|
|
335
|
+
default: () => ({}),
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
getter: {
|
|
339
|
+
type: Function,
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
optionsGetter: {
|
|
343
|
+
type: Function,
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
setter: {
|
|
347
|
+
type: Function,
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
culture: {
|
|
351
|
+
type: String,
|
|
352
|
+
default: "en-US",
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
disabled: {
|
|
356
|
+
type: Boolean,
|
|
357
|
+
default: false,
|
|
358
|
+
},
|
|
331
359
|
});
|
|
332
360
|
|
|
333
361
|
const { locale, te, t } = useI18n();
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<VcImage aspect="1x1" :src="image.url" background="contain"></VcImage>
|
|
12
12
|
<div class="vc-gallery-item__overlay">
|
|
13
|
-
<div class="tw-flex">
|
|
13
|
+
<div class= "tw-flex">
|
|
14
14
|
<VcIcon
|
|
15
15
|
v-if="!readonly && !disableDrag"
|
|
16
16
|
class="vc-gallery-item__move"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{ image.name }}
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
|
-
<div class="tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around">
|
|
24
|
+
<div class= "tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around">
|
|
25
25
|
<div
|
|
26
26
|
class="vc-gallery-item__button"
|
|
27
27
|
@click="$emit('preview', image)"
|
|
@@ -63,37 +63,27 @@
|
|
|
63
63
|
<script lang="ts" setup>
|
|
64
64
|
import { ref } from "vue";
|
|
65
65
|
import { clickOutside as vClickOutside } from "@/core/directives";
|
|
66
|
-
import { IImage } from "@/core/types";
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
image
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
defineProps({
|
|
68
|
+
image: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: () => ({}),
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
readonly: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false,
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
actions: {
|
|
79
|
+
type: Object,
|
|
80
|
+
default: () => ({}),
|
|
81
|
+
},
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
name: undefined,
|
|
87
|
-
url: undefined,
|
|
88
|
-
}),
|
|
89
|
-
readonly: false,
|
|
90
|
-
actions: () => ({
|
|
91
|
-
name: undefined,
|
|
92
|
-
preview: undefined,
|
|
93
|
-
edit: undefined,
|
|
94
|
-
remove: undefined,
|
|
95
|
-
}),
|
|
96
|
-
disableDrag: false,
|
|
83
|
+
disableDrag: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false,
|
|
86
|
+
},
|
|
97
87
|
});
|
|
98
88
|
|
|
99
89
|
defineEmits(["preview", "edit", "remove"]);
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
</VcLabel>
|
|
11
11
|
|
|
12
12
|
<template v-if="(images && images.length) || !disabled">
|
|
13
|
-
<div class="tw-flex tw-flex-wrap">
|
|
13
|
+
<div class= "tw-flex tw-flex-wrap">
|
|
14
14
|
<draggable
|
|
15
15
|
:list="images"
|
|
16
|
-
class="tw-flex tw-flex-wrap tw-w-full"
|
|
16
|
+
class= "tw-flex tw-flex-wrap tw-w-full"
|
|
17
17
|
tag="transition-group"
|
|
18
18
|
v-bind="dragOptions"
|
|
19
19
|
@change="updateOrder"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</draggable>
|
|
50
50
|
</div>
|
|
51
51
|
</template>
|
|
52
|
-
<div v-else class="tw-flex tw-justify-center tw-p-5">
|
|
52
|
+
<div v-else class= "tw-flex tw-justify-center tw-p-5">
|
|
53
53
|
<VcHint>Gallery is empty</VcHint>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
@@ -63,35 +63,94 @@
|
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script lang="ts" setup>
|
|
66
|
-
import { computed, ref } from "vue";
|
|
66
|
+
import { computed, PropType, ref } from "vue";
|
|
67
67
|
import { VcLabel, VcFileUpload } from "@/ui/components";
|
|
68
68
|
import VcGalleryItem from "./_internal/vc-gallery-item/vc-gallery-item.vue";
|
|
69
69
|
import VcGalleryPreview from "./_internal/vc-gallery-preview/vc-gallery-preview.vue";
|
|
70
|
-
import {
|
|
71
|
-
|
|
72
|
-
const props =
|
|
73
|
-
images:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
70
|
+
import { IImage } from "@/core/types";
|
|
71
|
+
|
|
72
|
+
const props = defineProps({
|
|
73
|
+
images: {
|
|
74
|
+
type: Array as PropType<IImage[]>,
|
|
75
|
+
default: () => [],
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
disabled: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false,
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
required: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false,
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
label: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: undefined,
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
tooltip: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: undefined,
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
tooltipIcon: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "fas fa-info",
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
uploadIcon: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "fas fa-upload",
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
multiple: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false,
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
variant: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "gallery",
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
itemActions: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: () => ({
|
|
121
|
+
preview: true,
|
|
122
|
+
edit: true,
|
|
123
|
+
remove: true,
|
|
124
|
+
}),
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
disableDrag: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: false,
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
hideAfterUpload: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false,
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
rules: {
|
|
138
|
+
type: [String, Object],
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
name: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: "Gallery",
|
|
144
|
+
},
|
|
88
145
|
});
|
|
89
146
|
|
|
90
147
|
const emit = defineEmits([
|
|
91
148
|
"upload",
|
|
92
149
|
"sort",
|
|
150
|
+
"item:preview",
|
|
93
151
|
"item:edit",
|
|
94
152
|
"item:remove",
|
|
153
|
+
"item:move",
|
|
95
154
|
]);
|
|
96
155
|
|
|
97
156
|
const preview = ref(false);
|
|
@@ -27,10 +27,21 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script lang="ts" setup>
|
|
30
|
-
|
|
30
|
+
defineProps({
|
|
31
|
+
logo: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: undefined,
|
|
34
|
+
},
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
background: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: undefined,
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
title: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "Login",
|
|
44
|
+
},
|
|
34
45
|
});
|
|
35
46
|
|
|
36
47
|
console.debug("Init vc-login-form");
|
|
@@ -23,11 +23,22 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script lang="ts" setup>
|
|
26
|
-
|
|
26
|
+
defineProps({
|
|
27
|
+
title: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: undefined,
|
|
30
|
+
},
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
closable: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true,
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
variant: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "fullscreen",
|
|
40
|
+
enum: ["small", "medium", "fullscreen"],
|
|
41
|
+
},
|
|
31
42
|
});
|
|
32
43
|
|
|
33
44
|
defineEmits(["close"]);
|
package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue
CHANGED
|
@@ -125,9 +125,9 @@ import { VcIcon } from "@/ui/components";
|
|
|
125
125
|
|
|
126
126
|
export interface Props {
|
|
127
127
|
item: {
|
|
128
|
-
id
|
|
128
|
+
id: string;
|
|
129
129
|
};
|
|
130
|
-
actionBuilder?: (item: { id
|
|
130
|
+
actionBuilder?: (item: { id: string }) => IActionBuilderResult[];
|
|
131
131
|
swipingItem?: string;
|
|
132
132
|
}
|
|
133
133
|
|