@nutui/nutui 3.2.0 → 3.2.2
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 +62 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1563 -1402
- package/dist/nutui.umd.js +1567 -1405
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +39 -20
- package/dist/packages/_es/AddressList.js +2 -4
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- package/dist/packages/_es/AudioOperate.js +22 -5
- package/dist/packages/_es/Avatar.js +23 -9
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- 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 +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +46 -19
- 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 +5 -11
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +36 -17
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +23 -5
- package/dist/packages/_es/CountUp.js +22 -5
- package/dist/packages/_es/DatePicker.js +31 -9
- package/dist/packages/_es/Dialog.js +23 -5
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +24 -5
- package/dist/packages/_es/Ellipsis.js +21 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +2 -2
- package/dist/packages/_es/FormItem.js +5 -4
- 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 +21 -2
- package/dist/packages/_es/ImagePreview.js +28 -13
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +27 -14
- package/dist/packages/_es/Input.js +70 -68
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +6 -5
- package/dist/packages/_es/MenuItem.js +25 -8
- package/dist/packages/_es/Navbar.js +11 -9
- package/dist/packages/_es/NoticeBar.js +26 -9
- package/dist/packages/_es/Notify.js +34 -13
- package/dist/packages/_es/NumberKeyboard.js +10 -12
- package/dist/packages/_es/OldPicker.js +28 -12
- package/dist/packages/_es/OverLay.js +20 -5
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +63 -17
- package/dist/packages/_es/Popover.js +25 -10
- package/dist/packages/_es/Popup.js +31 -17
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +24 -5
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +22 -4
- package/dist/packages/_es/Step.js +27 -8
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- 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 +13 -14
- package/dist/packages/_es/Table.js +22 -4
- package/dist/packages/_es/Tabs.js +32 -10
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +46 -25
- package/dist/packages/_es/Uploader.js +49 -30
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/WaterMark.js +21 -5
- 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 +28 -11
- 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/address/index.scss +17 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/invoice/index.scss +33 -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 +11 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/step/index.scss +52 -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 +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +70 -14
- package/dist/smartips/tags.json +34 -15
- package/dist/smartips/web-types.json +150 -16
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +55 -54
- package/dist/styles/themes/jdb.scss +55 -54
- package/dist/styles/themes/jdt.scss +55 -54
- package/dist/styles/variables-jdb.scss +26 -8
- package/dist/styles/variables-jdt.scss +26 -8
- package/dist/styles/variables.scss +25 -8
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +14 -71
- 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 +5 -8
- 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/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +15 -8
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +8 -14
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +20 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, withDirectives, createBlock, vShow, createTextVNode } from "vue";
|
|
6
|
+
import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, mergeProps, withDirectives, createBlock, vShow, 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";
|
|
@@ -31,7 +31,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
31
31
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
32
32
|
return value.replace(regExp, "");
|
|
33
33
|
}
|
|
34
|
-
const { componentName, create
|
|
34
|
+
const { componentName, create } = createComponent("input");
|
|
35
35
|
const _sfc_main = create({
|
|
36
36
|
props: {
|
|
37
37
|
ref: {
|
|
@@ -270,6 +270,8 @@ const _sfc_main = create({
|
|
|
270
270
|
emit("blur", value, event);
|
|
271
271
|
};
|
|
272
272
|
const clear = (event) => {
|
|
273
|
+
if (props.disabled)
|
|
274
|
+
return;
|
|
273
275
|
emit("update:modelValue", "", event);
|
|
274
276
|
emit("change", "", event);
|
|
275
277
|
emit("clear", "", event);
|
|
@@ -325,8 +327,7 @@ const _sfc_main = create({
|
|
|
325
327
|
onClickInput,
|
|
326
328
|
onClickLeftIcon,
|
|
327
329
|
onClickRightIcon,
|
|
328
|
-
onClick
|
|
329
|
-
translate
|
|
330
|
+
onClick
|
|
330
331
|
};
|
|
331
332
|
}
|
|
332
333
|
});
|
|
@@ -334,18 +335,21 @@ const _hoisted_1 = { class: "label-string" };
|
|
|
334
335
|
const _hoisted_2 = { class: "nut-input-value" };
|
|
335
336
|
const _hoisted_3 = { class: "label-string" };
|
|
336
337
|
const _hoisted_4 = { class: "nut-input-value" };
|
|
337
|
-
const _hoisted_5 =
|
|
338
|
-
const _hoisted_6 =
|
|
339
|
-
const _hoisted_7 =
|
|
338
|
+
const _hoisted_5 = { class: "nut-input-inner" };
|
|
339
|
+
const _hoisted_6 = { class: "nut-input-box" };
|
|
340
|
+
const _hoisted_7 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
341
|
+
const _hoisted_8 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
342
|
+
const _hoisted_9 = { class: "nut-input-clear-box" };
|
|
343
|
+
const _hoisted_10 = {
|
|
340
344
|
key: 0,
|
|
341
345
|
class: "nut-input-word-limit"
|
|
342
346
|
};
|
|
343
|
-
const
|
|
347
|
+
const _hoisted_11 = { class: "nut-input-word-num" };
|
|
344
348
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
345
349
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
346
350
|
return openBlock(), createElementBlock("view", {
|
|
347
351
|
class: normalizeClass(_ctx.classes),
|
|
348
|
-
onClick: _cache[
|
|
352
|
+
onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
349
353
|
}, [
|
|
350
354
|
_ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
351
355
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
@@ -372,10 +376,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
372
376
|
class: "nut-input-left-icon",
|
|
373
377
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
|
|
374
378
|
}, [
|
|
375
|
-
createVNode(_component_nut_icon, {
|
|
376
|
-
name: _ctx.leftIcon,
|
|
377
|
-
size: _ctx.leftIconSize
|
|
378
|
-
}, null, 8, ["name", "size"])
|
|
379
|
+
createVNode(_component_nut_icon, mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
|
|
379
380
|
])) : createCommentVNode("", true),
|
|
380
381
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
381
382
|
key: 1,
|
|
@@ -388,68 +389,69 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
388
389
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
389
390
|
], 6)) : createCommentVNode("", true),
|
|
390
391
|
createElementVNode("view", _hoisted_4, [
|
|
391
|
-
createElementVNode("view",
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
392
|
+
createElementVNode("view", _hoisted_5, [
|
|
393
|
+
createElementVNode("view", _hoisted_6, [
|
|
394
|
+
_ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "input-text",
|
|
397
|
+
ref: "inputRef",
|
|
398
|
+
style: normalizeStyle(_ctx.stylesTextarea),
|
|
399
|
+
maxlength: _ctx.maxLength,
|
|
400
|
+
placeholder: _ctx.placeholder,
|
|
401
|
+
disabled: _ctx.disabled,
|
|
402
|
+
readonly: _ctx.readonly,
|
|
403
|
+
value: _ctx.modelValue,
|
|
404
|
+
formatTrigger: _ctx.formatTrigger,
|
|
405
|
+
autofocus: _ctx.autofocus,
|
|
406
|
+
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
407
|
+
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
408
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
409
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
410
|
+
}, null, 44, _hoisted_7)) : (openBlock(), createElementBlock("input", {
|
|
411
|
+
key: 1,
|
|
412
|
+
class: "input-text",
|
|
413
|
+
ref: "inputRef",
|
|
414
|
+
style: normalizeStyle(_ctx.styles),
|
|
415
|
+
type: _ctx.inputType(_ctx.type),
|
|
416
|
+
maxlength: _ctx.maxLength,
|
|
417
|
+
placeholder: _ctx.placeholder,
|
|
418
|
+
disabled: _ctx.disabled,
|
|
419
|
+
readonly: _ctx.readonly,
|
|
420
|
+
value: _ctx.modelValue,
|
|
421
|
+
formatTrigger: _ctx.formatTrigger,
|
|
422
|
+
autofocus: _ctx.autofocus,
|
|
423
|
+
onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
424
|
+
onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
425
|
+
onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
426
|
+
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
427
|
+
}, null, 44, _hoisted_8))
|
|
428
|
+
]),
|
|
429
|
+
createElementVNode("view", _hoisted_9, [
|
|
430
|
+
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
431
|
+
key: 0,
|
|
432
|
+
class: "nut-input-clear",
|
|
433
|
+
name: _ctx.clearIcon
|
|
434
|
+
}, _ctx.$attrs, {
|
|
435
|
+
size: _ctx.clearSize,
|
|
436
|
+
onClick: _ctx.clear
|
|
437
|
+
}), null, 16, ["name", "size", "onClick"])), [
|
|
438
|
+
[vShow, _ctx.active && _ctx.modelValue.length > 0]
|
|
439
|
+
]) : createCommentVNode("", true)
|
|
440
|
+
]),
|
|
436
441
|
_ctx.rightIcon && _ctx.rightIcon.length > 0 ? (openBlock(), createElementBlock("view", {
|
|
437
|
-
key:
|
|
442
|
+
key: 0,
|
|
438
443
|
class: "nut-input-right-icon",
|
|
439
|
-
onClick: _cache[
|
|
444
|
+
onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
|
|
440
445
|
}, [
|
|
441
|
-
createVNode(_component_nut_icon, {
|
|
442
|
-
name: _ctx.rightIcon,
|
|
443
|
-
size: _ctx.rightIconSize
|
|
444
|
-
}, null, 8, ["name", "size"])
|
|
446
|
+
createVNode(_component_nut_icon, mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
|
|
445
447
|
])) : createCommentVNode("", true),
|
|
446
448
|
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
|
|
447
|
-
key:
|
|
449
|
+
key: 1,
|
|
448
450
|
class: "nut-input-button"
|
|
449
451
|
}) : createCommentVNode("", true)
|
|
450
452
|
]),
|
|
451
|
-
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view",
|
|
452
|
-
createElementVNode("span",
|
|
453
|
+
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
454
|
+
createElementVNode("span", _hoisted_11, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
453
455
|
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
454
456
|
])) : createCommentVNode("", true),
|
|
455
457
|
_ctx.errorMessage ? (openBlock(), createElementBlock("view", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, createElementVNode } from "vue";
|
|
6
|
+
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, mergeProps, createElementVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -46,6 +46,14 @@ const _sfc_main = create({
|
|
|
46
46
|
readonly: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: false
|
|
49
|
+
},
|
|
50
|
+
iconLeft: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "minus"
|
|
53
|
+
},
|
|
54
|
+
iconRight: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "plus"
|
|
49
57
|
}
|
|
50
58
|
},
|
|
51
59
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
@@ -135,12 +143,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
143
|
class: normalizeClass(_ctx.classes),
|
|
136
144
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
|
|
137
145
|
}, [
|
|
138
|
-
createVNode(_component_nut_icon, {
|
|
139
|
-
name:
|
|
140
|
-
class:
|
|
141
|
-
size: _ctx.buttonSize
|
|
142
|
-
|
|
143
|
-
}, null, 8, ["class", "size", "onClick"]),
|
|
146
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
147
|
+
name: _ctx.iconLeft,
|
|
148
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
|
|
149
|
+
size: _ctx.buttonSize
|
|
150
|
+
}, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
|
|
144
151
|
createElementVNode("input", {
|
|
145
152
|
type: "number",
|
|
146
153
|
min: _ctx.min,
|
|
@@ -153,12 +160,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153
160
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
154
161
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
155
162
|
}, null, 44, _hoisted_1),
|
|
156
|
-
createVNode(_component_nut_icon, {
|
|
157
|
-
name:
|
|
158
|
-
class:
|
|
159
|
-
size: _ctx.buttonSize
|
|
160
|
-
|
|
161
|
-
}, null, 8, ["class", "size", "onClick"])
|
|
163
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
164
|
+
name: _ctx.iconRight,
|
|
165
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
166
|
+
size: _ctx.buttonSize
|
|
167
|
+
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
162
168
|
], 6);
|
|
163
169
|
}
|
|
164
170
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
/*!
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
|
+
* Released under the MIT License.
|
|
24
|
+
*/
|
|
25
|
+
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
26
|
+
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
+
import "../locale/lang";
|
|
29
|
+
const { componentName, create } = createComponent("invoice");
|
|
30
|
+
const _sfc_main = create({
|
|
31
|
+
props: {
|
|
32
|
+
data: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => []
|
|
35
|
+
},
|
|
36
|
+
formValue: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: {}
|
|
39
|
+
},
|
|
40
|
+
submit: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["onSubmit", "scroll-bottom"],
|
|
46
|
+
setup(props, { emit }) {
|
|
47
|
+
const formRef = ref();
|
|
48
|
+
const list = ref([]);
|
|
49
|
+
const state = reactive({});
|
|
50
|
+
const classes = computed(() => {
|
|
51
|
+
const prefixCls = componentName;
|
|
52
|
+
return {
|
|
53
|
+
[prefixCls]: true
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
onMounted(() => {
|
|
57
|
+
init();
|
|
58
|
+
});
|
|
59
|
+
const init = () => {
|
|
60
|
+
list.value = props.data;
|
|
61
|
+
};
|
|
62
|
+
const submit = () => {
|
|
63
|
+
formRef.value.validate().then(({ valid, errors }) => {
|
|
64
|
+
emit("onSubmit", valid, errors);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
watch(() => props.data, () => init(), { deep: true });
|
|
68
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
69
|
+
classes,
|
|
70
|
+
formRef,
|
|
71
|
+
list,
|
|
72
|
+
submit
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
|
|
77
|
+
const _hoisted_2 = {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "nut-invoice__submit"
|
|
80
|
+
};
|
|
81
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4\u5BA1\u6279");
|
|
82
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
83
|
+
const _component_nut_radio = resolveComponent("nut-radio");
|
|
84
|
+
const _component_nut_radiogroup = resolveComponent("nut-radiogroup");
|
|
85
|
+
const _component_nut_form_item = resolveComponent("nut-form-item");
|
|
86
|
+
const _component_nut_form = resolveComponent("nut-form");
|
|
87
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
88
|
+
return openBlock(), createElementBlock("view", {
|
|
89
|
+
class: normalizeClass(_ctx.classes)
|
|
90
|
+
}, [
|
|
91
|
+
createVNode(_component_nut_form, {
|
|
92
|
+
"model-value": _ctx.formValue,
|
|
93
|
+
ref: "formRef"
|
|
94
|
+
}, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
97
|
+
return openBlock(), createBlock(_component_nut_form_item, {
|
|
98
|
+
key: index2,
|
|
99
|
+
label: item.label,
|
|
100
|
+
required: item.required,
|
|
101
|
+
rules: item.rules,
|
|
102
|
+
prop: item.formItemProp
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
item.type === "radio" ? (openBlock(), createBlock(_component_nut_radiogroup, {
|
|
106
|
+
key: 0,
|
|
107
|
+
modelValue: _ctx.formValue[item.formItemProp],
|
|
108
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.radioLabel, (radioItem, radioIndex) => {
|
|
112
|
+
return openBlock(), createBlock(_component_nut_radio, {
|
|
113
|
+
key: radioIndex,
|
|
114
|
+
shape: "button",
|
|
115
|
+
label: radioItem.label
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
createTextVNode(toDisplayString(radioItem.label), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["label"]);
|
|
122
|
+
}), 128))
|
|
123
|
+
]),
|
|
124
|
+
_: 2
|
|
125
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : withDirectives((openBlock(), createElementBlock("input", {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "nut-input-text",
|
|
128
|
+
placeholder: item.placeholder,
|
|
129
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
130
|
+
type: "text"
|
|
131
|
+
}, null, 8, _hoisted_1)), [
|
|
132
|
+
[vModelText, _ctx.formValue[item.formItemProp]]
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, 1032, ["label", "required", "rules", "prop"]);
|
|
137
|
+
}), 128))
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["model-value"]),
|
|
141
|
+
_ctx.submit ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
142
|
+
createVNode(_component_nut_button, {
|
|
143
|
+
type: "primary",
|
|
144
|
+
block: "",
|
|
145
|
+
onClick: _ctx.submit
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [
|
|
148
|
+
_hoisted_3
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["onClick"])
|
|
152
|
+
])) : createCommentVNode("", true)
|
|
153
|
+
], 2);
|
|
154
|
+
}
|
|
155
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
156
|
+
export { index as default };
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -67,15 +86,14 @@ const _sfc_main = create({
|
|
|
67
86
|
watch(() => props.listData, () => {
|
|
68
87
|
state.list = props.listData.slice();
|
|
69
88
|
});
|
|
70
|
-
return {
|
|
71
|
-
...toRefs(state),
|
|
89
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
72
90
|
list,
|
|
73
91
|
getTransform,
|
|
74
92
|
listHeight,
|
|
75
93
|
visibleData,
|
|
76
94
|
classes,
|
|
77
95
|
handleScrollEvent
|
|
78
|
-
};
|
|
96
|
+
});
|
|
79
97
|
}
|
|
80
98
|
});
|
|
81
99
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode,
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot } 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,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -28,7 +47,6 @@ const _sfc_main = create({
|
|
|
28
47
|
type: Number,
|
|
29
48
|
default: 1
|
|
30
49
|
},
|
|
31
|
-
titleIcon: String,
|
|
32
50
|
activeTitleClass: String,
|
|
33
51
|
inactiveTitleClass: String,
|
|
34
52
|
optionIcon: {
|
|
@@ -71,7 +89,7 @@ const _sfc_main = create({
|
|
|
71
89
|
if (parent.props.direction === "down") {
|
|
72
90
|
return heightStyle;
|
|
73
91
|
} else {
|
|
74
|
-
return {
|
|
92
|
+
return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
|
|
75
93
|
}
|
|
76
94
|
});
|
|
77
95
|
const toggle = (show = !state.showPopup, options = {}) => {
|
|
@@ -120,7 +138,7 @@ const _sfc_main = create({
|
|
|
120
138
|
};
|
|
121
139
|
}
|
|
122
140
|
});
|
|
123
|
-
const _hoisted_1 = { class: "nut-menu-item__content" };
|
|
141
|
+
const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
124
142
|
const _hoisted_2 = ["onClick"];
|
|
125
143
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
126
144
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
@@ -160,12 +178,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
178
|
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
161
179
|
onClick: ($event) => _ctx.onClick(option)
|
|
162
180
|
}, [
|
|
163
|
-
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
|
|
164
|
-
|
|
165
|
-
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
181
|
+
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
182
|
+
class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
|
|
166
183
|
name: _ctx.optionIcon,
|
|
167
184
|
color: _ctx.parent.props.activeColor
|
|
168
|
-
}, null,
|
|
185
|
+
}), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
169
186
|
createElementVNode("view", {
|
|
170
187
|
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
171
188
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 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";
|
|
10
10
|
const { componentName, create } = createComponent("navbar");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
|
-
leftShow: { type: Boolean, default:
|
|
13
|
+
leftShow: { type: Boolean, default: false },
|
|
14
14
|
title: { type: String, default: "" },
|
|
15
15
|
titIcon: { type: String, default: "" },
|
|
16
16
|
leftText: { type: String, default: "" },
|
|
@@ -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", {
|