@neatui/vue 2.0.4 → 2.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/vue",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "@fekit/floor": "^2.2.2",
23
23
  "@fekit/follow": "^1.0.10",
24
24
  "@fekit/itable": "^1.1.6",
25
- "@fekit/pullload": "^1.3.4",
25
+ "@fekit/pullload": "^1.3.5",
26
26
  "@fekit/scale": "^2.0.1",
27
27
  "@fekit/scrollto": "^3.0.2",
28
28
  "@fekit/toast": "^2.2.3",
@@ -167,13 +167,19 @@
167
167
  if (state.view === 1) {
168
168
  state.view = 0;
169
169
  on.hide.forEach((fun: any) => {
170
- isFunction(fun) && fun();
170
+ // isFunction(fun) && fun();
171
+ if (isFunction(fun)) {
172
+ fun();
173
+ }
171
174
  });
172
175
  }
173
176
  if (state.view === 2) {
174
177
  state.view = 3;
175
178
  on.show.forEach((fun: any) => {
176
- isFunction(fun) && fun();
179
+ // isFunction(fun) && fun();
180
+ if (isFunction(fun)) {
181
+ fun();
182
+ }
177
183
  });
178
184
  }
179
185
  };
@@ -69,7 +69,7 @@
69
69
  position: relative;
70
70
  overflow: hidden;
71
71
  // @include theme {
72
- // border: 1px solid co(case);
72
+ // border: 1px solid var(--co-case);
73
73
  // }
74
74
 
75
75
  img {
@@ -151,7 +151,10 @@
151
151
  };
152
152
 
153
153
  const fold = (item: any) => {
154
- item.child && item.child.length && (item.__folding = item.__folding ? 0 : 1);
154
+ // item.child && item.child.length && (item.__folding = item.__folding ? 0 : 1);
155
+ if (item.child && item.child.length) {
156
+ item.__folding = item.__folding ? 0 : 1;
157
+ }
155
158
  };
156
159
  </script>
157
160
  <style lang="scss">
@@ -173,7 +173,12 @@
173
173
  // 选中
174
174
  const select = (item: any) => {
175
175
  const s = [...props.modelValue];
176
- s?.indexOf(item) !== -1 ? s?.splice(s?.indexOf(item), 1) : s?.push(item);
176
+ // s?.indexOf(item) !== -1 ? s?.splice(s?.indexOf(item), 1) : s?.push(item);
177
+ if (s?.indexOf(item) !== -1) {
178
+ s?.splice(s?.indexOf(item), 1);
179
+ } else {
180
+ s?.push(item);
181
+ }
177
182
  change(s);
178
183
  };
179
184
  // 全选
@@ -92,7 +92,12 @@
92
92
  // 选中
93
93
  const select = (item: any) => {
94
94
  const values = [...mv.value];
95
- values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
95
+ // values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
96
+ if (values?.indexOf(item) !== -1) {
97
+ values?.splice(values?.indexOf(item), 1);
98
+ } else {
99
+ values?.push(item);
100
+ }
96
101
  mv.value = values;
97
102
  };
98
103
 
@@ -95,7 +95,12 @@
95
95
  // 选中
96
96
  const select = (item: any) => {
97
97
  const values = [...mv.value];
98
- values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
98
+ // values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
99
+ if (values?.indexOf(item) !== -1) {
100
+ values?.splice(values?.indexOf(item), 1);
101
+ } else {
102
+ values?.push(item);
103
+ }
99
104
  mv.value = values;
100
105
  };
101
106
  // 清除
@@ -91,7 +91,12 @@
91
91
  // 选中
92
92
  const select = (item: any) => {
93
93
  const values = [...mv.value];
94
- values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
94
+ // values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
95
+ if (values?.indexOf(item) !== -1) {
96
+ values?.splice(values?.indexOf(item), 1);
97
+ } else {
98
+ values?.push(item);
99
+ }
95
100
  mv.value = values;
96
101
  };
97
102
 
@@ -138,7 +138,12 @@
138
138
  // 选中
139
139
  const select = (item: any) => {
140
140
  const values = [...props.modelValue];
141
- values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
141
+ // values?.indexOf(item) !== -1 ? values?.splice(values?.indexOf(item), 1) : values?.push(item);
142
+ if (values?.indexOf(item) !== -1) {
143
+ values?.splice(values?.indexOf(item), 1);
144
+ } else {
145
+ values?.push(item);
146
+ }
142
147
  change(values);
143
148
  };
144
149
  // 清除