const h = _this.$createElement;
this.$prompt(h(
	'div', null, [
		h('div', { style: "display:flex;align-items: center" }, [
			h('span',{style:"width: 70px"}, '表达式:'),
			h('el-input', {
					props: {
						value: _this.tabs.second.funcExpression,
						readonly: true
					},
					on: {
					  input: (value) => {
						// this.value1 = value
							}
						}
				}),
		]),
		h('div',{ style: "display:flex;align-items: center;margin-top:5px" }, [
			h('span',{style:"width: 70px"}, '示例值:'),
			h('el-input', {
					props: {
					value: _this.tabs.second.outPut,
					readonly: true
					}
				}),
		])]), 
		'提示', 
		{
			confirmButtonText: '确定',
			cancelButtonText: '取消',
			inputPlaceholder: '请输入表达式描述(非必填)',
			inputType:'textarea'
		}).then(({ value }) => {
			//  todo .....
		}).catch();
==展示效果==

 

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐