Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prop): add visible config !#zh: 增加是否 在属性编辑面板显示属性的配置 #204

Merged
merged 1 commit into from
Jul 19, 2020

Conversation

ly525
Copy link
Owner

@ly525 ly525 commented Jul 19, 2020

add visible config for prop, sample

color: {
  type: String,
  visible: true, // here
  editor: {
    type: 'el-color-picker',
    defaultValue: '#fff'
  }
}

!#en: you can config whether show the prop in props config editor

!#zh:

  1. 如果开发者给 某个prop 显式指定了 visible 属性,则取开发者指定的值;
  2. 否则取默认值:true,即默认在属性面板显示该属性
  3. 组件的某些属性是不需要显示在 配置编辑器的,比如:editorMode(编辑模式/预览模式),因为这个是鲁班编辑器默认注入到每个组件的,无须显示出来

@ly525 ly525 merged commit 3b894fd into master Jul 19, 2020
@ly525 ly525 deleted the feature_prop_add_visible_config branch July 19, 2020 11:08
@ly525 ly525 changed the title feat(prop): add visible config feat(prop): add visible config !#zh: 增加是否 在属性编辑面板显示属性的配置 Jul 19, 2020
@ly525 ly525 linked an issue Jul 19, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant