agilebuilder-ui 1.1.40-sit1 → 1.1.41

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-147b8176.js";
2
+ import { _ as s } from "./index-a36c91b2.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-147b8176.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-a36c91b2.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-147b8176.js";
2
+ import { _ as I } from "./index-a36c91b2.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.40-sit1",
3
+ "version": "1.1.41",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -107,7 +107,6 @@
107
107
  :is-show="operation.isShow"
108
108
  :label="operation.props.label ? operation.props.label : row[column.prop]"
109
109
  :on-click="operation.onClick"
110
- :operation="operation"
111
110
  :operation-index="operationIndex"
112
111
  :operation-setting="operation.props"
113
112
  :event-name="operation.eventName"
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
3
3
  @blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
4
- <span class="table-operation-row-btn" :style="myStyle">
4
+ <span :style="myStyle">
5
5
  <template v-if="isShowButton()">
6
6
  <el-tooltip :disabled="tooltipDisabled" :content="label" placement="top">
7
- <template v-if="operationSettingData?.permission">
7
+ <template v-if="operationSettingData.permission">
8
8
  <component
9
9
  v-bind="operationSettingData"
10
10
  :is="isElementType"
@@ -77,13 +77,9 @@ export default {
77
77
  type: String,
78
78
  default: null,
79
79
  },
80
- operation: {
81
- type: Object,
82
- default: () => ({}),
83
- },
84
80
  operationSetting: {
85
81
  type: Object,
86
- default: () => ({}),
82
+ default: null,
87
83
  },
88
84
  operationIndex: {
89
85
  type: Number,
@@ -152,16 +148,16 @@ export default {
152
148
  },
153
149
  // 后置图标
154
150
  suffixIcon() {
155
- if(['right'].includes(this.operationSetting.iconPosition)) return this.operationSetting.iconValue
151
+ if(['right'].includes(this.operationSettingData.iconPosition)) return this.operationSetting.iconValue
156
152
  return undefined
157
153
  },
158
154
  // 是否显示文字按钮 > 图标模式
159
155
  isTextIcon() {
160
156
  if (this.isTableBtnLinkShow) {
161
- if (this.operationSetting.isTextIcon === undefined) {
157
+ if (this.operationSettingData.isTextIcon === undefined) {
162
158
  return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
163
159
  }
164
- return this.operationSetting.isTextIcon
160
+ return this.operationSettingData.isTextIcon
165
161
  } else {
166
162
  return false
167
163
  }
@@ -176,14 +172,14 @@ export default {
176
172
  },
177
173
  // 是否自动开启表格 按钮 转 文字按钮
178
174
  isTableBtnLinkShow() {
179
- if (this.operationSetting?.text) return true
175
+ if (this.operationSetting.text) return true
180
176
  if (this.isTableBtnLink && this.elementType === 'el-button') {
181
- return [this.operationSetting?.text, this.operationSetting?.plain, this.operationSetting?.round].every(v => v === undefined)
177
+ return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
182
178
  }
183
179
  return false
184
180
  },
185
181
  operationSettingData() {
186
- const dataList = { ...(this.operationSetting ?? {}) }
182
+ const dataList = { ...this.operationSetting }
187
183
  if (this.isTableBtnLinkShow) {
188
184
  dataList.underline = false
189
185
  delete dataList.text