Skip to content

Commit

Permalink
feat: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Feb 28, 2024
1 parent ac2ca76 commit ba094d5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
42 changes: 21 additions & 21 deletions packages/examples/src/js/pages/Encode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,26 @@ export default memo(function Encode() {
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
<FormItem name="fnc1" label="支持 FNC1">
<FormItem name="mode" label="编码模式">
<Select>
<Option value="None"></Option>
<Option value="AIM">AIM</Option>
<Option value="GS1">GS1</Option>
<Option value="Auto" selected>
Auto
</Option>
<Option value="Alphanumeric">Alphanumeric</Option>
<Option value="Byte">Byte</Option>
<Option value="Hanzi">Hanzi</Option>
<Option value="Kanji">Kanji</Option>
<Option value="Numeric">Numeric</Option>
</Select>
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
<FormItem name="aimIndicator" label="AIM 标识">
<InputNumber disabled={fnc1 !== 'AIM'} min={0} max={255} precision={0} style={{ width: '100%' }} />
<FormItem name="charset" label="字符编码">
<Select disabled={mode !== 'Auto'}>
<Option value="ASCII">ASCII</Option>
<Option value="UTF_8">UTF-8</Option>
<Option value="ISO_8859_1">ISO-8859-1</Option>
</Select>
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
Expand All @@ -168,26 +177,17 @@ export default memo(function Encode() {
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
<FormItem name="mode" label="编码模式">
<FormItem name="fnc1" label="支持 FNC1">
<Select>
<Option value="Auto" selected>
Auto
</Option>
<Option value="Alphanumeric">Alphanumeric</Option>
<Option value="Byte">Byte</Option>
<Option value="Hanzi">Hanzi</Option>
<Option value="Kanji">Kanji</Option>
<Option value="Numeric">Numeric</Option>
<Option value="None"></Option>
<Option value="AIM">AIM</Option>
<Option value="GS1">GS1</Option>
</Select>
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
<FormItem name="charset" label="字符编码">
<Select disabled={mode !== 'Auto'}>
<Option value="ASCII">ASCII</Option>
<Option value="UTF_8">UTF-8</Option>
<Option value="ISO_8859_1">ISO-8859-1</Option>
</Select>
<FormItem name="aimIndicator" label="AIM 标识">
<InputNumber disabled={fnc1 !== 'AIM'} min={0} max={255} precision={0} style={{ width: '100%' }} />
</FormItem>
</Col>
<Col md={6} sm={12} xs={24}>
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/c3af73943d0b8dc6.js"></script><script defer="defer" src="public/js/175c9380a8034ab8.js"></script><script defer="defer" src="public/js/74f86b78eb5f6b88.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/74b68919d98b4113.js"></script><script defer="defer" src="public/js/175c9380a8034ab8.js"></script><script defer="defer" src="public/js/74f86b78eb5f6b88.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba094d5

Please sign in to comment.