amis 1.9.1-beta.13 → 1.9.1-beta.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/lib/components/Select.js +2 -2
  2. package/lib/components/Select.js.map +2 -2
  3. package/lib/components/formula/Editor.d.ts +44 -40
  4. package/lib/components/formula/Editor.js +16 -5
  5. package/lib/components/formula/Editor.js.map +2 -2
  6. package/lib/components/formula/Picker.d.ts +88 -41
  7. package/lib/components/formula/Picker.js +49 -22
  8. package/lib/components/formula/Picker.js.map +2 -2
  9. package/lib/index.js +1 -1
  10. package/lib/locale/zh-CN.js +1 -1
  11. package/lib/locale/zh-CN.js.map +2 -2
  12. package/lib/renderers/Action.js +2 -1
  13. package/lib/renderers/Action.js.map +2 -2
  14. package/lib/renderers/CRUD.js +3 -0
  15. package/lib/renderers/CRUD.js.map +2 -2
  16. package/lib/renderers/Form/InputFormula.d.ts +6 -2
  17. package/lib/renderers/Form/InputFormula.js +4 -3
  18. package/lib/renderers/Form/InputFormula.js.map +2 -2
  19. package/lib/renderers/Form/InputTree.d.ts +4 -0
  20. package/lib/renderers/Form/InputTree.js +2 -2
  21. package/lib/renderers/Form/InputTree.js.map +2 -2
  22. package/lib/renderers/Table/index.js +2 -1
  23. package/lib/renderers/Table/index.js.map +2 -2
  24. package/lib/renderers/Tabs.d.ts +6 -2
  25. package/lib/renderers/Tabs.js +21 -0
  26. package/lib/renderers/Tabs.js.map +2 -2
  27. package/lib/themes/ang-ie11.css +45 -6
  28. package/lib/themes/ang.css +40 -6
  29. package/lib/themes/ang.css.map +1 -1
  30. package/lib/themes/antd-ie11.css +45 -6
  31. package/lib/themes/antd.css +40 -6
  32. package/lib/themes/antd.css.map +1 -1
  33. package/lib/themes/cxd-ie11.css +45 -6
  34. package/lib/themes/cxd.css +40 -6
  35. package/lib/themes/cxd.css.map +1 -1
  36. package/lib/themes/dark-ie11.css +45 -6
  37. package/lib/themes/dark.css +40 -6
  38. package/lib/themes/dark.css.map +1 -1
  39. package/lib/themes/default-ie11.css +45 -6
  40. package/lib/themes/default.css +40 -6
  41. package/lib/themes/default.css.map +1 -1
  42. package/lib/utils/formula.js +4 -3
  43. package/lib/utils/formula.js.map +2 -2
  44. package/package.json +2 -2
  45. package/schema.json +41 -38
  46. package/scss/components/_formula.scss +45 -4
  47. package/scss/components/form/_checks.scss +47 -44
  48. package/scss/components/form/_select.scss +3 -2
  49. package/sdk/ang-ie11.css +52 -6
  50. package/sdk/ang.css +47 -6
  51. package/sdk/antd-ie11.css +52 -6
  52. package/sdk/antd.css +47 -6
  53. package/sdk/barcode.js +51 -51
  54. package/sdk/charts.js +14 -14
  55. package/sdk/codemirror.js +7 -7
  56. package/sdk/color-picker.js +65 -65
  57. package/sdk/cropperjs.js +2 -2
  58. package/sdk/cxd-ie11.css +52 -6
  59. package/sdk/cxd.css +47 -6
  60. package/sdk/dark-ie11.css +52 -6
  61. package/sdk/dark.css +47 -6
  62. package/sdk/exceljs.js +1 -1
  63. package/sdk/markdown.js +69 -69
  64. package/sdk/papaparse.js +1 -1
  65. package/sdk/renderers/Form/CityDB.js +1 -1
  66. package/sdk/rest.js +16 -16
  67. package/sdk/rich-text.js +62 -62
  68. package/sdk/sdk-ie11.css +52 -6
  69. package/sdk/sdk.css +47 -6
  70. package/sdk/sdk.js +1339 -1339
  71. package/sdk/thirds/hls.js/hls.js +1 -1
  72. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  73. package/sdk/tinymce.js +57 -57
  74. package/src/components/Select.tsx +3 -6
  75. package/src/components/formula/Editor.tsx +51 -23
  76. package/src/components/formula/Picker.tsx +67 -9
  77. package/src/locale/zh-CN.ts +1 -1
  78. package/src/renderers/Action.tsx +2 -1
  79. package/src/renderers/CRUD.tsx +2 -0
  80. package/src/renderers/Form/InputFormula.tsx +11 -3
  81. package/src/renderers/Form/InputTree.tsx +7 -0
  82. package/src/renderers/Table/index.tsx +9 -7
  83. package/src/renderers/Tabs.tsx +33 -3
  84. package/src/utils/formula.ts +5 -3
@@ -180,12 +180,13 @@ function registerFormulaExec(execMode, formulaExec) {
180
180
  exports.registerFormulaExec = registerFormulaExec;
181
181
  // 用于判断是否优先使用value。
182
182
  function isExpression(expression) {
183
- if (!(0, isString_1.default)(expression)) {
183
+ if (!expression || !(0, isString_1.default)(expression)) {
184
184
  // 非字符串类型,比如:Object、Array类型、boolean、number类型
185
185
  return false;
186
186
  }
187
- // 备注: "\\${xxx}"不作为表达式,至少含一个${xxx}才算是表达式
188
- return /(?<!\\)(\${).+(\})/.test(expression);
187
+ // 备注1: "\\${xxx}"不作为表达式,至少含一个${xxx}才算是表达式
188
+ // 备注2: safari 不支持 /(?<!\\)(\${).+(\})/.test(expression)
189
+ return /(^|[^\\])\$\{.+\}/.test(expression);
189
190
  }
190
191
  exports.isExpression = isExpression;
191
192
  // 用于判断是否需要执行表达式:
@@ -6,8 +6,8 @@
6
6
  "/src/utils/formula.ts"
7
7
  ],
8
8
  "names": [],
9
- "mappings": ";;;;AAAA,0EAA+C;AAC/C,0EAAuC;AACvC,4EAAyC;AACzC,6CAMsB;AAEtB,6BAA6B;AAC7B,6CAAyC;AACzC,qCAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,YAAY;AACZ,IAAM,kBAAkB,GAA8B,EAAE,CAAC;AAEzD;;;GAGG;AACU,QAAA,WAAW,GAEpB;IACF,GAAG,EAAE,UAAC,UAAkB,EAAE,IAAa;QACrC,IAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QAC3B,OAAO,IAAA,YAAM,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,EAAE,UAAC,UAAkB,EAAE,IAAa;QACzC,kCAAkC;QAClC,IACE,uEAAuE,CAAC,IAAI,CAC1E,UAAU,CACX,EACD;YACA,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW;SACnE;QACD,IAAM,OAAO,GAAG,IAAI,IAAI,EAA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AgB,mBAAmB,CAAC,QAAgB,EAAE,WAAqB;IACzE,IAAI,mBAAW,CAAC,QAAQ,CAAC,EAAE;QACzB,OAAO,CAAC,KAAK,CACX,8IAAoD,CACrD,CAAC;KACH;SAAM;QACL,mBAAW,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC;KACrC;AACH,CAAC;AARD,kDAQC;AAED,mBAAmB;AACnB,SAAgB,YAAY,CAAC,UAAe;IAC1C,IAAI,CAAC,UAAU,IAAI,CAAC,IAAA,kBAAQ,EAAC,UAAU,CAAC,EAAE;QACxC,4CAA4C;QAC5C,OAAO,KAAK,CAAC;KACd;IACD,0CAA0C;IAE1C,yDAAyD;IACzD,OAAO,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAC9C,CAAC;AATD,oCASC;AAED,iBAAiB;AACjB,SAAgB,aAAa,CAC3B,UAAe,EACf,QAAmC,EACnC,OAAkC;IAElC,IAAM,SAAS,GAAG,mBAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAClD,OAAO,SAAS,CAAC,IAAI,CACnB,UAAC,QAAgB;QACf,OAAA,mBAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,mBAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC;IAA1E,CAA0E,CAC7E,CAAC;AACJ,CAAC;AAVD,sCAUC;AAED,qBAAqB;AACrB,SAAgB,iBAAiB,CAAC,UAAe;IAC/C,IAAI,UAAU,IAAI,IAAA,kBAAQ,EAAC,UAAU,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QAC5E,OAAO,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;KAC5C;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AALD,8CAKC",
10
10
  "sourcesContent": [
11
- "import isObjectByLodash from 'lodash/isObject';\nimport isString from 'lodash/isString';\nimport isBoolean from 'lodash/isBoolean';\nimport {\n getVariable,\n isPureVariable,\n resolveVariable,\n resolveVariableAndFilter,\n evaluate\n} from 'amis-formula';\n\nimport {filter} from './tpl';\nimport {getFilters} from './tpl-builtin';\nimport {collectVariables} from './grammar';\n\n/**\n * formulaExec 运算器:根据当前字符串类型执行对应运算,也可按指定执行模式执行运算\n *\n * 运算模式(execMode)支持以下取值:\n * 1. tpl: 按模板字符串执行(JavaScript 模板引擎),比如:Hello ${amisUser.email}、<h1>Hello</h1>, <span>${amisUser.email}</span>;\n * 备注: 在模板中可以自由访问变量,详细请见:https://www.lodashjs.com/docs/lodash.template;\n * 2. formula: 按新版公式表达式执行,用于执行 ${ xxx } 格式的表达式;\n * 支持从window、localStorage、sessionStorage获取数据,比如:${num1 + 2}、${ls:env}、${window:document}、${window:document.URL}、${amisUser.email};\n * 详细请见:https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/data-mapping#namespace\n * 3. evalFormula: 按新版公式表达式执行,用于执行 ${ xxx } 和 非${ xxx } 格式的表达式(evalMode 为 true,不用 ${} 包裹也可以执行),功能同 formula 运算模式;\n * 4. js: 按Javascript执行,表达式中可以通过data.xxx来获取指定数据,并且支持简单运算;\n * 比如:data.num1 + 2、this.num1 + 2、num1 + 2;(备注:三个表达式是等价的,这里的 this 就是 data。)\n * 5. var: 以此字符串作为key值从当前数据域data中获取数值;性能最高(运行期间不会生成ast和表达式运算);\n * 6. true 或者 false: 当execMode设置为true时,不用 ${} 包裹也可以执行表达式;\n * 7. collect: 用于从表达式中获取所有变量;\n * \n * 备注1: 用户也可以使用 registerFormulaExec 注册一个自定义运算器;\n * 备注2: 模板字符串 和 Javascript 模板引擎 不可以交叉使用;\n * 备注3: amis 现有的 evalFormula 方法,可执行 ${} 格式类表达式,但不支持 filter 过滤器,所以这里用 resolveValueByName 实现;\n * 备注4: 后续可考虑将 amis现有的运算器都放这里管理,充当统一的运算器入口。\n */\n\n// 缓存,用于提升性能\nconst FORMULA_EVAL_CACHE: {[key: string]: Function} = {};\n\n/**\n * 用于存储当前可用运算器,默认支持 tpl、formula、js、var 四种类型运算器\n * 备注:在这里统一参数。\n */\nexport const FormulaExec: {\n [key: string]: Function;\n} = {\n tpl: (expression: string, data?: object) => {\n const curData = data || {};\n return filter(expression, curData);\n },\n formula: (expression: string, data?: object) => {\n // 邮箱格式直接返回,后续需要在 amis-formula 中处理\n if (\n /^\\$\\{([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})\\}$/.test(\n expression\n )\n ) {\n return expression.substring(2, expression.length - 1); // 剔除前后特殊字符\n }\n const curData = data || {};\n let result = undefined;\n try {\n // 执行 ${} 格式类表达式,且支持 filter 过滤器。(备注: isPureVariable 可用于判断是否有 过滤器。)\n result = resolveVariableAndFilter(expression, curData, '| raw');\n } catch (e) {\n console.warn(\n '[formula]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n // 备注: 此处不用 result ?? expression 是为了避免 没有对应结果时直接显示 expression: ${xxx}\n return result;\n },\n evalFormula: (expression: string, data?: object) => {\n const curData = data || {};\n let result = undefined;\n try {\n result = evaluate(expression, curData, {\n evalMode: true, // evalMode 为 true 时,不用 ${} 包裹也可以执行,\n allowFilter: false\n });\n } catch (e) {\n console.warn(\n '[evalFormula]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n return result ?? expression;\n },\n js: (expression: string, data?: object) => {\n let debug = false;\n const idx = expression.indexOf('debugger');\n if (~idx) {\n debug = true;\n expression = expression.replace(/debugger;?/, '');\n }\n\n let fn;\n if (expression in FORMULA_EVAL_CACHE) {\n fn = FORMULA_EVAL_CACHE[expression];\n } else {\n fn = new Function(\n 'data',\n 'utils',\n `with(data) {${debug ? 'debugger;' : ''}return (${expression});}`\n );\n FORMULA_EVAL_CACHE[expression] = fn;\n }\n\n data = data || {};\n\n let curResult = undefined;\n try {\n curResult = fn.call(data, data, getFilters());\n } catch (e) {\n console.warn(\n '[formula:js]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n return curResult;\n },\n var: (expression: string, data?: object) => {\n const curData = data || {};\n const result = getVariable(curData, expression); // 不支持过滤器\n return result ?? expression;\n },\n collect: (expression: any) => {\n let variables: Array<string> = [];\n if (isObjectByLodash(expression) || isString(expression)) {\n // 仅对 Object类型 和 String类型 进行变量提取\n variables = collectVariables(expression);\n } else {\n variables = [];\n }\n return variables;\n }\n};\n\n// 根据表达式类型自动匹配指定运算器,也可以通过设置 execMode 直接指定运算器\nexport function formulaExec(\n value: any,\n data: any,\n execMode?: string | boolean\n) {\n if (!value) {\n return '';\n }\n let OpenFormulaExecEvalMode = false;\n let curExecMode = '';\n if (isBoolean(execMode)) {\n // OpenFormulaExecEvalMode 设置为 true 后,非 ${ xxx } 格式也使用表达式运算器\n OpenFormulaExecEvalMode = execMode;\n } else if (isString(execMode)) {\n // 指定 execMode 可以直接选用对应的运算器\n curExecMode = execMode;\n }\n if (!isString(value)) {\n // 非字符串类型,直接返回,比如:boolean、number类型、Object、Array类型\n return value;\n } else if (curExecMode && FormulaExec[curExecMode]) {\n return FormulaExec[curExecMode];\n }\n\n const curValue = value.trim(); // 剔除前后空格\n\n // OpenFormulaExecEvalMode 为 true 时,非 ${ xxx } 格式也会尝试使用表达式运算器\n if (OpenFormulaExecEvalMode && /^[0-9a-zA-z_]+$/.test(curValue)) {\n // 普通字符串类型(非表达式),先试一下从上下文中获取数据\n const curValueTemp = FormulaExec['var'](curValue, data);\n // 备注: 其他特殊格式,比如邮箱、日期\n return curValueTemp ?? curValue;\n } else if (curValue.startsWith('${') && curValue.endsWith('}')) {\n // ${ xxx } 格式 使用 formula 运算器\n return FormulaExec['formula'](curValue, data);\n } else if (isExpression(test)) {\n // 表达式格式使用 formula 运算器\n return FormulaExec['formula'](curValue, data);\n } else if (/(\\${).+(\\})/.test(curValue)) {\n // 包含 ${ xxx } 则使用 tpl 运算器\n return FormulaExec['tpl'](curValue, data); // 可识别 <% %> 语法\n } else if (OpenFormulaExecEvalMode) {\n // 支持 ${} 和 非 ${} 表达式\n return FormulaExec['evalFormula'](curValue, data);\n } else {\n return curValue;\n }\n}\n\n// 用于注册自定义 formulaExec 运算器\nexport function registerFormulaExec(execMode: string, formulaExec: Function) {\n if (FormulaExec[execMode]) {\n console.error(\n `registerFormulaExec: 运算器注册失败,存在同名运算器($(execMode))。`\n );\n } else {\n FormulaExec[execMode] = formulaExec;\n }\n}\n\n// 用于判断是否优先使用value。\nexport function isExpression(expression: any): boolean {\n if (!isString(expression)) {\n // 非字符串类型,比如:Object、Array类型、boolean、number类型\n return false;\n }\n // 备注: \"\\\\${xxx}\"不作为表达式,至少含一个${xxx}才算是表达式\n return /(?<!\\\\)(\\${).+(\\})/.test(expression);\n}\n\n// 用于判断是否需要执行表达式:\nexport function isNeedFormula(\n expression: any,\n prevData: {[propName: string]: any},\n curData: {[propName: string]: any}\n): boolean {\n const variables = FormulaExec.collect(expression);\n return variables.some(\n (variable: string) =>\n FormulaExec.var(variable, prevData) !== FormulaExec.var(variable, curData)\n );\n}\n\n// 将 \\${xx} 替换成 ${xx}\nexport function replaceExpression(expression: any): any {\n if (expression && isString(expression) && /(\\\\)(\\${).+(\\})/.test(expression)) {\n return expression.replace(/\\\\\\$\\{/g, '${');\n }\n return expression;\n}\n"
11
+ "import isObjectByLodash from 'lodash/isObject';\nimport isString from 'lodash/isString';\nimport isBoolean from 'lodash/isBoolean';\nimport {\n getVariable,\n isPureVariable,\n resolveVariable,\n resolveVariableAndFilter,\n evaluate\n} from 'amis-formula';\n\nimport {filter} from './tpl';\nimport {getFilters} from './tpl-builtin';\nimport {collectVariables} from './grammar';\n\n/**\n * formulaExec 运算器:根据当前字符串类型执行对应运算,也可按指定执行模式执行运算\n *\n * 运算模式(execMode)支持以下取值:\n * 1. tpl: 按模板字符串执行(JavaScript 模板引擎),比如:Hello ${amisUser.email}、<h1>Hello</h1>, <span>${amisUser.email}</span>;\n * 备注: 在模板中可以自由访问变量,详细请见:https://www.lodashjs.com/docs/lodash.template;\n * 2. formula: 按新版公式表达式执行,用于执行 ${ xxx } 格式的表达式;\n * 支持从window、localStorage、sessionStorage获取数据,比如:${num1 + 2}、${ls:env}、${window:document}、${window:document.URL}、${amisUser.email};\n * 详细请见:https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/data-mapping#namespace\n * 3. evalFormula: 按新版公式表达式执行,用于执行 ${ xxx } 和 非${ xxx } 格式的表达式(evalMode 为 true,不用 ${} 包裹也可以执行),功能同 formula 运算模式;\n * 4. js: 按Javascript执行,表达式中可以通过data.xxx来获取指定数据,并且支持简单运算;\n * 比如:data.num1 + 2、this.num1 + 2、num1 + 2;(备注:三个表达式是等价的,这里的 this 就是 data。)\n * 5. var: 以此字符串作为key值从当前数据域data中获取数值;性能最高(运行期间不会生成ast和表达式运算);\n * 6. true 或者 false: 当execMode设置为true时,不用 ${} 包裹也可以执行表达式;\n * 7. collect: 用于从表达式中获取所有变量;\n * \n * 备注1: 用户也可以使用 registerFormulaExec 注册一个自定义运算器;\n * 备注2: 模板字符串 和 Javascript 模板引擎 不可以交叉使用;\n * 备注3: amis 现有的 evalFormula 方法,可执行 ${} 格式类表达式,但不支持 filter 过滤器,所以这里用 resolveValueByName 实现;\n * 备注4: 后续可考虑将 amis现有的运算器都放这里管理,充当统一的运算器入口。\n */\n\n// 缓存,用于提升性能\nconst FORMULA_EVAL_CACHE: {[key: string]: Function} = {};\n\n/**\n * 用于存储当前可用运算器,默认支持 tpl、formula、js、var 四种类型运算器\n * 备注:在这里统一参数。\n */\nexport const FormulaExec: {\n [key: string]: Function;\n} = {\n tpl: (expression: string, data?: object) => {\n const curData = data || {};\n return filter(expression, curData);\n },\n formula: (expression: string, data?: object) => {\n // 邮箱格式直接返回,后续需要在 amis-formula 中处理\n if (\n /^\\$\\{([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})\\}$/.test(\n expression\n )\n ) {\n return expression.substring(2, expression.length - 1); // 剔除前后特殊字符\n }\n const curData = data || {};\n let result = undefined;\n try {\n // 执行 ${} 格式类表达式,且支持 filter 过滤器。(备注: isPureVariable 可用于判断是否有 过滤器。)\n result = resolveVariableAndFilter(expression, curData, '| raw');\n } catch (e) {\n console.warn(\n '[formula]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n // 备注: 此处不用 result ?? expression 是为了避免 没有对应结果时直接显示 expression: ${xxx}\n return result;\n },\n evalFormula: (expression: string, data?: object) => {\n const curData = data || {};\n let result = undefined;\n try {\n result = evaluate(expression, curData, {\n evalMode: true, // evalMode 为 true 时,不用 ${} 包裹也可以执行,\n allowFilter: false\n });\n } catch (e) {\n console.warn(\n '[evalFormula]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n return result ?? expression;\n },\n js: (expression: string, data?: object) => {\n let debug = false;\n const idx = expression.indexOf('debugger');\n if (~idx) {\n debug = true;\n expression = expression.replace(/debugger;?/, '');\n }\n\n let fn;\n if (expression in FORMULA_EVAL_CACHE) {\n fn = FORMULA_EVAL_CACHE[expression];\n } else {\n fn = new Function(\n 'data',\n 'utils',\n `with(data) {${debug ? 'debugger;' : ''}return (${expression});}`\n );\n FORMULA_EVAL_CACHE[expression] = fn;\n }\n\n data = data || {};\n\n let curResult = undefined;\n try {\n curResult = fn.call(data, data, getFilters());\n } catch (e) {\n console.warn(\n '[formula:js]表达式执行异常,当前表达式: ',\n expression,\n ',当前上下文数据: ',\n data\n );\n return expression;\n }\n return curResult;\n },\n var: (expression: string, data?: object) => {\n const curData = data || {};\n const result = getVariable(curData, expression); // 不支持过滤器\n return result ?? expression;\n },\n collect: (expression: any) => {\n let variables: Array<string> = [];\n if (isObjectByLodash(expression) || isString(expression)) {\n // 仅对 Object类型 和 String类型 进行变量提取\n variables = collectVariables(expression);\n } else {\n variables = [];\n }\n return variables;\n }\n};\n\n// 根据表达式类型自动匹配指定运算器,也可以通过设置 execMode 直接指定运算器\nexport function formulaExec(\n value: any,\n data: any,\n execMode?: string | boolean\n) {\n if (!value) {\n return '';\n }\n let OpenFormulaExecEvalMode = false;\n let curExecMode = '';\n if (isBoolean(execMode)) {\n // OpenFormulaExecEvalMode 设置为 true 后,非 ${ xxx } 格式也使用表达式运算器\n OpenFormulaExecEvalMode = execMode;\n } else if (isString(execMode)) {\n // 指定 execMode 可以直接选用对应的运算器\n curExecMode = execMode;\n }\n if (!isString(value)) {\n // 非字符串类型,直接返回,比如:boolean、number类型、Object、Array类型\n return value;\n } else if (curExecMode && FormulaExec[curExecMode]) {\n return FormulaExec[curExecMode];\n }\n\n const curValue = value.trim(); // 剔除前后空格\n\n // OpenFormulaExecEvalMode 为 true 时,非 ${ xxx } 格式也会尝试使用表达式运算器\n if (OpenFormulaExecEvalMode && /^[0-9a-zA-z_]+$/.test(curValue)) {\n // 普通字符串类型(非表达式),先试一下从上下文中获取数据\n const curValueTemp = FormulaExec['var'](curValue, data);\n // 备注: 其他特殊格式,比如邮箱、日期\n return curValueTemp ?? curValue;\n } else if (curValue.startsWith('${') && curValue.endsWith('}')) {\n // ${ xxx } 格式 使用 formula 运算器\n return FormulaExec['formula'](curValue, data);\n } else if (isExpression(test)) {\n // 表达式格式使用 formula 运算器\n return FormulaExec['formula'](curValue, data);\n } else if (/(\\${).+(\\})/.test(curValue)) {\n // 包含 ${ xxx } 则使用 tpl 运算器\n return FormulaExec['tpl'](curValue, data); // 可识别 <% %> 语法\n } else if (OpenFormulaExecEvalMode) {\n // 支持 ${} 和 非 ${} 表达式\n return FormulaExec['evalFormula'](curValue, data);\n } else {\n return curValue;\n }\n}\n\n// 用于注册自定义 formulaExec 运算器\nexport function registerFormulaExec(execMode: string, formulaExec: Function) {\n if (FormulaExec[execMode]) {\n console.error(\n `registerFormulaExec: 运算器注册失败,存在同名运算器($(execMode))。`\n );\n } else {\n FormulaExec[execMode] = formulaExec;\n }\n}\n\n// 用于判断是否优先使用value。\nexport function isExpression(expression: any): boolean {\n if (!expression || !isString(expression)) {\n // 非字符串类型,比如:Object、Array类型、boolean、number类型\n return false;\n }\n // 备注1: \"\\\\${xxx}\"不作为表达式,至少含一个${xxx}才算是表达式\n \n // 备注2: safari 不支持 /(?<!\\\\)(\\${).+(\\})/.test(expression) \n return /(^|[^\\\\])\\$\\{.+\\}/.test(expression);\n}\n\n// 用于判断是否需要执行表达式:\nexport function isNeedFormula(\n expression: any,\n prevData: {[propName: string]: any},\n curData: {[propName: string]: any}\n): boolean {\n const variables = FormulaExec.collect(expression);\n return variables.some(\n (variable: string) =>\n FormulaExec.var(variable, prevData) !== FormulaExec.var(variable, curData)\n );\n}\n\n// 将 \\${xx} 替换成 ${xx}\nexport function replaceExpression(expression: any): any {\n if (expression && isString(expression) && /(\\\\)(\\${).+(\\})/.test(expression)) {\n return expression.replace(/\\\\\\$\\{/g, '${');\n }\n return expression;\n}\n"
12
12
  ]
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis",
3
- "version": "1.9.1-beta.13",
3
+ "version": "1.9.1-beta.19",
4
4
  "description": "一种MIS页面生成工具",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -43,7 +43,7 @@
43
43
  ]
44
44
  },
45
45
  "dependencies": {
46
- "amis-formula": "^1.3.13",
46
+ "amis-formula": "^1.3.15",
47
47
  "ansi-to-react": "^6.1.6",
48
48
  "attr-accept": "2.2.2",
49
49
  "blueimp-canvastoblob": "2.1.0",
package/schema.json CHANGED
@@ -19425,7 +19425,7 @@
19425
19425
  },
19426
19426
  "WebkitMaxInlineSize": {
19427
19427
  "$ref": "#/definitions/Property.MaxInlineSize%3C(string%7Cnumber)%3E",
19428
- "description": "The **`max-inline-size`** CSS property defines the horizontal or vertical maximum size of an element's block, depending on its writing mode. It corresponds to either the `max-width` or the `max-height` property, depending on the value of `writing-mode`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `none`"
19428
+ "description": "The **`max-inline-size`** CSS property defines the horizontal or vertical maximum size of an element's block, depending on its writing mode. It corresponds to either the `max-width` or the `max-height` property, depending on the value of `writing-mode`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `0`"
19429
19429
  },
19430
19430
  "WebkitOrder": {
19431
19431
  "$ref": "#/definitions/Property.Order",
@@ -19573,7 +19573,7 @@
19573
19573
  },
19574
19574
  "all": {
19575
19575
  "$ref": "#/definitions/Property.All",
19576
- "description": "The **`all`** shorthand CSS property resets all of an element's properties except `unicode-bidi`, `direction`, and CSS Custom Properties. It can set properties to their initial or inherited values, or to the values specified in another stylesheet origin.\n\n**Syntax**: `initial | inherit | unset | revert | revert-layer`\n\n**Initial value**: There is no practical initial value for it.\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :-----: | :----: | :-: | | **37** | **27** | **9.1** | **79** | No |"
19576
+ "description": "The **`all`** shorthand CSS property resets all of an element's properties except `unicode-bidi`, `direction`, and CSS Custom Properties. It can set properties to their initial or inherited values, or to the values specified in another stylesheet origin.\n\n**Syntax**: `initial | inherit | unset | revert`\n\n**Initial value**: There is no practical initial value for it.\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :-----: | :----: | :-: | | **37** | **27** | **9.1** | **79** | No |"
19577
19577
  },
19578
19578
  "animation": {
19579
19579
  "$ref": "#/definitions/Property.Animation%3Cstring%3E",
@@ -19737,7 +19737,7 @@
19737
19737
  },
19738
19738
  "textEmphasis": {
19739
19739
  "$ref": "#/definitions/Property.TextEmphasis",
19740
- "description": "The **`text-emphasis`** CSS property applies emphasis marks to text (except spaces and control characters). It is a shorthand for `text-emphasis-style` and `text-emphasis-color`.\n\n**Syntax**: `<'text-emphasis-style'> || <'text-emphasis-color'>`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------: | :-----: | :----: | :------: | :-: | | **99** | **46** | **7** | **99** | No | | 25 _-x-_ | | | 79 _-x-_ | |"
19740
+ "description": "The **`text-emphasis`** CSS property applies emphasis marks to text (except spaces and control characters). It is a shorthand for `text-emphasis-style` and `text-emphasis-color`.\n\n**Syntax**: `<'text-emphasis-style'> || <'text-emphasis-color'>`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------: | :-----: | :----: | :----------: | :-: | | **25** _-x-_ | **46** | **7** | **79** _-x-_ | No |"
19741
19741
  },
19742
19742
  "transition": {
19743
19743
  "$ref": "#/definitions/Property.Transition%3Cstring%3E",
@@ -20133,7 +20133,7 @@
20133
20133
  },
20134
20134
  "contentVisibility": {
20135
20135
  "$ref": "#/definitions/Property.ContentVisibility",
20136
- "description": "The **`content-visibility`** CSS property controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed. Basically it enables the user agent to skip an element's rendering work (including layout and painting) until it is needed — which makes the initial page load much faster.\n\n**Syntax**: `visible | auto | hidden`\n\n**Initial value**: `visible`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :----: | :----: | :-: | | **85** | No | No | **85** | No |"
20136
+ "description": "The **`content-visibility`** CSS property controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed. Basically it enables the user agent to skip an element's rendering work (including layout and painting) until it is needed — which makes the initial page load much faster.\n\n**Syntax**: `visible | auto | hidden`\n\n**Initial value**: `visible`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **85** | No | **15.4** | **85** | No |"
20137
20137
  },
20138
20138
  "counterIncrement": {
20139
20139
  "$ref": "#/definitions/Property.CounterIncrement",
@@ -20385,11 +20385,11 @@
20385
20385
  },
20386
20386
  "marginBlockEnd": {
20387
20387
  "$ref": "#/definitions/Property.MarginBlockEnd%3C(string%7Cnumber)%3E",
20388
- "description": "The **`margin-block-end`** CSS property defines the logical block end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **87** | **41** | **12.1** | **87** | No |"
20388
+ "description": "The **`margin-block-end`** CSS property defines the logical block end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No |"
20389
20389
  },
20390
20390
  "marginBlockStart": {
20391
20391
  "$ref": "#/definitions/Property.MarginBlockStart%3C(string%7Cnumber)%3E",
20392
- "description": "The **`margin-block-start`** CSS property defines the logical block start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **87** | **41** | **12.1** | **87** | No |"
20392
+ "description": "The **`margin-block-start`** CSS property defines the logical block start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No |"
20393
20393
  },
20394
20394
  "marginBottom": {
20395
20395
  "$ref": "#/definitions/Property.MarginBottom%3C(string%7Cnumber)%3E",
@@ -20401,11 +20401,11 @@
20401
20401
  },
20402
20402
  "marginInlineEnd": {
20403
20403
  "$ref": "#/definitions/Property.MarginInlineEnd%3C(string%7Cnumber)%3E",
20404
- "description": "The **`margin-inline-end`** CSS property defines the logical inline end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. In other words, it corresponds to the `margin-top`, `margin-right`, `margin-bottom` or `margin-left` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------------------: | :-------------------: | :----------------------: | :-----------------------: | :-: | | **87** | **41** | **12.1** | **87** | No | | 2 _(-webkit-margin-end)_ | 3 _(-moz-margin-end)_ | 3 _(-webkit-margin-end)_ | 79 _(-webkit-margin-end)_ | |"
20404
+ "description": "The **`margin-inline-end`** CSS property defines the logical inline end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. In other words, it corresponds to the `margin-top`, `margin-right`, `margin-bottom` or `margin-left` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------------------: | :-------------------: | :----------------------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No | | 2 _(-webkit-margin-end)_ | 3 _(-moz-margin-end)_ | 3 _(-webkit-margin-end)_ | | |"
20405
20405
  },
20406
20406
  "marginInlineStart": {
20407
20407
  "$ref": "#/definitions/Property.MarginInlineStart%3C(string%7Cnumber)%3E",
20408
- "description": "The **`margin-inline-start`** CSS property defines the logical inline start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. It corresponds to the `margin-top`, `margin-right`, `margin-bottom`, or `margin-left` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------------------------: | :---------------------: | :------------------------: | :-------------------------: | :-: | | **87** | **41** | **12.1** | **87** | No | | 2 _(-webkit-margin-start)_ | 3 _(-moz-margin-start)_ | 3 _(-webkit-margin-start)_ | 79 _(-webkit-margin-start)_ | |"
20408
+ "description": "The **`margin-inline-start`** CSS property defines the logical inline start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation. It corresponds to the `margin-top`, `margin-right`, `margin-bottom`, or `margin-left` property depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.\n\n**Syntax**: `<'margin-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------------------------: | :---------------------: | :------------------------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No | | 2 _(-webkit-margin-start)_ | 3 _(-moz-margin-start)_ | 3 _(-webkit-margin-start)_ | | |"
20409
20409
  },
20410
20410
  "marginLeft": {
20411
20411
  "$ref": "#/definitions/Property.MarginLeft%3C(string%7Cnumber)%3E",
@@ -20485,7 +20485,7 @@
20485
20485
  },
20486
20486
  "maxBlockSize": {
20487
20487
  "$ref": "#/definitions/Property.MaxBlockSize%3C(string%7Cnumber)%3E",
20488
- "description": "The **`max-block-size`** CSS property specifies the maximum size of an element in the direction opposite that of the writing direction as specified by `writing-mode`. That is, if the writing direction is horizontal, then `max-block-size` is equivalent to `max-height`; if the writing direction is vertical, `max-block-size` is the same as `max-width`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `none`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **57** | **41** | **12.1** | **79** | No |"
20488
+ "description": "The **`max-block-size`** CSS property specifies the maximum size of an element in the direction opposite that of the writing direction as specified by `writing-mode`. That is, if the writing direction is horizontal, then `max-block-size` is equivalent to `max-height`; if the writing direction is vertical, `max-block-size` is the same as `max-width`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **57** | **41** | **12.1** | **79** | No |"
20489
20489
  },
20490
20490
  "maxHeight": {
20491
20491
  "$ref": "#/definitions/Property.MaxHeight%3C(string%7Cnumber)%3E",
@@ -20493,7 +20493,7 @@
20493
20493
  },
20494
20494
  "maxInlineSize": {
20495
20495
  "$ref": "#/definitions/Property.MaxInlineSize%3C(string%7Cnumber)%3E",
20496
- "description": "The **`max-inline-size`** CSS property defines the horizontal or vertical maximum size of an element's block, depending on its writing mode. It corresponds to either the `max-width` or the `max-height` property, depending on the value of `writing-mode`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `none`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :--------: | :----: | :-: | | **57** | **41** | **12.1** | **79** | No | | | | 10.1 _-x-_ | | |"
20496
+ "description": "The **`max-inline-size`** CSS property defines the horizontal or vertical maximum size of an element's block, depending on its writing mode. It corresponds to either the `max-width` or the `max-height` property, depending on the value of `writing-mode`.\n\n**Syntax**: `<'max-width'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :--------: | :----: | :-: | | **57** | **41** | **12.1** | **79** | No | | | | 10.1 _-x-_ | | |"
20497
20497
  },
20498
20498
  "maxLines": {
20499
20499
  "$ref": "#/definitions/Property.MaxLines",
@@ -20521,7 +20521,7 @@
20521
20521
  },
20522
20522
  "mixBlendMode": {
20523
20523
  "$ref": "#/definitions/Property.MixBlendMode",
20524
- "description": "The **`mix-blend-mode`** CSS property sets how an element's content should blend with the content of the element's parent and the element's background.\n\n**Syntax**: `<blend-mode> | plus-lighter`\n\n**Initial value**: `normal`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :----: | :----: | :-: | | **41** | **32** | **8** | **79** | No |"
20524
+ "description": "The **`mix-blend-mode`** CSS property sets how an element's content should blend with the content of the element's parent and the element's background.\n\n**Syntax**: `<blend-mode>`\n\n**Initial value**: `normal`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :----: | :----: | :-: | | **41** | **32** | **8** | **79** | No |"
20525
20525
  },
20526
20526
  "motionDistance": {
20527
20527
  "$ref": "#/definitions/Property.OffsetDistance%3C(string%7Cnumber)%3E",
@@ -20545,7 +20545,7 @@
20545
20545
  },
20546
20546
  "offsetAnchor": {
20547
20547
  "$ref": "#/definitions/Property.OffsetAnchor%3C(string%7Cnumber)%3E",
20548
- "description": "**Syntax**: `auto | <position>`\n\n**Initial value**: `auto`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :----: | :--: | :-: | | No | **72** | No | No | No |"
20548
+ "description": "**Syntax**: `auto | <position>`\n\n**Initial value**: `auto`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :----: | :----: | :-: | | **79** | **72** | No | **79** | No |"
20549
20549
  },
20550
20550
  "offsetDistance": {
20551
20551
  "$ref": "#/definitions/Property.OffsetDistance%3C(string%7Cnumber)%3E",
@@ -20641,11 +20641,11 @@
20641
20641
  },
20642
20642
  "paddingBlockEnd": {
20643
20643
  "$ref": "#/definitions/Property.PaddingBlockEnd%3C(string%7Cnumber)%3E",
20644
- "description": "The **`padding-block-end`** CSS property defines the logical block end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **87** | **41** | **12.1** | **87** | No |"
20644
+ "description": "The **`padding-block-end`** CSS property defines the logical block end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No |"
20645
20645
  },
20646
20646
  "paddingBlockStart": {
20647
20647
  "$ref": "#/definitions/Property.PaddingBlockStart%3C(string%7Cnumber)%3E",
20648
- "description": "The **`padding-block-start`** CSS property defines the logical block start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **87** | **41** | **12.1** | **87** | No |"
20648
+ "description": "The **`padding-block-start`** CSS property defines the logical block start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----: | :-----: | :------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No |"
20649
20649
  },
20650
20650
  "paddingBottom": {
20651
20651
  "$ref": "#/definitions/Property.PaddingBottom%3C(string%7Cnumber)%3E",
@@ -20657,11 +20657,11 @@
20657
20657
  },
20658
20658
  "paddingInlineEnd": {
20659
20659
  "$ref": "#/definitions/Property.PaddingInlineEnd%3C(string%7Cnumber)%3E",
20660
- "description": "The **`padding-inline-end`** CSS property defines the logical inline end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :-----------------------: | :--------------------: | :-----------------------: | :------------------------: | :-: | | **87** | **41** | **12.1** | **87** | No | | 2 _(-webkit-padding-end)_ | 3 _(-moz-padding-end)_ | 3 _(-webkit-padding-end)_ | 79 _(-webkit-padding-end)_ | |"
20660
+ "description": "The **`padding-inline-end`** CSS property defines the logical inline end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :-----------------------: | :--------------------: | :-----------------------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No | | 2 _(-webkit-padding-end)_ | 3 _(-moz-padding-end)_ | 3 _(-webkit-padding-end)_ | | |"
20661
20661
  },
20662
20662
  "paddingInlineStart": {
20663
20663
  "$ref": "#/definitions/Property.PaddingInlineStart%3C(string%7Cnumber)%3E",
20664
- "description": "The **`padding-inline-start`** CSS property defines the logical inline start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :-------------------------: | :----------------------: | :-------------------------: | :--------------------------: | :-: | | **87** | **41** | **12.1** | **87** | No | | 2 _(-webkit-padding-start)_ | 3 _(-moz-padding-start)_ | 3 _(-webkit-padding-start)_ | 79 _(-webkit-padding-start)_ | |"
20664
+ "description": "The **`padding-inline-start`** CSS property defines the logical inline start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.\n\n**Syntax**: `<'padding-left'>`\n\n**Initial value**: `0`\n\n| Chrome | Firefox | Safari | Edge | IE | | :-------------------------: | :----------------------: | :-------------------------: | :----: | :-: | | **69** | **41** | **12.1** | **79** | No | | 2 _(-webkit-padding-start)_ | 3 _(-moz-padding-start)_ | 3 _(-webkit-padding-start)_ | | |"
20665
20665
  },
20666
20666
  "paddingLeft": {
20667
20667
  "$ref": "#/definitions/Property.PaddingLeft%3C(string%7Cnumber)%3E",
@@ -20941,15 +20941,15 @@
20941
20941
  },
20942
20942
  "textEmphasisColor": {
20943
20943
  "$ref": "#/definitions/Property.TextEmphasisColor",
20944
- "description": "The **`text-emphasis-color`** CSS property sets the color of emphasis marks. This value can also be set using the `text-emphasis` shorthand.\n\n**Syntax**: `<color>`\n\n**Initial value**: `currentcolor`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------: | :-----: | :----: | :------: | :-: | | **99** | **46** | **7** | **99** | No | | 25 _-x-_ | | | 79 _-x-_ | |"
20944
+ "description": "The **`text-emphasis-color`** CSS property sets the color of emphasis marks. This value can also be set using the `text-emphasis` shorthand.\n\n**Syntax**: `<color>`\n\n**Initial value**: `currentcolor`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------: | :-----: | :----: | :----------: | :-: | | **25** _-x-_ | **46** | **7** | **79** _-x-_ | No |"
20945
20945
  },
20946
20946
  "textEmphasisPosition": {
20947
20947
  "$ref": "#/definitions/Property.TextEmphasisPosition",
20948
- "description": "The **`text-emphasis-position`** CSS property sets where emphasis marks are drawn. Like ruby text, if there isn't enough room for emphasis marks, the line height is increased.\n\n**Syntax**: `[ over | under ] && [ right | left ]`\n\n**Initial value**: `over right`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------: | :-----: | :----: | :------: | :-: | | **99** | **46** | **7** | **99** | No | | 25 _-x-_ | | | 79 _-x-_ | |"
20948
+ "description": "The **`text-emphasis-position`** CSS property sets where emphasis marks are drawn. Like ruby text, if there isn't enough room for emphasis marks, the line height is increased.\n\n**Syntax**: `[ over | under ] && [ right | left ]`\n\n**Initial value**: `over right`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------: | :-----: | :----: | :----------: | :-: | | **25** _-x-_ | **46** | **7** | **79** _-x-_ | No |"
20949
20949
  },
20950
20950
  "textEmphasisStyle": {
20951
20951
  "$ref": "#/definitions/Property.TextEmphasisStyle",
20952
- "description": "The **`text-emphasis-style`** CSS property sets the appearance of emphasis marks. It can also be set, and reset, using the `text-emphasis` shorthand.\n\n**Syntax**: `none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>`\n\n**Initial value**: `none`\n\n| Chrome | Firefox | Safari | Edge | IE | | :------: | :-----: | :----: | :------: | :-: | | **99** | **46** | **7** | **99** | No | | 25 _-x-_ | | | 79 _-x-_ | |"
20952
+ "description": "The **`text-emphasis-style`** CSS property sets the appearance of emphasis marks. It can also be set, and reset, using the `text-emphasis` shorthand.\n\n**Syntax**: `none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>`\n\n**Initial value**: `none`\n\n| Chrome | Firefox | Safari | Edge | IE | | :----------: | :-----: | :----: | :----------: | :-: | | **25** _-x-_ | **46** | **7** | **79** _-x-_ | No |"
20953
20953
  },
20954
20954
  "textIndent": {
20955
20955
  "$ref": "#/definitions/Property.TextIndent%3C(string%7Cnumber)%3E",
@@ -21131,7 +21131,6 @@
21131
21131
  "inherit",
21132
21132
  "initial",
21133
21133
  "revert",
21134
- "revert-layer",
21135
21134
  "unset"
21136
21135
  ]
21137
21136
  },
@@ -31360,10 +31359,6 @@
31360
31359
  },
31361
31360
  {
31362
31361
  "$ref": "#/definitions/DataType.BlendMode"
31363
- },
31364
- {
31365
- "type": "string",
31366
- "const": "plus-lighter"
31367
31362
  }
31368
31363
  ]
31369
31364
  },
@@ -35160,6 +35155,10 @@
35160
35155
  "addBtnText": {
35161
35156
  "type": "string",
35162
35157
  "description": "自定义增加按钮文案"
35158
+ },
35159
+ "activeKey": {
35160
+ "$ref": "#/definitions/SchemaExpression",
35161
+ "description": "默认激活的选项卡,hash值或索引值,支持使用表达式"
35163
35162
  }
35164
35163
  },
35165
35164
  "required": [
@@ -65692,6 +65691,10 @@
65692
65691
  "type": "boolean",
65693
65692
  "description": "选父级的时候,是否只把子节点的值包含在内"
65694
65693
  },
65694
+ "onlyLeaf": {
65695
+ "type": "boolean",
65696
+ "description": "单选时,只运行选择叶子节点"
65697
+ },
65695
65698
  "rootCreatable": {
65696
65699
  "type": "boolean",
65697
65700
  "description": "顶级节点是否可以创建子节点"
@@ -67055,7 +67058,7 @@
67055
67058
  "$ref": "#/definitions/TabsSchema",
67056
67059
  "additionalProperties": false,
67057
67060
  "patternProperties": {
67058
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|label|labelClassName|name|popOver|quickEdit|copyable)$": {}
67061
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|label|labelClassName|name|popOver|quickEdit|copyable)$": {}
67059
67062
  }
67060
67063
  },
67061
67064
  {
@@ -67517,7 +67520,7 @@
67517
67520
  "$ref": "#/definitions/TreeControlSchema",
67518
67521
  "additionalProperties": false,
67519
67522
  "patternProperties": {
67520
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
67523
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
67521
67524
  }
67522
67525
  },
67523
67526
  {
@@ -67891,7 +67894,7 @@
67891
67894
  "$ref": "#/definitions/TabsSchema",
67892
67895
  "additionalProperties": false,
67893
67896
  "patternProperties": {
67894
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|label|labelClassName|name|popOver|quickEdit|copyable)$": {}
67897
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|label|labelClassName|name|popOver|quickEdit|copyable)$": {}
67895
67898
  }
67896
67899
  },
67897
67900
  {
@@ -68353,7 +68356,7 @@
68353
68356
  "$ref": "#/definitions/TreeControlSchema",
68354
68357
  "additionalProperties": false,
68355
68358
  "patternProperties": {
68356
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
68359
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
68357
68360
  }
68358
68361
  },
68359
68362
  {
@@ -68727,7 +68730,7 @@
68727
68730
  "$ref": "#/definitions/TabsSchema",
68728
68731
  "additionalProperties": false,
68729
68732
  "patternProperties": {
68730
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|label|fixed|name|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|labelClassName|filterable|breakpoint|remark|value|unique)$": {}
68733
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|label|fixed|name|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|labelClassName|filterable|breakpoint|remark|value|unique)$": {}
68731
68734
  }
68732
68735
  },
68733
68736
  {
@@ -69189,7 +69192,7 @@
69189
69192
  "$ref": "#/definitions/TreeControlSchema",
69190
69193
  "additionalProperties": false,
69191
69194
  "patternProperties": {
69192
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
69195
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
69193
69196
  }
69194
69197
  },
69195
69198
  {
@@ -69563,7 +69566,7 @@
69563
69566
  "$ref": "#/definitions/TabsSchema",
69564
69567
  "additionalProperties": false,
69565
69568
  "patternProperties": {
69566
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|x|y|w|h|width|height|align|valign|gridClassName)$": {}
69569
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|x|y|w|h|width|height|align|valign|gridClassName)$": {}
69567
69570
  }
69568
69571
  },
69569
69572
  {
@@ -70025,7 +70028,7 @@
70025
70028
  "$ref": "#/definitions/TreeControlSchema",
70026
70029
  "additionalProperties": false,
70027
70030
  "patternProperties": {
70028
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|x|y|w|h|width|height|align|valign|gridClassName)$": {}
70031
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|x|y|w|h|width|height|align|valign|gridClassName)$": {}
70029
70032
  }
70030
70033
  },
70031
70034
  {
@@ -70399,7 +70402,7 @@
70399
70402
  "$ref": "#/definitions/TabsSchema",
70400
70403
  "additionalProperties": false,
70401
70404
  "patternProperties": {
70402
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|rowClassName|cellClassName)$": {}
70405
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|rowClassName|cellClassName)$": {}
70403
70406
  }
70404
70407
  },
70405
70408
  {
@@ -70861,7 +70864,7 @@
70861
70864
  "$ref": "#/definitions/TreeControlSchema",
70862
70865
  "additionalProperties": false,
70863
70866
  "patternProperties": {
70864
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|rowClassName|cellClassName)$": {}
70867
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|rowClassName|cellClassName)$": {}
70865
70868
  }
70866
70869
  },
70867
70870
  {
@@ -71235,7 +71238,7 @@
71235
71238
  "$ref": "#/definitions/TabsSchema",
71236
71239
  "additionalProperties": false,
71237
71240
  "patternProperties": {
71238
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|unique|columnClassName)$": {}
71241
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|unique|columnClassName)$": {}
71239
71242
  }
71240
71243
  },
71241
71244
  {
@@ -71697,7 +71700,7 @@
71697
71700
  "$ref": "#/definitions/TreeControlSchema",
71698
71701
  "additionalProperties": false,
71699
71702
  "patternProperties": {
71700
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|unique|columnClassName)$": {}
71703
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|unique|columnClassName)$": {}
71701
71704
  }
71702
71705
  },
71703
71706
  {
@@ -72071,7 +72074,7 @@
72071
72074
  "$ref": "#/definitions/TabsSchema",
72072
72075
  "additionalProperties": false,
72073
72076
  "patternProperties": {
72074
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|columnClassName|columnRatio)$": {}
72077
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|tabs|source|tabsClassName|tabsMode|contentClassName|linksClassName|mountOnEnter|unmountOnExit|toolbar|subFormMode|subFormHorizontal|addable|closable|draggable|showTip|showTipClassName|editable|scrollable|sidePosition|addBtnText|activeKey|columnClassName|columnRatio)$": {}
72075
72078
  }
72076
72079
  },
72077
72080
  {
@@ -72533,7 +72536,7 @@
72533
72536
  "$ref": "#/definitions/TreeControlSchema",
72534
72537
  "additionalProperties": false,
72535
72538
  "patternProperties": {
72536
- "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|rootCreatable|enableNodePath|pathSeparator|showOutline|columnClassName|columnRatio)$": {}
72539
+ "^(className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|onEvent|type|size|label|labelAlign|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|autoCheckChildren|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|enableNodePath|pathSeparator|showOutline|columnClassName|columnRatio)$": {}
72537
72540
  }
72538
72541
  },
72539
72542
  {
@@ -65,13 +65,17 @@
65
65
  margin-top: #{px2rem(10px)};
66
66
  }
67
67
 
68
+ &-settings.only-variable {
69
+ height: #{px2rem(350px)};
70
+ }
71
+
68
72
  &-panel {
69
73
  display: flex;
70
74
  flex: 1;
71
75
  flex-flow: column nowrap;
72
76
  justify-content: space-between;
73
77
  align-items: stretch;
74
- height: #{px2rem(250px)};
78
+ height: 100%;
75
79
  border-radius: var(--borderRadius);
76
80
  border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
77
81
 
@@ -91,10 +95,11 @@
91
95
  flex: 1;
92
96
  display: flex;
93
97
  flex-flow: column nowrap;
94
- max-height: #{px2rem(220px)};
98
+ max-height: calc(100% - 30px);
99
+ overflow: hidden;
95
100
 
96
101
  &--tabs {
97
- max-height: #{px2rem(250px)};
102
+ max-height: 100%;
98
103
  }
99
104
  }
100
105
  }
@@ -215,12 +220,18 @@
215
220
  vertical-align: middle;
216
221
  text-align: center;
217
222
  padding: 0 #{px2rem(8px)};
218
- line-height: 17px;
219
223
  border-radius: var(--borderRadius);
220
224
  background: #f5f5f5;
221
225
  color: var(--black);
222
226
  }
223
227
  }
228
+ .#{$ns}GroupedSelection {
229
+ &-item {
230
+ &-tag {
231
+ line-height: 17px;
232
+ }
233
+ }
234
+ }
224
235
  }
225
236
 
226
237
  /* 函数列表 */
@@ -405,3 +416,33 @@
405
416
  }
406
417
  }
407
418
  }
419
+
420
+ .#{$ns}FormulaPicker.is-input-group {
421
+ border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
422
+ padding: var(--Form-input-paddingY) var(--Form-input-paddingX);
423
+ border-radius: var(--borderRadius);
424
+ .#{$ns}FormulaPicker-input {
425
+ display: inline-block;
426
+ width: 100%;
427
+ background: none;
428
+ padding: 0;
429
+ border: 0;
430
+ margin: 0;
431
+ &:focus {
432
+ border: none;
433
+ outline: none;
434
+ box-sizing: none;
435
+ }
436
+ }
437
+ .#{$ns}FormulaPicker-toggler {
438
+ .icon-function {
439
+ transform: scale(1.6);
440
+ }
441
+ .icon-ellipsis-v {
442
+ transform: rotate(90deg);
443
+ }
444
+ &:hover {
445
+ cursor: pointer;
446
+ }
447
+ }
448
+ }