plain-design 1.0.0-beta.69 → 1.0.0-beta.70

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,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.69",
3
+ "version": "1.0.0-beta.70",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -11,11 +11,11 @@ export const PlcAddress = designComponent({
11
11
  types: { type: String, default: 'pcd' },
12
12
  service: { type: Object as PropType<iAddressService> },
13
13
 
14
- provinceTitle: { type: String, default: () => i18n.$it('base.province').d('省') },
14
+ provinceTitle: { type: String },
15
15
  provinceField: { type: String, default: 'province' },
16
- cityTitle: { type: String, default: () => i18n.$it('base.city').d('市') },
16
+ cityTitle: { type: String },
17
17
  cityField: { type: String, default: 'city' },
18
- districtTitle: { type: String, default: () => i18n.$it('base.district').d('区县') },
18
+ districtTitle: { type: String },
19
19
  districtField: { type: String, default: 'district' },
20
20
  },
21
21
  setup({ props }) {
@@ -33,7 +33,7 @@ export const PlcAddress = designComponent({
33
33
  <PlcAddressItem
34
34
  key={plcBindIds.province}
35
35
  bindId={plcBindIds.province}
36
- title={props.provinceTitle}
36
+ title={props.provinceTitle || i18n.$it('base.province').d('省')}
37
37
  field={props.provinceField}
38
38
  province
39
39
  editColSpan={props.types.length}
@@ -59,7 +59,7 @@ export const PlcAddress = designComponent({
59
59
  key={plcBindIds.city}
60
60
  parentBindId={plcBindIds.province}
61
61
  bindId={plcBindIds.city}
62
- title={props.cityTitle}
62
+ title={props.cityTitle || i18n.$it('base.city').d('市')}
63
63
  field={props.cityField}
64
64
  city
65
65
  parentField={props.provinceField}
@@ -74,7 +74,7 @@ export const PlcAddress = designComponent({
74
74
  <PlcAddressItem
75
75
  key="district"
76
76
  parentBindId={plcBindIds.city}
77
- title={props.districtTitle}
77
+ title={props.districtTitle || i18n.$it('base.district').d('区县')}
78
78
  field={props.districtField}
79
79
  district
80
80
  parentField={props.cityField}