@vue-ui-kit/ant 2.1.1 → 2.1.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-ui-kit/ant",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Vue3 UI Kit based on Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -166,7 +166,7 @@ export interface ToolbarConfig {
166
166
  buttons?: Array<ToolbarButtonProps>;
167
167
  tools?: Array<{
168
168
  code: string;
169
- icon: string;
169
+ icon?: string;
170
170
  type?: ButtonType;
171
171
  content?: string;
172
172
  disabled?: boolean;
@@ -516,7 +516,7 @@
516
516
  @click="debounceToolToolClick(tool.code)"
517
517
  :loading="loading.toolbar || (!!tool.code && codeLoadings[tool.code])"
518
518
  >
519
- <Icon :icon="tool.icon" />
519
+ <Icon v-if="tool.icon" :icon="tool.icon" />
520
520
  {{ tool.content }}
521
521
  </a-button>
522
522
  </template>
@@ -577,7 +577,7 @@
577
577
  @click="debounceToolToolClick(tool.code)"
578
578
  :loading="loading.toolbar || (!!tool.code && codeLoadings[tool.code])"
579
579
  >
580
- <Icon :icon="tool.icon" />
580
+ <Icon v-if="tool.icon" :icon="tool.icon" />
581
581
  {{ tool.content }}
582
582
  </a-button>
583
583
  </template>