@studio-west/component-sw 0.13.8 → 0.13.9
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/README.md +12 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -376,31 +376,22 @@ const datePickerLimitation = ref([
|
|
|
376
376
|
endDate: fmt(new Date(today.getFullYear(), today.getMonth(), 12))
|
|
377
377
|
}
|
|
378
378
|
])
|
|
379
|
-
const datePickerLog = ref({ solid: '', range: '' })
|
|
380
379
|
|
|
381
|
-
function onDatePickerInput(mode, payload) {
|
|
382
|
-
datePickerLog.value[mode] = JSON.stringify(payload, null, 2)
|
|
383
|
-
console.log(`SwDatePicker [${mode}]`, payload)
|
|
384
|
-
}
|
|
385
380
|
</script>
|
|
386
381
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
@input="onDatePickerInput('solid', $event)"
|
|
394
|
-
/>
|
|
382
|
+
<!-- solid — одна дата -->
|
|
383
|
+
<sw-date-picker
|
|
384
|
+
:data="datePickerSolid"
|
|
385
|
+
:limitation="datePickerLimitation"
|
|
386
|
+
range="solid"
|
|
387
|
+
/>
|
|
395
388
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
/>
|
|
403
|
-
</template>
|
|
389
|
+
<!-- range — интервал -->
|
|
390
|
+
<sw-date-picker
|
|
391
|
+
:data="datePickerRange"
|
|
392
|
+
:limitation="datePickerLimitation"
|
|
393
|
+
range="range"
|
|
394
|
+
/>
|
|
404
395
|
```
|
|
405
396
|
---
|
|
406
397
|
|