Skip to content

Commit

Permalink
fix: 优化group组件
Browse files Browse the repository at this point in the history
  • Loading branch information
xaboy committed Aug 8, 2024
1 parent 40bb1a1 commit a0a2238
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/ant-design-vue/group/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
modelValue: {
handler(n) {
n = n || [];
let keys = Object.keys(this.sort), total = keys.length, len = total - n.length;
let keys = this.sort, total = keys.length, len = total - n.length;
if (len < 0) {
for (let i = len; i < 0; i++) {
this.addRule(n.length + i, true);
Expand Down
2 changes: 1 addition & 1 deletion components/arco-design/group/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
modelValue: {
handler(n) {
n = n || [];
let keys = Object.keys(this.sort), total = keys.length, len = total - n.length;
let keys = this.sort, total = keys.length, len = total - n.length;
if (len < 0) {
for (let i = len; i < 0; i++) {
this.addRule(n.length + i, true);
Expand Down
2 changes: 1 addition & 1 deletion components/common/wangeditor/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineComponent({
},
modelValue(n) {
if (n !== this.editor.txt.html()) {
this.editor.txt.html(n);
this.editor.txt.html(n || '');
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion components/element-ui/group/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
modelValue: {
handler(n) {
n = n || [];
let keys = Object.keys(this.sort), total = keys.length, len = total - n.length;
let keys = this.sort, total = keys.length, len = total - n.length;
if (len < 0) {
for (let i = len; i < 0; i++) {
this.addRule(n.length + i, true);
Expand Down
2 changes: 1 addition & 1 deletion components/naive-ui/group/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
modelValue: {
handler(n) {
n = n || [];
let keys = Object.keys(this.sort), total = keys.length, len = total - n.length;
let keys = this.sort, total = keys.length, len = total - n.length;
if (len < 0) {
for (let i = len; i < 0; i++) {
this.addRule(n.length + i, true);
Expand Down
2 changes: 1 addition & 1 deletion components/tdesign/group/src/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default defineComponent({
modelValue: {
handler(n) {
n = n || [];
let keys = Object.keys(this.sort), total = keys.length, len = total - n.length;
let keys = this.sort, total = keys.length, len = total - n.length;
if (len < 0) {
for (let i = len; i < 0; i++) {
this.addRule(n.length + i, true);
Expand Down

0 comments on commit a0a2238

Please sign in to comment.