diff --git a/css/api_block/index.css b/css/api_block/index.css index 3e33daee..84e4a825 100644 --- a/css/api_block/index.css +++ b/css/api_block/index.css @@ -595,6 +595,11 @@ flex-direction: column; justify-content: center; } +.vp-apiblock-style-flex-column-between { + display: flex; + flex-direction: column; + justify-content: space-between; +} .vp-apiblock-style-flex-row-around { display: flex; @@ -606,11 +611,6 @@ flex-direction: row; justify-content: space-evenly; } -.vp-apiblock-style-flex-row-between { - display: flex; - flex-direction: row; - justify-content: space-between; -} .vp-apiblock-style-flex-row-end { display: flex; flex-direction: row; @@ -1021,6 +1021,11 @@ background-color: white; } +.vp-apiblock-param-box-btn { + width: 100px; + margin: 10px 0px; +} + .vp-apiblock-option-plus-button { min-width: 80px; height: 30px; diff --git a/src/api_block/api.js b/src/api_block/api.js index 068b0511..ef2ab910 100644 --- a/src/api_block/api.js +++ b/src/api_block/api.js @@ -14,6 +14,8 @@ define([ , FOR_BLOCK_ARG3_TYPE + , DEF_BLOCK_ARG6_TYPE + , STR_GRP_DEFINE , STR_GRP_CONTROL , STR_GRP_EXECUTE @@ -369,9 +371,9 @@ define([ defInParamList.forEach(( defInParam, index ) => { const { arg3, arg5 ,arg6 } = defInParam; - if (arg6 == '*args') { + if (arg6 == DEF_BLOCK_ARG6_TYPE.ARGS) { defInParamStr += '*'; - } else if (arg6 == '**kwargs') { + } else if (arg6 == DEF_BLOCK_ARG6_TYPE.KWARGS) { defInParamStr += '**'; } diff --git a/src/api_block/component/option/class_option.js b/src/api_block/component/option/class_option.js index 4e50ed55..0ba06339 100644 --- a/src/api_block/component/option/class_option.js +++ b/src/api_block/component/option/class_option.js @@ -62,21 +62,22 @@ define([ idStr = `vp_apiblockClassOptionName${uuid}`; classStr = `vp-apiblock-input-class-name-${uuid}`; - blockCodeName = 'Name'; - inputStyleStr = 'width: 82%'; + blockCodeName = 'Class Name'; + inputStyleStr = 'width: 100%'; var nameDom = $(`