@steedos-widgets/sortable 6.3.0-beta.13 → 6.3.0-beta.15

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.
@@ -54143,7 +54143,7 @@ function getNameTpl(field, ctx){
54143
54143
  }
54144
54144
  let nameLabel = field.name;
54145
54145
  //若字段类型是lookup,则按照相关表tpl的label规则显示;若是其它类型,则显示_display或字段本身的值
54146
- if (field.type == "lookup") {
54146
+ if (field.type == "lookup" || field.type == "master_detail") {
54147
54147
  if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
54148
54148
  if(!field.isTableField){
54149
54149
  nameLabel = `\${${field.name}__label}`;
@@ -54698,6 +54698,7 @@ var frontend_setup$1 = "Setup";
54698
54698
  var frontend_notifications$1 = "Notifications";
54699
54699
  var frontend_notifications_allread$1 = "Mark all as read";
54700
54700
  var frontend_notifications_allread_message$1 = "All marked as read";
54701
+ var frontend_notifications_close_dialog$1 = "Close";
54701
54702
  var frontend_profile$1 = "Profile";
54702
54703
  var switch_space$1 = "Switch Space";
54703
54704
  var frontend_about$1 = "About";
@@ -54787,6 +54788,7 @@ var en_us = {
54787
54788
  frontend_notifications: frontend_notifications$1,
54788
54789
  frontend_notifications_allread: frontend_notifications_allread$1,
54789
54790
  frontend_notifications_allread_message: frontend_notifications_allread_message$1,
54791
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog$1,
54790
54792
  frontend_profile: frontend_profile$1,
54791
54793
  switch_space: switch_space$1,
54792
54794
  frontend_about: frontend_about$1,
@@ -54878,6 +54880,7 @@ var frontend_setup = "设置";
54878
54880
  var frontend_notifications = "通知";
54879
54881
  var frontend_notifications_allread = "全部标记为已读";
54880
54882
  var frontend_notifications_allread_message = "已全部标记为已读";
54883
+ var frontend_notifications_close_dialog = "关闭";
54881
54884
  var frontend_profile = "个人资料";
54882
54885
  var switch_space = "切换工作区";
54883
54886
  var frontend_about = "关于";
@@ -54968,6 +54971,7 @@ var zh_cn = {
54968
54971
  frontend_notifications: frontend_notifications,
54969
54972
  frontend_notifications_allread: frontend_notifications_allread,
54970
54973
  frontend_notifications_allread_message: frontend_notifications_allread_message,
54974
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog,
54971
54975
  frontend_profile: frontend_profile,
54972
54976
  switch_space: switch_space,
54973
54977
  frontend_about: frontend_about,
@@ -55163,7 +55167,12 @@ async function getQuickEditSchema(object, columnField, options){
55163
55167
  break;
55164
55168
  case "percent":
55165
55169
  TempDisplayField = `
55166
- _display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
55170
+ if(event.data.value){
55171
+ _display["${field.name}"] = event.data.value.toFixed(${field.scale}) + '%';
55172
+ } else {
55173
+ _display["${field.name}"] = event.data.value;
55174
+ }
55175
+
55167
55176
  `;
55168
55177
  quickEditSchema.body[0].onEvent["change"] = quickEditOnEvent(TempDisplayField);
55169
55178
  break;
@@ -55515,6 +55524,7 @@ async function getColumnItemOnClick(field, options){
55515
55524
  ...recordPage.schema.data,
55516
55525
  "_inDrawer": true, // 用于判断是否在抽屉中
55517
55526
  "recordLoaded": false, // 重置数据加载状态
55527
+ "recordId": `\${${options.idFieldName}}`//审批微页面依赖了作用域中的recordId
55518
55528
  }
55519
55529
  }) : {
55520
55530
  "type": "steedos-record-detail",
@@ -56454,16 +56464,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
56454
56464
  data: formSchema
56455
56465
  };
56456
56466
  `;
56457
- const onDialogCancelScript = `
56458
- // 这里加setTimeout是因为amis的Bug,它会先触发cancel事件执行此脚本关闭父窗口然后再关闭子窗口
56459
- // 正确的顺序应该是先关闭子窗口再关闭父窗口,顺序错了会造成第二次点击新建按钮的时候异常
56460
- setTimeout(function(){
56461
- doAction({
56462
- "actionType": "cancel",
56463
- "componentId": "object_actions_drawer_${uiSchema.name}"
56464
- });
56465
- }, 200);
56466
- `;
56467
56467
  const getSelectedRowsScript = `
56468
56468
  const isLookup = event.data.isLookup;
56469
56469
  if(isLookup){
@@ -56553,17 +56553,6 @@ const getSchema$5 = async (uiSchema, ctx) => {
56553
56553
  "closeOnEsc": false,
56554
56554
  "closeOnOutside": false,
56555
56555
  "size": "lg",
56556
- "onEvent": {
56557
- "cancel": {
56558
- "actions": [
56559
- {
56560
- "actionType": "custom",
56561
- "script": onDialogCancelScript,
56562
- "expression": "${window:innerWidth < 768}",
56563
- }
56564
- ]
56565
- }
56566
- },
56567
56556
  "actions": [
56568
56557
  {
56569
56558
  type: 'button',
@@ -56581,8 +56570,7 @@ const getSchema$5 = async (uiSchema, ctx) => {
56581
56570
  type: 'button',
56582
56571
  actionType: 'confirm',
56583
56572
  label: instance.t('frontend_form_save'),
56584
- primary: true,
56585
- close: `object_actions_drawer_${uiSchema.name}`
56573
+ primary: true
56586
56574
  },
56587
56575
  ]
56588
56576
  }