@nutui/nutui 4.0.0-beta.4 → 4.0.0-beta.6
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/dist/nutui.es.js +0 -1
- package/dist/nutui.umd.cjs +297 -279
- package/dist/packages/_es/ActionSheet.js +5 -5
- package/dist/packages/_es/Address.js +6 -6
- package/dist/packages/_es/AddressList.js +11 -8
- package/dist/packages/_es/Animate.js +4 -4
- package/dist/packages/_es/Audio.js +6 -6
- package/dist/packages/_es/AudioOperate.js +4 -4
- package/dist/packages/_es/Avatar.js +4 -4
- package/dist/packages/_es/AvatarGroup.js +4 -4
- package/dist/packages/_es/Backtop.js +5 -5
- package/dist/packages/_es/Badge.js +4 -4
- package/dist/packages/_es/Barrage.js +5 -5
- package/dist/packages/_es/Button.js +4 -4
- package/dist/packages/_es/Calendar.js +8 -8
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +5 -5
- package/dist/packages/_es/Cascader.js +20 -9
- package/dist/packages/_es/Category.js +4 -4
- package/dist/packages/_es/CategoryPane.js +4 -4
- package/dist/packages/_es/Cell.js +6 -6
- package/dist/packages/_es/CellGroup.js +4 -4
- package/dist/packages/_es/Checkbox.js +4 -4
- package/dist/packages/_es/CheckboxGroup.js +4 -4
- package/dist/packages/_es/CircleProgress.js +4 -4
- package/dist/packages/_es/Col.js +4 -4
- package/dist/packages/_es/Collapse.js +4 -4
- package/dist/packages/_es/CollapseItem.js +5 -5
- package/dist/packages/_es/Comment.js +10 -10
- package/dist/packages/_es/ConfigProvider.js +5 -7
- package/dist/packages/_es/Countdown.js +4 -4
- package/dist/packages/_es/Countup.js +4 -4
- package/dist/packages/_es/DatePicker.js +6 -6
- package/dist/packages/_es/Dialog.js +7 -7
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +5 -5
- package/dist/packages/_es/Ecard.js +5 -5
- package/dist/packages/_es/Elevator.js +5 -5
- package/dist/packages/_es/Ellipsis.js +4 -4
- package/dist/packages/_es/Empty.js +4 -4
- package/dist/packages/_es/FixedNav.js +4 -4
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +6 -6
- package/dist/packages/_es/Grid.js +5 -5
- package/dist/packages/_es/GridItem.js +7 -7
- package/dist/packages/_es/Image.js +5 -5
- package/dist/packages/_es/ImagePreview.js +12 -12
- package/dist/packages/_es/Indicator.js +4 -4
- package/dist/packages/_es/InfiniteLoading.js +6 -6
- package/dist/packages/_es/Input.js +4 -4
- package/dist/packages/_es/InputNumber.js +5 -5
- package/dist/packages/_es/Invoice.js +8 -8
- package/dist/packages/_es/Layout.js +3 -3
- package/dist/packages/_es/List.js +4 -4
- package/dist/packages/_es/Menu.js +5 -5
- package/dist/packages/_es/MenuItem.js +5 -5
- package/dist/packages/_es/Navbar.js +4 -4
- package/dist/packages/_es/Noticebar.js +6 -6
- package/dist/packages/_es/Notify.js +5 -5
- package/dist/packages/_es/NumberKeyboard.js +5 -5
- package/dist/packages/_es/Overlay.js +4 -4
- package/dist/packages/_es/Pagination.js +4 -4
- package/dist/packages/_es/Picker.js +7 -7
- package/dist/packages/_es/Popover.js +7 -7
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +4 -4
- package/dist/packages/_es/Progress.js +4 -4
- package/dist/packages/_es/PullRefresh.js +7 -7
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +6 -6
- package/dist/packages/_es/Rate.js +7 -7
- package/dist/packages/_es/Row.js +4 -4
- package/dist/packages/_es/Searchbar.js +5 -5
- package/dist/packages/_es/ShortPassword.js +5 -5
- package/dist/packages/_es/SideNavbar.js +4 -4
- package/dist/packages/_es/SideNavbarItem.js +4 -4
- package/dist/packages/_es/Signature.js +4 -4
- package/dist/packages/_es/Skeleton.js +4 -4
- package/dist/packages/_es/Sku.js +15 -10
- package/dist/packages/_es/Step.js +4 -4
- package/dist/packages/_es/Steps.js +3 -3
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +9 -7
- package/dist/packages/_es/Swipe.js +7 -7
- package/dist/packages/_es/Swiper.js +5 -5
- package/dist/packages/_es/SwiperItem.js +5 -5
- package/dist/packages/_es/Switch.js +4 -4
- package/dist/packages/_es/TabPane.js +6 -6
- package/dist/packages/_es/Tabbar.js +4 -4
- package/dist/packages/_es/TabbarItem.js +7 -7
- package/dist/packages/_es/Table.js +4 -4
- package/dist/packages/_es/Tabs.js +20 -20
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/Textarea.js +4 -4
- package/dist/packages/_es/TimeDetail.js +4 -4
- package/dist/packages/_es/TimePannel.js +4 -4
- package/dist/packages/_es/TimeSelect.js +5 -5
- package/dist/packages/_es/Toast.js +7 -7
- package/dist/packages/_es/Tour.js +7 -7
- package/dist/packages/_es/TrendArrow.js +4 -4
- package/dist/packages/_es/Uploader.js +5 -5
- package/dist/packages/_es/Video.js +4 -4
- package/dist/packages/_es/Watermark.js +4 -4
- package/dist/packages/_es/{_plugin-vue_export-helper-9c053953.js → _plugin-vue_export-helper-f84579cd.js} +1 -1
- package/dist/packages/_es/{common-aded60e5.js → common-8e13240b.js} +3 -3
- package/dist/packages/_es/{component-3b5ddc49.js → component-2bf83b98.js} +1 -1
- package/dist/packages/_es/{index-7cfca225.js → index-175ca86c.js} +4 -4
- package/dist/packages/_es/{index-2e2a2121.js → index-3e3fbad2.js} +6 -6
- package/dist/packages/_es/{index-cfcee49d.js → index-63fdf6d9.js} +1 -1
- package/dist/packages/_es/{index-4c736970.js → index-97b8ae5b.js} +1 -1
- package/dist/packages/_es/{index-cef0856f.js → index-99be5adc.js} +1 -1
- package/dist/packages/_es/{index-1b8c589e.js → index-c2175b7b.js} +1 -1
- package/dist/packages/_es/{index-a84e8a6b.js → index-da641709.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-dd334c6b.js → index.vue_vue_type_script_lang-1721812a.js} +4 -4
- package/dist/packages/_es/{index.vue_vue_type_script_lang-13c19296.js → index.vue_vue_type_script_lang-33f247fa.js} +4 -4
- package/dist/packages/_es/{index.vue_vue_type_script_lang-0140423b.js → index.vue_vue_type_script_lang-85ad5ab4.js} +3 -3
- package/dist/packages/_es/{interceptor-d0463887.js → interceptor-92c6157e.js} +2 -2
- package/dist/packages/_es/{mountComponent-975e9a4c.js → mountComponent-b7bd982c.js} +2 -2
- package/dist/packages/_es/{pxCheck-d598ec7d.js → pxCheck-f4ea5980.js} +1 -1
- package/dist/packages/_es/{raf-08cf76e2.js → raf-9ea18668.js} +1 -1
- package/dist/packages/_es/{renderIcon-716feaf3.js → renderIcon-e359b85f.js} +1 -1
- package/dist/packages/_es/style.css +2 -2
- package/dist/packages/actionsheet/index.mjs +3 -1
- package/dist/packages/address/index.mjs +3 -1
- package/dist/packages/addresslist/index.mjs +3 -1
- package/dist/packages/addresslist/style.cjs +1 -0
- package/dist/packages/addresslist/style.mjs +1 -0
- package/dist/packages/animate/index.mjs +3 -1
- package/dist/packages/audio/index.mjs +3 -1
- package/dist/packages/audiooperate/index.mjs +3 -1
- package/dist/packages/avatar/index.mjs +3 -1
- package/dist/packages/avatargroup/index.mjs +3 -1
- package/dist/packages/backtop/index.mjs +3 -1
- package/dist/packages/badge/index.mjs +3 -1
- package/dist/packages/barrage/index.mjs +3 -1
- package/dist/packages/button/index.mjs +3 -1
- package/dist/packages/calendar/index.mjs +3 -1
- package/dist/packages/calendaritem/index.mjs +3 -1
- package/dist/packages/card/index.mjs +3 -1
- package/dist/packages/cascader/index.mjs +3 -1
- package/dist/packages/category/index.mjs +3 -1
- package/dist/packages/categorypane/index.mjs +3 -1
- package/dist/packages/cell/index.mjs +3 -1
- package/dist/packages/cellgroup/index.mjs +3 -1
- package/dist/packages/checkbox/index.mjs +3 -1
- package/dist/packages/checkboxgroup/index.mjs +3 -1
- package/dist/packages/circleprogress/index.mjs +3 -1
- package/dist/packages/col/index.mjs +3 -1
- package/dist/packages/collapse/index.mjs +3 -1
- package/dist/packages/collapseitem/index.mjs +3 -1
- package/dist/packages/comment/index.mjs +3 -1
- package/dist/packages/configprovider/index.mjs +3 -1
- package/dist/packages/countdown/index.mjs +3 -1
- package/dist/packages/countup/index.mjs +3 -1
- package/dist/packages/datepicker/index.mjs +3 -1
- package/dist/packages/dialog/index.mjs +3 -1
- package/dist/packages/divider/index.mjs +3 -1
- package/dist/packages/drag/index.mjs +3 -1
- package/dist/packages/ecard/index.mjs +3 -1
- package/dist/packages/elevator/index.mjs +3 -1
- package/dist/packages/ellipsis/index.mjs +3 -1
- package/dist/packages/empty/index.mjs +3 -1
- package/dist/packages/fixednav/index.mjs +3 -1
- package/dist/packages/form/index.mjs +3 -1
- package/dist/packages/formitem/index.mjs +3 -1
- package/dist/packages/grid/index.mjs +3 -1
- package/dist/packages/griditem/index.mjs +3 -1
- package/dist/packages/image/index.mjs +3 -1
- package/dist/packages/imagepreview/index.mjs +3 -1
- package/dist/packages/indicator/index.mjs +3 -1
- package/dist/packages/infiniteloading/index.mjs +3 -1
- package/dist/packages/input/index.mjs +3 -1
- package/dist/packages/inputnumber/index.mjs +3 -1
- package/dist/packages/invoice/index.mjs +3 -1
- package/dist/packages/layout/index.mjs +3 -1
- package/dist/packages/list/index.mjs +3 -1
- package/dist/packages/locale/lang/{baseLang-8b10b2ed.js → baseLang-b64fda03.js} +1 -1
- package/dist/packages/locale/lang/en-US.js +2 -2
- package/dist/packages/locale/lang/id-ID.js +2 -2
- package/dist/packages/locale/lang/index.js +2 -2
- package/dist/packages/locale/lang/zh-CN.js +2 -2
- package/dist/packages/locale/lang/zh-TW.js +2 -2
- package/dist/packages/menu/index.mjs +3 -1
- package/dist/packages/menuitem/index.mjs +3 -1
- package/dist/packages/navbar/index.mjs +3 -1
- package/dist/packages/noticebar/index.mjs +3 -1
- package/dist/packages/notify/index.mjs +3 -1
- package/dist/packages/numberkeyboard/index.mjs +3 -1
- package/dist/packages/overlay/index.mjs +3 -1
- package/dist/packages/pagination/index.mjs +3 -1
- package/dist/packages/picker/index.mjs +3 -1
- package/dist/packages/popover/index.mjs +3 -1
- package/dist/packages/popup/index.mjs +3 -1
- package/dist/packages/price/index.mjs +3 -1
- package/dist/packages/progress/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.mjs +3 -1
- package/dist/packages/radio/index.mjs +3 -1
- package/dist/packages/radiogroup/index.mjs +3 -1
- package/dist/packages/range/index.mjs +3 -1
- package/dist/packages/rate/index.mjs +3 -1
- package/dist/packages/row/index.mjs +3 -1
- package/dist/packages/searchbar/index.mjs +3 -1
- package/dist/packages/shortpassword/index.mjs +3 -1
- package/dist/packages/sidenavbar/index.mjs +3 -1
- package/dist/packages/sidenavbaritem/index.mjs +3 -1
- package/dist/packages/signature/index.mjs +3 -1
- package/dist/packages/skeleton/index.mjs +3 -1
- package/dist/packages/sku/index.mjs +3 -1
- package/dist/packages/step/index.mjs +3 -1
- package/dist/packages/steps/index.mjs +3 -1
- package/dist/packages/sticky/index.mjs +3 -1
- package/dist/packages/sticky/index.scss +1 -0
- package/dist/packages/subsidenavbar/index.mjs +3 -1
- package/dist/packages/swipe/index.mjs +3 -1
- package/dist/packages/swiper/index.mjs +3 -1
- package/dist/packages/swiperitem/index.mjs +3 -1
- package/dist/packages/switch/index.mjs +3 -1
- package/dist/packages/tabbar/index.mjs +3 -1
- package/dist/packages/tabbaritem/index.mjs +3 -1
- package/dist/packages/table/index.mjs +3 -1
- package/dist/packages/tabpane/index.mjs +3 -1
- package/dist/packages/tabs/index.mjs +3 -1
- package/dist/packages/tag/index.mjs +3 -1
- package/dist/packages/textarea/index.mjs +3 -1
- package/dist/packages/timedetail/index.mjs +3 -1
- package/dist/packages/timepannel/index.mjs +3 -1
- package/dist/packages/timeselect/index.mjs +3 -1
- package/dist/packages/toast/index.mjs +3 -1
- package/dist/packages/tour/index.mjs +3 -1
- package/dist/packages/trendarrow/index.mjs +3 -1
- package/dist/packages/uploader/index.mjs +3 -1
- package/dist/packages/video/index.mjs +3 -1
- package/dist/packages/watermark/index.mjs +3 -1
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/theme-deafult.scss +14 -9
- package/dist/styles/themes/default.scss +59 -59
- package/dist/styles/themes/jdb.scss +59 -59
- package/dist/styles/themes/jddkh.scss +59 -59
- package/dist/styles/themes/jdt.scss +59 -59
- package/dist/styles/variables.scss +9 -8
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/types.d.ts +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -1
- package/dist/packages/icon/index.mjs +0 -2
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { P as Popup } from "./index-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { P as Popup } from "./index-175ca86c.js";
|
|
9
9
|
import { Tips } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
11
11
|
import "../locale/lang";
|
|
12
12
|
import "./Overlay.js";
|
|
13
13
|
const { create, translate } = createComponent("short-password");
|
|
14
|
-
const _sfc_main =
|
|
14
|
+
const _sfc_main = create({
|
|
15
15
|
components: {
|
|
16
16
|
[Popup.name]: Popup,
|
|
17
17
|
Tips
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { componentName, create } = createComponent("side-navbar");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
offset: {
|
|
14
14
|
type: [String, Number],
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { componentName, create } = createComponent("side-navbar-item");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
title: {
|
|
14
14
|
type: String,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
8
|
import Button from "./Button.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
import "@nutui/icons-vue";
|
|
12
12
|
const { componentName, create, translate } = createComponent("signature");
|
|
13
|
-
const _sfc_main =
|
|
13
|
+
const _sfc_main = create({
|
|
14
14
|
props: {
|
|
15
15
|
customClass: {
|
|
16
16
|
type: String,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { c as createComponent } from "./component-
|
|
6
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
7
7
|
import { toRefs, computed, onMounted, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
8
8
|
import Avatar from "./Avatar.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const component = (components) => {
|
|
12
12
|
return {
|
|
@@ -92,7 +92,7 @@ const component = (components) => {
|
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
const { create } = createComponent("skeleton");
|
|
95
|
-
const _sfc_main =
|
|
95
|
+
const _sfc_main = create(
|
|
96
96
|
component({
|
|
97
97
|
[Avatar.name]: Avatar
|
|
98
98
|
})
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
7
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
7
|
+
import { c as createComponent, T as TypeOfFun } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
|
+
import { p as popupProps, P as Popup } from "./index-175ca86c.js";
|
|
10
|
+
import Price from "./Price.js";
|
|
11
|
+
import InputNumber from "./InputNumber.js";
|
|
10
12
|
import "../locale/lang";
|
|
11
13
|
import "./Overlay.js";
|
|
12
14
|
import "@nutui/icons-vue";
|
|
15
|
+
import "./pxCheck-f4ea5980.js";
|
|
13
16
|
const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
14
|
-
const _sfc_main$4 =
|
|
17
|
+
const _sfc_main$4 = create$4({
|
|
15
18
|
props: {
|
|
16
19
|
goods: {
|
|
17
20
|
type: Object,
|
|
@@ -54,7 +57,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54
57
|
}
|
|
55
58
|
const SkuHeader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
56
59
|
const { componentName: componentName$3, create: create$3 } = createComponent("sku-select");
|
|
57
|
-
const _sfc_main$3 =
|
|
60
|
+
const _sfc_main$3 = create$3({
|
|
58
61
|
props: {
|
|
59
62
|
sku: {
|
|
60
63
|
type: Array,
|
|
@@ -120,7 +123,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
120
123
|
}
|
|
121
124
|
const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
122
125
|
const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
|
|
123
|
-
const _sfc_main$2 =
|
|
126
|
+
const _sfc_main$2 = create$2({
|
|
124
127
|
props: {
|
|
125
128
|
stepperMax: {
|
|
126
129
|
type: [Number, String],
|
|
@@ -207,7 +210,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
210
|
}
|
|
208
211
|
const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
209
212
|
const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
|
|
210
|
-
const _sfc_main$1 =
|
|
213
|
+
const _sfc_main$1 = create$1({
|
|
211
214
|
props: {
|
|
212
215
|
btnOptions: {
|
|
213
216
|
type: Array,
|
|
@@ -282,7 +285,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
282
285
|
}
|
|
283
286
|
const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
284
287
|
const { componentName, create, translate } = createComponent("sku");
|
|
285
|
-
const _sfc_main =
|
|
288
|
+
const _sfc_main = create({
|
|
286
289
|
props: {
|
|
287
290
|
...popupProps,
|
|
288
291
|
sku: {
|
|
@@ -347,7 +350,9 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
347
350
|
SkuSelect,
|
|
348
351
|
SkuStepper,
|
|
349
352
|
SkuOperate,
|
|
350
|
-
[Popup.name]: Popup
|
|
353
|
+
[Popup.name]: Popup,
|
|
354
|
+
[Price.name]: Price,
|
|
355
|
+
[InputNumber.name]: InputNumber
|
|
351
356
|
},
|
|
352
357
|
setup(props, { emit, slots }) {
|
|
353
358
|
const showPopup = ref(props.visible);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { create, componentName } = createComponent("step");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
title: {
|
|
14
14
|
type: String,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, computed, provide, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
8
|
import "../locale/lang";
|
|
9
9
|
const { create, componentName } = createComponent("steps");
|
|
10
|
-
const _sfc_main =
|
|
10
|
+
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
direction: {
|
|
13
13
|
type: String,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-
|
|
6
|
+
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-33f247fa.js";
|
|
7
7
|
import "vue";
|
|
8
|
-
import "./component-
|
|
8
|
+
import "./component-2bf83b98.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-97b8ae5b.js";
|
|
11
11
|
export {
|
|
12
12
|
_sfc_main as default
|
|
13
13
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
6
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
8
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("sub-side-navbar");
|
|
12
|
-
const _sfc_main =
|
|
12
|
+
const _sfc_main = create({
|
|
13
13
|
props: {
|
|
14
14
|
title: {
|
|
15
15
|
type: String,
|
|
@@ -75,12 +75,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
75
|
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, { key: 0 })) : (openBlock(), createBlock(_component_ArrowUp2, { key: 1 }))
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
createElementVNode("view", {
|
|
78
|
+
withDirectives(createElementVNode("view", {
|
|
79
79
|
class: normalizeClass(["nut-sub-side-navbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
80
80
|
style: normalizeStyle(_ctx.style)
|
|
81
81
|
}, [
|
|
82
82
|
renderSlot(_ctx.$slots, "default")
|
|
83
|
-
], 6)
|
|
83
|
+
], 6), [
|
|
84
|
+
[vShow, !_ctx.direction]
|
|
85
|
+
])
|
|
84
86
|
], 10, _hoisted_1);
|
|
85
87
|
}
|
|
86
88
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { u as useTouch } from "./index-
|
|
6
|
+
import { u as useTouch } from "./index-63fdf6d9.js";
|
|
7
7
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
8
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("swipe");
|
|
12
|
-
const _sfc_main =
|
|
12
|
+
const _sfc_main = create({
|
|
13
13
|
props: {
|
|
14
14
|
name: {
|
|
15
15
|
type: String,
|
|
@@ -184,7 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
184
|
], 512)
|
|
185
185
|
], 38);
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const Swipe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
188
188
|
export {
|
|
189
|
-
|
|
189
|
+
Swipe as default
|
|
190
190
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { reactive, ref, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { u as useExpose } from "./index-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { u as useExpose } from "./index-99be5adc.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const DISTANCE = 5;
|
|
12
12
|
function useTouch() {
|
|
@@ -57,7 +57,7 @@ function useTouch() {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
const { create, componentName } = createComponent("swiper");
|
|
60
|
-
const _sfc_main =
|
|
60
|
+
const _sfc_main = create({
|
|
61
61
|
props: {
|
|
62
62
|
width: {
|
|
63
63
|
type: [Number, String],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { u as useExpose } from "./index-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { u as useExpose } from "./index-99be5adc.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { create, componentName } = createComponent("swiper-item");
|
|
12
|
-
const _sfc_main =
|
|
12
|
+
const _sfc_main = create({
|
|
13
13
|
setup(props, { slots }) {
|
|
14
14
|
const parent = inject("parent");
|
|
15
15
|
parent["relation"](getCurrentInstance());
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
8
|
import { Loading1 } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("switch");
|
|
12
|
-
const _sfc_main =
|
|
12
|
+
const _sfc_main = create({
|
|
13
13
|
components: { Loading1 },
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { create } = createComponent("tab-pane");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
title: {
|
|
14
14
|
type: [String, Number],
|
|
@@ -40,7 +40,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40
40
|
renderSlot(_ctx.$slots, "default")
|
|
41
41
|
], 2);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
TabPane as default
|
|
46
46
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
const { create } = createComponent("tabbar");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: [Number, String],
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { c as createComponent } from "./component-
|
|
7
|
-
import { r as renderIcon } from "./renderIcon-
|
|
8
|
-
import {
|
|
9
|
-
import { u as useRouter } from "./index-a84e8a6b.js";
|
|
6
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
7
|
+
import { r as renderIcon } from "./renderIcon-e359b85f.js";
|
|
8
|
+
import { u as useRouter } from "./index-da641709.js";
|
|
10
9
|
import Badge from "./Badge.js";
|
|
11
|
-
import {
|
|
10
|
+
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
11
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
12
12
|
import "../locale/lang";
|
|
13
13
|
const { create } = createComponent("tabbar-item");
|
|
14
|
-
const _sfc_main =
|
|
14
|
+
const _sfc_main = create({
|
|
15
15
|
components: { [Badge.name]: Badge },
|
|
16
16
|
props: {
|
|
17
17
|
tabTitle: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { c as createComponent } from "./component-
|
|
6
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
7
7
|
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
8
8
|
import { DownArrow } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const RenderColumn = {
|
|
12
12
|
setup(props) {
|
|
@@ -112,7 +112,7 @@ const component = (componentName2, translate2) => {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
const { componentName, create, translate } = createComponent("table");
|
|
115
|
-
const _sfc_main =
|
|
115
|
+
const _sfc_main = create(component(componentName, translate));
|
|
116
116
|
const _hoisted_1 = { class: "nut-table__main__head" };
|
|
117
117
|
const _hoisted_2 = { class: "nut-table__main__head__tr" };
|
|
118
118
|
const _hoisted_3 = ["onClick"];
|
|
@@ -5,17 +5,17 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui v4.0.0-beta.
|
|
8
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2022 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
12
|
-
import { c as createComponent, T as TypeOfFun } from "./component-
|
|
12
|
+
import { c as createComponent, T as TypeOfFun } from "./component-2bf83b98.js";
|
|
13
|
+
import { p as pxCheck } from "./pxCheck-f4ea5980.js";
|
|
14
|
+
import { u as useRect } from "./index-97b8ae5b.js";
|
|
13
15
|
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
14
|
-
import {
|
|
15
|
-
import { u as useRect } from "./index-4c736970.js";
|
|
16
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-13c19296.js";
|
|
16
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-33f247fa.js";
|
|
17
17
|
import { JoySmile } from "@nutui/icons-vue";
|
|
18
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
18
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
19
19
|
import "../locale/lang";
|
|
20
20
|
class Title {
|
|
21
21
|
constructor() {
|
|
@@ -26,7 +26,7 @@ class Title {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const { create } = createComponent("tabs");
|
|
29
|
-
const _sfc_main =
|
|
29
|
+
const _sfc_main = create({
|
|
30
30
|
components: { [_sfc_main$1.name]: _sfc_main$1, JoySmile },
|
|
31
31
|
props: {
|
|
32
32
|
modelValue: {
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
90
90
|
provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
|
|
91
91
|
const titles = ref([]);
|
|
92
92
|
const renderTitles = (vnodes) => {
|
|
93
|
-
vnodes.forEach((vnode,
|
|
93
|
+
vnodes.forEach((vnode, index) => {
|
|
94
94
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
95
95
|
let type = vnode.type;
|
|
96
96
|
type = type.name || type;
|
|
@@ -102,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
102
102
|
let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
|
|
103
103
|
let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
|
|
104
104
|
title.title = (_h = vnode.props) == null ? void 0 : _h.title;
|
|
105
|
-
title.paneKey = paneIndex || camelPaneIndex || String(
|
|
105
|
+
title.paneKey = paneIndex || camelPaneIndex || String(index);
|
|
106
106
|
title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
|
|
107
107
|
}
|
|
108
108
|
titles.value.push(title);
|
|
@@ -116,13 +116,13 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
116
116
|
};
|
|
117
117
|
const currentIndex = ref(props.modelValue || 0);
|
|
118
118
|
const findTabsIndex = (value) => {
|
|
119
|
-
let
|
|
119
|
+
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
120
120
|
if (titles.value.length == 0) {
|
|
121
121
|
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
122
|
-
} else if (
|
|
122
|
+
} else if (index == -1) {
|
|
123
123
|
console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
|
|
124
124
|
} else {
|
|
125
|
-
currentIndex.value =
|
|
125
|
+
currentIndex.value = index;
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
|
|
@@ -188,12 +188,12 @@ const _sfc_main = /* @__PURE__ */ create({
|
|
|
188
188
|
};
|
|
189
189
|
});
|
|
190
190
|
const methods = {
|
|
191
|
-
tabChange: (item,
|
|
191
|
+
tabChange: (item, index) => {
|
|
192
192
|
emit("click", item);
|
|
193
193
|
if (item.disabled) {
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
currentIndex.value =
|
|
196
|
+
currentIndex.value = index;
|
|
197
197
|
emit("update:modelValue", item.paneKey);
|
|
198
198
|
emit("change", item);
|
|
199
199
|
}
|
|
@@ -231,11 +231,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
231
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
232
232
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
233
233
|
}, [
|
|
234
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
234
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
235
235
|
return openBlock(), createElementBlock("view", {
|
|
236
236
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
237
237
|
style: normalizeStyle(_ctx.titleStyle),
|
|
238
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
238
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
239
239
|
key: item.paneKey
|
|
240
240
|
}, [
|
|
241
241
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -263,11 +263,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
263
263
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
264
264
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
265
265
|
}, [
|
|
266
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
266
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
267
267
|
return openBlock(), createElementBlock("view", {
|
|
268
268
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
269
269
|
style: normalizeStyle(_ctx.titleStyle),
|
|
270
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
270
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
271
271
|
key: item.paneKey
|
|
272
272
|
}, [
|
|
273
273
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -296,8 +296,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
296
296
|
], 4)
|
|
297
297
|
], 2);
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
300
300
|
export {
|
|
301
301
|
Title,
|
|
302
|
-
|
|
302
|
+
Tabs as default
|
|
303
303
|
};
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
7
|
+
import { c as createComponent } from "./component-2bf83b98.js";
|
|
8
8
|
import { Close } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-f84579cd.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("tag");
|
|
12
|
-
const _sfc_main =
|
|
12
|
+
const _sfc_main = create({
|
|
13
13
|
props: {
|
|
14
14
|
color: { type: String, default: "" },
|
|
15
15
|
textColor: { type: String, default: "" },
|