Updated on 2025-03-24 GMT+08:00

propertiesConfig

Field Description

The propertiesConfig is an array, which is used to store the fields related to the widget configuration items, including the data access configuration and widget configuration item.

Figure 1 propertiesConfig configuration example

Data Access Configuration

For details about data access configuration, see Widget Data Access.

Widget Configuration Items

The following is a configuration example. The configuration effect is shown in Figure 2. For details about widget configuration items, see Table 1.

{
      migrateFrom: 'advancedSettings',
      headerTitle: { zh_CN: 'Data Mapping', en_US: 'Data Mapping' },
      belong: 'configuration',
      config: [
        {
          type: 'select',
          name: 'commonProps.emphasisFocus',
          label: { zh_CN: ''Emphasis Focus', en_US: 'Emphasis Focus' },
          value: 'series',
          options: [
            {
              label: { zh_CN: 'None', en_US: 'None' },
              value: 'none',
            },
            {
              label: { zh_CN: 'Self', en_US: 'Self' },
              value: 'self',
            },
            {
              label: { zh_CN: 'Series', en_US: 'Series' },
              value: 'series',
            },
          ],
        },
        {
          type: 'tab',
          name: 'commonProps.showLabel',
          label: { zh_CN: 'Emphasis Focus', en_US: 'Emphasis Focus' },
          value: true,
          options: [
            {
              label: { zh_CN: 'Show', en_US: 'Show' },
              value: true,
            },
            {
              label: { zh_CN: 'Hide', en_US: 'Hide' },
              value: false,
            },
         ],
       },
    ],
 },
Figure 2 Effect
Table 1 Widget configuration items

Field

Type

Example

Description

migrateFrom

String

migrateFrom: "advancedSettings"

Fixed format. After the configuration, the configuration items are filtered out on the attribute panel on the right.

headerTitle

Object

headerTitle: { zh_CN: "Row Configuration", en_US: "Row Configuration" },

Title, which needs to be internationalized.

belong

String

belong: "configuration",

Classification to which it belongs.

config

Array

config: []

Configuration item information saved by each object in the config array. For details about the configuration items in config, see Widget Configuration Items (Config).