Sfoglia il codice sorgente

picker text 绑定错误

icssoa 7 mesi fa
parent
commit
9aeb5925be

+ 1 - 1
uni_modules/cool-ui/components/cl-picker-view/cl-picker-view.uvue

@@ -44,7 +44,7 @@
 									[isDark && index == value[columnIndex], '!text-white']
 								])
 							}"
-							>{{ item.value }}</cl-text
+							>{{ item.label }}</cl-text
 						>
 					</view>
 				</picker-view-column>

+ 1 - 2
uni_modules/cool-ui/components/cl-select/cl-select.uvue

@@ -30,7 +30,7 @@
 				<cl-picker-view
 					:value="indexes"
 					:columns="columns"
-					@change="onChange"
+					@change-index="onChange"
 				></cl-picker-view>
 			</view>
 
@@ -68,7 +68,6 @@ import { isEmpty, parsePt } from "@/cool";
 import type { ClSelectTriggerPassThrough } from "../cl-select-trigger/props";
 import type { ClPopupPassThrough } from "../cl-popup/props";
 import { t } from "@/locale";
-import { useForm } from "../../hooks";
 
 defineOptions({
 	name: "cl-select"