@lambo-design/variant-form 2.2.9-beta.1 → 2.2.9-beta.2

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@lambo-design/variant-form",
3
- "version": "2.2.9-beta.1",
3
+ "version": "2.2.9-beta.2",
4
4
  "description": "VForm Online Form Designer",
5
- "main": "dist/VFormDesigner.umd.min.js",
5
+ "main": "src/index.js",
6
6
  "author": "lambo",
7
7
  "license": "ISC",
8
8
  "publishConfig": {
@@ -60,7 +60,7 @@
60
60
  "release-minor": "standard-version --release-as minor",
61
61
  "release-patch": "standard-version --release-as patch",
62
62
  "release-beta": "standard-version --prerelease beta",
63
- "re-publish": "pnpm lib && pnpm publish --access public --no-git-checks",
63
+ "re-publish": "pnpm publish --access public --no-git-checks",
64
64
  "serve": "vue-cli-service serve --open src/main.js",
65
65
  "build": "vue-cli-service build --report --dest dist/build",
66
66
  "lib": "vue-cli-service build --report --target lib --dest dist/lib --name VFormDesigner install.js",
@@ -9,7 +9,7 @@
9
9
  @focus="handleClickCustomEvent">
10
10
  <i slot="suffix" class="el-input__icon el-icon-s-grid" @click="handleClickCustomEvent"></i>
11
11
  </el-input>
12
- <el-dialog title="组织" :visible.sync="dialogVisible" class="organ-dialog">
12
+ <el-dialog title="组织" :visible.sync="dialogVisible" class="organ-dialog" append-to-body>
13
13
  <el-form label-width="120px">
14
14
  <el-row>
15
15
  <el-col :span="12" v-if="userCenterType === 'sc'">
@@ -175,9 +175,6 @@ export default {
175
175
 
176
176
  async loadNode(node, resolve) {
177
177
  if (node){
178
- // if (node.level === 0 && this.treeDataList.length > 0) {
179
- // return resolve(this.treeDataList);
180
- // }
181
178
  const params = {
182
179
  parentId: node.data.bizOrganId,
183
180
  organTreeType: this.optionModel.organTreeType || (this.userCenterType === 'sc' ? 'default' : '00'),
@@ -210,7 +207,11 @@ export default {
210
207
 
211
208
  onOk() {
212
209
  if (!this.optionModel.rootOrgan && !this.selectedRootOrgan){
213
- this.$Message.error('请选择根组织');
210
+ this.$message({
211
+ message: '请选择根组织',
212
+ customClass: 'messageClass',
213
+ type: 'error'
214
+ });
214
215
  return;
215
216
  }
216
217
  this.dialogVisible = false;
@@ -244,5 +245,8 @@ export default {
244
245
  text-align: right;
245
246
  border-top: 1px solid #eee;
246
247
  }
248
+ .messageClass{
249
+ z-index: 2005;
250
+ }
247
251
  }
248
252
  </style>
@@ -1,10 +1,7 @@
1
1
  <template>
2
2
  <el-form-item>
3
- <span slot="label">{{i18nt('designer.setting.validation')}}
4
- <el-tooltip effect="light" :content="i18nt('designer.setting.validationHelp')">
5
- <i class="el-icon-info"></i></el-tooltip>
6
- </span>
7
- <el-select v-model="optionModel.validation" filterable clearable allow-create default-first-option>
3
+ <span slot="label">{{i18nt('designer.setting.validation')}}</span>
4
+ <el-select v-model="optionModel.validation" filterable clearable allow-create default-first-option @change="handleValidationChange">
8
5
  <el-option v-for="(fv, fvIdx) in fieldValidators"
9
6
  :key="fvIdx"
10
7
  :label="fv.label"
@@ -34,12 +31,20 @@
34
31
  {value: 'mobilePhone', label: this.i18nt('designer.hint.mobilePhoneValidator')},
35
32
  {value: 'email', label: this.i18nt('designer.hint.emailValidator')},
36
33
  {value: 'url', label: this.i18nt('designer.hint.urlValidator')},
34
+ {value: 'idCard', label: this.i18nt('designer.hint.idCardValidator')},
37
35
  {value: 'noChinese', label: this.i18nt('designer.hint.noChineseValidator')},
38
36
  {value: 'chinese', label: this.i18nt('designer.hint.chineseValidator')},
39
37
  ],
40
38
  }
41
39
  },
42
40
 
41
+ methods: {
42
+ handleValidationChange(val) {
43
+ if (val) {
44
+ this.optionModel.validationHint = '必须是' + this.i18nt(`designer.hint.${val}Validator`)
45
+ }
46
+ }
47
+ }
43
48
  }
44
49
  </script>
45
50
 
@@ -33,8 +33,8 @@ const COMMON_PROPERTIES = {
33
33
  'rows': 'rows-editor',
34
34
  'required': 'required-editor',
35
35
  // 'requiredHint' : 'requiredHint-editor',
36
- // 'validation' : 'validation-editor',
37
- // 'validationHint' : 'validationHint-editor',
36
+ 'validation': 'validation-editor',
37
+ 'validationHint': 'validationHint-editor',
38
38
  'readonly': 'readonly-editor',
39
39
  'disabled': 'disabled-editor',
40
40
  'hidden': 'hidden-editor',
@@ -8,7 +8,7 @@ export const containers = [
8
8
  options: {
9
9
  name: '',
10
10
  hidden: false,
11
- gutter: 12,
11
+ gutter: 0,
12
12
  colHeight: null, //栅格列统一高度属性,用于解决栅格列设置响应式布局浮动后被挂住的问题!!
13
13
  customClass: '', //自定义css类名
14
14
  }
package/src/lang/en-US.js CHANGED
@@ -137,6 +137,7 @@ export default {
137
137
  letterAndNumberValidator: 'LetterAndNumber',
138
138
  mobilePhoneValidator: 'MobilePhone',
139
139
  emailValidator: 'Email',
140
+ idCard: 'IDCard',
140
141
  urlValidator: 'URL',
141
142
  noChineseValidator: 'Non-Chinese',
142
143
  chineseValidator: 'Chinese',
package/src/lang/zh-CN.js CHANGED
@@ -138,6 +138,7 @@ export default {
138
138
  mobilePhoneValidator: '手机号码',
139
139
  emailValidator: '邮箱',
140
140
  urlValidator: '网址',
141
+ idCardValidator: '身份证号',
141
142
  noChineseValidator: '非中文字符',
142
143
  chineseValidator: '仅中文字符',
143
144
 
package/vue.config.js CHANGED
@@ -33,7 +33,7 @@ if (IS_PROD && buildProdFlag) {
33
33
  module.exports = {
34
34
  publicPath: './',
35
35
  assetsDir: './',
36
-
36
+ parallel: false,
37
37
  /* 开启vue运行时模板编译功能!! */
38
38
  runtimeCompiler: true,
39
39