@steedos-widgets/amis-lib 6.10.34-beta.6 → 6.10.34-beta.7
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +26 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +26 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +25 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +0 -2
- package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7327,30 +7327,30 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
|
7327
7327
|
let amisButtonsSchema = getObjectListViewButtonsSchemas(objectSchema, {formFactor: ctx.formFactor});
|
|
7328
7328
|
const reg = new RegExp('_', 'g');
|
|
7329
7329
|
const standardIcon = icon && icon.replace(reg, '-');
|
|
7330
|
-
|
|
7330
|
+
_.find(amisButtonsSchema, { name: "standard_new" });
|
|
7331
7331
|
const buttonSchema = [{
|
|
7332
7332
|
"type": "flex",
|
|
7333
7333
|
"items": amisButtonsSchema,
|
|
7334
|
-
"visibleOn": "${display == 'split'?false:true}"
|
|
7334
|
+
// "visibleOn": "${display == 'split'?false:true}"
|
|
7335
7335
|
}];
|
|
7336
|
-
if(ctx.formFactor !== 'SMALL'){
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
}
|
|
7336
|
+
// if(ctx.formFactor !== 'SMALL'){
|
|
7337
|
+
// const restButtons = Array.isArray(amisButtonsSchema) ? amisButtonsSchema.filter(obj => obj.name !== "standard_new"):[]
|
|
7338
|
+
// buttonSchema.push({
|
|
7339
|
+
// "type": "flex",
|
|
7340
|
+
// "items":[
|
|
7341
|
+
// standardNewButton,
|
|
7342
|
+
// (restButtons.length > 0) && {
|
|
7343
|
+
// "type": "dropdown-button",
|
|
7344
|
+
// "buttons": restButtons,
|
|
7345
|
+
// "className": " ml-1",
|
|
7346
|
+
// "menuClassName": "p-none split-dropdown-buttons",
|
|
7347
|
+
// "align": "right",
|
|
7348
|
+
// "size": "sm"
|
|
7349
|
+
// }
|
|
7350
|
+
// ],
|
|
7351
|
+
// "visibleOn": "${display == 'split'?true:false}"
|
|
7352
|
+
// })
|
|
7353
|
+
// }
|
|
7354
7354
|
const listviewNewButton = getNewListviewButtonSchema();
|
|
7355
7355
|
listviewNewButton.visibleOn = "global.user.is_space_admin";
|
|
7356
7356
|
return {
|
|
@@ -8753,11 +8753,12 @@ function adaptor(){
|
|
|
8753
8753
|
const getSettingListviewToolbarButtonSchema = ()=>{
|
|
8754
8754
|
return {
|
|
8755
8755
|
"type": "dropdown-button",
|
|
8756
|
+
"hideCaret": true,
|
|
8756
8757
|
"trigger": "click",
|
|
8757
8758
|
"icon": "fa fa-cog",
|
|
8758
8759
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,为保持统一,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
8759
8760
|
// "tooltip": i18next.t('frontend_button_listview_control_tooltip'),
|
|
8760
|
-
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
8761
|
+
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded !text-gray-500",
|
|
8761
8762
|
"align": "right",
|
|
8762
8763
|
"visibleOn": "${!isLookup && !!isObjectListview}",
|
|
8763
8764
|
"buttons": [
|
|
@@ -8800,9 +8801,10 @@ const getDisplayAsButton = function(objectName, defaultEnableSplit){
|
|
|
8800
8801
|
return {
|
|
8801
8802
|
"type": "dropdown-button",
|
|
8802
8803
|
"icon": "fa fa-table-columns",
|
|
8804
|
+
"hideCaret": true,
|
|
8803
8805
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
8804
8806
|
// "tooltip": `${i18next.t('frontend_display_as')} ${displayAsLabel}`,
|
|
8805
|
-
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
8807
|
+
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded !text-gray-500",
|
|
8806
8808
|
"align": "right",
|
|
8807
8809
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup && !!isObjectListview}",
|
|
8808
8810
|
"buttons": [
|
|
@@ -9028,7 +9030,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
9028
9030
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,为保持统一,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
9029
9031
|
// "tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
9030
9032
|
"tooltipPlacement": "top",
|
|
9031
|
-
"className": `bg-white p-2 rounded text-gray-500 list-view-btn-reload ${formFactor === 'SMALL' ? 'hidden' : ''}`,
|
|
9033
|
+
"className": `bg-white p-2 rounded !text-gray-500 list-view-btn-reload ${formFactor === 'SMALL' ? 'hidden' : ''}`,
|
|
9032
9034
|
"label": "",
|
|
9033
9035
|
"icon": "fa fa-sync",
|
|
9034
9036
|
// "visibleOn": "${!showFieldsFilter}",
|
|
@@ -9085,7 +9087,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
9085
9087
|
"visibleOn": "${isFieldsFilterEmpty == false && isLookup != true}"
|
|
9086
9088
|
},
|
|
9087
9089
|
"align": "right",
|
|
9088
|
-
"className": "bg-white p-2 rounded text-gray-500",
|
|
9090
|
+
"className": "bg-white p-2 rounded !text-gray-500",
|
|
9089
9091
|
"onEvent": {
|
|
9090
9092
|
"click": {
|
|
9091
9093
|
"actions": [
|