ngx-rs-ant 1.8.2 → 1.8.3

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.
@@ -1845,35 +1845,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1845
1845
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
1846
1846
 
1847
1847
  function notify_error(message) {
1848
- notify({
1849
- displayTime: 12000,
1850
- message,
1851
- type: 'warning',
1852
- width: '300px'
1853
- }, {
1854
- direction: 'up-push',
1855
- position: 'bottom right'
1856
- });
1848
+ _notify(message, 12000, 'warning');
1857
1849
  }
1858
1850
  function notify_warning(message) {
1859
- notify({
1860
- displayTime: 8000,
1861
- message,
1862
- type: 'warning',
1863
- width: '300px'
1864
- }, {
1865
- direction: 'up-push',
1866
- position: 'bottom right'
1867
- });
1851
+ _notify(message, 8000, 'warning');
1868
1852
  }
1869
1853
  function notify_success(message) {
1854
+ _notify(message, 4000, 'success');
1855
+ }
1856
+ function _notify(message, time, type) {
1870
1857
  notify({
1871
- displayTime: 4000,
1858
+ displayTime: time,
1872
1859
  message,
1873
- type: 'success',
1874
- width: '300px'
1860
+ type: type,
1861
+ closeOnSwipe: false,
1862
+ minWidth: 200,
1863
+ maxWidth: 500,
1864
+ wrapperAttr: { class: 'global-toast-message' }
1875
1865
  }, {
1876
- direction: 'down-push',
1866
+ direction: 'up-push',
1877
1867
  position: 'bottom right'
1878
1868
  });
1879
1869
  }
@@ -3049,6 +3039,7 @@ class DataGridComponent {
3049
3039
  if (this.instanceLinkType === 'tab' || this.instanceLinkType === 'drawer') {
3050
3040
  columns.unshift({
3051
3041
  fixed: true,
3042
+ caption: '详情',
3052
3043
  width: 48,
3053
3044
  cellTemplate: 'instanceLinkTemplate',
3054
3045
  alignment: 'center',