vue-2024-ui 0.0.3 → 0.0.4
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
|
@@ -60,13 +60,14 @@
|
|
|
60
60
|
</slot>
|
|
61
61
|
</template>
|
|
62
62
|
|
|
63
|
-
<script setup
|
|
63
|
+
<script setup >
|
|
64
64
|
import dayjs from 'dayjs';
|
|
65
65
|
import ElementPlus from 'element-plus'
|
|
66
66
|
import { ElMessageBox } from 'element-plus';
|
|
67
67
|
import { computed, onMounted, reactive, watchEffect, h, createApp, ref } from 'vue';
|
|
68
68
|
import { ElDialog } from 'element-plus';
|
|
69
69
|
import gyc from "./index"
|
|
70
|
+
import GForm from './g-form.vue';
|
|
70
71
|
|
|
71
72
|
defineOptions({
|
|
72
73
|
name: "g-table",
|
|
@@ -119,12 +120,12 @@ model.value.control = {
|
|
|
119
120
|
},
|
|
120
121
|
read: (row, column, $index) => {
|
|
121
122
|
emits("read", row, column, $index);
|
|
122
|
-
model.value.form.disabled=true;
|
|
123
|
+
model.value.form.disabled = true;
|
|
123
124
|
openModal({
|
|
124
125
|
title: '查看',
|
|
125
126
|
slots: {
|
|
126
127
|
// 自定义插槽内容
|
|
127
|
-
default: () =>
|
|
128
|
+
default: () => h(GForm, { modelValue: model.value }),
|
|
128
129
|
},
|
|
129
130
|
});
|
|
130
131
|
}, ...model.value?.control?.read
|
|
@@ -135,13 +136,13 @@ model.value.control = {
|
|
|
135
136
|
return true;
|
|
136
137
|
},
|
|
137
138
|
edit: (row, column, $index) => {
|
|
138
|
-
model.value.form.disabled=undefined;
|
|
139
|
+
model.value.form.disabled = undefined;
|
|
139
140
|
emits("edit", row, column, $index);
|
|
140
141
|
openModal({
|
|
141
142
|
title: '编辑',
|
|
142
143
|
slots: {
|
|
143
144
|
// 自定义插槽内容
|
|
144
|
-
default: () =>
|
|
145
|
+
default: () => h(GForm, { modelValue: model.value }),
|
|
145
146
|
},
|
|
146
147
|
});
|
|
147
148
|
|
|
@@ -191,7 +192,7 @@ const openModal = (props = {}) => {
|
|
|
191
192
|
'onUpdate:modelValue': closeModal,
|
|
192
193
|
width: 635,
|
|
193
194
|
draggable: true,
|
|
194
|
-
"append-to-body":true,
|
|
195
|
+
"append-to-body": true,
|
|
195
196
|
...props
|
|
196
197
|
},
|
|
197
198
|
() => [
|