@byteluck-fe/model-driven-settings 2.22.2-beta.8 → 2.23.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # Settings
2
- 自定义控件设置
3
-
4
- ```
5
- │ defineInstance.ts // 定义控件函数
6
- │ index.ts
7
- │ initSettings.ts // 初始化setting,被外部引用
8
-
9
- ├─default // 内部默认值
10
- │ createBaseFields.ts // 基础控件的默认setting
11
- │ createFormBaseFields.ts // 表单控件的默认setting
12
- │ index.ts
13
-
14
- ├─props // 内置的setting控件
15
- │ base.ts
16
- │ checkbox.ts
17
- │ custom.ts
18
- │ input-number.ts
19
- │ input.ts
20
- │ radio.ts
21
- │ select.ts
22
- │ switch.ts
23
- │ textarea.ts
24
-
25
- └─schema // setting的容器和schema定义
26
- group.ts
27
- index.ts
28
- setting.ts
29
- tab.ts
30
- ```
1
+ # Settings
2
+ 自定义控件设置
3
+
4
+ ```
5
+ │ defineInstance.ts // 定义控件函数
6
+ │ index.ts
7
+ │ initSettings.ts // 初始化setting,被外部引用
8
+
9
+ ├─default // 内部默认值
10
+ │ createBaseFields.ts // 基础控件的默认setting
11
+ │ createFormBaseFields.ts // 表单控件的默认setting
12
+ │ index.ts
13
+
14
+ ├─props // 内置的setting控件
15
+ │ base.ts
16
+ │ checkbox.ts
17
+ │ custom.ts
18
+ │ input-number.ts
19
+ │ input.ts
20
+ │ radio.ts
21
+ │ select.ts
22
+ │ switch.ts
23
+ │ textarea.ts
24
+
25
+ └─schema // setting的容器和schema定义
26
+ group.ts
27
+ index.ts
28
+ setting.ts
29
+ tab.ts
30
+ ```
@@ -1,8 +1,8 @@
1
- import { RulesMessage } from '@byteluck-fe/model-driven-shared';
1
+ import { $t } from '@byteluck/locale-message';
2
2
  export function createBaseFields() {
3
3
  return [
4
4
  {
5
- label: RulesMessage.getMessage('hide'),
5
+ label: $t('engine.hide'),
6
6
  key: 'isHide',
7
7
  type: 'boolean',
8
8
  component: 'switch'
@@ -34,15 +34,15 @@ export var BaseProps = /*#__PURE__*/ function() {
34
34
  "use strict";
35
35
  function BaseProps(props) {
36
36
  _class_call_check(this, BaseProps);
37
- /**
38
- * 显示隐藏
37
+ /**
38
+ * 显示隐藏
39
39
  * */ _define_property(this, "visible", void 0);
40
- /**
41
- * 开启表达式
40
+ /**
41
+ * 开启表达式
42
42
  * */ _define_property(this, "expression", void 0);
43
- /**
44
- *
45
- * 是否改变父属性
43
+ /**
44
+ *
45
+ * 是否改变父属性
46
46
  */ _define_property(this, "updateParent", void 0);
47
47
  var _props_visible;
48
48
  this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;