Skip to content

Commit

Permalink
Feat/meta (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaxus authored Jul 16, 2024
1 parent 49f0306 commit fe36b91
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/docs/cn/src/ranui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,14 @@ const FilePreview = () => {

<r-progress percent="0.7" type="drag"></r-progress>
<br />
<r-progress percent="0.7" type="drag" style="--ran-progress-wrap:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"></r-progress>
<r-progress percent="0.7" type="drag" style="--ran-progress-wrap-background:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"></r-progress>

```html
<r-progress percent="0.7" type="drag"></r-progress>
<r-progress
percent="0.70"
type="drag"
style="--ran-progress-wrap:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"
style="--ran-progress-wrap-background:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"
></r-progress>
```

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/ranui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,14 @@ By setting the `CSS3` variable for a component, you can customize the specified

<r-progress percent="0.7" type="drag"></r-progress>
<br />
<r-progress percent="0.7" type="drag" style="--ran-progress-wrap:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"></r-progress>
<r-progress percent="0.7" type="drag" style="--ran-progress-wrap-background:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"></r-progress>

```html
<r-progress percent="0.7" type="drag"></r-progress>
<r-progress
percent="0.70"
type="drag"
style="--ran-progress-wrap:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"
style="--ran-progress-wrap-background:linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);"
></r-progress>
```

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/variable/SERVICE_WORK_VERSION.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SERVICE_WORK_VERSION = '1721011153';
export const SERVICE_WORK_VERSION = "1721041779"
1 change: 1 addition & 0 deletions packages/ranui/bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $bin/vite build -c ./build/config.es.ts
# TODO: splite bundle
$bin/vite build -c ./build/config.umd.ts
$bin/vite build -c ./build/config.sha.ts

cp tsconfig.json ./dist
cp typings.d.ts ./dist

Expand Down
2 changes: 1 addition & 1 deletion packages/ranui/components/preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface requestUrlToArraybufferReturn extends BaseReturn {
}

async function Custom() {
if (typeof document !== 'undefined' && !customElements.get('r-preview') && !import.meta.env.SSR) {
if (typeof document !== 'undefined' && !customElements.get('r-preview')) {
const { renderPptx } = await import('@/components/preview/pptx');
const { renderDocx } = await import('@/components/preview/docx');
const { renderPdf } = await import('@/components/preview/pdf');
Expand Down
1 change: 1 addition & 0 deletions packages/ranui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export * as colorpicker from '@/components/colorpicker';
export * as popover from '@/components/popover';
export * as loading from '@/components/loading';
export * as math from '@/components/math';

2 changes: 2 additions & 0 deletions packages/ranui/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ declare interface Window {
Hls: HLS;
}



namespace JSX {
interface IntrinsicElements {
'r-loading': any & {
Expand Down

0 comments on commit fe36b91

Please sign in to comment.