diff --git a/components/uni-data-picker/uni-data-picker.vue b/components/uni-data-picker/uni-data-picker.vue
index 20443e83..9651be40 100644
--- a/components/uni-data-picker/uni-data-picker.vue
+++ b/components/uni-data-picker/uni-data-picker.vue
@@ -1,365 +1,435 @@
-
-
-
-
-
- {{errorMessage}}
-
-
-
-
-
-
- {{item.text}}/
-
-
-
- {{placeholder}}
-
-
-
-
-
-
-
-
-
-
- {{popupTitle}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/uni-data-pickerview/uni-data-picker.js b/components/uni-data-pickerview/uni-data-picker.js
index 2b051df3..7bc01351 100644
--- a/components/uni-data-pickerview/uni-data-picker.js
+++ b/components/uni-data-pickerview/uni-data-picker.js
@@ -1,7 +1,7 @@
export default {
props: {
localdata: {
- type: Array,
+ type: [Array, Object],
default () {
return []
}
@@ -75,6 +75,10 @@ export default {
parentField: {
type: String,
default: ''
+ },
+ multiple: {
+ type: Boolean,
+ default: false
}
},
data() {
diff --git a/components/uni-data-pickerview/uni-data-pickerview.vue b/components/uni-data-pickerview/uni-data-pickerview.vue
index 84c98fc6..91d1f3b6 100644
--- a/components/uni-data-pickerview/uni-data-pickerview.vue
+++ b/components/uni-data-pickerview/uni-data-pickerview.vue
@@ -10,7 +10,7 @@
-
+
{{item.text}}
@@ -82,7 +82,11 @@
handleSelect(index) {
this.selectedIndex = index
},
- handleNodeClick(i, j) {
+ handleNodeClick(item, i, j) {
+ if (item.disable) {
+ return
+ }
+
const node = this.dataList[i][j]
const {
value,
@@ -243,6 +247,10 @@
display: flex;
flex-direction: row;
}
+
+ .is-disabled {
+ opacity: .5;
+ }
.item-text {
flex: 1;