sun-biz 0.0.1-beta.6 → 0.0.1-beta.8

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.
@@ -137,22 +137,28 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
137
137
  if (column.render) {
138
138
  if (column.editable) {
139
139
  let _slot;
140
- return scope.row.editable ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
141
- style: {
142
- marginBottom: '0'
143
- },
144
- prop: `tableData.${scope.$index}.${column.prop}`,
145
- rules: column.rules ? column.rules : []
146
- }, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
147
- default: ()=>[
148
- _slot
149
- ],
150
- _: 1
151
- }, 8, [
152
- "rules"
153
- ]) : column.render(scope.row, scope.$index);
140
+ return scope.row.editable ? [
141
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
142
+ style: {
143
+ marginBottom: '0'
144
+ },
145
+ prop: `tableData.${scope.$index}.${column.prop}`,
146
+ rules: column.rules ? column.rules : []
147
+ }, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
148
+ default: ()=>[
149
+ _slot
150
+ ],
151
+ _: 1
152
+ }, 8, [
153
+ "rules"
154
+ ])
155
+ ] : [
156
+ column.render(scope.row, scope.$index)
157
+ ];
154
158
  }
155
- return column.render(scope.row, scope.$index);
159
+ return [
160
+ column.render(scope.row, scope.$index)
161
+ ];
156
162
  }
157
163
  if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
158
164
  if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
@@ -352,6 +352,9 @@ function useRequest_useRequest(service, options, plugins) {
352
352
  /**
353
353
  * 是否是云环境
354
354
  */ MAIN_APP_CONFIG["IS_CLOUD_ENV"] = "isCloudEnv";
355
+ /**
356
+ * 是否为 sass 模式
357
+ */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
355
358
  return MAIN_APP_CONFIG;
356
359
  }({});
357
360
  function useAppConfigData(name) {
@@ -18,7 +18,11 @@ export declare enum MAIN_APP_CONFIG {
18
18
  /**
19
19
  * 是否是云环境
20
20
  */
21
- IS_CLOUD_ENV = "isCloudEnv"
21
+ IS_CLOUD_ENV = "isCloudEnv",
22
+ /**
23
+ * 是否为 sass 模式
24
+ */
25
+ IS_SASS_MODE = "isSassMode"
22
26
  }
23
27
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T): AppConfigType[T] | undefined;
24
28
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T[]): Partial<AppConfigType>;
package/dist/index.js CHANGED
@@ -105,22 +105,28 @@ const TableColumn = (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
105
105
  if (column.render) {
106
106
  if (column.editable) {
107
107
  let _slot;
108
- return scope.row.editable ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
109
- style: {
110
- marginBottom: '0'
111
- },
112
- prop: `tableData.${scope.$index}.${column.prop}`,
113
- rules: column.rules ? column.rules : []
114
- }, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
115
- default: ()=>[
116
- _slot
117
- ],
118
- _: 1
119
- }, 8, [
120
- "rules"
121
- ]) : column.render(scope.row, scope.$index);
108
+ return scope.row.editable ? [
109
+ (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-form-item"), {
110
+ style: {
111
+ marginBottom: '0'
112
+ },
113
+ prop: `tableData.${scope.$index}.${column.prop}`,
114
+ rules: column.rules ? column.rules : []
115
+ }, _isSlot(_slot = column.render(scope.row, scope.$index)) ? _slot : {
116
+ default: ()=>[
117
+ _slot
118
+ ],
119
+ _: 1
120
+ }, 8, [
121
+ "rules"
122
+ ])
123
+ ] : [
124
+ column.render(scope.row, scope.$index)
125
+ ];
122
126
  }
123
- return column.render(scope.row, scope.$index);
127
+ return [
128
+ column.render(scope.row, scope.$index)
129
+ ];
124
130
  }
125
131
  if (column.prop && slots[handleProp(column.prop)]) return slots[handleProp(column.prop)](scope);
126
132
  if (column.tag) return (0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent)("el-tag"), {
@@ -978,6 +984,9 @@ function useRequest_useRequest(service, options, plugins) {
978
984
  /**
979
985
  * 是否是云环境
980
986
  */ MAIN_APP_CONFIG["IS_CLOUD_ENV"] = "isCloudEnv";
987
+ /**
988
+ * 是否为 sass 模式
989
+ */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
981
990
  return MAIN_APP_CONFIG;
982
991
  }({});
983
992
  function useAppConfigData(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.1-beta.6",
3
+ "version": "0.0.1-beta.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {