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.
- package/dist/components/index.js +21 -15
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/use-app-config/index.d.ts +5 -1
- package/dist/index.js +24 -15
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -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 ?
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
|
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"), {
|
package/dist/hooks/index.js
CHANGED
|
@@ -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 ?
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
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) {
|