@nutui/nutui 4.0.10-beta.1 → 4.0.11
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/CHANGELOG.md +23 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6316 -7237
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +78 -111
- package/dist/packages/_es/Address.js +250 -375
- package/dist/packages/_es/AddressList.js +269 -354
- package/dist/packages/_es/Animate.js +41 -58
- package/dist/packages/_es/Audio.js +128 -197
- package/dist/packages/_es/AudioOperate.js +60 -71
- package/dist/packages/_es/Avatar.js +66 -89
- package/dist/packages/_es/AvatarGroup.js +23 -31
- package/dist/packages/_es/Backtop.js +59 -99
- package/dist/packages/_es/Badge.js +36 -47
- package/dist/packages/_es/Barrage.js +68 -147
- package/dist/packages/_es/Button.js +47 -66
- package/dist/packages/_es/Calendar.js +135 -157
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +42 -56
- package/dist/packages/_es/Cascader.js +315 -474
- package/dist/packages/_es/Category.js +29 -39
- package/dist/packages/_es/CategoryPane.js +57 -83
- package/dist/packages/_es/Cell.js +56 -71
- package/dist/packages/_es/CellGroup.js +19 -27
- package/dist/packages/_es/Checkbox.js +109 -156
- package/dist/packages/_es/CheckboxGroup.js +38 -59
- package/dist/packages/_es/CircleProgress.js +67 -96
- package/dist/packages/_es/Col.js +23 -31
- package/dist/packages/_es/Collapse.js +33 -58
- package/dist/packages/_es/CollapseItem.js +78 -108
- package/dist/packages/_es/Comment.js +207 -279
- package/dist/packages/_es/ConfigProvider.js +37 -55
- package/dist/packages/_es/Countdown.js +100 -212
- package/dist/packages/_es/Countup.js +232 -445
- package/dist/packages/_es/DatePicker.js +162 -265
- package/dist/packages/_es/Dialog.js +161 -213
- package/dist/packages/_es/Divider.js +42 -57
- package/dist/packages/_es/Drag.js +70 -153
- package/dist/packages/_es/Ecard.js +64 -104
- package/dist/packages/_es/Elevator.js +143 -219
- package/dist/packages/_es/Ellipsis.js +95 -178
- package/dist/packages/_es/Empty.js +23 -39
- package/dist/packages/_es/FixedNav.js +93 -116
- package/dist/packages/_es/Form.js +107 -178
- package/dist/packages/_es/FormItem.js +48 -61
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +58 -84
- package/dist/packages/_es/Image.js +90 -129
- package/dist/packages/_es/ImagePreview.js +256 -412
- package/dist/packages/_es/Indicator.js +30 -34
- package/dist/packages/_es/InfiniteLoading.js +83 -136
- package/dist/packages/_es/Input.js +160 -264
- package/dist/packages/_es/InputNumber.js +81 -117
- package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
- package/dist/packages/_es/Invoice.js +104 -130
- package/dist/packages/_es/Layout.js +3 -4
- package/dist/packages/_es/List.js +117 -215
- package/dist/packages/_es/Menu.js +95 -150
- package/dist/packages/_es/MenuItem.js +109 -154
- package/dist/packages/_es/Navbar.js +103 -119
- package/dist/packages/_es/Noticebar.js +197 -312
- package/dist/packages/_es/Notify.js +110 -166
- package/dist/packages/_es/NumberKeyboard.js +127 -202
- package/dist/packages/_es/Overlay.js +52 -80
- package/dist/packages/_es/Pagination.js +70 -100
- package/dist/packages/_es/Picker.js +275 -437
- package/dist/packages/_es/Popover.js +122 -225
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +44 -82
- package/dist/packages/_es/Progress.js +63 -79
- package/dist/packages/_es/PullRefresh.js +95 -173
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +204 -347
- package/dist/packages/_es/Rate.js +92 -141
- package/dist/packages/_es/Row.js +21 -27
- package/dist/packages/_es/Searchbar.js +123 -174
- package/dist/packages/_es/ShortPassword.js +69 -93
- package/dist/packages/_es/SideNavbar.js +49 -80
- package/dist/packages/_es/SideNavbarItem.js +22 -32
- package/dist/packages/_es/Signature.js +83 -146
- package/dist/packages/_es/Skeleton.js +110 -130
- package/dist/packages/_es/Sku.js +250 -343
- package/dist/packages/_es/Step.js +59 -86
- package/dist/packages/_es/Steps.js +26 -31
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +52 -74
- package/dist/packages/_es/Swipe.js +83 -155
- package/dist/packages/_es/Swiper.js +174 -311
- package/dist/packages/_es/SwiperItem.js +28 -44
- package/dist/packages/_es/Switch.js +55 -68
- package/dist/packages/_es/TabPane.js +30 -41
- package/dist/packages/_es/Tabbar.js +41 -52
- package/dist/packages/_es/TabbarItem.js +61 -82
- package/dist/packages/_es/Table.js +109 -165
- package/dist/packages/_es/Tabs.js +240 -388
- package/dist/packages/_es/Tag.js +44 -61
- package/dist/packages/_es/Textarea.js +80 -124
- package/dist/packages/_es/TimeDetail.js +49 -76
- package/dist/packages/_es/TimePannel.js +34 -48
- package/dist/packages/_es/TimeSelect.js +47 -68
- package/dist/packages/_es/Toast.js +144 -218
- package/dist/packages/_es/Tour.js +138 -192
- package/dist/packages/_es/TrendArrow.js +57 -77
- package/dist/packages/_es/Uploader.js +234 -359
- package/dist/packages/_es/Video.js +191 -316
- package/dist/packages/_es/Watermark.js +84 -117
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
- package/dist/packages/_es/common-d218746f.js +116 -0
- package/dist/packages/_es/component-234624bc.js +89 -0
- package/dist/packages/_es/index-14dfadc4.js +561 -0
- package/dist/packages/_es/index-192a3ef6.js +29 -0
- package/dist/packages/_es/index-360c5092.js +210 -0
- package/dist/packages/_es/index-496e6e05.js +24 -0
- package/dist/packages/_es/index-50eed3d9.js +7 -0
- package/dist/packages/_es/index-53ec2d4d.js +34 -0
- package/dist/packages/_es/index-fadb0974.js +8 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
- package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
- package/dist/packages/_es/pxCheck-38173291.js +4 -0
- package/dist/packages/_es/raf-a74f1a06.js +16 -0
- package/dist/packages/_es/renderIcon-47498b32.js +5 -0
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +148 -45
- package/dist/styles/themes/jdb.scss +148 -45
- package/dist/styles/themes/jddkh.scss +148 -45
- package/dist/styles/themes/jdt.scss +148 -45
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
- package/dist/types/__VUE/image/index.vue.d.ts +2 -2
- package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +110 -3
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/table/common.d.ts +55 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
- package/dist/packages/_es/common-b9a5e726.js +0 -145
- package/dist/packages/_es/component-81a4c1d0.js +0 -145
- package/dist/packages/_es/index-29892cda.js +0 -33
- package/dist/packages/_es/index-43c34ac6.js +0 -30
- package/dist/packages/_es/index-54d03fc1.js +0 -8
- package/dist/packages/_es/index-79c5dc33.js +0 -10
- package/dist/packages/_es/index-7a7385e4.js +0 -67
- package/dist/packages/_es/index-87422be8.js +0 -942
- package/dist/packages/_es/index-da0a7662.js +0 -259
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
- package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
- package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- package/dist/packages/_es/raf-729dad54.js +0 -25
- package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
import { ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode } from "vue";
|
|
21
|
-
import { StarFillN } from "@nutui/icons-vue";
|
|
22
|
-
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
23
|
-
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
24
|
-
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
25
|
-
import { u as useTouch } from "./index-7a7385e4.js";
|
|
26
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
1
|
+
var I = Object.defineProperty, T = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
|
+
var $ = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (e, o, l) => o in e ? I(e, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[o] = l, k = (e, o) => {
|
|
6
|
+
for (var l in o || (o = {}))
|
|
7
|
+
$.call(o, l) && g(e, l, o[l]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var l of b(o))
|
|
10
|
+
H.call(o, l) && g(e, l, o[l]);
|
|
11
|
+
return e;
|
|
12
|
+
}, z = (e, o) => T(e, B(o));
|
|
13
|
+
import { ref as R, computed as M, openBlock as r, createElementBlock as u, normalizeClass as w, Fragment as L, renderList as D, normalizeStyle as E, createElementVNode as F, createBlock as v, resolveDynamicComponent as C, createCommentVNode as j } from "vue";
|
|
14
|
+
import { StarFillN as N } from "@nutui/icons-vue";
|
|
15
|
+
import { c as O } from "./component-234624bc.js";
|
|
16
|
+
import { r as P } from "./renderIcon-47498b32.js";
|
|
17
|
+
import { p as W } from "./pxCheck-38173291.js";
|
|
18
|
+
import { u as X } from "./index-53ec2d4d.js";
|
|
19
|
+
import { _ as q } from "./_plugin-vue_export-helper-dad06003.js";
|
|
27
20
|
import "../locale/lang";
|
|
28
|
-
const { create, componentName } =
|
|
29
|
-
const _sfc_main = create({
|
|
21
|
+
const { create: A, componentName: G } = O("rate"), J = A({
|
|
30
22
|
props: {
|
|
31
23
|
count: {
|
|
32
24
|
type: [String, Number],
|
|
@@ -38,9 +30,7 @@ const _sfc_main = create({
|
|
|
38
30
|
},
|
|
39
31
|
customIcon: {
|
|
40
32
|
type: Object,
|
|
41
|
-
default: () =>
|
|
42
|
-
return StarFillN;
|
|
43
|
-
}
|
|
33
|
+
default: () => N
|
|
44
34
|
},
|
|
45
35
|
size: {
|
|
46
36
|
type: [String, Number],
|
|
@@ -56,147 +46,108 @@ const _sfc_main = create({
|
|
|
56
46
|
},
|
|
57
47
|
readonly: {
|
|
58
48
|
type: Boolean,
|
|
59
|
-
default:
|
|
49
|
+
default: !1
|
|
60
50
|
},
|
|
61
51
|
disabled: {
|
|
62
52
|
type: Boolean,
|
|
63
|
-
default:
|
|
53
|
+
default: !1
|
|
64
54
|
},
|
|
65
55
|
allowHalf: {
|
|
66
56
|
type: Boolean,
|
|
67
|
-
default:
|
|
57
|
+
default: !1
|
|
68
58
|
},
|
|
69
59
|
touchable: {
|
|
70
60
|
type: Boolean,
|
|
71
|
-
default:
|
|
61
|
+
default: !0
|
|
72
62
|
},
|
|
73
63
|
spacing: {
|
|
74
64
|
type: [String, Number],
|
|
75
65
|
default: void 0
|
|
76
66
|
}
|
|
77
67
|
},
|
|
78
|
-
components: { StarFillN },
|
|
68
|
+
components: { StarFillN: N },
|
|
79
69
|
emits: ["update:modelValue", "change"],
|
|
80
|
-
setup(
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
const updateVal = (value) => {
|
|
89
|
-
emit("update:modelValue", value);
|
|
90
|
-
emit("change", value);
|
|
91
|
-
};
|
|
92
|
-
const onClick = (e, index) => {
|
|
93
|
-
if (props.disabled || props.readonly)
|
|
70
|
+
setup(e, { emit: o, slots: l }) {
|
|
71
|
+
const d = R([]), y = M(() => ({
|
|
72
|
+
[G]: !0
|
|
73
|
+
})), f = (a) => {
|
|
74
|
+
o("update:modelValue", a), o("change", a);
|
|
75
|
+
}, t = (a, n) => {
|
|
76
|
+
if (e.disabled || e.readonly)
|
|
94
77
|
return;
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
updateVal(value);
|
|
105
|
-
};
|
|
106
|
-
const getScoreByPosition = (x, rateRefs2, allowHalf) => {
|
|
107
|
-
let v = 0;
|
|
108
|
-
for (let index = rateRefs2.value.length - 1; index >= 0; index--) {
|
|
109
|
-
const item = rateRefs2.value[index];
|
|
110
|
-
if (x > item.offsetLeft) {
|
|
111
|
-
if (allowHalf) {
|
|
112
|
-
v = index + (x > item.offsetLeft + item.clientWidth / 2 ? 1 : 0.5);
|
|
113
|
-
} else {
|
|
114
|
-
v = index + 1;
|
|
115
|
-
}
|
|
78
|
+
let i = 0;
|
|
79
|
+
n === 1 && e.modelValue === n || (i = n, e.allowHalf && a == 2 && (i -= 0.5)), f(i);
|
|
80
|
+
}, m = (a, n, i) => {
|
|
81
|
+
let h = 0;
|
|
82
|
+
for (let s = n.value.length - 1; s >= 0; s--) {
|
|
83
|
+
const p = n.value[s];
|
|
84
|
+
if (a > p.offsetLeft) {
|
|
85
|
+
i ? h = s + (a > p.offsetLeft + p.clientWidth / 2 ? 1 : 0.5) : h = s + 1;
|
|
116
86
|
break;
|
|
117
87
|
}
|
|
118
88
|
}
|
|
119
|
-
return
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
onTouchStart(event) {
|
|
124
|
-
if (!props.touchable || props.readonly)
|
|
125
|
-
return;
|
|
126
|
-
touch.start(event);
|
|
89
|
+
return h;
|
|
90
|
+
}, c = X(), S = {
|
|
91
|
+
onTouchStart(a) {
|
|
92
|
+
!e.touchable || e.readonly || c.start(a);
|
|
127
93
|
},
|
|
128
|
-
onTouchMove(
|
|
129
|
-
|
|
130
|
-
return;
|
|
131
|
-
touch.move(event);
|
|
132
|
-
if (touch.isHorizontal()) {
|
|
133
|
-
if (rateRefs.value) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
updateVal(getScoreByPosition(touch.moveX.value, rateRefs, props.allowHalf));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
94
|
+
onTouchMove(a) {
|
|
95
|
+
e.touchable && (c.move(a), c.isHorizontal() && d.value && (a.preventDefault(), f(m(c.moveX.value, d, e.allowHalf))));
|
|
138
96
|
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
slots
|
|
97
|
+
}, V = Math.random().toString(36).slice(-8);
|
|
98
|
+
return z(k({
|
|
99
|
+
classes: y
|
|
100
|
+
}, S), {
|
|
101
|
+
onClick: t,
|
|
102
|
+
pxCheck: W,
|
|
103
|
+
rateRefs: d,
|
|
104
|
+
refRandomId: V,
|
|
105
|
+
renderIcon: P,
|
|
106
|
+
slots: l
|
|
150
107
|
});
|
|
151
108
|
}
|
|
152
|
-
})
|
|
153
|
-
const _hoisted_1 = ["id"];
|
|
154
|
-
const _hoisted_2 = { class: "nut-rate-item__icon--full" };
|
|
155
|
-
const _hoisted_3 = {
|
|
109
|
+
}), K = ["id"], Q = { class: "nut-rate-item__icon--full" }, U = {
|
|
156
110
|
key: 0,
|
|
157
111
|
class: "nut-rate-item__icon--half"
|
|
158
|
-
}
|
|
159
|
-
const _hoisted_4 = {
|
|
112
|
+
}, Y = {
|
|
160
113
|
key: 1,
|
|
161
114
|
class: "nut-rate-item__icon--half"
|
|
162
115
|
};
|
|
163
|
-
function
|
|
164
|
-
return
|
|
165
|
-
class:
|
|
166
|
-
onTouchstart:
|
|
167
|
-
onTouchmove:
|
|
116
|
+
function Z(e, o, l, d, y, f) {
|
|
117
|
+
return r(), u("view", {
|
|
118
|
+
class: w(e.classes),
|
|
119
|
+
onTouchstart: o[0] || (o[0] = (...t) => e.onTouchStart && e.onTouchStart(...t)),
|
|
120
|
+
onTouchmove: o[1] || (o[1] = (...t) => e.onTouchMove && e.onTouchMove(...t))
|
|
168
121
|
}, [
|
|
169
|
-
(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
], 12, _hoisted_1);
|
|
196
|
-
}), 128))
|
|
122
|
+
(r(!0), u(L, null, D(Number(e.count), (t) => (r(), u("view", {
|
|
123
|
+
class: "nut-rate-item",
|
|
124
|
+
key: t,
|
|
125
|
+
ref_for: !0,
|
|
126
|
+
ref: "rateRefs",
|
|
127
|
+
id: "rateRefs-" + e.refRandomId + t,
|
|
128
|
+
style: E(t < Number(e.count) ? { marginRight: e.pxCheck(e.spacing) } : {})
|
|
129
|
+
}, [
|
|
130
|
+
F("view", Q, [
|
|
131
|
+
(r(), v(C(e.renderIcon(e.customIcon, { width: e.size, height: e.size, size: e.size, color: t <= e.modelValue ? e.activeColor : e.voidColor })), {
|
|
132
|
+
class: w(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": e.disabled || t > e.modelValue }]),
|
|
133
|
+
onClick: (m) => e.onClick(1, t)
|
|
134
|
+
}, null, 8, ["class", "onClick"]))
|
|
135
|
+
]),
|
|
136
|
+
e.allowHalf && Number(e.modelValue) + 1 > t ? (r(), u("view", U, [
|
|
137
|
+
(r(), v(C(e.renderIcon(e.customIcon, { width: e.size, height: e.size, size: e.size, color: t <= Number(e.modelValue) + 1 ? e.activeColor : e.voidColor })), {
|
|
138
|
+
class: "nut-rate-item__icon",
|
|
139
|
+
onClick: (m) => e.onClick(2, t)
|
|
140
|
+
}, null, 8, ["onClick"]))
|
|
141
|
+
])) : e.allowHalf && Number(e.modelValue) + 1 < t ? (r(), u("view", Y, [
|
|
142
|
+
(r(), v(C(e.renderIcon(e.customIcon, { width: e.size, height: e.size, size: e.size, color: e.voidColor })), {
|
|
143
|
+
class: "nut-rate-item__icon nut-rate-item__icon--disabled",
|
|
144
|
+
onClick: (m) => e.onClick(2, t)
|
|
145
|
+
}, null, 8, ["onClick"]))
|
|
146
|
+
])) : j("", !0)
|
|
147
|
+
], 12, K))), 128))
|
|
197
148
|
], 34);
|
|
198
149
|
}
|
|
199
|
-
const
|
|
150
|
+
const ie = /* @__PURE__ */ q(J, [["render", Z]]);
|
|
200
151
|
export {
|
|
201
|
-
|
|
152
|
+
ie as default
|
|
202
153
|
};
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { provide, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { provide as o, computed as l, openBlock as u, createElementBlock as c, normalizeClass as i, renderSlot as f } from "vue";
|
|
2
|
+
import { c as p } from "./component-234624bc.js";
|
|
3
|
+
import { _ as m } from "./_plugin-vue_export-helper-dad06003.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
|
-
const { componentName, create } =
|
|
6
|
-
const _sfc_main = create({
|
|
5
|
+
const { componentName: d, create: g } = p("row"), y = g({
|
|
7
6
|
props: {
|
|
8
7
|
type: {
|
|
9
8
|
type: String,
|
|
@@ -27,34 +26,29 @@ const _sfc_main = create({
|
|
|
27
26
|
}
|
|
28
27
|
},
|
|
29
28
|
emits: [],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
35
|
-
};
|
|
36
|
-
const classes = computed(() => {
|
|
37
|
-
return [
|
|
38
|
-
prefixCls,
|
|
39
|
-
getClass("", props.type),
|
|
40
|
-
getClass("justify", props.justify),
|
|
41
|
-
getClass("align", props.align),
|
|
42
|
-
getClass("flex", props.flexWrap)
|
|
43
|
-
];
|
|
44
|
-
});
|
|
29
|
+
setup(t) {
|
|
30
|
+
const n = d;
|
|
31
|
+
o("gutter", t.gutter);
|
|
32
|
+
const e = (s, r) => s ? r ? `nut-row-${s}-${r}` : "" : `nut-row-${r}`;
|
|
45
33
|
return {
|
|
46
|
-
classes
|
|
34
|
+
classes: l(() => [
|
|
35
|
+
n,
|
|
36
|
+
e("", t.type),
|
|
37
|
+
e("justify", t.justify),
|
|
38
|
+
e("align", t.align),
|
|
39
|
+
e("flex", t.flexWrap)
|
|
40
|
+
])
|
|
47
41
|
};
|
|
48
42
|
}
|
|
49
43
|
});
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
class:
|
|
44
|
+
function $(t, n, e, a, s, r) {
|
|
45
|
+
return u(), c("view", {
|
|
46
|
+
class: i(t.classes)
|
|
53
47
|
}, [
|
|
54
|
-
|
|
48
|
+
f(t.$slots, "default")
|
|
55
49
|
], 2);
|
|
56
50
|
}
|
|
57
|
-
const
|
|
51
|
+
const C = /* @__PURE__ */ m(y, [["render", $]]);
|
|
58
52
|
export {
|
|
59
|
-
|
|
53
|
+
C as default
|
|
60
54
|
};
|