@nutui/nutui 3.1.23-beta.2 → 3.1.23-beta.5
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/README.md +7 -0
- package/dist/nutui.es.js +187 -99
- package/dist/nutui.umd.js +187 -99
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +7 -4
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +4 -3
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +16 -5
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +53 -27
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +33 -13
- package/dist/packages/_es/Table.js +36 -21
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +10 -3
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/backtop/index.scss +8 -0
- package/dist/packages/badge/index.scss +8 -0
- package/dist/packages/calendar/index.scss +27 -1
- package/dist/packages/cascader/index.scss +13 -0
- package/dist/packages/cell/index.scss +2 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/oldpicker/index.scss +2 -0
- package/dist/packages/picker/index.scss +11 -0
- package/dist/packages/table/index.scss +33 -0
- package/dist/packages/timedetail/index.scss +16 -0
- package/dist/packages/timepannel/index.scss +10 -0
- package/dist/packages/timeselect/index.scss +19 -1
- package/dist/packages/uploader/index.scss +10 -0
- package/dist/smartips/attributes.json +8 -0
- package/dist/smartips/tags.json +4 -2
- package/dist/smartips/web-types.json +19 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/styles/variables-jdb.scss +5 -4
- package/dist/styles/variables-jdt.scss +5 -4
- package/dist/styles/variables.scss +5 -4
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +6 -6
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +7 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +9 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +16 -2
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
- package/dist/types/__VUE/table/common.d.ts +3 -0
- package/dist/types/__VUE/table/index.vue.d.ts +3 -0
- package/dist/types/__VUE/table/types.d.ts +2 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -50,6 +50,10 @@ const _sfc_main = create({
|
|
|
50
50
|
isWrapTeleport: {
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: true
|
|
53
|
+
},
|
|
54
|
+
closeAbled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
59
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
@@ -117,7 +121,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
117
121
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
118
122
|
position: "bottom",
|
|
119
123
|
round: "",
|
|
120
|
-
onClickOverlay: _ctx.close
|
|
124
|
+
onClickOverlay: _ctx.close,
|
|
125
|
+
closeOnClickOverlay: _ctx.closeAbled
|
|
121
126
|
}, {
|
|
122
127
|
default: withCtx(() => [
|
|
123
128
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -150,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
155
|
])
|
|
151
156
|
]),
|
|
152
157
|
_: 3
|
|
153
|
-
}, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
|
|
158
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"])
|
|
154
159
|
], 2);
|
|
155
160
|
}
|
|
156
161
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot,
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { create } = createComponent("card");
|
|
@@ -78,9 +78,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78
78
|
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.title), 1),
|
|
79
79
|
renderSlot(_ctx.$slots, "prolist"),
|
|
80
80
|
_ctx.isNeedPrice ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
81
|
-
|
|
82
|
-
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
81
|
+
_ctx.isHaveSlot("price") ? renderSlot(_ctx.$slots, "price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
83
82
|
key: 1,
|
|
83
|
+
price: _ctx.price
|
|
84
|
+
}, null, 8, ["price"])),
|
|
85
|
+
_ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 2 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
86
|
+
key: 3,
|
|
84
87
|
class: "nut-card__right__price__origin",
|
|
85
88
|
price: _ctx.vipPrice
|
|
86
89
|
}, null, 8, ["price"]))
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -72,7 +72,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
73
73
|
"icon-size": "10",
|
|
74
74
|
spacing: "5",
|
|
75
|
-
|
|
75
|
+
readonly: "",
|
|
76
76
|
onChange: _ctx.handleClick
|
|
77
77
|
}, null, 8, ["modelValue", "onChange"])
|
|
78
78
|
])
|
|
@@ -96,7 +96,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
96
96
|
modelValue: _ctx.info.score,
|
|
97
97
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
98
98
|
"icon-size": "12",
|
|
99
|
-
spacing: "3"
|
|
99
|
+
spacing: "3",
|
|
100
|
+
readonly: ""
|
|
100
101
|
}, null, 8, ["modelValue"]),
|
|
101
102
|
createElementVNode("i", {
|
|
102
103
|
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -78,6 +78,10 @@ const _sfc_main = create({
|
|
|
78
78
|
type: Function,
|
|
79
79
|
default: null
|
|
80
80
|
},
|
|
81
|
+
threeDimensional: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: true
|
|
84
|
+
},
|
|
81
85
|
filter: Function
|
|
82
86
|
},
|
|
83
87
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
@@ -205,7 +209,7 @@ const _sfc_main = create({
|
|
|
205
209
|
selectedValue,
|
|
206
210
|
selectedOptions
|
|
207
211
|
}) => {
|
|
208
|
-
if (["date", "datetime", "datehour", "month-day"].includes(props.type)) {
|
|
212
|
+
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(props.type)) {
|
|
209
213
|
let formatDate = [];
|
|
210
214
|
selectedValue.forEach((item) => {
|
|
211
215
|
formatDate.push(item);
|
|
@@ -213,11 +217,14 @@ const _sfc_main = create({
|
|
|
213
217
|
if (props.type == "month-day" && formatDate.length < 3) {
|
|
214
218
|
formatDate.unshift(new Date(props.modelValue || props.minDate || props.maxDate).getFullYear());
|
|
215
219
|
}
|
|
220
|
+
if (props.type == "year-month" && formatDate.length < 3) {
|
|
221
|
+
formatDate.push(new Date(props.modelValue || props.minDate || props.maxDate).getDate());
|
|
222
|
+
}
|
|
216
223
|
const year = Number(formatDate[0]);
|
|
217
224
|
const month = Number(formatDate[1]) - 1;
|
|
218
225
|
const day = Math.min(Number(formatDate[2]), getMonthEndDay(Number(formatDate[0]), Number(formatDate[1])));
|
|
219
226
|
let date = null;
|
|
220
|
-
if (props.type === "date" || props.type === "month-day") {
|
|
227
|
+
if (props.type === "date" || props.type === "month-day" || props.type === "year-month") {
|
|
221
228
|
date = new Date(year, month, day);
|
|
222
229
|
} else if (props.type === "datetime") {
|
|
223
230
|
date = new Date(year, month, day, Number(formatDate[3]), Number(formatDate[4]));
|
|
@@ -315,13 +322,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
315
322
|
onChange: _ctx.changeHandler,
|
|
316
323
|
title: _ctx.title,
|
|
317
324
|
onConfirm: _ctx.confirm,
|
|
318
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
325
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
326
|
+
threeDimensional: _ctx.threeDimensional
|
|
319
327
|
}, {
|
|
328
|
+
top: withCtx(() => [
|
|
329
|
+
renderSlot(_ctx.$slots, "top")
|
|
330
|
+
]),
|
|
320
331
|
default: withCtx(() => [
|
|
321
332
|
renderSlot(_ctx.$slots, "default")
|
|
322
333
|
]),
|
|
323
334
|
_: 3
|
|
324
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
|
|
335
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
325
336
|
}
|
|
326
337
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
327
338
|
export { index as default };
|