chore: rm conch block

This commit is contained in:
二货机器人 2022-12-13 11:37:01 +08:00
parent 2d5c8fe408
commit e2f386ea25
2 changed files with 15 additions and 69 deletions

View File

@ -1,70 +1,16 @@
import React from 'react';
import { Select } from 'antd';
const handleChange = (value: string) => {
console.log(`selected ${value}`);
};
const App: React.FC = () => (
<>
<Select
defaultValue="lucy"
style={{ width: 120 }}
onChange={handleChange}
options={[
{
value: 'jack',
label: 'Jack',
},
{
value: 'lucy',
label: 'Lucy',
},
{
value: 'disabled',
disabled: true,
label: 'Disabled',
},
{
value: 'Yiminghe',
label: 'yiminghe',
},
]}
/>
<Select
defaultValue="lucy"
style={{ width: 120 }}
disabled
options={[
{
value: 'lucy',
label: 'Lucy',
},
]}
/>
<Select
defaultValue="lucy"
style={{ width: 120 }}
loading
options={[
{
value: 'lucy',
label: 'Lucy',
},
]}
/>
<Select
defaultValue="lucy"
style={{ width: 120 }}
allowClear
options={[
{
value: 'lucy',
label: 'Lucy',
},
]}
/>
</>
const App = () => (
<Select
value={20}
options={Array(21)
.fill(0)
.map((_, item) => ({
label: `${item}`,
value: item,
}))}
/>
);
export default App;

View File

@ -4,7 +4,7 @@ const semver = require('semver');
const dayjs = require('dayjs');
const chalk = require('chalk');
const { spawnSync } = require('child_process');
const packageJson = require('../package.json');
// const packageJson = require('../package.json');
const CONCH_TAG = 'conch-v5';
@ -43,10 +43,10 @@ const SAFE_DAYS_DIFF = 1000 * 60 * 60 * 24 * 3; // 3 days not update seems to be
(async function process() {
console.log(chalk.cyan('🤖 Post Publish Scripting...\n'));
if (packageJson.version.startsWith('5.0')) {
console.log(chalk.green('🤖 Next version, skipped.'));
return;
}
// if (packageJson.version.startsWith('5.0')) {
// console.log(chalk.green('🤖 Next version, skipped.'));
// return;
// }
const { time, 'dist-tags': distTags } = await fetch('http://registry.npmjs.org/antd').then(
(res) => res.json(),