@vrojs/element-plus 0.0.29 → 0.0.30
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/dist/index.js +62 -60
- package/dist/style/index.css +1 -1
- package/dist/vro-el-divider/style/index.css +1 -1
- package/dist/vro-el-schema-form/defineVroElSchemaForm.d.ts +3 -0
- package/dist/vro-el-schema-form/defineVroElSchemaForm.js +7 -0
- package/dist/vro-el-schema-form/index.d.ts +1 -0
- package/dist/vro-el-schema-form/index.js +12 -10
- package/dist/vro-el-skeleton/style/index.css +1 -1
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +17 -15
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { datePickerValueFormat as E } from "./utils/datePickerValueFormat.js";
|
|
|
6
6
|
import { elTableColumnProps as i } from "./utils/elTableColumnProps.js";
|
|
7
7
|
import { parseType as V } from "@vrojs/base";
|
|
8
8
|
import { VroElCheckboxGroup as g } from "./vro-el-checkbox-group/index.js";
|
|
9
|
-
import { VroElConfigProvider as
|
|
9
|
+
import { VroElConfigProvider as h } from "./vro-el-config-provider/index.js";
|
|
10
10
|
import { VroElDivider as F } from "./vro-el-divider/index.js";
|
|
11
|
-
import { VroElFileUpload as
|
|
11
|
+
import { VroElFileUpload as d } from "./vro-el-file-upload/index.js";
|
|
12
12
|
import { VroElIcon as C } from "./vro-el-icon/index.js";
|
|
13
13
|
import { VroElImage as D } from "./vro-el-image/index.js";
|
|
14
14
|
import { VroElImageUpload as I } from "./vro-el-image-upload/index.js";
|
|
@@ -31,7 +31,7 @@ import { vroElCheckboxGroupProps as to } from "./vro-el-checkbox-group/types.js"
|
|
|
31
31
|
import { provideVroElConfig as fo, setVroElGlobalConfig as xo, useVroElConfig as Eo, useVroElGlobalConfig as so, vroElConfigContextKey as io } from "./vro-el-config-provider/config.js";
|
|
32
32
|
import { vroElConfigProviderProps as Vo } from "./vro-el-config-provider/types.js";
|
|
33
33
|
import { vroElDividerProps as go } from "./vro-el-divider/types.js";
|
|
34
|
-
import { vroElFileUploadProps as
|
|
34
|
+
import { vroElFileUploadProps as ho } from "./vro-el-file-upload/types.js";
|
|
35
35
|
import { getVroElFileUploadOptions as Fo, setVroElFileUploadOptions as So } from "./vro-el-file-upload/utils.js";
|
|
36
36
|
import { vroElIconProps as Co } from "./vro-el-icon/types.js";
|
|
37
37
|
import { vroElImageProps as Do } from "./vro-el-image/types.js";
|
|
@@ -42,37 +42,38 @@ import { vroElRadioGroupProps as Wo } from "./vro-el-radio-group/types.js";
|
|
|
42
42
|
import { createVroElSchemaDescsDialog as zo } from "./vro-el-schema-descs/function-call.js";
|
|
43
43
|
import { vroElSchemaDescsProps as Mo } from "./vro-el-schema-descs/types.js";
|
|
44
44
|
import { vroElSchemaFilterProps as Lo } from "./vro-el-schema-filter/types.js";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
45
|
+
import { defineVroElSchemaForm as qo } from "./vro-el-schema-form/defineVroElSchemaForm.js";
|
|
46
|
+
import { defineVroElSchemaFormCreateField as Ho } from "./vro-el-schema-form/defineVroElSchemaFormCreateField.js";
|
|
47
|
+
import { defineVroElSchemaFormFieldTrigger as Qo } from "./vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js";
|
|
48
|
+
import { vroElSchemaFormProps as Yo } from "./vro-el-schema-form/types.js";
|
|
49
|
+
import { useVroElSchemaForm as _o } from "./vro-el-schema-form/useVroElSchemaForm.js";
|
|
50
|
+
import { vroElSchemaFormFieldManager as or } from "./vro-el-schema-form/vroElSchemaFormFieldManager.js";
|
|
51
|
+
import { showVroElSchemaFormDialog as er } from "./vro-el-schema-form-dialog/function-call.js";
|
|
52
|
+
import { useVroElSchemaFormDialogInstance as mr, vroElSchemaFormDialogInjectionKey as pr } from "./vro-el-schema-form-dialog/injection.js";
|
|
53
|
+
import { vroElSchemaFormDialogProps as ar } from "./vro-el-schema-form-dialog/types.js";
|
|
54
|
+
import { useVroElSchemaFormDialog as xr } from "./vro-el-schema-form-dialog/useVroElSchemaFormDialog.js";
|
|
55
|
+
import { showVroElSchemaFormDrawer as sr } from "./vro-el-schema-form-drawer/function-call.js";
|
|
56
|
+
import { useVroElSchemaFormDrawerInstance as nr, vroElSchemaFormDrawerInjectionKey as Vr } from "./vro-el-schema-form-drawer/injection.js";
|
|
57
|
+
import { vroElSchemaFormDrawerProps as gr } from "./vro-el-schema-form-drawer/types.js";
|
|
58
|
+
import { useVroElSchemaFormDrawer as hr } from "./vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js";
|
|
59
|
+
import { vroElSelectProps as Fr } from "./vro-el-select/types.js";
|
|
60
|
+
import { vroElSkeletonProps as dr } from "./vro-el-skeleton/types.js";
|
|
61
|
+
import { vroElTableProps as Cr } from "./vro-el-table/types.js";
|
|
62
|
+
import { useVroElTable as Dr } from "./vro-el-table/useVroElTable.js";
|
|
63
|
+
import { vroElTableActionsColumnProps as Ir } from "./vro-el-table-actions-column/types.js";
|
|
64
|
+
import { vroElTableColumnProps as wr } from "./vro-el-table-column/types.js";
|
|
65
|
+
import { defineVroElTableColumns as Or } from "./vro-el-table-column-group/defineVroElTableColumns.js";
|
|
66
|
+
import { vroElTableColumnGroupProps as yr } from "./vro-el-table-column-group/types.js";
|
|
67
|
+
import { useVroElTableColumnGroup as Wr } from "./vro-el-table-column-group/useVroElTableColumnGroup.js";
|
|
68
|
+
import { vroElTableColumnGroupColumnManager as zr } from "./vro-el-table-column-group/vroElTableColumnGroupColumnManager.js";
|
|
69
|
+
import { vroElTagsProps as Mr } from "./vro-el-tags/types.js";
|
|
70
|
+
import { vroElTreeProps as Lr } from "./vro-el-tree/types.js";
|
|
71
|
+
import { vroElWithConfigProps as qr } from "./vro-el-with-config/types.js";
|
|
71
72
|
export {
|
|
72
73
|
g as VroElCheckboxGroup,
|
|
73
|
-
|
|
74
|
+
h as VroElConfigProvider,
|
|
74
75
|
F as VroElDivider,
|
|
75
|
-
|
|
76
|
+
d as VroElFileUpload,
|
|
76
77
|
C as VroElIcon,
|
|
77
78
|
D as VroElImage,
|
|
78
79
|
I as VroElImageUpload,
|
|
@@ -93,9 +94,10 @@ export {
|
|
|
93
94
|
mo as VroElWithConfig,
|
|
94
95
|
zo as createVroElSchemaDescsDialog,
|
|
95
96
|
E as datePickerValueFormat,
|
|
96
|
-
qo as
|
|
97
|
-
Ho as
|
|
98
|
-
|
|
97
|
+
qo as defineVroElSchemaForm,
|
|
98
|
+
Ho as defineVroElSchemaFormCreateField,
|
|
99
|
+
Qo as defineVroElSchemaFormFieldTrigger,
|
|
100
|
+
Or as defineVroElTableColumns,
|
|
99
101
|
i as elTableColumnProps,
|
|
100
102
|
e as en,
|
|
101
103
|
Fo as getVroElFileUploadOptions,
|
|
@@ -107,45 +109,45 @@ export {
|
|
|
107
109
|
xo as setVroElGlobalConfig,
|
|
108
110
|
Go as setVroElImageOptions,
|
|
109
111
|
yo as setVroElImageUploadOptions,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
er as showVroElSchemaFormDialog,
|
|
113
|
+
sr as showVroElSchemaFormDrawer,
|
|
112
114
|
f as useLocale,
|
|
113
115
|
Eo as useVroElConfig,
|
|
114
116
|
so as useVroElGlobalConfig,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
_o as useVroElSchemaForm,
|
|
118
|
+
xr as useVroElSchemaFormDialog,
|
|
119
|
+
mr as useVroElSchemaFormDialogInstance,
|
|
120
|
+
hr as useVroElSchemaFormDrawer,
|
|
121
|
+
nr as useVroElSchemaFormDrawerInstance,
|
|
122
|
+
Dr as useVroElTable,
|
|
123
|
+
Wr as useVroElTableColumnGroup,
|
|
122
124
|
to as vroElCheckboxGroupProps,
|
|
123
125
|
io as vroElConfigContextKey,
|
|
124
126
|
Vo as vroElConfigProviderProps,
|
|
125
127
|
go as vroElDividerProps,
|
|
126
|
-
|
|
128
|
+
ho as vroElFileUploadProps,
|
|
127
129
|
Co as vroElIconProps,
|
|
128
130
|
Do as vroElImageProps,
|
|
129
131
|
Uo as vroElImageUploadProps,
|
|
130
132
|
Wo as vroElRadioGroupProps,
|
|
131
133
|
Mo as vroElSchemaDescsProps,
|
|
132
134
|
Lo as vroElSchemaFilterProps,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
pr as vroElSchemaFormDialogInjectionKey,
|
|
136
|
+
ar as vroElSchemaFormDialogProps,
|
|
137
|
+
Vr as vroElSchemaFormDrawerInjectionKey,
|
|
138
|
+
gr as vroElSchemaFormDrawerProps,
|
|
139
|
+
or as vroElSchemaFormFieldManager,
|
|
140
|
+
Yo as vroElSchemaFormProps,
|
|
141
|
+
Fr as vroElSelectProps,
|
|
142
|
+
dr as vroElSkeletonProps,
|
|
143
|
+
Ir as vroElTableActionsColumnProps,
|
|
144
|
+
zr as vroElTableColumnGroupColumnManager,
|
|
145
|
+
yr as vroElTableColumnGroupProps,
|
|
146
|
+
wr as vroElTableColumnProps,
|
|
147
|
+
Cr as vroElTableProps,
|
|
148
|
+
Mr as vroElTagsProps,
|
|
149
|
+
Lr as vroElTreeProps,
|
|
150
|
+
qr as vroElWithConfigProps,
|
|
149
151
|
m as zhCN,
|
|
150
152
|
t as zhTW
|
|
151
153
|
};
|
package/dist/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";:root,:host{--vro-el-divider-gap: 12px;--vro-el-divider-margin: 24px 0;--vro-el-divider-vertical-margin: 0 8px;--vro-el-divider-border-color: var(--el-border-color);--vro-el-divider-border-width: 1px;--vro-el-divider-border-style: solid;--vro-el-divider-content-color: var(--el-text-color-regular);--vro-el-divider-content-font-size: var(--el-font-size-base)}.vro-el-divider{display:flex;gap:var(--vro-el-divider-gap);align-items:center;width:100%;margin:var(--vro-el-divider-margin)}.vro-el-divider:before,.vro-el-divider:after{content:"";flex:1;border-top:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider.is-empty{gap:0}.vro-el-divider.is-horizontal.is-left:before,.vro-el-divider.is-horizontal.is-right:after{display:none}.vro-el-divider.is-vertical{display:inline-flex;flex-direction:column;width:auto;height:1em;margin:var(--vro-el-divider-vertical-margin);vertical-align:middle}.vro-el-divider.is-vertical:before,.vro-el-divider.is-vertical:after{border-top:0;border-left:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider-content{flex:none;color:var(--vro-el-divider-content-color);font-size:var(--vro-el-divider-content-font-size);line-height:1.5;white-space:nowrap}:root,:host{--vro-el-file-upload-gap: 8px;--vro-el-file-upload-item-font-size: 14px;--vro-el-file-upload-item-line-height: 1.5;--vro-el-file-upload-link-color: var(--el-color-primary);--vro-el-file-upload-clear-gap: 10px;--vro-el-file-upload-clear-color: var(--el-color-danger);--vro-el-file-upload-clear-background: var(--el-fill-color-light)}.vro-el-file-upload-btn{position:relative}.vro-el-file-upload-btn input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.vro-el-file-upload-content{padding:0;margin:var(--vro-el-file-upload-gap) 0 0;list-style:none}.vro-el-file-upload-item{position:relative;box-sizing:border-box;display:flex;align-items:center;margin-top:var(--vro-el-file-upload-gap);font-size:var(--vro-el-file-upload-item-font-size);line-height:var(--vro-el-file-upload-item-line-height)}.vro-el-file-upload-item a{min-width:0;margin-right:var(--vro-el-file-upload-clear-gap);color:var(--vro-el-file-upload-link-color);text-decoration:underline;word-break:break-all}.vro-el-file-upload-clear{flex:none;color:var(--vro-el-file-upload-clear-color);background-color:var(--vro-el-file-upload-clear-background);cursor:pointer}:root,:host{--vro-el-image-placeholder-background: var(--el-fill-color-light);--vro-el-image-loading-color: var(--el-text-color-placeholder);--vro-el-image-loading-size: 16px;--vro-el-image-error-background: var(--el-fill-color-light);--vro-el-image-error-color: var(--el-text-color-placeholder);--vro-el-image-error-icon-size: 24px}.vro-el-image-placeholder,.vro-el-image-error{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.vro-el-image-placeholder{--vro-loading-color: var(--vro-el-image-loading-color);--vro-loading-size: var(--vro-el-image-loading-size);background-color:var(--vro-el-image-placeholder-background)}.vro-el-image-error{color:var(--vro-el-image-error-color);background-color:var(--vro-el-image-error-background)}.vro-el-image-error-icon{font-size:var(--vro-el-image-error-icon-size)}:root,:host{--vro-el-image-upload-gap: 10px;--vro-el-image-upload-item-size: 100px;--vro-el-image-upload-item-radius: 4px;--vro-el-image-upload-item-border-color: var(--el-border-color);--vro-el-image-upload-item-icon-size: 24px;--vro-el-image-upload-checkerboard-size: 8px;--vro-el-image-upload-clear-size: 20px;--vro-el-image-upload-clear-color: #fff;--vro-el-image-upload-clear-background: var(--el-color-danger)}.vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:calc(var(--vro-el-image-upload-gap) * -1)}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--vro-el-image-upload-item-size);height:var(--vro-el-image-upload-item-size);margin-top:var(--vro-el-image-upload-gap);margin-right:var(--vro-el-image-upload-gap);font-size:var(--vro-el-image-upload-item-icon-size);border:1px dashed var(--vro-el-image-upload-item-border-color);border-radius:var(--vro-el-image-upload-item-radius)}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:var(--vro-el-image-upload-checkerboard-size)!important;border-radius:var(--vro-el-image-upload-item-radius);transform:translateZ(0)}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--vro-el-image-upload-item-radius);opacity:0}.vro-el-image-upload-clear{position:absolute;top:-6px;right:-6px;color:var(--vro-el-image-upload-clear-color);font-size:var(--vro-el-image-upload-clear-size);background:var(--vro-el-image-upload-clear-background);border-radius:50%;cursor:pointer}:root,:host{--vro-el-schema-descs-label-color: var(--el-text-color-regular);--vro-el-schema-descs-content-color: var(--el-text-color-primary)}.vro-el-schema-descs{width:100%}.vro-el-schema-descs .el-descriptions__label{color:var(--vro-el-schema-descs-label-color)}.vro-el-schema-descs .el-descriptions__content{color:var(--vro-el-schema-descs-content-color);white-space:pre-wrap;word-break:break-word}:root,:host{--vro-el-schema-filter-padding: 0 16px 16px;--vro-el-schema-filter-background: var(--el-bg-color);--vro-el-schema-filter-col-margin-top: 16px}.vro-el-schema-filter{display:block;box-sizing:border-box;overflow:hidden;padding:var(--vro-el-schema-filter-padding);background-color:var(--vro-el-schema-filter-background)}.vro-el-schema-filter .el-form-item__label{display:flex;align-items:center;text-align:right;line-height:1.1;margin-bottom:0}.vro-el-schema-filter .el-form-item{margin-bottom:0}.vro-el-schema-filter .el-col{margin-top:var(--vro-el-schema-filter-col-margin-top)}.vro-el-schema-form{display:block;width:100%}.vro-el-schema-form .el-date-editor{--el-date-editor-width: 100%}.vro-el-schema-form .el-cascader,.vro-el-schema-form .el-input-number.is-controls-right{width:100%}:root,:host{--vro-el-schema-form-dialog-width: 520px}.vro-el-schema-form-dialog{--el-dialog-width: var(--vro-el-schema-form-dialog-width);width:var(--el-dialog-width)}:root,:host{--vro-el-schema-form-drawer-padding: 20px;--vro-el-schema-form-drawer-border-color: var(--el-border-color);--vro-el-schema-form-drawer-size: 520px}.vro-el-schema-form-drawer .el-drawer__header{margin-bottom:0;border-bottom:1px solid var(--vro-el-schema-form-drawer-border-color);padding:var(--vro-el-schema-form-drawer-padding)}.vro-el-schema-form-drawer .el-drawer__body{min-width:0;overflow-y:auto}.vro-el-schema-form-drawer .el-drawer__footer{padding:var(--vro-el-schema-form-drawer-padding);border-top:1px solid var(--vro-el-schema-form-drawer-border-color)}.vro-el-schema-form-drawer-footer{display:flex;justify-content:flex-end}:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 10px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: 12px;--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;min-height:inherit;font-size:14px}.vro-el-skeleton-state .el-button{margin-top:10px}.vro-el-skeleton-state .el-empty{--el-empty-description-margin-top: 8px;--el-empty-bottom-margin-top: 8px;--el-empty-image-width: 60px}.vro-el-skeleton-state.is-error{gap:8px}.vro-el-skeleton-state.is-error p{font-size:13px;color:var(--el-text-color-secondary)}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}:root,:host{--vro-el-table-gap: 16px;--vro-el-table-padding: 16px;--vro-el-table-inner-gap: var(--vro-el-table-gap)}.vro-el-table{display:flex;flex-direction:column;width:100%;box-sizing:border-box;gap:var(--vro-el-table-gap)}.vro-el-table .el-table-column--selection{line-height:normal}.vro-el-table .el-table__expand-icon{display:flex;align-items:center;justify-content:center}.vro-el-table-inner{flex:1;position:relative;background-color:var(--el-bg-color);padding:var(--vro-el-table-padding);display:flex;flex-direction:column;gap:var(--vro-el-table-inner-gap)}.vro-el-table-header{display:flex;align-items:center;flex-wrap:wrap}.vro-el-table-header h2{font-size:16px}.vro-el-table-actions{flex-shrink:0;margin-left:auto}.vro-el-table-content{flex:1}.vro-el-table-content .el-table{width:100%;--el-table-bg-color: transparent}.vro-el-table-content .el-table__header{--el-table-header-bg-color: var(--el-bg-color-page);--el-table-header-text-color: var(--el-text-color-primary)}.vro-el-table-content .el-table__body-wrapper .cell{line-height:1.4}.vro-el-table-content .el-table__body-wrapper strong{font-weight:700;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt{font-weight:700;margin-bottom:8px;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt:last-child{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper dl dd{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper dl dd:last-of-type{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper ul li{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper ul li:last-of-type{margin-bottom:0}.vro-el-table-pagination{justify-content:flex-end}:root,:host{--vro-el-table-actions-column-row-gap: 4px;--vro-el-table-actions-column-column-gap: 12px}.vro-el-table-actions-column-cell .cell{display:flex;flex-wrap:wrap;row-gap:var(--vro-el-table-actions-column-row-gap);column-gap:var(--vro-el-table-actions-column-column-gap)}.vro-el-table-actions-column-cell .cell>.el-button+.el-button{margin-left:0}.vro-el-table-actions-column-dropdown-action.is-primary{color:var(--el-color-primary)}.vro-el-table-actions-column-dropdown-action.is-success{color:var(--el-color-success)}.vro-el-table-actions-column-dropdown-action.is-warning{color:var(--el-color-warning)}.vro-el-table-actions-column-dropdown-action.is-danger{color:var(--el-color-danger)}.vro-el-table-actions-column-dropdown-action.is-info{color:var(--el-color-info)}:root,:host{--vro-el-table-column-gap: 4px;--vro-el-table-column-icon-size: 14px;--vro-el-table-column-line-clamp: 1}.vro-el-table-column-content{display:inline-flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:var(--vro-el-table-column-gap);vertical-align:middle}.vro-el-table-column-content.is-left{justify-content:flex-start}.vro-el-table-column-content.is-center{justify-content:center}.vro-el-table-column-content.is-right{justify-content:flex-end}.vro-el-table-column-content .vro-el-icon{flex:none;font-size:var(--vro-el-table-column-icon-size)}.vro-el-table-column-prefix,.vro-el-table-column-suffix{display:inline-flex;flex:none;min-width:0;align-items:center}.vro-el-table-column-text{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vro-el-table-column-text.is-line-clamp{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vro-el-table-column-line-clamp)}:root,:host{--vro-el-tags-gap: 8px;--vro-el-tags-input-width: 120px}.vro-el-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vro-el-tags-gap)}.vro-el-tags-tag,.vro-el-tags-button{flex:none}.vro-el-tags-input{width:var(--vro-el-tags-input-width)}.vro-el-tree{width:100%;min-width:0;box-sizing:border-box;-webkit-user-select:none;user-select:none}
|
|
1
|
+
@charset "UTF-8";:root,:host{--vro-el-divider-gap: 12px;--vro-el-divider-margin: 24px 0;--vro-el-divider-vertical-margin: 0 8px;--vro-el-divider-border-color: var(--el-border-color);--vro-el-divider-border-width: 1px;--vro-el-divider-border-style: solid;--vro-el-divider-content-color: var(--el-text-color-regular);--vro-el-divider-content-font-size: var(--el-font-size-base)}.vro-el-divider{display:flex;gap:var(--vro-el-divider-gap);align-items:center;width:100%;margin:var(--vro-el-divider-margin)}.vro-el-divider:before,.vro-el-divider:after{content:"";flex:1;border-top:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider.is-empty{gap:0}.vro-el-divider.is-horizontal.is-left:before,.vro-el-divider.is-horizontal.is-right:after{display:none}.vro-el-divider.is-vertical{display:inline-flex;flex-direction:column;width:auto;height:1em;margin:var(--vro-el-divider-vertical-margin);vertical-align:middle}.vro-el-divider.is-vertical:before,.vro-el-divider.is-vertical:after{border-top:0;border-left:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider-content{flex:none;color:var(--vro-el-divider-content-color);font-size:var(--vro-el-divider-content-font-size);line-height:1.5;white-space:nowrap;font-weight:700}:root,:host{--vro-el-file-upload-gap: 8px;--vro-el-file-upload-item-font-size: 14px;--vro-el-file-upload-item-line-height: 1.5;--vro-el-file-upload-link-color: var(--el-color-primary);--vro-el-file-upload-clear-gap: 10px;--vro-el-file-upload-clear-color: var(--el-color-danger);--vro-el-file-upload-clear-background: var(--el-fill-color-light)}.vro-el-file-upload-btn{position:relative}.vro-el-file-upload-btn input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.vro-el-file-upload-content{padding:0;margin:var(--vro-el-file-upload-gap) 0 0;list-style:none}.vro-el-file-upload-item{position:relative;box-sizing:border-box;display:flex;align-items:center;margin-top:var(--vro-el-file-upload-gap);font-size:var(--vro-el-file-upload-item-font-size);line-height:var(--vro-el-file-upload-item-line-height)}.vro-el-file-upload-item a{min-width:0;margin-right:var(--vro-el-file-upload-clear-gap);color:var(--vro-el-file-upload-link-color);text-decoration:underline;word-break:break-all}.vro-el-file-upload-clear{flex:none;color:var(--vro-el-file-upload-clear-color);background-color:var(--vro-el-file-upload-clear-background);cursor:pointer}:root,:host{--vro-el-image-placeholder-background: var(--el-fill-color-light);--vro-el-image-loading-color: var(--el-text-color-placeholder);--vro-el-image-loading-size: 16px;--vro-el-image-error-background: var(--el-fill-color-light);--vro-el-image-error-color: var(--el-text-color-placeholder);--vro-el-image-error-icon-size: 24px}.vro-el-image-placeholder,.vro-el-image-error{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.vro-el-image-placeholder{--vro-loading-color: var(--vro-el-image-loading-color);--vro-loading-size: var(--vro-el-image-loading-size);background-color:var(--vro-el-image-placeholder-background)}.vro-el-image-error{color:var(--vro-el-image-error-color);background-color:var(--vro-el-image-error-background)}.vro-el-image-error-icon{font-size:var(--vro-el-image-error-icon-size)}:root,:host{--vro-el-image-upload-gap: 10px;--vro-el-image-upload-item-size: 100px;--vro-el-image-upload-item-radius: 4px;--vro-el-image-upload-item-border-color: var(--el-border-color);--vro-el-image-upload-item-icon-size: 24px;--vro-el-image-upload-checkerboard-size: 8px;--vro-el-image-upload-clear-size: 20px;--vro-el-image-upload-clear-color: #fff;--vro-el-image-upload-clear-background: var(--el-color-danger)}.vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:calc(var(--vro-el-image-upload-gap) * -1)}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--vro-el-image-upload-item-size);height:var(--vro-el-image-upload-item-size);margin-top:var(--vro-el-image-upload-gap);margin-right:var(--vro-el-image-upload-gap);font-size:var(--vro-el-image-upload-item-icon-size);border:1px dashed var(--vro-el-image-upload-item-border-color);border-radius:var(--vro-el-image-upload-item-radius)}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:var(--vro-el-image-upload-checkerboard-size)!important;border-radius:var(--vro-el-image-upload-item-radius);transform:translateZ(0)}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--vro-el-image-upload-item-radius);opacity:0}.vro-el-image-upload-clear{position:absolute;top:-6px;right:-6px;color:var(--vro-el-image-upload-clear-color);font-size:var(--vro-el-image-upload-clear-size);background:var(--vro-el-image-upload-clear-background);border-radius:50%;cursor:pointer}:root,:host{--vro-el-schema-descs-label-color: var(--el-text-color-regular);--vro-el-schema-descs-content-color: var(--el-text-color-primary)}.vro-el-schema-descs{width:100%}.vro-el-schema-descs .el-descriptions__label{color:var(--vro-el-schema-descs-label-color)}.vro-el-schema-descs .el-descriptions__content{color:var(--vro-el-schema-descs-content-color);white-space:pre-wrap;word-break:break-word}:root,:host{--vro-el-schema-filter-padding: 0 16px 16px;--vro-el-schema-filter-background: var(--el-bg-color);--vro-el-schema-filter-col-margin-top: 16px}.vro-el-schema-filter{display:block;box-sizing:border-box;overflow:hidden;padding:var(--vro-el-schema-filter-padding);background-color:var(--vro-el-schema-filter-background)}.vro-el-schema-filter .el-form-item__label{display:flex;align-items:center;text-align:right;line-height:1.1;margin-bottom:0}.vro-el-schema-filter .el-form-item{margin-bottom:0}.vro-el-schema-filter .el-col{margin-top:var(--vro-el-schema-filter-col-margin-top)}.vro-el-schema-form{display:block;width:100%}.vro-el-schema-form .el-date-editor{--el-date-editor-width: 100%}.vro-el-schema-form .el-cascader,.vro-el-schema-form .el-input-number.is-controls-right{width:100%}:root,:host{--vro-el-schema-form-dialog-width: 520px}.vro-el-schema-form-dialog{--el-dialog-width: var(--vro-el-schema-form-dialog-width);width:var(--el-dialog-width)}:root,:host{--vro-el-schema-form-drawer-padding: 20px;--vro-el-schema-form-drawer-border-color: var(--el-border-color);--vro-el-schema-form-drawer-size: 520px}.vro-el-schema-form-drawer .el-drawer__header{margin-bottom:0;border-bottom:1px solid var(--vro-el-schema-form-drawer-border-color);padding:var(--vro-el-schema-form-drawer-padding)}.vro-el-schema-form-drawer .el-drawer__body{min-width:0;overflow-y:auto}.vro-el-schema-form-drawer .el-drawer__footer{padding:var(--vro-el-schema-form-drawer-padding);border-top:1px solid var(--vro-el-schema-form-drawer-border-color)}.vro-el-schema-form-drawer-footer{display:flex;justify-content:flex-end}:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 10px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: 12px;--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;min-height:inherit;font-size:14px}.vro-el-skeleton-state .el-button{margin-top:10px}.vro-el-skeleton-state .el-empty{--el-empty-description-margin-top: 8px;--el-empty-bottom-margin-top: 8px;--el-empty-image-width: 60px}.vro-el-skeleton-state.is-error{text-align:center;gap:8px}.vro-el-skeleton-state.is-error p{font-size:13px;color:var(--el-text-color-secondary)}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}:root,:host{--vro-el-table-gap: 16px;--vro-el-table-padding: 16px;--vro-el-table-inner-gap: var(--vro-el-table-gap)}.vro-el-table{display:flex;flex-direction:column;width:100%;box-sizing:border-box;gap:var(--vro-el-table-gap)}.vro-el-table .el-table-column--selection{line-height:normal}.vro-el-table .el-table__expand-icon{display:flex;align-items:center;justify-content:center}.vro-el-table-inner{flex:1;position:relative;background-color:var(--el-bg-color);padding:var(--vro-el-table-padding);display:flex;flex-direction:column;gap:var(--vro-el-table-inner-gap)}.vro-el-table-header{display:flex;align-items:center;flex-wrap:wrap}.vro-el-table-header h2{font-size:16px}.vro-el-table-actions{flex-shrink:0;margin-left:auto}.vro-el-table-content{flex:1}.vro-el-table-content .el-table{width:100%;--el-table-bg-color: transparent}.vro-el-table-content .el-table__header{--el-table-header-bg-color: var(--el-bg-color-page);--el-table-header-text-color: var(--el-text-color-primary)}.vro-el-table-content .el-table__body-wrapper .cell{line-height:1.4}.vro-el-table-content .el-table__body-wrapper strong{font-weight:700;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt{font-weight:700;margin-bottom:8px;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt:last-child{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper dl dd{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper dl dd:last-of-type{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper ul li{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper ul li:last-of-type{margin-bottom:0}.vro-el-table-pagination{justify-content:flex-end}:root,:host{--vro-el-table-actions-column-row-gap: 4px;--vro-el-table-actions-column-column-gap: 12px}.vro-el-table-actions-column-cell .cell{display:flex;flex-wrap:wrap;row-gap:var(--vro-el-table-actions-column-row-gap);column-gap:var(--vro-el-table-actions-column-column-gap)}.vro-el-table-actions-column-cell .cell>.el-button+.el-button{margin-left:0}.vro-el-table-actions-column-dropdown-action.is-primary{color:var(--el-color-primary)}.vro-el-table-actions-column-dropdown-action.is-success{color:var(--el-color-success)}.vro-el-table-actions-column-dropdown-action.is-warning{color:var(--el-color-warning)}.vro-el-table-actions-column-dropdown-action.is-danger{color:var(--el-color-danger)}.vro-el-table-actions-column-dropdown-action.is-info{color:var(--el-color-info)}:root,:host{--vro-el-table-column-gap: 4px;--vro-el-table-column-icon-size: 14px;--vro-el-table-column-line-clamp: 1}.vro-el-table-column-content{display:inline-flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:var(--vro-el-table-column-gap);vertical-align:middle}.vro-el-table-column-content.is-left{justify-content:flex-start}.vro-el-table-column-content.is-center{justify-content:center}.vro-el-table-column-content.is-right{justify-content:flex-end}.vro-el-table-column-content .vro-el-icon{flex:none;font-size:var(--vro-el-table-column-icon-size)}.vro-el-table-column-prefix,.vro-el-table-column-suffix{display:inline-flex;flex:none;min-width:0;align-items:center}.vro-el-table-column-text{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vro-el-table-column-text.is-line-clamp{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:var(--vro-el-table-column-line-clamp)}:root,:host{--vro-el-tags-gap: 8px;--vro-el-tags-input-width: 120px}.vro-el-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vro-el-tags-gap)}.vro-el-tags-tag,.vro-el-tags-button{flex:none}.vro-el-tags-input{width:var(--vro-el-tags-input-width)}.vro-el-tree{width:100%;min-width:0;box-sizing:border-box;-webkit-user-select:none;user-select:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,:host{--vro-el-divider-gap: 12px;--vro-el-divider-margin: 24px 0;--vro-el-divider-vertical-margin: 0 8px;--vro-el-divider-border-color: var(--el-border-color);--vro-el-divider-border-width: 1px;--vro-el-divider-border-style: solid;--vro-el-divider-content-color: var(--el-text-color-regular);--vro-el-divider-content-font-size: var(--el-font-size-base)}.vro-el-divider{display:flex;gap:var(--vro-el-divider-gap);align-items:center;width:100%;margin:var(--vro-el-divider-margin)}.vro-el-divider:before,.vro-el-divider:after{content:"";flex:1;border-top:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider.is-empty{gap:0}.vro-el-divider.is-horizontal.is-left:before,.vro-el-divider.is-horizontal.is-right:after{display:none}.vro-el-divider.is-vertical{display:inline-flex;flex-direction:column;width:auto;height:1em;margin:var(--vro-el-divider-vertical-margin);vertical-align:middle}.vro-el-divider.is-vertical:before,.vro-el-divider.is-vertical:after{border-top:0;border-left:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider-content{flex:none;color:var(--vro-el-divider-content-color);font-size:var(--vro-el-divider-content-font-size);line-height:1.5;white-space:nowrap}
|
|
1
|
+
:root,:host{--vro-el-divider-gap: 12px;--vro-el-divider-margin: 24px 0;--vro-el-divider-vertical-margin: 0 8px;--vro-el-divider-border-color: var(--el-border-color);--vro-el-divider-border-width: 1px;--vro-el-divider-border-style: solid;--vro-el-divider-content-color: var(--el-text-color-regular);--vro-el-divider-content-font-size: var(--el-font-size-base)}.vro-el-divider{display:flex;gap:var(--vro-el-divider-gap);align-items:center;width:100%;margin:var(--vro-el-divider-margin)}.vro-el-divider:before,.vro-el-divider:after{content:"";flex:1;border-top:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider.is-empty{gap:0}.vro-el-divider.is-horizontal.is-left:before,.vro-el-divider.is-horizontal.is-right:after{display:none}.vro-el-divider.is-vertical{display:inline-flex;flex-direction:column;width:auto;height:1em;margin:var(--vro-el-divider-vertical-margin);vertical-align:middle}.vro-el-divider.is-vertical:before,.vro-el-divider.is-vertical:after{border-top:0;border-left:var(--vro-el-divider-border-width) var(--vro-el-divider-border-style) var(--vro-el-divider-border-color)}.vro-el-divider-content{flex:none;color:var(--vro-el-divider-content-color);font-size:var(--vro-el-divider-content-font-size);line-height:1.5;white-space:nowrap;font-weight:700}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { withInstall as r } from "@vrojs/base";
|
|
2
2
|
import o from "./vro-el-schema-form.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { defineVroElSchemaForm as l } from "./defineVroElSchemaForm.js";
|
|
4
|
+
import { defineVroElSchemaFormCreateField as p } from "./defineVroElSchemaFormCreateField.js";
|
|
5
|
+
import { defineVroElSchemaFormFieldTrigger as c } from "./defineVroElSchemaFormFieldTrigger.js";
|
|
6
|
+
import { vroElSchemaFormProps as d } from "./types.js";
|
|
7
|
+
import { useVroElSchemaForm as x } from "./useVroElSchemaForm.js";
|
|
8
|
+
import { vroElSchemaFormFieldManager as S } from "./vroElSchemaFormFieldManager.js";
|
|
8
9
|
const a = r(o);
|
|
9
10
|
export {
|
|
10
11
|
a as VroElSchemaForm,
|
|
11
12
|
a as default,
|
|
12
|
-
|
|
13
|
-
p as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
l as defineVroElSchemaForm,
|
|
14
|
+
p as defineVroElSchemaFormCreateField,
|
|
15
|
+
c as defineVroElSchemaFormFieldTrigger,
|
|
16
|
+
x as useVroElSchemaForm,
|
|
17
|
+
S as vroElSchemaFormFieldManager,
|
|
18
|
+
d as vroElSchemaFormProps
|
|
17
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 10px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: 12px;--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;min-height:inherit;font-size:14px}.vro-el-skeleton-state .el-button{margin-top:10px}.vro-el-skeleton-state .el-empty{--el-empty-description-margin-top: 8px;--el-empty-bottom-margin-top: 8px;--el-empty-image-width: 60px}.vro-el-skeleton-state.is-error{gap:8px}.vro-el-skeleton-state.is-error p{font-size:13px;color:var(--el-text-color-secondary)}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}
|
|
1
|
+
:root,:host{--vro-el-skeleton-min-height: 240px;--vro-el-skeleton-color: var(--el-text-color-secondary);--vro-el-skeleton-description-margin-top: 10px;--vro-el-skeleton-description-color: var(--el-text-color-secondary);--vro-el-skeleton-description-font-size: 12px;--vro-el-skeleton-description-line-height: 1.5}.vro-el-skeleton{width:100%;min-height:var(--vro-el-skeleton-min-height)}.vro-el-skeleton-state{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;min-height:inherit;font-size:14px}.vro-el-skeleton-state .el-button{margin-top:10px}.vro-el-skeleton-state .el-empty{--el-empty-description-margin-top: 8px;--el-empty-bottom-margin-top: 8px;--el-empty-image-width: 60px}.vro-el-skeleton-state.is-error{text-align:center;gap:8px}.vro-el-skeleton-state.is-error p{font-size:13px;color:var(--el-text-color-secondary)}.vro-el-skeleton-loading{flex-direction:column;color:var(--vro-el-skeleton-color)}.vro-el-skeleton-description{margin:var(--vro-el-skeleton-description-margin-top) 0 0;color:var(--vro-el-skeleton-description-color);font-size:var(--vro-el-skeleton-description-font-size);line-height:var(--vro-el-skeleton-description-line-height);text-align:center}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as y, computed as g, createElementBlock as v, openBlock as p, normalizeStyle as B, renderSlot as i, createElementVNode as t, createVNode as a, unref as o, mergeProps as E, toDisplayString as
|
|
1
|
+
import { defineComponent as y, computed as g, createElementBlock as v, openBlock as p, normalizeStyle as B, renderSlot as i, createElementVNode as t, createVNode as a, unref as o, mergeProps as E, toDisplayString as s, withCtx as m, createTextVNode as d, createBlock as T, createCommentVNode as S } from "vue";
|
|
2
2
|
import { formatMessage as V } from "@daysnap/utils";
|
|
3
3
|
import { VroLoading as C } from "@vrojs/base";
|
|
4
4
|
import { ElButton as c, ElEmpty as D } from "element-plus";
|
|
5
5
|
import { useLocale as $ } from "../locale/useLocale.js";
|
|
6
|
-
import { vroElSkeletonProps as
|
|
7
|
-
const
|
|
6
|
+
import { vroElSkeletonProps as z } from "./types.js";
|
|
7
|
+
const H = { class: "vro-el-skeleton-state vro-el-skeleton-loading" }, N = { class: "vro-el-skeleton-description" }, P = { class: "vro-el-skeleton-state is-error" }, w = { class: "vro-el-skeleton-state" }, A = /* @__PURE__ */ y({
|
|
8
8
|
name: "VroElSkeleton",
|
|
9
9
|
__name: "vro-el-skeleton",
|
|
10
|
-
props:
|
|
10
|
+
props: z,
|
|
11
11
|
emits: ["refresh"],
|
|
12
12
|
setup(k, { emit: f }) {
|
|
13
|
-
const u = f,
|
|
14
|
-
if (
|
|
13
|
+
const u = f, n = k, { t: r } = $(), h = g(() => {
|
|
14
|
+
if (n.minHeight !== void 0)
|
|
15
15
|
return {
|
|
16
|
-
"--vro-el-skeleton-min-height": typeof
|
|
16
|
+
"--vro-el-skeleton-min-height": typeof n.minHeight == "number" ? `${n.minHeight}px` : n.minHeight
|
|
17
17
|
};
|
|
18
18
|
}), l = () => {
|
|
19
19
|
u("refresh");
|
|
@@ -23,27 +23,28 @@ const N = { class: "vro-el-skeleton-state vro-el-skeleton-loading" }, P = { clas
|
|
|
23
23
|
style: B(h.value)
|
|
24
24
|
}, [
|
|
25
25
|
e.loading ? i(e.$slots, "loading", { key: 0 }, () => [
|
|
26
|
-
t("div",
|
|
26
|
+
t("div", H, [
|
|
27
27
|
a(o(C), E({
|
|
28
28
|
type: "circular",
|
|
29
29
|
size: "24"
|
|
30
30
|
}, e.loadingProps), null, 16),
|
|
31
|
-
t("p",
|
|
31
|
+
t("p", N, s(e.loadingDescription ?? o(r)("skeleton.loadingDescription")), 1)
|
|
32
32
|
])
|
|
33
33
|
]) : e.error ? i(e.$slots, "error", {
|
|
34
34
|
key: 1,
|
|
35
35
|
error: e.error,
|
|
36
36
|
refresh: l
|
|
37
37
|
}, () => [
|
|
38
|
-
t("div",
|
|
39
|
-
t("strong", null,
|
|
40
|
-
t("p", null,
|
|
38
|
+
t("div", P, [
|
|
39
|
+
t("strong", null, s(e.errorTitle ?? o(r)("skeleton.errorTitle")), 1),
|
|
40
|
+
t("p", null, s(o(V)(e.error)), 1),
|
|
41
41
|
a(o(c), {
|
|
42
|
+
size: "default",
|
|
42
43
|
plain: "",
|
|
43
44
|
onClick: l
|
|
44
45
|
}, {
|
|
45
46
|
default: m(() => [
|
|
46
|
-
d(
|
|
47
|
+
d(s(e.errorBtnText ?? o(r)("skeleton.errorBtnText")), 1)
|
|
47
48
|
]),
|
|
48
49
|
_: 1
|
|
49
50
|
})
|
|
@@ -52,18 +53,19 @@ const N = { class: "vro-el-skeleton-state vro-el-skeleton-loading" }, P = { clas
|
|
|
52
53
|
key: 2,
|
|
53
54
|
refresh: l
|
|
54
55
|
}, () => [
|
|
55
|
-
t("div",
|
|
56
|
+
t("div", w, [
|
|
56
57
|
a(o(D), {
|
|
57
58
|
description: e.emptyDescription ?? o(r)("skeleton.emptyDescription")
|
|
58
59
|
}, {
|
|
59
60
|
default: m(() => [
|
|
60
61
|
e.showEmptyBtn ? (p(), T(o(c), {
|
|
61
62
|
key: 0,
|
|
63
|
+
size: "default",
|
|
62
64
|
plain: "",
|
|
63
65
|
onClick: l
|
|
64
66
|
}, {
|
|
65
67
|
default: m(() => [
|
|
66
|
-
d(
|
|
68
|
+
d(s(e.emptyBtnText ?? o(r)("skeleton.emptyBtnText")), 1)
|
|
67
69
|
]),
|
|
68
70
|
_: 1
|
|
69
71
|
})) : S("", !0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrojs/element-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "vrojs ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vite": "^7.1.12",
|
|
54
54
|
"vite-plugin-dts": "^4.5.4",
|
|
55
55
|
"vue": "^3.5.22",
|
|
56
|
-
"@vrojs/
|
|
57
|
-
"@vrojs/
|
|
56
|
+
"@vrojs/base": "0.0.12",
|
|
57
|
+
"@vrojs/use": "0.0.7"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "npm run clean && vite build",
|