@nutui/nutui 3.1.23-beta.5 → 3.2.1
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 +63 -1
- package/dist/nutui.es.js +382 -355
- package/dist/nutui.umd.js +375 -348
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +17 -15
- package/dist/packages/_es/AddressList.js +3 -5
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +29 -44
- package/dist/packages/_es/AudioOperate.js +2 -4
- package/dist/packages/_es/Avatar.js +4 -5
- 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 +6 -5
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- 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 +11 -10
- package/dist/packages/_es/CollapseItem.js +13 -11
- package/dist/packages/_es/Comment.js +1 -1
- 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 +1 -1
- 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 +18 -14
- 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 +6 -5
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +3 -6
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +4 -10
- package/dist/packages/_es/Input.js +97 -67
- 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 +6 -5
- package/dist/packages/_es/MenuItem.js +9 -7
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +4 -4
- package/dist/packages/_es/Notify.js +5 -11
- package/dist/packages/_es/NumberKeyboard.js +10 -12
- 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 +7 -1
- package/dist/packages/_es/Popover.js +4 -7
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- 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 +21 -8
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +6 -5
- 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 +6 -5
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +11 -15
- 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 +4 -5
- package/dist/packages/_es/Uploader.js +41 -32
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -4
- 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 +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/_es/style.css +1 -111
- package/dist/packages/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -0
- 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/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/notify/index.scss +5 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/textarea/index.scss +6 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +17 -1
- package/dist/smartips/tags.json +8 -3
- package/dist/smartips/web-types.json +40 -3
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +50 -50
- package/dist/styles/themes/jdb.scss +50 -50
- package/dist/styles/themes/jdt.scss +50 -50
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/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 +7 -0
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +5 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +7 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/index.vue.d.ts +13 -13
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +9 -2
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, onMounted, onUnmounted, reactive,
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { u as useRect } from "./index2.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -27,6 +27,7 @@ const _sfc_main = create({
|
|
|
27
27
|
type: [Number, String],
|
|
28
28
|
default: 0
|
|
29
29
|
},
|
|
30
|
+
titleIcon: String,
|
|
30
31
|
closeOnClickOverlay: {
|
|
31
32
|
type: Boolean,
|
|
32
33
|
default: true
|
|
@@ -159,11 +160,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
160
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
160
161
|
}, [
|
|
161
162
|
createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
|
|
162
|
-
createVNode(_component_nut_icon, {
|
|
163
|
-
name:
|
|
163
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
164
|
+
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
164
165
|
size: "10",
|
|
165
166
|
class: "nut-menu__title-icon"
|
|
166
|
-
}, null,
|
|
167
|
+
}), null, 16, ["name"])
|
|
167
168
|
], 2)
|
|
168
169
|
], 14, _hoisted_1);
|
|
169
170
|
}), 128))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -28,7 +28,8 @@ const _sfc_main = create({
|
|
|
28
28
|
type: Number,
|
|
29
29
|
default: 1
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
activeTitleClass: String,
|
|
32
|
+
inactiveTitleClass: String,
|
|
32
33
|
optionIcon: {
|
|
33
34
|
type: String,
|
|
34
35
|
default: "Check"
|
|
@@ -154,18 +155,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index2) => {
|
|
155
156
|
return openBlock(), createElementBlock("view", {
|
|
156
157
|
key: index2,
|
|
157
|
-
class: normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
|
|
158
|
+
class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
|
|
158
159
|
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
159
160
|
onClick: ($event) => _ctx.onClick(option)
|
|
160
161
|
}, [
|
|
161
|
-
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
|
|
162
|
-
|
|
162
|
+
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
163
|
+
class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
|
|
163
164
|
name: _ctx.optionIcon,
|
|
164
165
|
color: _ctx.parent.props.activeColor
|
|
165
|
-
}, null,
|
|
166
|
+
}), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
166
167
|
createElementVNode("view", {
|
|
168
|
+
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
167
169
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
168
|
-
}, toDisplayString(option.text),
|
|
170
|
+
}, toDisplayString(option.text), 7)
|
|
169
171
|
], 14, _hoisted_2);
|
|
170
172
|
}), 128)),
|
|
171
173
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
6
|
+
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot, mergeProps } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -138,12 +138,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
class: "title",
|
|
139
139
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
140
140
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
141
|
-
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
141
|
+
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
142
142
|
key: 1,
|
|
143
|
-
class: "icon"
|
|
143
|
+
class: "icon"
|
|
144
|
+
}, _ctx.$attrs, {
|
|
144
145
|
name: _ctx.titIcon,
|
|
145
146
|
onClick: _ctx.handleCenterIcon
|
|
146
|
-
}, null,
|
|
147
|
+
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
147
148
|
renderSlot(_ctx.$slots, "content")
|
|
148
149
|
]),
|
|
149
150
|
createElementVNode("view", {
|
|
@@ -177,12 +178,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
178
|
class: "title",
|
|
178
179
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
179
180
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
180
|
-
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
181
|
+
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
181
182
|
key: 1,
|
|
182
|
-
class: "icon"
|
|
183
|
+
class: "icon"
|
|
184
|
+
}, _ctx.$attrs, {
|
|
183
185
|
name: _ctx.titIcon,
|
|
184
186
|
onClick: _ctx.handleCenterIcon
|
|
185
|
-
}, null,
|
|
187
|
+
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
186
188
|
renderSlot(_ctx.$slots, "content")
|
|
187
189
|
]),
|
|
188
190
|
createElementVNode("view", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
|
|
6
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, mergeProps, vShow, Fragment, renderList } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -329,10 +329,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
329
329
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
330
330
|
}, [
|
|
331
331
|
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
332
|
-
createVNode(_component_nut_icon, {
|
|
332
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
333
333
|
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
334
334
|
color: _ctx.color
|
|
335
|
-
}, null,
|
|
335
|
+
}), null, 16, ["name", "color"])
|
|
336
336
|
])
|
|
337
337
|
])) : createCommentVNode("", true)
|
|
338
338
|
], 6)), [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -30,7 +30,7 @@ const _sfc_main = create({
|
|
|
30
30
|
type: String,
|
|
31
31
|
default: "danger"
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
modelVisible: {
|
|
34
34
|
type: Boolean,
|
|
35
35
|
default: false
|
|
36
36
|
},
|
|
@@ -53,7 +53,7 @@ const _sfc_main = create({
|
|
|
53
53
|
});
|
|
54
54
|
onMounted(() => {
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const showPopup = ref(props.modelVisible);
|
|
57
57
|
const clickCover = () => {
|
|
58
58
|
props.onClick && props.onClick();
|
|
59
59
|
};
|
|
@@ -87,7 +87,7 @@ const _sfc_main = create({
|
|
|
87
87
|
props.unmount && props.unmount(props.id);
|
|
88
88
|
props.onClose && props.onClose();
|
|
89
89
|
};
|
|
90
|
-
return { state, hide, onAfterLeave, clickCover,
|
|
90
|
+
return { state, hide, onAfterLeave, clickCover, showPopup };
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -116,18 +116,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
116
116
|
var Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
117
117
|
const defaultOptions = {
|
|
118
118
|
type: "base",
|
|
119
|
-
showPopup: true,
|
|
120
119
|
visible: true,
|
|
121
120
|
msg: "",
|
|
122
121
|
color: void 0,
|
|
123
122
|
background: void 0,
|
|
124
123
|
duration: 3e3,
|
|
125
|
-
className: ""
|
|
126
|
-
onClosed: null,
|
|
127
|
-
onClick: null,
|
|
128
|
-
onOpened: null,
|
|
129
|
-
textTimer: null,
|
|
130
|
-
unmount: null
|
|
124
|
+
className: ""
|
|
131
125
|
};
|
|
132
126
|
let idsMap = [];
|
|
133
127
|
let optsMap = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -96,19 +96,17 @@ const _sfc_main = create({
|
|
|
96
96
|
if (customKeys.length > 2) {
|
|
97
97
|
customKeys = [customKeys[0], customKeys[1]];
|
|
98
98
|
}
|
|
99
|
+
if (customKeys.length == 2 && props.title && props.type != "rightColumn") {
|
|
100
|
+
customKeys = [customKeys[0]];
|
|
101
|
+
}
|
|
99
102
|
if (customKeys.length === 1) {
|
|
100
|
-
if (props.title) {
|
|
103
|
+
if (props.title && props.type != "rightColumn") {
|
|
101
104
|
keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
|
|
102
105
|
} else {
|
|
103
106
|
keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
|
|
104
107
|
}
|
|
105
108
|
} else if (customKeys.length === 2) {
|
|
106
109
|
keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
|
|
107
|
-
if (props.title) {
|
|
108
|
-
keys.push({ id: "delete", type: "delete" });
|
|
109
|
-
}
|
|
110
|
-
} else {
|
|
111
|
-
keys.push({ id: 0, type: "number" });
|
|
112
110
|
}
|
|
113
111
|
return keys;
|
|
114
112
|
}
|
|
@@ -212,10 +210,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
212
210
|
createElementVNode("div", _hoisted_1, [
|
|
213
211
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
214
212
|
createElementVNode("h3", _hoisted_3, toDisplayString(_ctx.title), 1),
|
|
215
|
-
|
|
213
|
+
_ctx.type == "default" ? (openBlock(), createElementBlock("span", {
|
|
214
|
+
key: 0,
|
|
216
215
|
class: "keyboard-close",
|
|
217
216
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
218
|
-
}, toDisplayString(_ctx.translate("done")), 1)
|
|
217
|
+
}, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
|
|
219
218
|
])) : createCommentVNode("", true),
|
|
220
219
|
createElementVNode("div", _hoisted_4, [
|
|
221
220
|
createElementVNode("div", _hoisted_5, [
|
|
@@ -258,15 +257,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
258
257
|
onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
259
258
|
}, _hoisted_12, 34)
|
|
260
259
|
]),
|
|
261
|
-
|
|
262
|
-
key: 0,
|
|
260
|
+
createElementVNode("div", {
|
|
263
261
|
class: "key-board-wrapper key-board-finish",
|
|
264
262
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
|
|
265
263
|
}, [
|
|
266
264
|
createElementVNode("div", {
|
|
267
265
|
class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
268
266
|
}, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
269
|
-
])
|
|
267
|
+
])
|
|
270
268
|
])) : createCommentVNode("", true)
|
|
271
269
|
])
|
|
272
270
|
], 512)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -403,6 +403,12 @@ const _sfc_main = create({
|
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
405
|
const confirmHandler = () => {
|
|
406
|
+
if (defaultValues.value && !defaultValues.value.length) {
|
|
407
|
+
columnsList.value.forEach((columns) => {
|
|
408
|
+
defaultValues.value.push(columns[0].value);
|
|
409
|
+
selectedOptions.value.push(columns[0]);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
406
412
|
emit("confirm", {
|
|
407
413
|
selectedValue: defaultValues.value,
|
|
408
414
|
selectedOptions: selectedOptions.value
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, toDisplayString } from "vue";
|
|
6
|
+
import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, mergeProps, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import Popup, { popupProps } from "./Popup.js";
|
|
9
9
|
import Button from "./Button.js";
|
|
@@ -840,7 +840,6 @@ const _sfc_main = create({
|
|
|
840
840
|
};
|
|
841
841
|
});
|
|
842
842
|
const createPopperInstance = () => {
|
|
843
|
-
console.log(reference.value, popoverRef.value);
|
|
844
843
|
if (reference.value && popoverRef.value) {
|
|
845
844
|
return createPopper(reference.value, popoverRef.value.popupRef, {
|
|
846
845
|
placement: props.location,
|
|
@@ -863,7 +862,6 @@ const _sfc_main = create({
|
|
|
863
862
|
return null;
|
|
864
863
|
};
|
|
865
864
|
const clickOverlay = () => {
|
|
866
|
-
console.log("\u5173\u95ED");
|
|
867
865
|
};
|
|
868
866
|
const uploadLocation = () => {
|
|
869
867
|
nextTick(() => {
|
|
@@ -871,7 +869,6 @@ const _sfc_main = create({
|
|
|
871
869
|
return;
|
|
872
870
|
if (!popper) {
|
|
873
871
|
popper = createPopperInstance();
|
|
874
|
-
console.log(popper);
|
|
875
872
|
} else {
|
|
876
873
|
popper.setOptions({
|
|
877
874
|
placement: props.location
|
|
@@ -969,10 +966,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
969
966
|
onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
|
|
970
967
|
}, [
|
|
971
968
|
item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
972
|
-
createVNode(_component_nut_icon, {
|
|
969
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
973
970
|
class: "item-img",
|
|
974
971
|
name: item.icon
|
|
975
|
-
}, null,
|
|
972
|
+
}), null, 16, ["name"])
|
|
976
973
|
]) : createCommentVNode("", true),
|
|
977
974
|
createElementVNode("view", _hoisted_2, toDisplayString(item.name), 1)
|
|
978
975
|
], 10, _hoisted_1);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
|
|
6
|
+
import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
|
|
7
7
|
import overlay, { overlayProps } from "./OverLay.js";
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import { c as createComponent } from "./component.js";
|
|
@@ -245,10 +245,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
245
245
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
246
246
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
247
247
|
}, [
|
|
248
|
-
createVNode(_component_nut_icon, {
|
|
248
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
249
249
|
name: _ctx.closeIcon,
|
|
250
250
|
size: "12px"
|
|
251
|
-
}, null,
|
|
251
|
+
}), null, 16, ["name"])
|
|
252
252
|
], 2)) : createCommentVNode("", true)
|
|
253
253
|
], 6), [
|
|
254
254
|
[vShow, _ctx.visible]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
|
|
6
|
+
import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock, mergeProps } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -138,12 +138,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
_ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
|
|
139
139
|
key: 0,
|
|
140
140
|
style: normalizeStyle(_ctx.textStyle)
|
|
141
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
|
|
142
|
-
key: 1,
|
|
141
|
+
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
143
142
|
size: "16px",
|
|
144
143
|
name: _ctx.iconName,
|
|
145
144
|
color: _ctx.iconColor
|
|
146
|
-
}, null,
|
|
145
|
+
}), null, 16, ["name", "color"])) : createCommentVNode("", true)
|
|
147
146
|
], 4)) : createCommentVNode("", true)
|
|
148
147
|
]);
|
|
149
148
|
}
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1
|
|
2
|
+
* @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, withCtx, createTextVNode } from "vue";
|
|
6
|
+
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -20,7 +20,15 @@ const _sfc_main = create({
|
|
|
20
20
|
},
|
|
21
21
|
strokeStyle: {
|
|
22
22
|
type: String,
|
|
23
|
-
default:
|
|
23
|
+
default: () => {
|
|
24
|
+
let bodyDom = document.getElementsByTagName("body");
|
|
25
|
+
let clsName = bodyDom[0]["className"];
|
|
26
|
+
if (clsName.indexOf("nut-theme-dark") == -1) {
|
|
27
|
+
return "#000";
|
|
28
|
+
} else {
|
|
29
|
+
return "#fff";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
24
32
|
},
|
|
25
33
|
type: {
|
|
26
34
|
type: String,
|
|
@@ -32,7 +40,7 @@ const _sfc_main = create({
|
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
components: {},
|
|
35
|
-
emits: ["confirm", "clear"],
|
|
43
|
+
emits: ["start", "end", "signing", "confirm", "clear"],
|
|
36
44
|
setup(props, { emit }) {
|
|
37
45
|
const canvas = ref(null);
|
|
38
46
|
const wrap = ref(null);
|
|
@@ -62,6 +70,7 @@ const _sfc_main = create({
|
|
|
62
70
|
state.ctx.beginPath();
|
|
63
71
|
state.ctx.lineWidth = props.lineWidth;
|
|
64
72
|
state.ctx.strokeStyle = props.strokeStyle;
|
|
73
|
+
emit("start");
|
|
65
74
|
canvas.value.addEventListener(state.events[1], moveEventHandler, false);
|
|
66
75
|
canvas.value.addEventListener(state.events[2], endEventHandler, false);
|
|
67
76
|
canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
|
|
@@ -69,6 +78,7 @@ const _sfc_main = create({
|
|
|
69
78
|
const moveEventHandler = (event) => {
|
|
70
79
|
event.preventDefault();
|
|
71
80
|
let evt = state.isSupportTouch ? event.touches[0] : event;
|
|
81
|
+
emit("signing", evt);
|
|
72
82
|
let coverPos = canvas.value.getBoundingClientRect();
|
|
73
83
|
let mouseX = evt.clientX - coverPos.left;
|
|
74
84
|
let mouseY = evt.clientY - coverPos.top;
|
|
@@ -77,6 +87,7 @@ const _sfc_main = create({
|
|
|
77
87
|
};
|
|
78
88
|
const endEventHandler = (event) => {
|
|
79
89
|
event.preventDefault();
|
|
90
|
+
emit("end");
|
|
80
91
|
canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
|
|
81
92
|
canvas.value.removeEventListener(state.events[2], endEventHandler, false);
|
|
82
93
|
};
|
|
@@ -124,7 +135,7 @@ const _hoisted_1 = {
|
|
|
124
135
|
};
|
|
125
136
|
const _hoisted_2 = ["height", "width"];
|
|
126
137
|
const _hoisted_3 = {
|
|
127
|
-
key:
|
|
138
|
+
key: 0,
|
|
128
139
|
class: "nut-signature-unsopport"
|
|
129
140
|
};
|
|
130
141
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -133,12 +144,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
133
144
|
class: normalizeClass(_ctx.classes)
|
|
134
145
|
}, [
|
|
135
146
|
createElementVNode("div", _hoisted_1, [
|
|
136
|
-
((
|
|
137
|
-
key: 0,
|
|
147
|
+
withDirectives(createElementVNode("canvas", {
|
|
138
148
|
ref: "canvas",
|
|
139
149
|
height: _ctx.canvasHeight,
|
|
140
150
|
width: _ctx.canvasWidth
|
|
141
|
-
}, null, 8, _hoisted_2)
|
|
151
|
+
}, null, 8, _hoisted_2), [
|
|
152
|
+
[vShow, _ctx.isCanvasSupported()]
|
|
153
|
+
]),
|
|
154
|
+
!_ctx.isCanvasSupported() ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.unSupportTpl || _ctx.translate("unSupportTpl")), 1)) : createCommentVNode("", true)
|
|
142
155
|
], 512),
|
|
143
156
|
createVNode(_component_nut_button, {
|
|
144
157
|
class: "nut-signature-btn",
|
package/dist/packages/_es/Sku.js
CHANGED