@nutui/nutui 3.1.23-beta.1 → 3.1.23-beta.4
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 +910 -622
- package/dist/nutui.umd.js +921 -632
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +2 -2
- 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 +25 -23
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +11 -2
- 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 +9 -3
- 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 +2 -2
- 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 +106 -62
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +14 -18
- 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 +13 -2
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +11 -3
- 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 +1 -1
- 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 +187 -0
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +5 -5
- 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 +2 -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/cascader/index.scss +13 -0
- package/dist/packages/cell/index.scss +2 -1
- package/dist/packages/imagepreview/index.scss +0 -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/picker/index.scss +10 -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/packages/watermark/index.scss +13 -0
- package/dist/smartips/attributes.json +68 -0
- package/dist/smartips/tags.json +24 -3
- package/dist/smartips/web-types.json +161 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +51 -50
- package/dist/styles/themes/jdb.scss +51 -50
- package/dist/styles/themes/jdt.scss +51 -50
- package/dist/styles/variables-jdb.scss +5 -3
- package/dist/styles/variables-jdt.scss +5 -3
- package/dist/styles/variables.scss +6 -3
- 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/categorypane/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/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- 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/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +10 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +17 -2
- package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +7 -0
- package/dist/types/__VUE/tabbar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
- 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/__VUE/watermark/index.vue.d.ts +143 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +8 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.4 Mon Jul 25 2022 22:41:41 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,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.4 Mon Jul 25 2022 22:41:41 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, re
|
|
|
7
7
|
import { c as createComponent, f as floatData } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
var ItemContents_vue_vue_type_style_index_0_lang =
|
|
10
|
+
var ItemContents_vue_vue_type_style_index_0_lang = "";
|
|
11
11
|
const { componentName: componentName$4, create: create$4 } = createComponent("item-contents");
|
|
12
12
|
const { translate: translate$1 } = createComponent("addresslist");
|
|
13
13
|
const _sfc_main$4 = create$4({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.4 Mon Jul 25 2022 22:41:41 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"]))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.4 Mon Jul 25 2022 22:41:41 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { c as createComponent } from "./component.js";
|
|
|
7
7
|
import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
var index_vue_vue_type_style_index_0_lang =
|
|
10
|
+
var index_vue_vue_type_style_index_0_lang = "";
|
|
11
11
|
const { componentName, create } = createComponent("categorypane");
|
|
12
12
|
const _sfc_main = create({
|
|
13
13
|
props: {
|
|
@@ -25,8 +25,8 @@ const _sfc_main = create({
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(props, { emit }) {
|
|
28
|
-
const onChange = () => {
|
|
29
|
-
emit("onChange");
|
|
28
|
+
const onChange = (sku) => {
|
|
29
|
+
emit("onChange", sku);
|
|
30
30
|
};
|
|
31
31
|
return {
|
|
32
32
|
onChange
|
|
@@ -43,19 +43,21 @@ const _hoisted_4 = {
|
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "nut-categorypane__childItemList"
|
|
45
45
|
};
|
|
46
|
-
const _hoisted_5 = ["
|
|
47
|
-
const _hoisted_6 =
|
|
48
|
-
const _hoisted_7 = {
|
|
46
|
+
const _hoisted_5 = ["onClick"];
|
|
47
|
+
const _hoisted_6 = ["src"];
|
|
48
|
+
const _hoisted_7 = { class: "nut-categorypane__skuImg" };
|
|
49
|
+
const _hoisted_8 = {
|
|
49
50
|
key: 1,
|
|
50
51
|
class: "nut-categorypane__cateListRight"
|
|
51
52
|
};
|
|
52
|
-
const
|
|
53
|
-
const
|
|
53
|
+
const _hoisted_9 = { class: "nut-categorypane__childTitle" };
|
|
54
|
+
const _hoisted_10 = {
|
|
54
55
|
key: 0,
|
|
55
56
|
class: "nut-categorypane__childItemList"
|
|
56
57
|
};
|
|
57
|
-
const
|
|
58
|
-
const
|
|
58
|
+
const _hoisted_11 = ["onClick"];
|
|
59
|
+
const _hoisted_12 = { class: "nut-categorypane__skuName" };
|
|
60
|
+
const _hoisted_13 = {
|
|
59
61
|
key: 2,
|
|
60
62
|
class: "nut-categorypane__selfItemList"
|
|
61
63
|
};
|
|
@@ -70,43 +72,43 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
72
|
return openBlock(), createElementBlock("div", {
|
|
71
73
|
class: "nut-categorypane__childItem",
|
|
72
74
|
key,
|
|
73
|
-
onClick:
|
|
75
|
+
onClick: ($event) => _ctx.onChange(sku)
|
|
74
76
|
}, [
|
|
75
77
|
createElementVNode("img", {
|
|
76
78
|
class: "nut-categorypane__childImg",
|
|
77
79
|
src: sku.backImg
|
|
78
|
-
}, null, 8,
|
|
79
|
-
createElementVNode("div",
|
|
80
|
-
]);
|
|
80
|
+
}, null, 8, _hoisted_6),
|
|
81
|
+
createElementVNode("div", _hoisted_7, toDisplayString(sku.catName), 1)
|
|
82
|
+
], 8, _hoisted_5);
|
|
81
83
|
}), 128))
|
|
82
84
|
])) : createCommentVNode("", true)
|
|
83
85
|
]);
|
|
84
86
|
}), 128))
|
|
85
87
|
])) : createCommentVNode("", true),
|
|
86
|
-
_ctx.type == "text" ? (openBlock(), createElementBlock("div",
|
|
88
|
+
_ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
87
89
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
|
|
88
90
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
89
|
-
createElementVNode("div",
|
|
90
|
-
item.catType == 1 ? (openBlock(), createElementBlock("div",
|
|
91
|
+
createElementVNode("div", _hoisted_9, toDisplayString(item.catName), 1),
|
|
92
|
+
item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
91
93
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
92
94
|
return openBlock(), createElementBlock("div", {
|
|
93
95
|
class: "nut-categorypane__childItem",
|
|
94
96
|
key,
|
|
95
|
-
onClick:
|
|
97
|
+
onClick: ($event) => _ctx.onChange(sku)
|
|
96
98
|
}, [
|
|
97
|
-
createElementVNode("div",
|
|
98
|
-
]);
|
|
99
|
+
createElementVNode("div", _hoisted_12, toDisplayString(sku.catName), 1)
|
|
100
|
+
], 8, _hoisted_11);
|
|
99
101
|
}), 128))
|
|
100
102
|
])) : createCommentVNode("", true)
|
|
101
103
|
]);
|
|
102
104
|
}), 128))
|
|
103
105
|
])) : createCommentVNode("", true),
|
|
104
|
-
_ctx.type == "custom" ? (openBlock(), createElementBlock("div",
|
|
106
|
+
_ctx.type == "custom" ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
105
107
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.customCategory, (sku, key) => {
|
|
106
108
|
return openBlock(), createElementBlock("div", {
|
|
107
109
|
class: "nut-categorypane__skuName",
|
|
108
110
|
key,
|
|
109
|
-
onClick: _cache[
|
|
111
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
|
|
110
112
|
}, toDisplayString(sku.catName), 1);
|
|
111
113
|
}), 128))
|
|
112
114
|
])) : createCommentVNode("", true)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.4 Mon Jul 25 2022 22:41:41 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 { inject, reactive, computed, onMounted, getCurrentInstance,
|
|
7
|
+
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, h } from "vue";
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
import "./pxCheck.js";
|
|
@@ -80,10 +80,19 @@ const component = (componentName2, nutIcon) => {
|
|
|
80
80
|
const color = computed(() => {
|
|
81
81
|
return !pDisabled.value ? !pValue.value ? "nut-checkbox__icon--unchecked" : state.partialSelect ? "nut-checkbox__icon--indeterminate" : "nut-checkbox__icon" : "nut-checkbox__icon--disable";
|
|
82
82
|
});
|
|
83
|
+
let updateType = "";
|
|
83
84
|
const emitChange = (value, label) => {
|
|
85
|
+
updateType = "click";
|
|
84
86
|
emit("update:modelValue", value);
|
|
85
87
|
emit("change", value, label);
|
|
86
88
|
};
|
|
89
|
+
watch(() => props.modelValue, (v) => {
|
|
90
|
+
if (updateType == "click") {
|
|
91
|
+
updateType = "";
|
|
92
|
+
} else {
|
|
93
|
+
emit("change", v);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
87
96
|
const renderIcon = () => {
|
|
88
97
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
89
98
|
return h(nutIcon, {
|
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.4 Mon Jul 25 2022 22:41:41 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.4 Mon Jul 25 2022 22:41:41 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -8,6 +8,7 @@ import Picker from "./Picker.js";
|
|
|
8
8
|
import { popupProps } from "./Popup.js";
|
|
9
9
|
import { c as createComponent } from "./component.js";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
|
+
import "./index4.js";
|
|
11
12
|
import "./OverLay.js";
|
|
12
13
|
import "../locale/lang";
|
|
13
14
|
import "./Icon.js";
|
|
@@ -77,6 +78,10 @@ const _sfc_main = create({
|
|
|
77
78
|
type: Function,
|
|
78
79
|
default: null
|
|
79
80
|
},
|
|
81
|
+
threeDimensional: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: true
|
|
84
|
+
},
|
|
80
85
|
filter: Function
|
|
81
86
|
},
|
|
82
87
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
@@ -314,13 +319,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
319
|
onChange: _ctx.changeHandler,
|
|
315
320
|
title: _ctx.title,
|
|
316
321
|
onConfirm: _ctx.confirm,
|
|
317
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
322
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
323
|
+
threeDimensional: _ctx.threeDimensional
|
|
318
324
|
}, {
|
|
319
325
|
default: withCtx(() => [
|
|
320
326
|
renderSlot(_ctx.$slots, "default")
|
|
321
327
|
]),
|
|
322
328
|
_: 3
|
|
323
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
|
|
329
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
324
330
|
}
|
|
325
331
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
326
332
|
export { index as default };
|