Skip to content

Commit

Permalink
fix: #3
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jul 1, 2021
1 parent 79ff81b commit b617668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export default {
},
emits: ["click"],
setup(props, ctx) {
trace.trace("values-format");
console.log("values-format init", props.modelValue);
// trace.trace("values-format");
// console.log("values-format init", props.modelValue);
//const dict = useDict(props, ctx);
const ui = uiContext.get();
const COLOR_LIST = ui.tag.colors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
// 带事件的attrs
const allAttrs = computed(() => {
const vModel = props.vModel || "modelValue";
const modelValue = props.modelValue || (ui.type === "antdv" ? undefined : null);
const modelValue = props.modelValue ?? (ui.type === "antdv" ? undefined : null);
const attrs = {
ref: "targetRef",
// scope: props.scope,
Expand Down

0 comments on commit b617668

Please sign in to comment.