vueless 0.0.280 → 0.0.281
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/package.json +1 -1
- package/service.platform/index.js +45 -0
- package/service.ui/index.js +135 -233
- package/ui.button/index.vue +12 -12
- package/ui.button-link/index.vue +17 -17
- package/ui.button-toggle/index.vue +10 -10
- package/ui.button-toggle-item/index.vue +9 -9
- package/ui.container-accordion/index.vue +2 -2
- package/ui.container-card/index.vue +3 -3
- package/ui.container-col/index.vue +6 -6
- package/ui.container-divider/index.vue +12 -12
- package/ui.container-group/index.vue +4 -4
- package/ui.container-modal/index.vue +9 -9
- package/ui.container-modal-confirm/index.stories.js +5 -3
- package/ui.container-modal-confirm/index.vue +5 -5
- package/ui.container-page/composables/attrs.composable.js +2 -1
- package/ui.container-page/index.vue +6 -6
- package/ui.container-row/index.vue +7 -7
- package/ui.data-list/index.vue +7 -7
- package/ui.data-table/index.vue +5 -5
- package/ui.dropdown-badge/index.vue +10 -10
- package/ui.dropdown-button/index.vue +13 -13
- package/ui.dropdown-link/index.vue +12 -12
- package/ui.dropdown-list/index.vue +7 -6
- package/ui.form-calendar/index.vue +7 -7
- package/ui.form-checkbox/index.vue +6 -6
- package/ui.form-checkbox-group/index.vue +4 -4
- package/ui.form-checkbox-multi-state/index.vue +5 -5
- package/ui.form-color-picker/index.vue +5 -5
- package/ui.form-date-picker/index.vue +11 -11
- package/ui.form-date-picker-range/index.vue +9 -9
- package/ui.form-input/index.vue +7 -8
- package/ui.form-input-file/index.vue +7 -7
- package/ui.form-input-money/index.vue +12 -12
- package/ui.form-input-number/index.vue +2 -2
- package/ui.form-input-rating/index.vue +6 -6
- package/ui.form-input-search/index.vue +6 -6
- package/ui.form-label/index.vue +5 -5
- package/ui.form-radio/index.vue +6 -6
- package/ui.form-radio-group/index.vue +4 -4
- package/ui.form-select/index.vue +14 -13
- package/ui.form-switch/index.vue +7 -7
- package/ui.form-textarea/index.vue +8 -8
- package/ui.image-avatar/index.vue +6 -6
- package/ui.image-icon/index.vue +6 -6
- package/ui.loader/index.vue +4 -4
- package/ui.loader-rendering/index.vue +2 -2
- package/ui.loader-top/index.vue +3 -2
- package/ui.navigation-pagination/index.vue +11 -11
- package/ui.navigation-progress/index.vue +5 -5
- package/ui.navigation-tab/index.vue +3 -3
- package/ui.navigation-tabs/index.vue +3 -3
- package/ui.other-dot/index.vue +3 -3
- package/ui.text-alert/index.vue +7 -7
- package/ui.text-badge/index.vue +5 -5
- package/ui.text-block/index.vue +4 -4
- package/ui.text-empty/index.vue +2 -2
- package/ui.text-file/index.vue +2 -2
- package/ui.text-files/index.vue +3 -3
- package/ui.text-header/index.vue +7 -7
- package/ui.text-money/index.vue +12 -12
- package/ui.text-notify/index.vue +4 -4
- package/web-types.json +2 -2
|
@@ -86,7 +86,7 @@ import ULink from "../ui.button-link/index.vue";
|
|
|
86
86
|
import UIcon from "../ui.image-icon/index.vue";
|
|
87
87
|
import UHeader from "../ui.text-header/index.vue";
|
|
88
88
|
|
|
89
|
-
import
|
|
89
|
+
import { getDefault } from "../service.ui";
|
|
90
90
|
|
|
91
91
|
import defaultConfig from "./configs/default.config";
|
|
92
92
|
import { UPage } from "./constants";
|
|
@@ -104,7 +104,7 @@ const props = defineProps({
|
|
|
104
104
|
*/
|
|
105
105
|
width: {
|
|
106
106
|
type: String,
|
|
107
|
-
default:
|
|
107
|
+
default: getDefault(defaultConfig, UPage).width,
|
|
108
108
|
},
|
|
109
109
|
|
|
110
110
|
/**
|
|
@@ -121,7 +121,7 @@ const props = defineProps({
|
|
|
121
121
|
*/
|
|
122
122
|
titleSize: {
|
|
123
123
|
type: String,
|
|
124
|
-
default:
|
|
124
|
+
default: getDefault(defaultConfig, UPage).titleSize,
|
|
125
125
|
},
|
|
126
126
|
|
|
127
127
|
/**
|
|
@@ -145,7 +145,7 @@ const props = defineProps({
|
|
|
145
145
|
*/
|
|
146
146
|
gray: {
|
|
147
147
|
type: Boolean,
|
|
148
|
-
default:
|
|
148
|
+
default: getDefault(defaultConfig, UPage).gray,
|
|
149
149
|
},
|
|
150
150
|
|
|
151
151
|
/**
|
|
@@ -153,7 +153,7 @@ const props = defineProps({
|
|
|
153
153
|
*/
|
|
154
154
|
mobileFooterReverse: {
|
|
155
155
|
type: Boolean,
|
|
156
|
-
default:
|
|
156
|
+
default: getDefault(defaultConfig, UPage).mobileFooterReverse,
|
|
157
157
|
},
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -161,7 +161,7 @@ const props = defineProps({
|
|
|
161
161
|
*/
|
|
162
162
|
fixedRounding: {
|
|
163
163
|
type: Boolean,
|
|
164
|
-
default:
|
|
164
|
+
default: getDefault(defaultConfig, UPage).fixedRounding,
|
|
165
165
|
},
|
|
166
166
|
|
|
167
167
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import { getDefault } from "../service.ui";
|
|
10
10
|
|
|
11
11
|
import { URow } from "./constants";
|
|
12
12
|
import defaultConfig from "./configs/default.config";
|
|
@@ -22,7 +22,7 @@ const props = defineProps({
|
|
|
22
22
|
*/
|
|
23
23
|
gap: {
|
|
24
24
|
type: String,
|
|
25
|
-
default:
|
|
25
|
+
default: getDefault(defaultConfig, URow).gap,
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -31,7 +31,7 @@ const props = defineProps({
|
|
|
31
31
|
*/
|
|
32
32
|
align: {
|
|
33
33
|
type: String,
|
|
34
|
-
default:
|
|
34
|
+
default: getDefault(defaultConfig, URow).align,
|
|
35
35
|
},
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -40,7 +40,7 @@ const props = defineProps({
|
|
|
40
40
|
*/
|
|
41
41
|
justify: {
|
|
42
42
|
type: String,
|
|
43
|
-
default:
|
|
43
|
+
default: getDefault(defaultConfig, URow).justify,
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -48,7 +48,7 @@ const props = defineProps({
|
|
|
48
48
|
*/
|
|
49
49
|
reverse: {
|
|
50
50
|
type: Boolean,
|
|
51
|
-
default:
|
|
51
|
+
default: getDefault(defaultConfig, URow).reverse,
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -56,7 +56,7 @@ const props = defineProps({
|
|
|
56
56
|
*/
|
|
57
57
|
wrap: {
|
|
58
58
|
type: Boolean,
|
|
59
|
-
default:
|
|
59
|
+
default: getDefault(defaultConfig, URow).wrap,
|
|
60
60
|
},
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -64,7 +64,7 @@ const props = defineProps({
|
|
|
64
64
|
*/
|
|
65
65
|
noMobile: {
|
|
66
66
|
type: Boolean,
|
|
67
|
-
default:
|
|
67
|
+
default: getDefault(defaultConfig, URow).noMobile,
|
|
68
68
|
},
|
|
69
69
|
|
|
70
70
|
/**
|
package/ui.data-list/index.vue
CHANGED
|
@@ -123,7 +123,7 @@ import { merge } from "lodash-es";
|
|
|
123
123
|
import UIcon from "../ui.image-icon";
|
|
124
124
|
import UEmpty from "../ui.text-empty";
|
|
125
125
|
import UDivider from "../ui.container-divider";
|
|
126
|
-
import
|
|
126
|
+
import { getDefault } from "../service.ui";
|
|
127
127
|
|
|
128
128
|
import { UDataList as UDataListName } from "./constants";
|
|
129
129
|
import defaultConfig from "./configs/default.config";
|
|
@@ -156,7 +156,7 @@ const props = defineProps({
|
|
|
156
156
|
*/
|
|
157
157
|
size: {
|
|
158
158
|
type: String,
|
|
159
|
-
default:
|
|
159
|
+
default: getDefault(defaultConfig, UDataListName).size,
|
|
160
160
|
},
|
|
161
161
|
|
|
162
162
|
/**
|
|
@@ -164,7 +164,7 @@ const props = defineProps({
|
|
|
164
164
|
*/
|
|
165
165
|
labelKey: {
|
|
166
166
|
type: String,
|
|
167
|
-
default:
|
|
167
|
+
default: getDefault(defaultConfig, UDataListName).labelKey,
|
|
168
168
|
},
|
|
169
169
|
|
|
170
170
|
/**
|
|
@@ -172,7 +172,7 @@ const props = defineProps({
|
|
|
172
172
|
*/
|
|
173
173
|
valueKey: {
|
|
174
174
|
type: String,
|
|
175
|
-
default:
|
|
175
|
+
default: getDefault(defaultConfig, UDataListName).valueKey,
|
|
176
176
|
},
|
|
177
177
|
|
|
178
178
|
/**
|
|
@@ -196,7 +196,7 @@ const props = defineProps({
|
|
|
196
196
|
*/
|
|
197
197
|
animationDuration: {
|
|
198
198
|
type: Number,
|
|
199
|
-
default:
|
|
199
|
+
default: getDefault(defaultConfig, UDataListName).animationDuration,
|
|
200
200
|
},
|
|
201
201
|
|
|
202
202
|
/**
|
|
@@ -204,7 +204,7 @@ const props = defineProps({
|
|
|
204
204
|
*/
|
|
205
205
|
nesting: {
|
|
206
206
|
type: Boolean,
|
|
207
|
-
default:
|
|
207
|
+
default: getDefault(defaultConfig, UDataListName).nesting,
|
|
208
208
|
},
|
|
209
209
|
|
|
210
210
|
/**
|
|
@@ -212,7 +212,7 @@ const props = defineProps({
|
|
|
212
212
|
*/
|
|
213
213
|
upperlined: {
|
|
214
214
|
type: Boolean,
|
|
215
|
-
default:
|
|
215
|
+
default: getDefault(defaultConfig, UDataListName).upperlined,
|
|
216
216
|
},
|
|
217
217
|
|
|
218
218
|
/**
|
package/ui.data-table/index.vue
CHANGED
|
@@ -280,7 +280,7 @@ import UCheckbox from "../ui.form-checkbox";
|
|
|
280
280
|
import ULoaderTop from "../ui.loader-top";
|
|
281
281
|
import TableRow from "./components/TableRow";
|
|
282
282
|
|
|
283
|
-
import
|
|
283
|
+
import { getDefault } from "../service.ui";
|
|
284
284
|
|
|
285
285
|
import defaultConfig from "./configs/default.config";
|
|
286
286
|
import {
|
|
@@ -330,7 +330,7 @@ const props = defineProps({
|
|
|
330
330
|
*/
|
|
331
331
|
selectable: {
|
|
332
332
|
type: Boolean,
|
|
333
|
-
default:
|
|
333
|
+
default: getDefault(defaultConfig, UTable).selectable,
|
|
334
334
|
},
|
|
335
335
|
|
|
336
336
|
/**
|
|
@@ -338,7 +338,7 @@ const props = defineProps({
|
|
|
338
338
|
*/
|
|
339
339
|
compact: {
|
|
340
340
|
type: Boolean,
|
|
341
|
-
default:
|
|
341
|
+
default: getDefault(defaultConfig, UTable).compact,
|
|
342
342
|
},
|
|
343
343
|
|
|
344
344
|
/**
|
|
@@ -346,7 +346,7 @@ const props = defineProps({
|
|
|
346
346
|
*/
|
|
347
347
|
stickyHeader: {
|
|
348
348
|
type: Boolean,
|
|
349
|
-
default:
|
|
349
|
+
default: getDefault(defaultConfig, UTable).stickyHeader,
|
|
350
350
|
},
|
|
351
351
|
|
|
352
352
|
/**
|
|
@@ -354,7 +354,7 @@ const props = defineProps({
|
|
|
354
354
|
*/
|
|
355
355
|
stickyFooter: {
|
|
356
356
|
type: Boolean,
|
|
357
|
-
default:
|
|
357
|
+
default: getDefault(defaultConfig, UTable).stickyFooter,
|
|
358
358
|
},
|
|
359
359
|
|
|
360
360
|
/**
|
|
@@ -54,7 +54,7 @@ import UIcon from "../ui.image-icon";
|
|
|
54
54
|
import UBadge from "../ui.text-badge";
|
|
55
55
|
import UDropdownList from "../ui.dropdown-list";
|
|
56
56
|
|
|
57
|
-
import
|
|
57
|
+
import { getRandomId, getDefault } from "../service.ui";
|
|
58
58
|
|
|
59
59
|
import vClickOutside from "../directive.clickOutside";
|
|
60
60
|
|
|
@@ -80,7 +80,7 @@ const props = defineProps({
|
|
|
80
80
|
*/
|
|
81
81
|
variant: {
|
|
82
82
|
type: String,
|
|
83
|
-
default:
|
|
83
|
+
default: getDefault(defaultConfig, UDropdownBadge).variant,
|
|
84
84
|
},
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -89,7 +89,7 @@ const props = defineProps({
|
|
|
89
89
|
*/
|
|
90
90
|
color: {
|
|
91
91
|
type: String,
|
|
92
|
-
default:
|
|
92
|
+
default: getDefault(defaultConfig, UDropdownBadge).color,
|
|
93
93
|
},
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -98,7 +98,7 @@ const props = defineProps({
|
|
|
98
98
|
*/
|
|
99
99
|
size: {
|
|
100
100
|
type: String,
|
|
101
|
-
default:
|
|
101
|
+
default: getDefault(defaultConfig, UDropdownBadge).size,
|
|
102
102
|
},
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -107,7 +107,7 @@ const props = defineProps({
|
|
|
107
107
|
*/
|
|
108
108
|
weight: {
|
|
109
109
|
type: String,
|
|
110
|
-
default:
|
|
110
|
+
default: getDefault(defaultConfig, UDropdownBadge).weight,
|
|
111
111
|
},
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -115,7 +115,7 @@ const props = defineProps({
|
|
|
115
115
|
*/
|
|
116
116
|
noIcon: {
|
|
117
117
|
type: Boolean,
|
|
118
|
-
default:
|
|
118
|
+
default: getDefault(defaultConfig, UDropdownBadge).noIcon,
|
|
119
119
|
},
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -131,7 +131,7 @@ const props = defineProps({
|
|
|
131
131
|
*/
|
|
132
132
|
labelKey: {
|
|
133
133
|
type: String,
|
|
134
|
-
default:
|
|
134
|
+
default: getDefault(defaultConfig, UDropdownBadge).labelKey,
|
|
135
135
|
},
|
|
136
136
|
|
|
137
137
|
/**
|
|
@@ -139,7 +139,7 @@ const props = defineProps({
|
|
|
139
139
|
*/
|
|
140
140
|
valueKey: {
|
|
141
141
|
type: String,
|
|
142
|
-
default:
|
|
142
|
+
default: getDefault(defaultConfig, UDropdownBadge).valueKey,
|
|
143
143
|
},
|
|
144
144
|
|
|
145
145
|
/**
|
|
@@ -148,7 +148,7 @@ const props = defineProps({
|
|
|
148
148
|
*/
|
|
149
149
|
listYPosition: {
|
|
150
150
|
type: String,
|
|
151
|
-
default:
|
|
151
|
+
default: getDefault(defaultConfig, UDropdownBadge).listYPosition,
|
|
152
152
|
},
|
|
153
153
|
|
|
154
154
|
/**
|
|
@@ -157,7 +157,7 @@ const props = defineProps({
|
|
|
157
157
|
*/
|
|
158
158
|
listXPosition: {
|
|
159
159
|
type: String,
|
|
160
|
-
default:
|
|
160
|
+
default: getDefault(defaultConfig, UDropdownBadge).listXPosition,
|
|
161
161
|
},
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -58,7 +58,7 @@ import UIcon from "../ui.image-icon";
|
|
|
58
58
|
import UButton from "../ui.button";
|
|
59
59
|
import UDropdownList from "../ui.dropdown-list";
|
|
60
60
|
|
|
61
|
-
import
|
|
61
|
+
import { getRandomId, getDefault } from "../service.ui";
|
|
62
62
|
|
|
63
63
|
import vClickOutside from "../directive.clickOutside";
|
|
64
64
|
|
|
@@ -92,7 +92,7 @@ const props = defineProps({
|
|
|
92
92
|
*/
|
|
93
93
|
variant: {
|
|
94
94
|
type: String,
|
|
95
|
-
default:
|
|
95
|
+
default: getDefault(defaultConfig, UDropdownButton).variant,
|
|
96
96
|
},
|
|
97
97
|
|
|
98
98
|
/**
|
|
@@ -100,7 +100,7 @@ const props = defineProps({
|
|
|
100
100
|
*/
|
|
101
101
|
filled: {
|
|
102
102
|
type: Boolean,
|
|
103
|
-
default:
|
|
103
|
+
default: getDefault(defaultConfig, UDropdownButton).filled,
|
|
104
104
|
},
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -109,7 +109,7 @@ const props = defineProps({
|
|
|
109
109
|
*/
|
|
110
110
|
color: {
|
|
111
111
|
type: String,
|
|
112
|
-
default:
|
|
112
|
+
default: getDefault(defaultConfig, UDropdownButton).color,
|
|
113
113
|
},
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -118,7 +118,7 @@ const props = defineProps({
|
|
|
118
118
|
*/
|
|
119
119
|
size: {
|
|
120
120
|
type: String,
|
|
121
|
-
default:
|
|
121
|
+
default: getDefault(defaultConfig, UDropdownButton).size,
|
|
122
122
|
},
|
|
123
123
|
|
|
124
124
|
/**
|
|
@@ -126,7 +126,7 @@ const props = defineProps({
|
|
|
126
126
|
*/
|
|
127
127
|
pill: {
|
|
128
128
|
type: Boolean,
|
|
129
|
-
default:
|
|
129
|
+
default: getDefault(defaultConfig, UDropdownButton).pill,
|
|
130
130
|
},
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -134,7 +134,7 @@ const props = defineProps({
|
|
|
134
134
|
*/
|
|
135
135
|
square: {
|
|
136
136
|
type: Boolean,
|
|
137
|
-
default:
|
|
137
|
+
default: getDefault(defaultConfig, UDropdownButton).square,
|
|
138
138
|
},
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -142,7 +142,7 @@ const props = defineProps({
|
|
|
142
142
|
*/
|
|
143
143
|
disabled: {
|
|
144
144
|
type: Boolean,
|
|
145
|
-
default:
|
|
145
|
+
default: getDefault(defaultConfig, UDropdownButton).disabled,
|
|
146
146
|
},
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -150,7 +150,7 @@ const props = defineProps({
|
|
|
150
150
|
*/
|
|
151
151
|
noIcon: {
|
|
152
152
|
type: Boolean,
|
|
153
|
-
default:
|
|
153
|
+
default: getDefault(defaultConfig, UDropdownButton).noIcon,
|
|
154
154
|
},
|
|
155
155
|
|
|
156
156
|
/**
|
|
@@ -166,7 +166,7 @@ const props = defineProps({
|
|
|
166
166
|
*/
|
|
167
167
|
labelKey: {
|
|
168
168
|
type: String,
|
|
169
|
-
default:
|
|
169
|
+
default: getDefault(defaultConfig, UDropdownButton).labelKey,
|
|
170
170
|
},
|
|
171
171
|
|
|
172
172
|
/**
|
|
@@ -174,7 +174,7 @@ const props = defineProps({
|
|
|
174
174
|
*/
|
|
175
175
|
valueKey: {
|
|
176
176
|
type: String,
|
|
177
|
-
default:
|
|
177
|
+
default: getDefault(defaultConfig, UDropdownButton).valueKey,
|
|
178
178
|
},
|
|
179
179
|
|
|
180
180
|
/**
|
|
@@ -183,7 +183,7 @@ const props = defineProps({
|
|
|
183
183
|
*/
|
|
184
184
|
listYPosition: {
|
|
185
185
|
type: String,
|
|
186
|
-
default:
|
|
186
|
+
default: getDefault(defaultConfig, UDropdownButton).listYPosition,
|
|
187
187
|
},
|
|
188
188
|
|
|
189
189
|
/**
|
|
@@ -192,7 +192,7 @@ const props = defineProps({
|
|
|
192
192
|
*/
|
|
193
193
|
listXPosition: {
|
|
194
194
|
type: String,
|
|
195
|
-
default:
|
|
195
|
+
default: getDefault(defaultConfig, UDropdownButton).listXPosition,
|
|
196
196
|
},
|
|
197
197
|
|
|
198
198
|
/**
|
|
@@ -60,7 +60,7 @@ import UIcon from "../ui.image-icon";
|
|
|
60
60
|
import ULink from "../ui.button-link";
|
|
61
61
|
import UDropdownList from "../ui.dropdown-list";
|
|
62
62
|
|
|
63
|
-
import
|
|
63
|
+
import { getRandomId, getDefault } from "../service.ui";
|
|
64
64
|
|
|
65
65
|
import vClickOutside from "../directive.clickOutside";
|
|
66
66
|
|
|
@@ -87,7 +87,7 @@ const props = defineProps({
|
|
|
87
87
|
*/
|
|
88
88
|
color: {
|
|
89
89
|
type: String,
|
|
90
|
-
default:
|
|
90
|
+
default: getDefault(defaultConfig, UDropdownLink).color,
|
|
91
91
|
},
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -96,7 +96,7 @@ const props = defineProps({
|
|
|
96
96
|
*/
|
|
97
97
|
size: {
|
|
98
98
|
type: String,
|
|
99
|
-
default:
|
|
99
|
+
default: getDefault(defaultConfig, UDropdownLink).size,
|
|
100
100
|
},
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -104,7 +104,7 @@ const props = defineProps({
|
|
|
104
104
|
*/
|
|
105
105
|
underlined: {
|
|
106
106
|
type: Boolean,
|
|
107
|
-
default:
|
|
107
|
+
default: getDefault(defaultConfig, UDropdownLink).underlined,
|
|
108
108
|
},
|
|
109
109
|
|
|
110
110
|
/**
|
|
@@ -112,7 +112,7 @@ const props = defineProps({
|
|
|
112
112
|
*/
|
|
113
113
|
dashed: {
|
|
114
114
|
type: Boolean,
|
|
115
|
-
default:
|
|
115
|
+
default: getDefault(defaultConfig, UDropdownLink).dashed,
|
|
116
116
|
},
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -120,7 +120,7 @@ const props = defineProps({
|
|
|
120
120
|
*/
|
|
121
121
|
disabled: {
|
|
122
122
|
type: Boolean,
|
|
123
|
-
default:
|
|
123
|
+
default: getDefault(defaultConfig, UDropdownLink).disabled,
|
|
124
124
|
},
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -128,7 +128,7 @@ const props = defineProps({
|
|
|
128
128
|
*/
|
|
129
129
|
noRing: {
|
|
130
130
|
type: Boolean,
|
|
131
|
-
default:
|
|
131
|
+
default: getDefault(defaultConfig, UDropdownLink).noRing,
|
|
132
132
|
},
|
|
133
133
|
|
|
134
134
|
/**
|
|
@@ -136,7 +136,7 @@ const props = defineProps({
|
|
|
136
136
|
*/
|
|
137
137
|
noIcon: {
|
|
138
138
|
type: Boolean,
|
|
139
|
-
default:
|
|
139
|
+
default: getDefault(defaultConfig, UDropdownLink).noIcon,
|
|
140
140
|
},
|
|
141
141
|
|
|
142
142
|
/**
|
|
@@ -152,7 +152,7 @@ const props = defineProps({
|
|
|
152
152
|
*/
|
|
153
153
|
labelKey: {
|
|
154
154
|
type: String,
|
|
155
|
-
default:
|
|
155
|
+
default: getDefault(defaultConfig, UDropdownButton).labelKey,
|
|
156
156
|
},
|
|
157
157
|
|
|
158
158
|
/**
|
|
@@ -160,7 +160,7 @@ const props = defineProps({
|
|
|
160
160
|
*/
|
|
161
161
|
valueKey: {
|
|
162
162
|
type: String,
|
|
163
|
-
default:
|
|
163
|
+
default: getDefault(defaultConfig, UDropdownButton).valueKey,
|
|
164
164
|
},
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -169,7 +169,7 @@ const props = defineProps({
|
|
|
169
169
|
*/
|
|
170
170
|
listYPosition: {
|
|
171
171
|
type: String,
|
|
172
|
-
default:
|
|
172
|
+
default: getDefault(defaultConfig, UDropdownLink).listYPosition,
|
|
173
173
|
},
|
|
174
174
|
|
|
175
175
|
/**
|
|
@@ -178,7 +178,7 @@ const props = defineProps({
|
|
|
178
178
|
*/
|
|
179
179
|
listXPosition: {
|
|
180
180
|
type: String,
|
|
181
|
-
default:
|
|
181
|
+
default: getDefault(defaultConfig, UDropdownLink).listXPosition,
|
|
182
182
|
},
|
|
183
183
|
|
|
184
184
|
/**
|
|
@@ -102,7 +102,8 @@ import { merge } from "lodash-es";
|
|
|
102
102
|
import UIcon from "../ui.image-icon";
|
|
103
103
|
import UButton from "../ui.button";
|
|
104
104
|
|
|
105
|
-
import
|
|
105
|
+
import { getRandomId, getDefault } from "../service.ui";
|
|
106
|
+
import { isMac } from "../service.platform";
|
|
106
107
|
|
|
107
108
|
import usePointer from "./composables/usePointer";
|
|
108
109
|
import useAttrs from "./composables/attrs.composable";
|
|
@@ -131,7 +132,7 @@ const props = defineProps({
|
|
|
131
132
|
*/
|
|
132
133
|
labelKey: {
|
|
133
134
|
type: String,
|
|
134
|
-
default:
|
|
135
|
+
default: getDefault(defaultConfig, UDropdownList).valueKey,
|
|
135
136
|
},
|
|
136
137
|
|
|
137
138
|
/**
|
|
@@ -139,7 +140,7 @@ const props = defineProps({
|
|
|
139
140
|
*/
|
|
140
141
|
valueKey: {
|
|
141
142
|
type: String,
|
|
142
|
-
default:
|
|
143
|
+
default: getDefault(defaultConfig, UDropdownList).valueKey,
|
|
143
144
|
},
|
|
144
145
|
|
|
145
146
|
/**
|
|
@@ -171,7 +172,7 @@ const props = defineProps({
|
|
|
171
172
|
*/
|
|
172
173
|
disabled: {
|
|
173
174
|
type: Boolean,
|
|
174
|
-
default:
|
|
175
|
+
default: getDefault(defaultConfig, UDropdownList).disabled,
|
|
175
176
|
},
|
|
176
177
|
|
|
177
178
|
/**
|
|
@@ -180,7 +181,7 @@ const props = defineProps({
|
|
|
180
181
|
*/
|
|
181
182
|
size: {
|
|
182
183
|
type: String,
|
|
183
|
-
default:
|
|
184
|
+
default: getDefault(defaultConfig, UDropdownList).size,
|
|
184
185
|
},
|
|
185
186
|
|
|
186
187
|
/**
|
|
@@ -188,7 +189,7 @@ const props = defineProps({
|
|
|
188
189
|
*/
|
|
189
190
|
visibleOptions: {
|
|
190
191
|
type: Number,
|
|
191
|
-
default:
|
|
192
|
+
default: getDefault(defaultConfig, UDropdownList).visibleOptions,
|
|
192
193
|
},
|
|
193
194
|
|
|
194
195
|
/**
|
|
@@ -134,7 +134,7 @@ import { computed, onMounted, ref, watch } from "vue";
|
|
|
134
134
|
import { merge } from "lodash-es";
|
|
135
135
|
|
|
136
136
|
import UButton from "../ui.button";
|
|
137
|
-
import
|
|
137
|
+
import { getDefault } from "../service.ui";
|
|
138
138
|
|
|
139
139
|
import {
|
|
140
140
|
parseDate,
|
|
@@ -200,7 +200,7 @@ const props = defineProps({
|
|
|
200
200
|
*/
|
|
201
201
|
range: {
|
|
202
202
|
type: Boolean,
|
|
203
|
-
default:
|
|
203
|
+
default: getDefault(defaultConfig, UCalendar).range,
|
|
204
204
|
},
|
|
205
205
|
|
|
206
206
|
/**
|
|
@@ -208,7 +208,7 @@ const props = defineProps({
|
|
|
208
208
|
*/
|
|
209
209
|
timepicker: {
|
|
210
210
|
type: Boolean,
|
|
211
|
-
default:
|
|
211
|
+
default: getDefault(defaultConfig, UCalendar).timepicker,
|
|
212
212
|
},
|
|
213
213
|
|
|
214
214
|
/**
|
|
@@ -216,7 +216,7 @@ const props = defineProps({
|
|
|
216
216
|
*/
|
|
217
217
|
dateFormat: {
|
|
218
218
|
type: String,
|
|
219
|
-
default:
|
|
219
|
+
default: getDefault(defaultConfig, UCalendar).dateFormat,
|
|
220
220
|
},
|
|
221
221
|
|
|
222
222
|
/**
|
|
@@ -224,7 +224,7 @@ const props = defineProps({
|
|
|
224
224
|
*/
|
|
225
225
|
userFormat: {
|
|
226
226
|
type: String,
|
|
227
|
-
default:
|
|
227
|
+
default: getDefault(defaultConfig, UCalendar).userFormat,
|
|
228
228
|
},
|
|
229
229
|
|
|
230
230
|
/**
|
|
@@ -232,7 +232,7 @@ const props = defineProps({
|
|
|
232
232
|
*/
|
|
233
233
|
minDate: {
|
|
234
234
|
type: [Date, String],
|
|
235
|
-
default:
|
|
235
|
+
default: getDefault(defaultConfig, UCalendar).minDate,
|
|
236
236
|
},
|
|
237
237
|
|
|
238
238
|
/**
|
|
@@ -240,7 +240,7 @@ const props = defineProps({
|
|
|
240
240
|
*/
|
|
241
241
|
maxDate: {
|
|
242
242
|
type: [Date, String],
|
|
243
|
-
default:
|
|
243
|
+
default: getDefault(defaultConfig, UCalendar).maxDate,
|
|
244
244
|
},
|
|
245
245
|
|
|
246
246
|
/**
|
|
@@ -47,7 +47,7 @@ import { isEqual } from "lodash-es";
|
|
|
47
47
|
import UIcon from "../ui.image-icon";
|
|
48
48
|
import ULabel from "../ui.form-label";
|
|
49
49
|
|
|
50
|
-
import
|
|
50
|
+
import { getRandomId, getDefault } from "../service.ui";
|
|
51
51
|
|
|
52
52
|
import defaultConfig from "./configs/default.config";
|
|
53
53
|
import { UCheckbox } from "./constants";
|
|
@@ -133,7 +133,7 @@ const props = defineProps({
|
|
|
133
133
|
*/
|
|
134
134
|
labelAlign: {
|
|
135
135
|
type: String,
|
|
136
|
-
default:
|
|
136
|
+
default: getDefault(defaultConfig, UCheckbox).labelAlign,
|
|
137
137
|
},
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -142,7 +142,7 @@ const props = defineProps({
|
|
|
142
142
|
*/
|
|
143
143
|
color: {
|
|
144
144
|
type: String,
|
|
145
|
-
default:
|
|
145
|
+
default: getDefault(defaultConfig, UCheckbox).color,
|
|
146
146
|
},
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -151,7 +151,7 @@ const props = defineProps({
|
|
|
151
151
|
*/
|
|
152
152
|
size: {
|
|
153
153
|
type: String,
|
|
154
|
-
default:
|
|
154
|
+
default: getDefault(defaultConfig, UCheckbox).size,
|
|
155
155
|
},
|
|
156
156
|
|
|
157
157
|
/**
|
|
@@ -159,7 +159,7 @@ const props = defineProps({
|
|
|
159
159
|
*/
|
|
160
160
|
disabled: {
|
|
161
161
|
type: Boolean,
|
|
162
|
-
default:
|
|
162
|
+
default: getDefault(defaultConfig, UCheckbox).disabled,
|
|
163
163
|
},
|
|
164
164
|
|
|
165
165
|
/**
|
|
@@ -167,7 +167,7 @@ const props = defineProps({
|
|
|
167
167
|
*/
|
|
168
168
|
partial: {
|
|
169
169
|
type: Boolean,
|
|
170
|
-
default:
|
|
170
|
+
default: getDefault(defaultConfig, UCheckbox).partial,
|
|
171
171
|
},
|
|
172
172
|
|
|
173
173
|
/**
|