wui-components-v2 1.0.30 → 1.0.32
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { defineOptions, defineProps } from 'vue'
|
|
2
|
+
import { defineOptions, defineProps, ref } from 'vue'
|
|
3
3
|
import { useRouter } from 'uni-mini-router'
|
|
4
4
|
import { onLoad } from '@dcloudio/uni-app'
|
|
5
5
|
import type { ClassEditConfigs, Entities, Groups } from '../../type'
|
|
@@ -95,7 +95,7 @@ async function getDetailData() {
|
|
|
95
95
|
</view>
|
|
96
96
|
<view v-if="group.type === 'relation'">
|
|
97
97
|
<view v-for="field in data.arrayMap[group.id]" :key="field.code">
|
|
98
|
-
<foldCard :groups="group" :source-id="sourceId" :columns="group.fields" model="complex" :data="field">
|
|
98
|
+
<foldCard :enum-column="{}" :groups="group" :source-id="sourceId" :columns="group.fields" model="complex" :data="field">
|
|
99
99
|
<template #buttons>
|
|
100
100
|
<CardBotomButtons :source-id="group.id" :item="groups" :code="field.code" :data="data" />
|
|
101
101
|
</template>
|
|
@@ -548,7 +548,7 @@ function remove(group: Groups, field: Entities) {
|
|
|
548
548
|
</wd-button>
|
|
549
549
|
</view>
|
|
550
550
|
<view v-for="field in pageConfig?.entity?.arrayMap[group.id]" :key="field.code">
|
|
551
|
-
<foldCard :groups="group" :source-id="sourceId" :columns="group.fields" model="complex" :data="field">
|
|
551
|
+
<foldCard :enum-column="{}" :groups="group" :source-id="sourceId" :columns="group.fields" model="complex" :data="field">
|
|
552
552
|
<template #buttons>
|
|
553
553
|
<wd-button v-if="group.buttons.includes('dtmplEdit')" size="small" @click="edit(group, field)">
|
|
554
554
|
编辑
|
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { isArray } from '@alova/shared'
|
|
2
|
-
|
|
3
1
|
const baseUrl = uni.getStorageSync('BASE_URL')
|
|
4
2
|
const token = uni.getStorageSync('TOKEN')
|
|
5
3
|
const hydrocarbonProgramToken = uni.getStorageSync('HYDROCARBON_PROGRAM_TOKEN')
|
|
@@ -23,7 +21,7 @@ export function getCurrentPath() {
|
|
|
23
21
|
export function formatItemData(data: any, type: string) {
|
|
24
22
|
if (type === 'relselect' || type === 'tree-entity-select') {
|
|
25
23
|
// 判断data是否为数组
|
|
26
|
-
if (isArray(data)) {
|
|
24
|
+
if (Array.isArray(data)) {
|
|
27
25
|
const dataArr = data.map(item => item.split('@R@')[1]).join(',')
|
|
28
26
|
return dataArr
|
|
29
27
|
}
|