@kengic/vue 0.7.5 → 0.7.6

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.
@@ -11447,15 +11447,15 @@ const getProps$n = () => ({
11447
11447
  let k = "kg-table-td";
11448
11448
  return ((A = i.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((E = i.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
11449
11449
  }), v = computed(() => {
11450
- var A, E, P, M;
11450
+ var A, E, P, M, I;
11451
11451
  if (e.kgValue === KG_TABLE_TEMP_ID)
11452
11452
  return "";
11453
11453
  let k = e.kgValue;
11454
11454
  switch ((A = i.value) == null ? void 0 : A.display_type) {
11455
11455
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11456
11456
  {
11457
- const I = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
11458
- k = (M = (P = e.kgRow) == null ? void 0 : P[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11457
+ const w = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
11458
+ w.dscFieldName ? k = ((P = e.kgRow) == null ? void 0 : P[w.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
11459
11459
  }
11460
11460
  break;
11461
11461
  }
@@ -86,7 +86,7 @@ export interface IKgTableCellDisplayTypeProperties {
86
86
  DESC: {
87
87
  /**
88
88
  * 对应的描述字段的名称.
89
- * @default 原字段 + '_dsc'
89
+ * @default 原字段 + '_dsc', 原字段 + 'Dsc'
90
90
  */
91
91
  dscFieldName?: string;
92
92
  /**
@@ -95,11 +95,11 @@ export interface IKgTableCellDisplayTypeProperties {
95
95
  */
96
96
  isTag?: boolean;
97
97
  /**
98
- * 如果 {@link IKgTableCellDisplayTypeProperties.DESC.isTag} 为 true,
99
- * 则该属性用来定义每个值对应的标签颜色是什么.
98
+ * 如果 {@link IKgTableCellDisplayTypeProperties.DESC.isTag} 为 true, 则该属性用来定义每个值对应的标签颜色分别是什么.
99
+ * 如果 {@link IKgTableCellDisplayTypeProperties.DESC.isTag} 为 false, 则该属性会被忽略.
100
100
  */
101
101
  tagColors?: Array<{
102
- /** 数据. */
102
+ /** 值. */
103
103
  value: any;
104
104
  /**
105
105
  * 颜色.
@@ -93,9 +93,9 @@ export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
93
93
  /** 显示为超链接, 点击跳转到其他路由. */
94
94
  ROUTE_LINK = "ROUTE_LINK",
95
95
  /**
96
- * 显示描述.
97
- * 假如原字段为 'status', 则实际上会显示描述字段 'status_dsc' 的值.
98
- * 默认, 描述字段是原字段加上 '_dsc' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc'.
96
+ * 显示描述字段.
97
+ * 假如原字段为 'status', 则实际上会显示描述字段 'status_dsc(或者 statusDsc)' 的值.
98
+ * 默认, 描述字段是原字段加上 '_dsc(或者 Dsc)' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc(或者 statusDsc)'.
99
99
  * 可以通过 {@link IKgTableCellDisplayTypeProperties.DESC.dscFieldName} 设置自定义的描述字段名.
100
100
  */
101
101
  DESC = "DESC"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -48,23 +48,23 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@kengic/pont": "1.2.10-beta.45",
51
- "@types/lodash-es": "~4.17.9",
52
- "@types/node": "~18.14.6",
53
- "@types/semver": "~7.5.3",
51
+ "@types/lodash-es": "4.17.9",
52
+ "@types/node": "18.18.4",
53
+ "@types/semver": "7.5.3",
54
54
  "@types/store": "2.0.3",
55
- "@vitejs/plugin-vue": "~3.2.0",
56
- "@vitejs/plugin-vue-jsx": "~1.3.10",
57
- "chalk": "~4.1.2",
58
- "less": "~4.1.3",
59
- "prettier": "~2.8.8",
60
- "rimraf": "~3.0.2",
61
- "rollup": "~2.79.1",
62
- "semver": "~7.5.4",
63
- "tsx": "~3.12.3",
55
+ "@vitejs/plugin-vue": "3.2.0",
56
+ "@vitejs/plugin-vue-jsx": "1.3.10",
57
+ "chalk": "4.1.2",
58
+ "less": "4.1.3",
59
+ "prettier": "2.8.8",
60
+ "rimraf": "3.0.2",
61
+ "rollup": "2.79.1",
62
+ "semver": "7.5.4",
63
+ "tsx": "3.12.3",
64
64
  "typescript": "~4.8.4",
65
- "vite": "~3.2.5",
66
- "vue": "~3.2.45",
67
- "vue-tsc": "~1.2.0"
65
+ "vite": "3.2.5",
66
+ "vue": "3.2.43",
67
+ "vue-tsc": "1.2.0"
68
68
  },
69
69
  "main": "./dist/kengic-vue.js",
70
70
  "module": "./dist/kengic-vue.js",