feat:変数定義類型の変更対応
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { actionAddins } from ".";
|
||||
import { IAction, IActionResult, IActionNode, IActionProperty, IField ,IContext} from "../types/ActionTypes";
|
||||
import { IAction, IActionResult, IActionNode, IActionProperty, IField ,IContext, IVarName} from "../types/ActionTypes";
|
||||
/**
|
||||
* アクションの属性定義
|
||||
*/
|
||||
interface IDatetimeGetterProps {
|
||||
/**変数の名前 */
|
||||
verName:string;
|
||||
verName:IVarName;
|
||||
}
|
||||
/**
|
||||
* 現在日時を取得するアクション
|
||||
@@ -18,7 +18,7 @@ export class DatetimeGetterAction implements IAction {
|
||||
this.name = "現在日時";
|
||||
this.actionProps = [];
|
||||
this.props = {
|
||||
verName:''
|
||||
verName:{name:''}
|
||||
}
|
||||
this.register();
|
||||
}
|
||||
@@ -45,8 +45,8 @@ export class DatetimeGetterAction implements IAction {
|
||||
|
||||
let today = new Date();
|
||||
|
||||
if(this.props.verName){
|
||||
context.variables[this.props.verName]=today.toISOString();
|
||||
if(this.props.verName && this.props.verName.name!==''){
|
||||
context.variables[this.props.verName.name]=today.toISOString();
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user