@hostlink/nuxt-light 1.20.2 → 1.20.5
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/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/l-audit-card.vue +9 -8
- package/dist/runtime/components/l-date-picker.vue +7 -1
- package/dist/runtime/components/l-table-old.vue +718 -0
- package/dist/runtime/components/l-table.vue +37 -57
- package/dist/runtime/components/l-table2.vue +733 -29
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.js +4 -1
- package/dist/runtime/lib/getID.js +1 -1
- package/dist/runtime/lib/getObject.js +1 -1
- package/dist/runtime/lib/index.d.ts +1 -0
- package/dist/runtime/lib/index.js +1 -0
- package/dist/runtime/light.d.ts +8 -8
- package/dist/runtime/pages/MailLog/index.vue +2 -4
- package/dist/runtime/plugin.js +4 -1
- package/package.json +2 -2
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -299,7 +299,8 @@ const module = defineNuxtModule({
|
|
|
299
299
|
{ name: "notify", from },
|
|
300
300
|
{ name: "defineLightModel", from },
|
|
301
301
|
{ name: "LightModelField", from, type: true },
|
|
302
|
-
{ name: "LightModel", from, type: true }
|
|
302
|
+
{ name: "LightModel", from, type: true },
|
|
303
|
+
{ name: "collect", from }
|
|
303
304
|
]);
|
|
304
305
|
const files = await resolveFiles(process.cwd() + "/models", ["*"]);
|
|
305
306
|
nuxt.options.runtimeConfig.public.light = {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
<script setup>
|
|
1
|
+
<script setup lang="ts">
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const modelValue = defineModel<{
|
|
4
|
+
createdTime: string,
|
|
5
|
+
createdBy: string,
|
|
6
|
+
updatedTime: string,
|
|
7
|
+
updatedBy: string,
|
|
8
|
+
}>({
|
|
9
|
+
required: true
|
|
8
10
|
})
|
|
9
11
|
|
|
10
12
|
</script>
|
|
@@ -17,5 +19,4 @@ defineProps({
|
|
|
17
19
|
<l-item label="Updated by" v-if="modelValue.updatedBy">{{ modelValue.updatedBy }}</l-item>
|
|
18
20
|
</l-list>
|
|
19
21
|
</l-card>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
+
</template>
|
|
@@ -60,10 +60,16 @@ const localValue = computed({
|
|
|
60
60
|
|
|
61
61
|
return modelValue.value
|
|
62
62
|
},
|
|
63
|
-
set: (value: string) => {
|
|
63
|
+
set: (value: string | Object) => {
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
if (props.range) {
|
|
67
|
+
|
|
68
|
+
if (typeof value == "object") {
|
|
69
|
+
modelValue.value = value;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
67
73
|
//try to split
|
|
68
74
|
const parts = value.split(" - ");
|
|
69
75
|
if (parts.length == 2) {
|