@nutui/nutui 4.2.2-beta.3 → 4.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.
@@ -147,7 +147,6 @@ const _sfc_main = create({
147
147
  newData[index2].list.push(item);
148
148
  }
149
149
  });
150
- console.log("new", newData);
151
150
  return newData;
152
151
  };
153
152
  let selectedRegion = ref([]);
@@ -202,11 +201,11 @@ const _sfc_main = create({
202
201
  };
203
202
  selectedRegion.value[tab] = item;
204
203
  selectedRegion.value.splice(tab + 1, selectedRegion.value.length - (tab + 1));
204
+ callBackParams.value = item;
205
205
  if (((_a = regionData[tab + 1]) == null ? void 0 : _a.length) > 0) {
206
206
  tabIndex.value = tab + 1;
207
207
  lineAnimation();
208
208
  callBackParams.next = tabName.value[tabIndex.value];
209
- callBackParams.value = item;
210
209
  } else {
211
210
  handClose();
212
211
  emit("update:modelValue");
@@ -111,7 +111,7 @@ const gridProps = {
111
111
  const component = {
112
112
  props: gridProps,
113
113
  setup(props, { slots }) {
114
- useProvide(GRID_KEY, `${componentName}-item`)({ props });
114
+ useProvide(GRID_KEY, `NutGridItem`)({ props });
115
115
  const rootClass = computed(() => {
116
116
  const prefixCls = componentName;
117
117
  return {
@@ -1,6 +1,6 @@
1
1
  import { c as createComponent } from "../component-669c158a.js";
2
2
  import "vue";
3
- import { c as component } from "../common-72c11f1d.js";
3
+ import { c as component } from "../common-1579352e.js";
4
4
  import "../pxCheck-a27490eb.js";
5
5
  const { create } = createComponent("grid");
6
6
  const _sfc_main = create(component);
@@ -2,7 +2,7 @@ import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, crea
2
2
  import { u as useRouter } from "../index-54d03fc1.js";
3
3
  import { c as createComponent } from "../component-669c158a.js";
4
4
  import { p as pxCheck } from "../pxCheck-a27490eb.js";
5
- import { G as GRID_KEY } from "../common-72c11f1d.js";
5
+ import { G as GRID_KEY } from "../common-1579352e.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
7
7
  function useInject(key) {
8
8
  const parent = inject(key, null);
@@ -73,6 +73,8 @@ const _sfc_main = create({
73
73
  return value > Number(props.min) && !props.disabled;
74
74
  };
75
75
  const reduce = (event) => {
76
+ if (props.disabled)
77
+ return;
76
78
  emit("reduce", event);
77
79
  let output_value = Number(props.modelValue) - Number(props.step);
78
80
  if (reduceAllow() && output_value >= Number(props.min)) {
@@ -83,6 +85,8 @@ const _sfc_main = create({
83
85
  }
84
86
  };
85
87
  const add = (event) => {
88
+ if (props.disabled)
89
+ return;
86
90
  emit("add", event);
87
91
  let output_value = Number(props.modelValue) + Number(props.step);
88
92
  if (addAllow() && output_value <= Number(props.max)) {
@@ -195,6 +195,7 @@ const _sfc_main = create({
195
195
  emit(scrollTop > state.scrollTop ? "scrollUp" : "scrollDown", scrollTop);
196
196
  state.scrollTop = scrollTop;
197
197
  };
198
+ initCachedPosition();
198
199
  watch(
199
200
  () => props.listData,
200
201
  (val) => {
@@ -9,12 +9,10 @@ const { create, componentName } = createComponent("swiper");
9
9
  const _sfc_main = create({
10
10
  props: {
11
11
  width: {
12
- type: [Number, String],
13
- default: window.innerWidth
12
+ type: [Number, String]
14
13
  },
15
14
  height: {
16
- type: [Number, String],
17
- default: 0
15
+ type: [Number, String]
18
16
  },
19
17
  direction: {
20
18
  type: String,
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "NutUI",
5
- "version": "4.2.2-beta.3",
5
+ "version": "4.2.2",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -5721,7 +5721,7 @@
5721
5721
  "attributes": [
5722
5722
  {
5723
5723
  "name": "width",
5724
- "default": "`window.innerWidth`",
5724
+ "default": "-",
5725
5725
  "description": "轮播卡片的宽度",
5726
5726
  "value": {
5727
5727
  "type": "number | string",
@@ -5730,7 +5730,7 @@
5730
5730
  },
5731
5731
  {
5732
5732
  "name": "height",
5733
- "default": "`0`",
5733
+ "default": "-",
5734
5734
  "description": "轮播卡片的高度",
5735
5735
  "value": {
5736
5736
  "type": "number | string",
@@ -1,6 +1,6 @@
1
1
  export type InputAlignType = 'left' | 'center' | 'right';
2
2
  export type InputFormatTrigger = 'onChange' | 'onBlur';
3
- export type InputType = 'tel' | 'url' | 'date' | 'file' | 'text' | 'time' | 'week' | 'color' | 'digit' | 'email' | 'image' | 'month' | 'radio' | 'range' | 'reset' | 'button' | 'hidden' | 'number' | 'search' | 'submit' | 'checkbox' | 'password' | 'textarea' | 'datetime-local';
3
+ export type InputType = 'tel' | 'url' | 'date' | 'file' | 'text' | 'time' | 'week' | 'color' | 'digit' | 'email' | 'image' | 'month' | 'radio' | 'range' | 'reset' | 'button' | 'hidden' | 'number' | 'search' | 'submit' | 'checkbox' | 'password' | 'textarea' | 'datetime-local' | 'idcard' | 'nickname' | 'safe-password';
4
4
  export type InputRule = {
5
5
  pattern?: RegExp;
6
6
  message?: string;
@@ -7,11 +7,9 @@ declare type Install<T> = T & {
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  width: {
9
9
  type: (NumberConstructor | StringConstructor)[];
10
- default: number;
11
10
  };
12
11
  height: {
13
12
  type: (NumberConstructor | StringConstructor)[];
14
- default: number;
15
13
  };
16
14
  direction: {
17
15
  type: StringConstructor;
@@ -101,11 +99,9 @@ declare const _default: Install< import("vue").DefineComponent<{
101
99
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
102
100
  width: {
103
101
  type: (NumberConstructor | StringConstructor)[];
104
- default: number;
105
102
  };
106
103
  height: {
107
104
  type: (NumberConstructor | StringConstructor)[];
108
- default: number;
109
105
  };
110
106
  direction: {
111
107
  type: StringConstructor;
@@ -151,8 +147,6 @@ declare const _default: Install< import("vue").DefineComponent<{
151
147
  onChange?: ((...args: any[]) => any) | undefined;
152
148
  }, {
153
149
  duration: string | number;
154
- width: string | number;
155
- height: string | number;
156
150
  loop: boolean;
157
151
  direction: string;
158
152
  touchable: boolean;
@@ -110,7 +110,7 @@ import Comment from './__VUE/comment/index.vue';
110
110
  import Invoice from './__VUE/invoice/index.vue';
111
111
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
112
112
  declare function install(app: App): void;
113
- declare const version = "4.2.2-beta.3";
113
+ declare const version = "4.2.2";
114
114
  export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
115
115
  declare const _default: {
116
116
  install: typeof install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.2.2-beta.3",
3
+ "version": "4.2.2",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",