@nutui/nutui-react-taro 3.0.19 → 3.0.20-beta.0
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 +65 -54
- package/dist/cjs/locales/vi-VN.d.ts +3 -0
- package/dist/cjs/locales/vi-VN.js +170 -0
- package/dist/cjs/packages/safearea/safearea.js +12 -3
- package/dist/cjs/packages/safearea/style/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style/style.css +2 -0
- package/dist/cjs/packages/safearea/style/style.harmony.css +2 -0
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style-jmapp/style.css +2 -0
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +6 -0
- package/dist/cjs/packages/safearea/style-jrkf/style.css +2 -0
- package/dist/es/locales/vi-VN.d.ts +3 -0
- package/dist/es/locales/vi-VN.js +160 -0
- package/dist/es/packages/safearea/safearea.js +12 -3
- package/dist/es/packages/safearea/style/safearea.scss +6 -0
- package/dist/es/packages/safearea/style/style.css +2 -0
- package/dist/es/packages/safearea/style/style.harmony.css +2 -0
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +6 -0
- package/dist/es/packages/safearea/style-jmapp/style.css +2 -0
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +6 -0
- package/dist/es/packages/safearea/style-jrkf/style.css +2 -0
- package/dist/nutui.react.umd.js +9 -3
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +38 -38
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +36 -36
- package/dist/style.css +1 -1
- package/dist/style.scss +30 -30
- package/package.json +1 -1
- package/postinstall.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,65 +1,76 @@
|
|
|
1
|
-
# v3.0.
|
|
2
|
-
`2026-03-06`
|
|
1
|
+
# v3.0.20-beta.0
|
|
3
2
|
|
|
3
|
+
`2026-05-06`
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* :bug: fix(tag): 修订样式 (#3425)
|
|
14
|
-
* :bug: fix: 修订导入方式,兼容五端处理 (#3419)
|
|
15
|
-
* :bug: fix(countup): 修改千分位展示异常问题 (#3417)
|
|
16
|
-
* :bug: fix(datepicker): 修复在使用 DatePicker 时页面会短暂出现 0 的问题 (#3399)
|
|
17
|
-
* :bug: fix: fix showCount props is invalid in alipay (#3366)
|
|
18
|
-
* :bug: fix: 更正正黑字体 (#3363)
|
|
19
|
-
* :bug: fix: 兼容nextjs ssr,初始状态class=""元素会闪一下 (#3358)
|
|
20
|
-
* :bug: fix: dialog.taro中defaultProps使用ts断言确认类型 (#3347)
|
|
21
|
-
* :bug: fix(uploader): 处理非图片文件类型问题 (#3343)
|
|
22
|
-
* :bug: fix(input): 兼容h5和小程序获取原生input标签 (#3341)
|
|
23
|
-
* :bug: fix(range): taro环境异步渲染useReady不会触发 (#3297)
|
|
24
|
-
* :bug: fix(swiper): duration属性透传 (#3337)
|
|
25
|
-
* zap: perf(col): 使用hooks优化 (#3361)
|
|
5
|
+
- :bug: fix: 修改多语言
|
|
6
|
+
- :bug: fix: 修订demo
|
|
7
|
+
- :sparkles: feat: enhance SafeArea with className/style props and constant() iOS fallback (#3388)
|
|
8
|
+
- :sparkles: feat(language): 添加越南语语言包 (#3378)
|
|
9
|
+
- 🏡 chore(deps): update dependency jest to v30 (#3288)
|
|
10
|
+
- 🏡 chore(deps): update commitlint monorepo to v20 (#3428)
|
|
11
|
+
- 🏡 chore(deps): update actions/github-script action to v9 (#3432)
|
|
12
|
+
- 🔨 build: 添加postinstall脚本以收集使用统计信息 (#3436)
|
|
26
13
|
|
|
14
|
+
# v3.0.19
|
|
27
15
|
|
|
28
|
-
# v3.0.18
|
|
29
16
|
`2026-03-06`
|
|
30
17
|
|
|
18
|
+
- :sparkles: feat: 合并近期跨原生改动点,增加了无障碍,部分组件增加了新功能。 (#3420)
|
|
19
|
+
- :sparkles: feat: 给 searchbar 暴露 input 更多属性 (#3416)
|
|
20
|
+
- :sparkles: feat(toast): add functionality to make toast persistent until manually cleared (#3410)
|
|
21
|
+
- :sparkles: feat(avatar): support image fill mode in taro avatar component (#3405)
|
|
22
|
+
- :sparkles: feat(language): 添加日语语言包 (#3384)
|
|
23
|
+
- :sparkles: feat(ascf): 支持ASCF鸿蒙元服务 (#3402)
|
|
24
|
+
- :sparkles: feat(theme): 升级8月份主题的微调,修订dialog 样式的鸿蒙适配等 (#3351)
|
|
25
|
+
- :sparkles: feat(Popup): 新增弹层可上下滑动 (#3340)
|
|
26
|
+
- :bug: fix(tag): 修订样式 (#3425)
|
|
27
|
+
- :bug: fix: 修订导入方式,兼容五端处理 (#3419)
|
|
28
|
+
- :bug: fix(countup): 修改千分位展示异常问题 (#3417)
|
|
29
|
+
- :bug: fix(datepicker): 修复在使用 DatePicker 时页面会短暂出现 0 的问题 (#3399)
|
|
30
|
+
- :bug: fix: fix showCount props is invalid in alipay (#3366)
|
|
31
|
+
- :bug: fix: 更正正黑字体 (#3363)
|
|
32
|
+
- :bug: fix: 兼容nextjs ssr,初始状态class=""元素会闪一下 (#3358)
|
|
33
|
+
- :bug: fix: dialog.taro中defaultProps使用ts断言确认类型 (#3347)
|
|
34
|
+
- :bug: fix(uploader): 处理非图片文件类型问题 (#3343)
|
|
35
|
+
- :bug: fix(input): 兼容h5和小程序获取原生input标签 (#3341)
|
|
36
|
+
- :bug: fix(range): taro环境异步渲染useReady不会触发 (#3297)
|
|
37
|
+
- :bug: fix(swiper): duration属性透传 (#3337)
|
|
38
|
+
- zap: perf(col): 使用hooks优化 (#3361)
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* 📖 docs: 更新介绍部分内容 (#3324)
|
|
36
|
-
* :sparkles: feat: 合并近期跨原生改动点,增加了无障碍,部分组件增加了新功能。 (#3420)
|
|
37
|
-
* :sparkles: feat: 给 searchbar 暴露 input 更多属性 (#3416)
|
|
38
|
-
* :sparkles: feat(toast): add functionality to make toast persistent until manually cleared (#3410)
|
|
39
|
-
* :sparkles: feat(avatar): support image fill mode in taro avatar component (#3405)
|
|
40
|
-
* :sparkles: feat(language): 添加日语语言包 (#3384)
|
|
41
|
-
* :sparkles: feat(ascf): 支持ASCF鸿蒙元服务 (#3402)
|
|
42
|
-
* :sparkles: feat(theme): 升级8月份主题的微调,修订dialog 样式的鸿蒙适配等 (#3351)
|
|
43
|
-
* :sparkles: feat(Popup): 新增弹层可上下滑动 (#3340)
|
|
44
|
-
* :sparkles: feat: Ellipsis校验越界不走缓存配置 (#3329)
|
|
45
|
-
* :sparkles: feat(price): 支持自定义颜色&数据原样输出 (#3328)
|
|
46
|
-
* :sparkles: feat(notify): 支持promise调用notice (#3319)
|
|
47
|
-
* :bug: fix(tag): 修订样式 (#3425)
|
|
48
|
-
* :bug: fix: 修订导入方式,兼容五端处理 (#3419)
|
|
49
|
-
* :bug: fix(countup): 修改千分位展示异常问题 (#3417)
|
|
50
|
-
* :bug: fix(datepicker): 修复在使用 DatePicker 时页面会短暂出现 0 的问题 (#3399)
|
|
51
|
-
* :bug: fix: fix showCount props is invalid in alipay (#3366)
|
|
52
|
-
* :bug: fix: 更正正黑字体 (#3363)
|
|
53
|
-
* :bug: fix: 兼容nextjs ssr,初始状态class=""元素会闪一下 (#3358)
|
|
54
|
-
* :bug: fix: dialog.taro中defaultProps使用ts断言确认类型 (#3347)
|
|
55
|
-
* :bug: fix(uploader): 处理非图片文件类型问题 (#3343)
|
|
56
|
-
* :bug: fix(input): 兼容h5和小程序获取原生input标签 (#3341)
|
|
57
|
-
* :bug: fix(range): taro环境异步渲染useReady不会触发 (#3297)
|
|
58
|
-
* :bug: fix(swiper): duration属性透传 (#3337)
|
|
59
|
-
* :bug: fix(noticebar): 适配鸿蒙样式修复 (#3332)
|
|
60
|
-
* :bug: Fix icons svg (#3331)
|
|
61
|
-
* zap: perf(col): 使用hooks优化 (#3361)
|
|
40
|
+
# v3.0.18
|
|
41
|
+
|
|
42
|
+
`2026-03-06`
|
|
62
43
|
|
|
44
|
+
- 🏡 chore(release): v3.0.18
|
|
45
|
+
- 🏡 chore: 升级icon库 (#3330)
|
|
46
|
+
- 🏡 chore: 发布taro下的样式按需插件
|
|
47
|
+
- 📖 docs: 更新介绍部分内容 (#3324)
|
|
48
|
+
- :sparkles: feat: 合并近期跨原生改动点,增加了无障碍,部分组件增加了新功能。 (#3420)
|
|
49
|
+
- :sparkles: feat: 给 searchbar 暴露 input 更多属性 (#3416)
|
|
50
|
+
- :sparkles: feat(toast): add functionality to make toast persistent until manually cleared (#3410)
|
|
51
|
+
- :sparkles: feat(avatar): support image fill mode in taro avatar component (#3405)
|
|
52
|
+
- :sparkles: feat(language): 添加日语语言包 (#3384)
|
|
53
|
+
- :sparkles: feat(ascf): 支持ASCF鸿蒙元服务 (#3402)
|
|
54
|
+
- :sparkles: feat(theme): 升级8月份主题的微调,修订dialog 样式的鸿蒙适配等 (#3351)
|
|
55
|
+
- :sparkles: feat(Popup): 新增弹层可上下滑动 (#3340)
|
|
56
|
+
- :sparkles: feat: Ellipsis校验越界不走缓存配置 (#3329)
|
|
57
|
+
- :sparkles: feat(price): 支持自定义颜色&数据原样输出 (#3328)
|
|
58
|
+
- :sparkles: feat(notify): 支持promise调用notice (#3319)
|
|
59
|
+
- :bug: fix(tag): 修订样式 (#3425)
|
|
60
|
+
- :bug: fix: 修订导入方式,兼容五端处理 (#3419)
|
|
61
|
+
- :bug: fix(countup): 修改千分位展示异常问题 (#3417)
|
|
62
|
+
- :bug: fix(datepicker): 修复在使用 DatePicker 时页面会短暂出现 0 的问题 (#3399)
|
|
63
|
+
- :bug: fix: fix showCount props is invalid in alipay (#3366)
|
|
64
|
+
- :bug: fix: 更正正黑字体 (#3363)
|
|
65
|
+
- :bug: fix: 兼容nextjs ssr,初始状态class=""元素会闪一下 (#3358)
|
|
66
|
+
- :bug: fix: dialog.taro中defaultProps使用ts断言确认类型 (#3347)
|
|
67
|
+
- :bug: fix(uploader): 处理非图片文件类型问题 (#3343)
|
|
68
|
+
- :bug: fix(input): 兼容h5和小程序获取原生input标签 (#3341)
|
|
69
|
+
- :bug: fix(range): taro环境异步渲染useReady不会触发 (#3297)
|
|
70
|
+
- :bug: fix(swiper): duration属性透传 (#3337)
|
|
71
|
+
- :bug: fix(noticebar): 适配鸿蒙样式修复 (#3332)
|
|
72
|
+
- :bug: Fix icons svg (#3331)
|
|
73
|
+
- zap: perf(col): 使用hooks优化 (#3361)
|
|
63
74
|
|
|
64
75
|
# v3.0.18
|
|
65
76
|
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var viVN = {
|
|
12
|
+
save: 'Lưu',
|
|
13
|
+
confirm: 'Xác nhận',
|
|
14
|
+
cancel: 'Hủy',
|
|
15
|
+
done: 'Hoàn thành',
|
|
16
|
+
noData: 'Tạm thời không có dữ liệu',
|
|
17
|
+
placeholder: 'Vui lòng nhập nội dung',
|
|
18
|
+
select: 'Vui lòng chọn',
|
|
19
|
+
edit: 'Chỉnh sửa',
|
|
20
|
+
reset: 'Đặt lại',
|
|
21
|
+
close: 'Đóng',
|
|
22
|
+
video: {
|
|
23
|
+
errorTip: 'Tải video không thành công',
|
|
24
|
+
clickRetry: 'Nhấn để thử lại'
|
|
25
|
+
},
|
|
26
|
+
fixednav: {
|
|
27
|
+
activeText: 'Thu gọn thanh điều hướng',
|
|
28
|
+
inactiveText: 'Điều hướng nhanh'
|
|
29
|
+
},
|
|
30
|
+
infiniteloading: {
|
|
31
|
+
pullRefreshText: 'Thả để làm mới',
|
|
32
|
+
loadText: 'Đang tải……',
|
|
33
|
+
loadMoreText: 'Ôi, đã đến cuối rồi!'
|
|
34
|
+
},
|
|
35
|
+
pagination: {
|
|
36
|
+
prev: 'Trang trước',
|
|
37
|
+
next: 'Trang sau'
|
|
38
|
+
},
|
|
39
|
+
range: {
|
|
40
|
+
rangeText: 'Không nằm trong phạm vi này'
|
|
41
|
+
},
|
|
42
|
+
calendaritem: {
|
|
43
|
+
weekdays: [
|
|
44
|
+
'CN',
|
|
45
|
+
'T2',
|
|
46
|
+
'T3',
|
|
47
|
+
'T4',
|
|
48
|
+
'T5',
|
|
49
|
+
'T6',
|
|
50
|
+
'T7'
|
|
51
|
+
],
|
|
52
|
+
end: 'Kết thúc',
|
|
53
|
+
start: 'Bắt đầu',
|
|
54
|
+
confirm: 'Xác nhận',
|
|
55
|
+
title: 'Chọn lịch',
|
|
56
|
+
monthTitle: function monthTitle(year, month) {
|
|
57
|
+
return "Th\xe1ng ".concat(month, " Năm ").concat(year);
|
|
58
|
+
},
|
|
59
|
+
today: 'Hôm nay',
|
|
60
|
+
loadPreviousMonth: 'Tải dữ liệu của tháng trước',
|
|
61
|
+
noEarlierMonth: 'Không có tháng nào sớm hơn'
|
|
62
|
+
},
|
|
63
|
+
shortpassword: {
|
|
64
|
+
title: 'Vui lòng nhập mật khẩu',
|
|
65
|
+
description: 'Bạn đã sử dụng tài sản ảo, vui lòng xác minh',
|
|
66
|
+
tips: 'Quên mật khẩu'
|
|
67
|
+
},
|
|
68
|
+
uploader: {
|
|
69
|
+
list: 'Tải lên tập tin',
|
|
70
|
+
ready: 'Chuẩn bị hoàn thành',
|
|
71
|
+
readyUpload: 'Chuẩn bị tải lên',
|
|
72
|
+
waitingUpload: 'Đang đợi tải lên',
|
|
73
|
+
uploading: 'Đang tải lên...',
|
|
74
|
+
success: 'Tải lên thành công',
|
|
75
|
+
error: 'Tải lên thất bại',
|
|
76
|
+
deleteWord: 'Người dùng đã chặn xóa!'
|
|
77
|
+
},
|
|
78
|
+
countdown: {
|
|
79
|
+
day: 'Ngày',
|
|
80
|
+
hour: 'Giờ',
|
|
81
|
+
minute: 'Phút',
|
|
82
|
+
second: 'Giây'
|
|
83
|
+
},
|
|
84
|
+
address: {
|
|
85
|
+
selectRegion: 'Vui lòng chọn khu vực',
|
|
86
|
+
deliveryTo: 'Giao đến',
|
|
87
|
+
hotCity: 'Thành phố nóng',
|
|
88
|
+
chooseAnotherAddress: 'Chọn địa chỉ khác',
|
|
89
|
+
selectProvince: 'Chọn Tỉnh/Thành phố'
|
|
90
|
+
},
|
|
91
|
+
signature: {
|
|
92
|
+
reSign: 'Ký lại',
|
|
93
|
+
unsupported: 'Xin lỗi, trình duyệt hiện tại không hỗ trợ Canvas, không thể dùng tính năng này!'
|
|
94
|
+
},
|
|
95
|
+
ecard: {
|
|
96
|
+
chooseText: 'Chọn mệnh giá thẻ',
|
|
97
|
+
otherValueText: 'Mệnh giá khác',
|
|
98
|
+
placeholder: 'Nhập số nguyên 1-5000'
|
|
99
|
+
},
|
|
100
|
+
timeselect: {
|
|
101
|
+
pickupTime: 'Thời gian lấy hàng'
|
|
102
|
+
},
|
|
103
|
+
sku: {
|
|
104
|
+
buyNow: 'Mua ngay',
|
|
105
|
+
buyNumber: 'Số lượng mua',
|
|
106
|
+
addToCard: 'Thêm vào giỏ hàng'
|
|
107
|
+
},
|
|
108
|
+
skuheader: {
|
|
109
|
+
skuId: 'Mã sản phẩm'
|
|
110
|
+
},
|
|
111
|
+
addresslist: {
|
|
112
|
+
addAddress: 'Tạo địa chỉ '
|
|
113
|
+
},
|
|
114
|
+
comment: {
|
|
115
|
+
complaintsText: 'Tôi muốn khiếu nại',
|
|
116
|
+
additionalReview: function additionalReview(day) {
|
|
117
|
+
return "Đ\xe1nh gi\xe1 th\xeam sau ".concat(day, " ng\xe0y");
|
|
118
|
+
},
|
|
119
|
+
additionalImages: function additionalImages(length) {
|
|
120
|
+
return "".concat(length, " ảnh đ\xe1nh gi\xe1 th\xeam");
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
searchbar: {
|
|
124
|
+
basePlaceholder: 'Lên JD tìm sản phẩm tốt',
|
|
125
|
+
text: 'Văn bản',
|
|
126
|
+
test: 'Kiểm tra',
|
|
127
|
+
title1: 'Cách dùng cơ bản',
|
|
128
|
+
title2: 'Hình dạng và độ dài tối đa ô tìm kiếm',
|
|
129
|
+
title3: 'Cài đặt nền trong và ngoài ô tìm kiếm',
|
|
130
|
+
title4: 'Cài đặt văn bản ô tìm kiếm',
|
|
131
|
+
title5: 'Tùy chỉnh biểu tượng',
|
|
132
|
+
title6: 'Lắng nghe thay đổi dữ liệu'
|
|
133
|
+
},
|
|
134
|
+
audio: {
|
|
135
|
+
back: 'Quay lại',
|
|
136
|
+
forward: 'Chuyển nhanh',
|
|
137
|
+
pause: 'Tạm dừng',
|
|
138
|
+
start: 'Bắt đầu',
|
|
139
|
+
mute: 'Tắt âm',
|
|
140
|
+
tips: 'Sự kiện onPlayEnd chỉ xảy ra khi loop=false'
|
|
141
|
+
},
|
|
142
|
+
avatarCropper: {
|
|
143
|
+
rotate: 'Xoay',
|
|
144
|
+
selectImage: 'Chọn ảnh'
|
|
145
|
+
},
|
|
146
|
+
datepicker: {
|
|
147
|
+
year: 'Năm',
|
|
148
|
+
month: 'Tháng',
|
|
149
|
+
day: 'Ngày',
|
|
150
|
+
hour: 'Giờ',
|
|
151
|
+
min: 'Phút',
|
|
152
|
+
seconds: 'Giây'
|
|
153
|
+
},
|
|
154
|
+
pullToRefresh: {
|
|
155
|
+
pullingText: 'Kéo xuống để làm mới',
|
|
156
|
+
canReleaseText: 'Thả để làm mới',
|
|
157
|
+
refreshingText: 'Đang tải...',
|
|
158
|
+
completeText: 'Làm mới thành công'
|
|
159
|
+
},
|
|
160
|
+
tour: {
|
|
161
|
+
prevStepText: 'Bước trước',
|
|
162
|
+
completeText: 'Hoàn thành',
|
|
163
|
+
nextStepText: 'Bước tiếp theo'
|
|
164
|
+
},
|
|
165
|
+
watermark: {
|
|
166
|
+
errorCanvasTips: 'Môi trường hiện tại không hỗ trợ Canvas'
|
|
167
|
+
},
|
|
168
|
+
mask: 'Lớp phủ'
|
|
169
|
+
};
|
|
170
|
+
var _default = viVN;
|
|
@@ -9,13 +9,22 @@ Object.defineProperty(exports, "SafeArea", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
+
var _object_spread = require("@swc/helpers/_/_object_spread");
|
|
13
|
+
var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
14
|
+
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
12
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
13
16
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
14
17
|
var _components = require("@tarojs/components");
|
|
15
18
|
var classPrefix = 'nut-safe-area';
|
|
16
19
|
var SafeArea = function SafeArea(props) {
|
|
17
|
-
|
|
18
|
-
className
|
|
19
|
-
|
|
20
|
+
var className = props.className, style = props.style, position = props.position, rest = (0, _object_without_properties._)(props, [
|
|
21
|
+
"className",
|
|
22
|
+
"style",
|
|
23
|
+
"position"
|
|
24
|
+
]);
|
|
25
|
+
return /*#__PURE__*/ _react.default.createElement(_components.View, (0, _object_spread_props._)((0, _object_spread._)({}, rest), {
|
|
26
|
+
className: (0, _classnames.default)(classPrefix, "".concat(classPrefix, "-position-").concat(position), className),
|
|
27
|
+
style: style
|
|
28
|
+
}));
|
|
20
29
|
};
|
|
21
30
|
SafeArea.displayName = 'NutSafeArea';
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
+
padding-top: calc(
|
|
7
|
+
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
+
);
|
|
6
9
|
padding-top: calc(
|
|
7
10
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
11
|
);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
&-position-bottom {
|
|
15
|
+
padding-bottom: calc(
|
|
16
|
+
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
+
);
|
|
12
18
|
padding-bottom: calc(
|
|
13
19
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
14
20
|
);
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
+
padding-top: calc(
|
|
7
|
+
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
+
);
|
|
6
9
|
padding-top: calc(
|
|
7
10
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
11
|
);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
&-position-bottom {
|
|
15
|
+
padding-bottom: calc(
|
|
16
|
+
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
+
);
|
|
12
18
|
padding-bottom: calc(
|
|
13
19
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
14
20
|
);
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
+
padding-top: calc(
|
|
7
|
+
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
+
);
|
|
6
9
|
padding-top: calc(
|
|
7
10
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
11
|
);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
&-position-bottom {
|
|
15
|
+
padding-bottom: calc(
|
|
16
|
+
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
+
);
|
|
12
18
|
padding-bottom: calc(
|
|
13
19
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
14
20
|
);
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var viVN = {
|
|
2
|
+
save: 'Lưu',
|
|
3
|
+
confirm: 'Xác nhận',
|
|
4
|
+
cancel: 'Hủy',
|
|
5
|
+
done: 'Hoàn thành',
|
|
6
|
+
noData: 'Tạm thời không có dữ liệu',
|
|
7
|
+
placeholder: 'Vui lòng nhập nội dung',
|
|
8
|
+
select: 'Vui lòng chọn',
|
|
9
|
+
edit: 'Chỉnh sửa',
|
|
10
|
+
reset: 'Đặt lại',
|
|
11
|
+
close: 'Đóng',
|
|
12
|
+
video: {
|
|
13
|
+
errorTip: 'Tải video không thành công',
|
|
14
|
+
clickRetry: 'Nhấn để thử lại'
|
|
15
|
+
},
|
|
16
|
+
fixednav: {
|
|
17
|
+
activeText: 'Thu gọn thanh điều hướng',
|
|
18
|
+
inactiveText: 'Điều hướng nhanh'
|
|
19
|
+
},
|
|
20
|
+
infiniteloading: {
|
|
21
|
+
pullRefreshText: 'Thả để làm mới',
|
|
22
|
+
loadText: 'Đang tải……',
|
|
23
|
+
loadMoreText: 'Ôi, đã đến cuối rồi!'
|
|
24
|
+
},
|
|
25
|
+
pagination: {
|
|
26
|
+
prev: 'Trang trước',
|
|
27
|
+
next: 'Trang sau'
|
|
28
|
+
},
|
|
29
|
+
range: {
|
|
30
|
+
rangeText: 'Không nằm trong phạm vi này'
|
|
31
|
+
},
|
|
32
|
+
calendaritem: {
|
|
33
|
+
weekdays: [
|
|
34
|
+
'CN',
|
|
35
|
+
'T2',
|
|
36
|
+
'T3',
|
|
37
|
+
'T4',
|
|
38
|
+
'T5',
|
|
39
|
+
'T6',
|
|
40
|
+
'T7'
|
|
41
|
+
],
|
|
42
|
+
end: 'Kết thúc',
|
|
43
|
+
start: 'Bắt đầu',
|
|
44
|
+
confirm: 'Xác nhận',
|
|
45
|
+
title: 'Chọn lịch',
|
|
46
|
+
monthTitle: function(year, month) {
|
|
47
|
+
return "Th\xe1ng ".concat(month, " Năm ").concat(year);
|
|
48
|
+
},
|
|
49
|
+
today: 'Hôm nay',
|
|
50
|
+
loadPreviousMonth: 'Tải dữ liệu của tháng trước',
|
|
51
|
+
noEarlierMonth: 'Không có tháng nào sớm hơn'
|
|
52
|
+
},
|
|
53
|
+
shortpassword: {
|
|
54
|
+
title: 'Vui lòng nhập mật khẩu',
|
|
55
|
+
description: 'Bạn đã sử dụng tài sản ảo, vui lòng xác minh',
|
|
56
|
+
tips: 'Quên mật khẩu'
|
|
57
|
+
},
|
|
58
|
+
uploader: {
|
|
59
|
+
list: 'Tải lên tập tin',
|
|
60
|
+
ready: 'Chuẩn bị hoàn thành',
|
|
61
|
+
readyUpload: 'Chuẩn bị tải lên',
|
|
62
|
+
waitingUpload: 'Đang đợi tải lên',
|
|
63
|
+
uploading: 'Đang tải lên...',
|
|
64
|
+
success: 'Tải lên thành công',
|
|
65
|
+
error: 'Tải lên thất bại',
|
|
66
|
+
deleteWord: 'Người dùng đã chặn xóa!'
|
|
67
|
+
},
|
|
68
|
+
countdown: {
|
|
69
|
+
day: 'Ngày',
|
|
70
|
+
hour: 'Giờ',
|
|
71
|
+
minute: 'Phút',
|
|
72
|
+
second: 'Giây'
|
|
73
|
+
},
|
|
74
|
+
address: {
|
|
75
|
+
selectRegion: 'Vui lòng chọn khu vực',
|
|
76
|
+
deliveryTo: 'Giao đến',
|
|
77
|
+
hotCity: 'Thành phố nóng',
|
|
78
|
+
chooseAnotherAddress: 'Chọn địa chỉ khác',
|
|
79
|
+
selectProvince: 'Chọn Tỉnh/Thành phố'
|
|
80
|
+
},
|
|
81
|
+
signature: {
|
|
82
|
+
reSign: 'Ký lại',
|
|
83
|
+
unsupported: 'Xin lỗi, trình duyệt hiện tại không hỗ trợ Canvas, không thể dùng tính năng này!'
|
|
84
|
+
},
|
|
85
|
+
ecard: {
|
|
86
|
+
chooseText: 'Chọn mệnh giá thẻ',
|
|
87
|
+
otherValueText: 'Mệnh giá khác',
|
|
88
|
+
placeholder: 'Nhập số nguyên 1-5000'
|
|
89
|
+
},
|
|
90
|
+
timeselect: {
|
|
91
|
+
pickupTime: 'Thời gian lấy hàng'
|
|
92
|
+
},
|
|
93
|
+
sku: {
|
|
94
|
+
buyNow: 'Mua ngay',
|
|
95
|
+
buyNumber: 'Số lượng mua',
|
|
96
|
+
addToCard: 'Thêm vào giỏ hàng'
|
|
97
|
+
},
|
|
98
|
+
skuheader: {
|
|
99
|
+
skuId: 'Mã sản phẩm'
|
|
100
|
+
},
|
|
101
|
+
addresslist: {
|
|
102
|
+
addAddress: 'Tạo địa chỉ '
|
|
103
|
+
},
|
|
104
|
+
comment: {
|
|
105
|
+
complaintsText: 'Tôi muốn khiếu nại',
|
|
106
|
+
additionalReview: function(day) {
|
|
107
|
+
return "Đ\xe1nh gi\xe1 th\xeam sau ".concat(day, " ng\xe0y");
|
|
108
|
+
},
|
|
109
|
+
additionalImages: function(length) {
|
|
110
|
+
return "".concat(length, " ảnh đ\xe1nh gi\xe1 th\xeam");
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
searchbar: {
|
|
114
|
+
basePlaceholder: 'Lên JD tìm sản phẩm tốt',
|
|
115
|
+
text: 'Văn bản',
|
|
116
|
+
test: 'Kiểm tra',
|
|
117
|
+
title1: 'Cách dùng cơ bản',
|
|
118
|
+
title2: 'Hình dạng và độ dài tối đa ô tìm kiếm',
|
|
119
|
+
title3: 'Cài đặt nền trong và ngoài ô tìm kiếm',
|
|
120
|
+
title4: 'Cài đặt văn bản ô tìm kiếm',
|
|
121
|
+
title5: 'Tùy chỉnh biểu tượng',
|
|
122
|
+
title6: 'Lắng nghe thay đổi dữ liệu'
|
|
123
|
+
},
|
|
124
|
+
audio: {
|
|
125
|
+
back: 'Quay lại',
|
|
126
|
+
forward: 'Chuyển nhanh',
|
|
127
|
+
pause: 'Tạm dừng',
|
|
128
|
+
start: 'Bắt đầu',
|
|
129
|
+
mute: 'Tắt âm',
|
|
130
|
+
tips: 'Sự kiện onPlayEnd chỉ xảy ra khi loop=false'
|
|
131
|
+
},
|
|
132
|
+
avatarCropper: {
|
|
133
|
+
rotate: 'Xoay',
|
|
134
|
+
selectImage: 'Chọn ảnh'
|
|
135
|
+
},
|
|
136
|
+
datepicker: {
|
|
137
|
+
year: 'Năm',
|
|
138
|
+
month: 'Tháng',
|
|
139
|
+
day: 'Ngày',
|
|
140
|
+
hour: 'Giờ',
|
|
141
|
+
min: 'Phút',
|
|
142
|
+
seconds: 'Giây'
|
|
143
|
+
},
|
|
144
|
+
pullToRefresh: {
|
|
145
|
+
pullingText: 'Kéo xuống để làm mới',
|
|
146
|
+
canReleaseText: 'Thả để làm mới',
|
|
147
|
+
refreshingText: 'Đang tải...',
|
|
148
|
+
completeText: 'Làm mới thành công'
|
|
149
|
+
},
|
|
150
|
+
tour: {
|
|
151
|
+
prevStepText: 'Bước trước',
|
|
152
|
+
completeText: 'Hoàn thành',
|
|
153
|
+
nextStepText: 'Bước tiếp theo'
|
|
154
|
+
},
|
|
155
|
+
watermark: {
|
|
156
|
+
errorCanvasTips: 'Môi trường hiện tại không hỗ trợ Canvas'
|
|
157
|
+
},
|
|
158
|
+
mask: 'Lớp phủ'
|
|
159
|
+
};
|
|
160
|
+
export default viVN;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
|
+
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
|
+
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
1
4
|
import React from "react";
|
|
2
5
|
import classNames from "classnames";
|
|
3
6
|
import { View } from "@tarojs/components";
|
|
4
7
|
var classPrefix = 'nut-safe-area';
|
|
5
8
|
export var SafeArea = function(props) {
|
|
6
|
-
|
|
7
|
-
className
|
|
8
|
-
|
|
9
|
+
var className = props.className, style = props.style, position = props.position, rest = _object_without_properties(props, [
|
|
10
|
+
"className",
|
|
11
|
+
"style",
|
|
12
|
+
"position"
|
|
13
|
+
]);
|
|
14
|
+
return /*#__PURE__*/ React.createElement(View, _object_spread_props(_object_spread({}, rest), {
|
|
15
|
+
className: classNames(classPrefix, "".concat(classPrefix, "-position-").concat(position), className),
|
|
16
|
+
style: style
|
|
17
|
+
}));
|
|
9
18
|
};
|
|
10
19
|
SafeArea.displayName = 'NutSafeArea';
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
+
padding-top: calc(
|
|
7
|
+
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
+
);
|
|
6
9
|
padding-top: calc(
|
|
7
10
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
11
|
);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
&-position-bottom {
|
|
15
|
+
padding-bottom: calc(
|
|
16
|
+
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
+
);
|
|
12
18
|
padding-bottom: calc(
|
|
13
19
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
14
20
|
);
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
+
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
10
11
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
12
|
}
|
|
12
13
|
.nut-safe-area-position-bottom {
|
|
14
|
+
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
13
15
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
14
16
|
}
|