@openli1115/lowcode-edit-pro-table 1.0.44 → 1.0.46

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.
@@ -72,7 +72,7 @@ var EditProTable = function EditProTable(_ref) {
72
72
  form = _Form$useForm[0];
73
73
  var screenStructure = screen_inner_id ? screen_inner_id.split('__')[1] : '';
74
74
  console.log('editProTable otherProps', otherProps);
75
- console.log('dataSource', dataSource);
75
+ console.log('editProTable dataSource', dataSource);
76
76
  // console.log('screen_inner_id', screen_inner_id);
77
77
  // console.log('bind_inner_field', bind_inner_field);
78
78
 
@@ -268,9 +268,9 @@ var EditProTable = function EditProTable(_ref) {
268
268
  if (toType === 'moment') {
269
269
  if (!value || value === '') {
270
270
  newRow[key] = null;
271
- } else if (typeof value === 'string') {
272
- var format = col.valueType === 'time' ? 'HH:mm:ss' : 'YYYY-MM-DD HH:mm:ss';
273
- var m = moment(value, format, true);
271
+ }
272
+ if (typeof value === 'string' && value.length && col.valueType === 'time') {
273
+ var m = moment(value, 'HH:mm:ss', true);
274
274
  newRow[key] = m.isValid() ? m : null;
275
275
  }
276
276
  }
@@ -77,7 +77,7 @@ var EditProTable = function EditProTable(_ref) {
77
77
  form = _Form$useForm[0];
78
78
  var screenStructure = screen_inner_id ? screen_inner_id.split('__')[1] : '';
79
79
  console.log('editProTable otherProps', otherProps);
80
- console.log('dataSource', dataSource);
80
+ console.log('editProTable dataSource', dataSource);
81
81
  // console.log('screen_inner_id', screen_inner_id);
82
82
  // console.log('bind_inner_field', bind_inner_field);
83
83
 
@@ -273,9 +273,9 @@ var EditProTable = function EditProTable(_ref) {
273
273
  if (toType === 'moment') {
274
274
  if (!value || value === '') {
275
275
  newRow[key] = null;
276
- } else if (typeof value === 'string') {
277
- var format = col.valueType === 'time' ? 'HH:mm:ss' : 'YYYY-MM-DD HH:mm:ss';
278
- var m = (0, _moment["default"])(value, format, true);
276
+ }
277
+ if (typeof value === 'string' && value.length && col.valueType === 'time') {
278
+ var m = (0, _moment["default"])(value, 'HH:mm:ss', true);
279
279
  newRow[key] = m.isValid() ? m : null;
280
280
  }
281
281
  }
@@ -118,14 +118,14 @@ const ProTableMeta: IPublicTypeComponentMetadata = {
118
118
  props: {
119
119
  options: [
120
120
  { title: '文本', value: 'text' },
121
- { title: '标签', value: 'tag' },
122
- { title: '数字', value: 'digit' },
123
- { title: '金额', value: 'money' },
121
+ // { title: '标签', value: 'tag' },
122
+ // { title: '数字', value: 'digit' },
123
+ // { title: '金额', value: 'money' },
124
124
  { title: '日期', value: 'date' },
125
- { title: '日期时间', value: 'dateTime' },
126
- { title: '链接', value: 'link' },
127
- { title: '头像', value: 'avatar' },
128
- { title: '进度条', value: 'progress' }
125
+ { title: '时间', value: 'time' },
126
+ // { title: '链接', value: 'link' },
127
+ // { title: '头像', value: 'avatar' },
128
+ // { title: '进度条', value: 'progress' }
129
129
  ]
130
130
  }
131
131
  }
@@ -101,7 +101,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
101
101
  packageName = '@openli1115/lowcode-edit-pro-table';
102
102
  }
103
103
  if (version === void 0) {
104
- version = '1.0.44';
104
+ version = '1.0.46';
105
105
  }
106
106
  if (basicLibraryVersion === void 0) {
107
107
  basicLibraryVersion = {
@@ -121,31 +121,21 @@ var ProTableMeta = {
121
121
  options: [{
122
122
  title: '文本',
123
123
  value: 'text'
124
- }, {
125
- title: '标签',
126
- value: 'tag'
127
- }, {
128
- title: '数字',
129
- value: 'digit'
130
- }, {
131
- title: '金额',
132
- value: 'money'
133
- }, {
124
+ },
125
+ // { title: '标签', value: 'tag' },
126
+ // { title: '数字', value: 'digit' },
127
+ // { title: '金额', value: 'money' },
128
+ {
134
129
  title: '日期',
135
130
  value: 'date'
136
131
  }, {
137
- title: '日期时间',
138
- value: 'dateTime'
139
- }, {
140
- title: '链接',
141
- value: 'link'
142
- }, {
143
- title: '头像',
144
- value: 'avatar'
145
- }, {
146
- title: '进度条',
147
- value: 'progress'
148
- }]
132
+ title: '时间',
133
+ value: 'time'
134
+ }
135
+ // { title: '链接', value: 'link' },
136
+ // { title: '头像', value: 'avatar' },
137
+ // { title: '进度条', value: 'progress' }
138
+ ]
149
139
  }
150
140
  }
151
141
  }, {
@@ -106,7 +106,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
106
106
  packageName = '@openli1115/lowcode-edit-pro-table';
107
107
  }
108
108
  if (version === void 0) {
109
- version = '1.0.44';
109
+ version = '1.0.46';
110
110
  }
111
111
  if (basicLibraryVersion === void 0) {
112
112
  basicLibraryVersion = {
@@ -126,31 +126,21 @@ var ProTableMeta = {
126
126
  options: [{
127
127
  title: '文本',
128
128
  value: 'text'
129
- }, {
130
- title: '标签',
131
- value: 'tag'
132
- }, {
133
- title: '数字',
134
- value: 'digit'
135
- }, {
136
- title: '金额',
137
- value: 'money'
138
- }, {
129
+ },
130
+ // { title: '标签', value: 'tag' },
131
+ // { title: '数字', value: 'digit' },
132
+ // { title: '金额', value: 'money' },
133
+ {
139
134
  title: '日期',
140
135
  value: 'date'
141
136
  }, {
142
- title: '日期时间',
143
- value: 'dateTime'
144
- }, {
145
- title: '链接',
146
- value: 'link'
147
- }, {
148
- title: '头像',
149
- value: 'avatar'
150
- }, {
151
- title: '进度条',
152
- value: 'progress'
153
- }]
137
+ title: '时间',
138
+ value: 'time'
139
+ }
140
+ // { title: '链接', value: 'link' },
141
+ // { title: '头像', value: 'avatar' },
142
+ // { title: '进度条', value: 'progress' }
143
+ ]
154
144
  }
155
145
  }
156
146
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openli1115/lowcode-edit-pro-table",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "@openli1115/lowcode-edit-pro-table",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -100,10 +100,10 @@
100
100
  },
101
101
  "componentConfig": {
102
102
  "isComponentLibrary": true,
103
- "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.44/build/lowcode/assets-prod.json"
103
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.46/build/lowcode/assets-prod.json"
104
104
  },
105
105
  "lcMeta": {
106
106
  "type": "component"
107
107
  },
108
- "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.44/build/index.html"
108
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.46/build/index.html"
109
109
  }