-
-
- {
- eventBtns.length > 1 ? 点击选择事件类型 : 点击绑定事件
- }
-
-
-
- {selectType && selectType != EVENT_CONTENTS.NATIVE_EVENT && (
-
- )}
-
- {selectType && selectType === EVENT_CONTENTS.NATIVE_EVENT && (
-
- )}
-
-
-
- );
- }
-}
diff --git a/packages/editor-setters/src/expression-setter/index.tsx b/packages/editor-setters/src/expression-setter/index.tsx
deleted file mode 100644
index a4195a7a1..000000000
--- a/packages/editor-setters/src/expression-setter/index.tsx
+++ /dev/null
@@ -1,349 +0,0 @@
-import React, { PureComponent } from 'react';
-import PropTypes from 'prop-types';
-import { Select, Balloon } from '@alife/next';
-import * as acorn from 'acorn';
-
-import { isJSExpression, generateI18n } from './locale/utils';
-import zhCN from './locale/zh-CN';
-
-import './index.scss';
-
-const { Option, AutoComplete } = Select;
-const { Tooltip } = Balloon;
-const helpMap = {
- this: '容器上下文对象',
- state: '容器的state',
- props: '容器的props',
- context: '容器的context',
- schema: '页面上下文对象',
- component: '组件上下文对象',
- constants: '应用常量对象',
- utils: '应用工具对象',
- dataSourceMap: '容器数据源Map',
- field: '表单Field对象',
-};
-
-export default class ExpressionView extends PureComponent {
- static displayName = 'Expression';
-
- static propTypes = {
- context: PropTypes.object,
- dataSource: PropTypes.array,
- locale: PropTypes.string,
- messages: PropTypes.object,
- onChange: PropTypes.func,
- placeholder: PropTypes.string,
- value: PropTypes.string,
- };
-
- static defaultProps = {
- context: {},
- dataSource: [],
- locale: 'zh-CN',
- messages: zhCN,
- onChange: () => {},
- placeholder: '',
- value: '',
- };
-
- expression: React.RefObject