@opentinyvue/vue-docs 3.27.4 → 3.27.5

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.
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -276,8 +276,8 @@ export default {
276
276
  },
277
277
  {
278
278
  name: 'loading',
279
- type: 'object',
280
- defaultValue: '',
279
+ type: 'boolean',
280
+ defaultValue: 'false',
281
281
  desc: {
282
282
  'zh-CN': '图表加载状态',
283
283
  'en-US': 'Chart loading status'
@@ -287,8 +287,8 @@ export default {
287
287
  },
288
288
  {
289
289
  name: 'data-empty',
290
- type: 'object',
291
- defaultValue: '',
290
+ type: 'boolean',
291
+ defaultValue: 'false',
292
292
  desc: {
293
293
  'zh-CN': '暂无数据状态',
294
294
  'en-US': 'No data status available at the moment'
@@ -10,7 +10,7 @@ export default {
10
10
  type: 'boolean',
11
11
  defaultValue: 'false',
12
12
  desc: {
13
- 'zh-CN': '是否启用alpha选择',
13
+ 'zh-CN': '是否支持透明度选择',
14
14
  'en-US': 'enable alpha select or not'
15
15
  },
16
16
  mode: ['pc'],
@@ -10,7 +10,7 @@ export default {
10
10
  type: 'boolean',
11
11
  defaultValue: 'false',
12
12
  desc: {
13
- 'zh-CN': '是否启用alpha选择',
13
+ 'zh-CN': '是否支持透明度选择',
14
14
  'en-US': 'enable alpha select or not'
15
15
  },
16
16
  mode: ['pc'],
@@ -15,7 +15,7 @@
15
15
 
16
16
  <!-- 使用 dynamic direction 值 -->
17
17
  <tiny-space class="tiny-space" :size="[rowValue, columnValue]" :wrap="true">
18
- <tiny-button style="margin: 0" v-for="n in 15" :key="n">按钮 {{ n }}</tiny-button>
18
+ <tiny-button v-for="n in 15" :key="n">按钮 {{ n }}</tiny-button>
19
19
  </tiny-space>
20
20
  </div>
21
21
  </template>
@@ -46,11 +46,11 @@ export default {
46
46
  {
47
47
  demoId: 'enable-alpha',
48
48
  name: {
49
- 'zh-CN': 'Alpha',
49
+ 'zh-CN': '透明度',
50
50
  'en-US': 'Alpha'
51
51
  },
52
52
  desc: {
53
- 'zh-CN': '<code>Alpha</code>选择。',
53
+ 'zh-CN': '<code>透明度</code>选择。',
54
54
  'en-US': '<code>Alpha</code>select.'
55
55
  },
56
56
  codeFiles: ['alpha.vue']
@@ -59,30 +59,30 @@ export default {
59
59
  }
60
60
  ],
61
61
  shortcutsMonth: [
62
- {
63
- text: '一个月前',
64
- onClick(picker) {
65
- const date = new Date()
66
- date.setMonth(date.getMonth() - 1)
67
- picker.$emit('pick', date)
68
- }
69
- },
70
- {
71
- text: '三个月前',
72
- onClick(picker) {
73
- const date = new Date()
74
- date.setMonth(date.getMonth() - 3)
75
- picker.$emit('pick', date)
76
- }
77
- },
78
- {
79
- text: '六个月前',
80
- onClick(picker) {
81
- const date = new Date()
82
- date.setMonth(date.getMonth() - 6)
83
- picker.$emit('pick', date)
84
- }
62
+ {
63
+ text: '一个月前',
64
+ onClick(picker) {
65
+ const date = new Date()
66
+ date.setMonth(date.getMonth() - 1)
67
+ picker.$emit('pick', date)
85
68
  }
69
+ },
70
+ {
71
+ text: '三个月前',
72
+ onClick(picker) {
73
+ const date = new Date()
74
+ date.setMonth(date.getMonth() - 3)
75
+ picker.$emit('pick', date)
76
+ }
77
+ },
78
+ {
79
+ text: '六个月前',
80
+ onClick(picker) {
81
+ const date = new Date()
82
+ date.setMonth(date.getMonth() - 6)
83
+ picker.$emit('pick', date)
84
+ }
85
+ }
86
86
  ],
87
87
  shortcutsYear: [
88
88
  {
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <div class="demo-form">
3
+ <tiny-form :model="state" :rules="rules">
4
+ <tiny-form-item label="HTML" prop="value0">
5
+ <tiny-input :maxLength="3" v-model="state.value0"></tiny-input>
6
+ </tiny-form-item>
7
+ <tiny-form-item label="默认" prop="value1">
8
+ <tiny-input v-model="state.value1"></tiny-input>
9
+ </tiny-form-item>
10
+ <tiny-form-item label="自定义" prop="value2">
11
+ <tiny-input v-model="state.value2"></tiny-input>
12
+ </tiny-form-item>
13
+ </tiny-form>
14
+ </div>
15
+ </template>
16
+
17
+ <script setup>
18
+ import { reactive, ref } from 'vue'
19
+
20
+ import { Form as TinyForm, FormItem as TinyFormItem, Input as TinyInput } from '@opentiny/vue'
21
+
22
+ const state = reactive({
23
+ value0: '',
24
+ value1: '',
25
+ value2: ''
26
+ })
27
+
28
+ const rules = ref({
29
+ value1: [{ max: 3 }],
30
+ value2: [{ max: 3, regular: (val) => val.length }]
31
+ })
32
+ </script>
33
+
34
+ <style scoped>
35
+ .demo-form {
36
+ width: 380px;
37
+ }
38
+ </style>
@@ -121,6 +121,18 @@ export default {
121
121
  },
122
122
  codeFiles: ['custom-validation-rule.vue']
123
123
  },
124
+ {
125
+ demoId: 'custom-validation-string-length',
126
+ name: {
127
+ 'zh-CN': '自定义字符串长度',
128
+ 'en-US': 'Custom String Length'
129
+ },
130
+ desc: {
131
+ 'zh-CN': '<p>通过 <code>rules</code> 的 <code>regular</code> 进行自定义字符串长度(3.28.0版本新增)</p>',
132
+ 'en-US': '<p>Customize string length using the <code>regular</code> method of <code>rules</code>. </p>'
133
+ },
134
+ codeFiles: ['custom-validation-string-length.vue']
135
+ },
124
136
  {
125
137
  demoId: 'validation-position',
126
138
  name: {
@@ -0,0 +1,286 @@
1
+ export const advanceIcons = [
2
+ 'IconAcceptance',
3
+ 'IconActivation',
4
+ 'IconAdministrator',
5
+ 'IconAgendaView',
6
+ 'IconAreaChart',
7
+ 'IconArrowDown',
8
+ 'IconArrowLeft',
9
+ 'IconArrowRight',
10
+ 'IconArrowUp',
11
+ 'IconAscending',
12
+ 'IconAssociation',
13
+ 'IconAttachment',
14
+ 'IconAudio',
15
+ 'IconAudit',
16
+ 'IconAutomaticAssessment',
17
+ 'IconBarChart',
18
+ 'IconBatchFill',
19
+ 'IconBefilter',
20
+ 'IconBoat',
21
+ 'IconCalculator',
22
+ 'IconCalendar',
23
+ 'IconCardModeline',
24
+ 'IconCheck',
25
+ 'IconCheckedLinear',
26
+ 'IconCheckOut',
27
+ 'IconChevronDown',
28
+ 'IconChevronLeft',
29
+ 'IconChevronRight',
30
+ 'IconChevronUp',
31
+ 'IconClearFilter',
32
+ 'IconClockWork',
33
+ 'IconClose',
34
+ 'IconCloseCircle',
35
+ 'IconCloseSquare',
36
+ 'IconCloudDownload',
37
+ 'IconCoin',
38
+ 'IconCommission',
39
+ 'IconCompany',
40
+ 'IconConmentRefresh',
41
+ 'IconConnectSquare',
42
+ 'IconCopy',
43
+ 'IconCourse',
44
+ 'IconCrop',
45
+ 'IconCueL',
46
+ 'IconCurrency',
47
+ 'IconCustom',
48
+ 'IconCustomerService',
49
+ 'IconCustomsClearanceForm',
50
+ 'IconCustomsDeclaration',
51
+ 'IconDailyVisits',
52
+ 'IconDefault',
53
+ 'IconDefinedFiltration',
54
+ 'IconDelegatedProcessing',
55
+ 'IconDeleted',
56
+ 'IconDeletePage',
57
+ 'IconDeltaDownO',
58
+ 'IconDeltaLeftO',
59
+ 'IconDeltaRightO',
60
+ 'IconDeltaUpO',
61
+ 'IconDescending',
62
+ 'IconDialog',
63
+ 'IconDisallowance',
64
+ 'IconDotChart',
65
+ 'IconDotIpv4',
66
+ 'IconDoubleLeft',
67
+ 'IconDoubleRight',
68
+ 'IconDownload',
69
+ 'IconDownloadCloud',
70
+ 'IconDrawFlowchart',
71
+ 'IconEarthLined',
72
+ 'IconEdit',
73
+ 'IconEditorAlignCenter',
74
+ 'IconEditorAlignLeft',
75
+ 'IconEditorAlignRight',
76
+ 'IconEditorBold',
77
+ 'IconEditorCode',
78
+ 'IconEditorDeleteline',
79
+ 'IconEditorEraser',
80
+ 'IconEditorItalic',
81
+ 'IconEditorLeftBorder',
82
+ 'IconEditorListDot',
83
+ 'IconEditorListNum',
84
+ 'IconEditorMenuLeft',
85
+ 'IconEditorMenuRight',
86
+ 'IconEditorQuote',
87
+ 'IconEditorRedo',
88
+ 'IconEditorRightBorder',
89
+ 'IconEditorSub',
90
+ 'IconEditorSubtitle',
91
+ 'IconEditorSuper',
92
+ 'IconEditorTable',
93
+ 'IconEditorTextcolor',
94
+ 'IconEditorTitle',
95
+ 'IconEditorUnderline',
96
+ 'IconEditorUndo',
97
+ 'IconEditorVideo',
98
+ 'IconEllipsis',
99
+ 'IconEmailAdd',
100
+ 'IconEmailCircle',
101
+ 'IconEnd',
102
+ 'IconEngineWorkflow',
103
+ 'IconEspaceAuto',
104
+ 'IconExcelType',
105
+ 'IconException',
106
+ 'IconExecutionPhase',
107
+ 'IconExhibitionForum',
108
+ 'IconExport',
109
+ 'IconExpressSearch',
110
+ 'IconEyeclose',
111
+ 'IconEyeopen',
112
+ 'IconFemale',
113
+ 'IconFile',
114
+ 'IconFileCloudupload',
115
+ 'IconFileExcel',
116
+ 'IconFilesCircle',
117
+ 'IconFiletext',
118
+ 'IconFileType',
119
+ 'IconFileupload',
120
+ 'IconFiltered',
121
+ 'IconFlag',
122
+ 'IconFolderClosed',
123
+ 'IconFreezeLeft',
124
+ 'IconFreezeRight',
125
+ 'IconFrownO',
126
+ 'IconFullscreen',
127
+ 'IconFullscreenLeft',
128
+ 'IconGenerating',
129
+ 'IconGrade',
130
+ 'IconGroup',
131
+ 'IconGroupTransfer',
132
+ 'IconHeartempty',
133
+ 'IconHelpful',
134
+ 'IconHotCn',
135
+ 'IconHotEn',
136
+ 'IconImageAdd',
137
+ 'IconImport',
138
+ 'IconInfoCircle',
139
+ 'IconInformation',
140
+ 'IconItemPlanningProperties',
141
+ 'IconLeave',
142
+ 'IconLeftFrozen',
143
+ 'IconLetter',
144
+ 'IconLineChart',
145
+ 'IconLink',
146
+ 'IconListMode',
147
+ 'IconLoading',
148
+ 'IconLocationNumber',
149
+ 'IconLock',
150
+ 'IconMailContent',
151
+ 'IconMainFreightSettled',
152
+ 'IconMainFreightToBeSettled',
153
+ 'IconMaintainInspectionRecords',
154
+ 'IconMale',
155
+ 'IconMarkOn',
156
+ 'IconMaterial',
157
+ 'IconMeh',
158
+ 'IconMessageCircle',
159
+ 'IconMic',
160
+ 'IconMilestone',
161
+ 'IconMinscreen',
162
+ 'IconMinscreenLeft',
163
+ 'IconMinscreenRight',
164
+ 'IconMinus',
165
+ 'IconMinusCircle',
166
+ 'IconMinusSquare',
167
+ 'IconMobile',
168
+ 'IconMobileCheckboxHalf',
169
+ 'IconMobileRadio',
170
+ 'IconMonthView',
171
+ 'IconMsg',
172
+ 'IconNewCn',
173
+ 'IconNewEn',
174
+ 'IconNodeOpen',
175
+ 'IconNoPremission',
176
+ 'IconOfd',
177
+ 'IconOnLine',
178
+ 'IconOther',
179
+ 'IconOtherType',
180
+ 'IconOuterLink',
181
+ 'IconPagelink',
182
+ 'IconPagerFirst',
183
+ 'IconPagerLast',
184
+ 'IconPanelMax',
185
+ 'IconPanelNormal',
186
+ 'IconPause',
187
+ 'IconPauseCircle',
188
+ 'IconPaymentSlips',
189
+ 'IconPdfType',
190
+ 'IconPendingReview',
191
+ 'IconPerformance',
192
+ 'IconPicture',
193
+ 'IconPictureType',
194
+ 'IconPieChart',
195
+ 'IconPlus',
196
+ 'IconPlusCircle',
197
+ 'IconPptType',
198
+ 'IconPreChecked',
199
+ 'IconPrintPreview',
200
+ 'IconProcessPlanRequirements',
201
+ 'IconPublicHome',
202
+ 'IconPublicNotice',
203
+ 'IconPublish',
204
+ 'IconPurchasePlannedOrder',
205
+ 'IconPushpin',
206
+ 'IconRadioselected',
207
+ 'IconRenew',
208
+ 'IconRepeat',
209
+ 'IconReplace',
210
+ 'IconReplies',
211
+ 'IconReportSubmission',
212
+ 'IconRequirementsPlanning',
213
+ 'IconRightFrozen',
214
+ 'IconSandwichCollapse',
215
+ 'IconSandwichExpand',
216
+ 'IconSave',
217
+ 'IconScissor',
218
+ 'IconSearch',
219
+ 'IconSearchResource',
220
+ 'IconSelect',
221
+ 'IconSeniorVisits',
222
+ 'IconService',
223
+ 'IconSetting',
224
+ 'IconSettingData',
225
+ 'IconShare',
226
+ 'IconShareArrow',
227
+ 'IconShoppingCard',
228
+ 'IconSimulcastChinese',
229
+ 'IconSimulcastEnglish',
230
+ 'IconSmile',
231
+ 'IconSort',
232
+ 'IconSortO',
233
+ 'IconSplit',
234
+ 'IconStarDisable',
235
+ 'IconStartCircle',
236
+ 'IconStatistics',
237
+ 'IconSubScript',
238
+ 'IconSubstituteMaterial',
239
+ 'IconSuccessful',
240
+ 'IconSummit',
241
+ 'IconSurchargeSettled',
242
+ 'IconSurchargeToBeSettled',
243
+ 'IconTableMode',
244
+ 'IconTaskCooperation',
245
+ 'IconTelephone',
246
+ 'IconTelephoneCircle',
247
+ 'IconTextTab',
248
+ 'IconTextType',
249
+ 'IconThumbnail',
250
+ 'IconToBeUploaded',
251
+ 'IconTotal',
252
+ 'IconTotalNumber',
253
+ 'IconTotalVolume',
254
+ 'IconTotalWeight',
255
+ 'IconTransform',
256
+ 'IconTurnOn',
257
+ 'IconUndelete',
258
+ 'IconUnderReview',
259
+ 'IconUnfilter',
260
+ 'IconUnfreeze',
261
+ 'IconUnknow',
262
+ 'IconUnlock',
263
+ 'IconUnsent',
264
+ 'IconUpAndDownArrowInner',
265
+ 'IconUpAndDownArrowOuter',
266
+ 'IconUpgrading',
267
+ 'IconUpload',
268
+ 'IconVersiontree',
269
+ 'IconVideoType',
270
+ 'IconViewFlowchart',
271
+ 'IconWaitForDelivery',
272
+ 'IconWaitForDeliveryO',
273
+ 'IconWaitingForSubmission',
274
+ 'IconWaitingToPick',
275
+ 'IconWarningTriangle',
276
+ 'IconWebPlus',
277
+ 'IconWordType',
278
+ 'IconWorkPackage',
279
+ 'IconWriteProductionPlan',
280
+ 'IconWriting',
281
+ 'IconXml',
282
+ 'IconYes',
283
+ 'IconZipType',
284
+ 'IconZoomIn',
285
+ 'IconZoomOut'
286
+ ]