@liujitcn/kratos-admin-system 0.0.93 → 0.0.94

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.
@@ -106,6 +106,11 @@ export function useTenantProjectScope(options: TenantProjectScopeOptions = {}):
106
106
  return result;
107
107
  }
108
108
 
109
+ // SearchFormItem 会把 v-model 的 onUpdate 处理器透传给函数式渲染组件并合并触发,原始选择对象会覆盖
110
+ // 下方回调写入的字符串值,导致选中后回显 [object Object],这里固定单一渲染入口并关闭 attrs 透传。
111
+ const renderScopeSearch = (scope: SearchRenderScope) => renderTenantProjectSearch(scope, loadOptions, treeOptions, allLabel.value);
112
+ (renderScopeSearch as unknown as { inheritAttrs?: boolean }).inheritAttrs = false;
113
+
109
114
  const column = computed<ColumnProps>(() => ({
110
115
  prop: options.projectField ?? "project_id",
111
116
  label: scopeLabel.value,
@@ -120,7 +125,7 @@ export function useTenantProjectScope(options: TenantProjectScopeOptions = {}):
120
125
  search: {
121
126
  key: options.searchKey ?? "tenant_project_tree_value",
122
127
  order: options.order ?? 1,
123
- render: (scope: SearchRenderScope) => renderTenantProjectSearch(scope, loadOptions, treeOptions, allLabel.value)
128
+ render: renderScopeSearch
124
129
  },
125
130
  enum: async () => ({ data: await loadOptions() }),
126
131
  isFilterEnum: false
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liujitcn/kratos-admin-system",
3
3
  "private": false,
4
- "version": "0.0.93",
4
+ "version": "0.0.94",
5
5
  "type": "module",
6
6
  "description": "kratos-admin system management module",
7
7
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "sortablejs": "^1.15.2",
17
17
  "swagger-ui-dist": "^5.32.15",
18
18
  "vue-element-plus-x": "^2.0.3",
19
- "@liujitcn/kratos-admin-core": "0.0.93"
19
+ "@liujitcn/kratos-admin-core": "0.0.94"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@element-plus/icons-vue": "^2.3.1",