@airpower/web 0.2.16 → 0.2.17

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.
@@ -302,6 +302,13 @@ export declare class WebConfig {
302
302
  * ### 产品名称
303
303
  */
304
304
  static product: string;
305
+ /**
306
+ * ### 树形控件属性
307
+ */
308
+ static treeProps: {
309
+ children: string;
310
+ label: string;
311
+ };
305
312
  /**
306
313
  * ### 获取身份令牌
307
314
  */
package/dist/main.js CHANGED
@@ -10707,14 +10707,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10707
10707
  "default-expand-all": __props.defaultExpandAll,
10708
10708
  "expand-on-click-node": false,
10709
10709
  "filter-node-method": filterNode,
10710
- props: {
10711
- children: "children",
10712
- label: "name"
10713
- },
10710
+ props: unref(WebConfig).treeProps,
10714
10711
  "highlight-current": "",
10715
10712
  "node-key": "id",
10716
10713
  onNodeClick: treeSelectChanged
10717
- }, null, 8, ["current-node-key", "data", "default-expand-all"]), [
10714
+ }, null, 8, ["current-node-key", "data", "default-expand-all", "props"]), [
10718
10715
  [_directive_loading, __props.isTreeLoading]
10719
10716
  ])
10720
10717
  ]),
@@ -11886,6 +11883,13 @@ __publicField(WebConfig, "isTimeout", false);
11886
11883
  * ### 产品名称
11887
11884
  */
11888
11885
  __publicField(WebConfig, "product", "AirPower");
11886
+ /**
11887
+ * ### 树形控件属性
11888
+ */
11889
+ __publicField(WebConfig, "treeProps", {
11890
+ children: "children",
11891
+ label: "name"
11892
+ });
11889
11893
  class AbstractService extends Transformer {
11890
11894
  constructor() {
11891
11895
  super(...arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.16",
4
+ "version": "0.2.17",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",