22 Commits

Author SHA1 Message Date
E66
a005d766e6 fix(components): [watermark] correct fontWeight type definition (#23641) 2026-02-10 09:09:20 +08:00
Meet you
3638db50bc refactor(components): [watermark] use type-based definitions (#23408)
* refactor(components): [watermark] use type-based definitions

* chore: add comment

---------

Co-authored-by: btea <2356281422@qq.com>
2026-01-18 15:51:16 +08:00
dopamine
0ca1570aa1 chore: upgrade to Vue 3.5 (#22096)
* chore: upgrade deps

* chore: replace __ExtractPublicPropTypes with ExtractPublicPropTypes

* fix: get rid of type errors

* fix: resolve test errors with @vue/test-utils v2.4.6

* fix: resolve test errors with Vue 3.5.22

* ci: set pnpm flag

* chore: update the Vue peer dependency version

* Apply suggestion from @tolking

Co-authored-by: qiang <qw13131wang@gmail.com>

* docs: update example code

Co-authored-by: warmthsea <2586244885@qq.com>

* chore: remove csstype (#22487)

* chore: fix merge code type error

* chore: fix test:ssr error

- Cannot read properties of undefined (reading 'getSSRProps')

* chore: fix typecheck:vitest error

* chore: update pnpm yaml file

* test: fix collapse accordion error

* chore: update deps

* chore: fix type error

* chore: lock file

* chore: sync change

sync with the remove of vue macro

* refactor: use computed instead of eagerComputed

* fix: timeline.test.tsx typecheck

* chore: clean lock file

try dont throw CodeFactor issues in ci

did:
- rm pnpm-lock.yaml
- rm -rf ./**/node_modules
- pnpm store prune
- pnpm cache delete
- pnpm install

Also stay in 3.1.0 for vue-tsc in order to avoid the warnings of
template refs, see https://github.com/vuejs/language-tools/issues/5815

* chore: format code

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-16 09:34:03 +08:00
btea
6c63c0018a refactor(components): [watermark] reduce unnecessary calc (#22789) 2025-11-13 15:02:22 +08:00
Dun Lu
398863aaf4 fix(components): [watermark] use baselineOffset to get a complete canvas (#22670)
* fix(components): [watermark] use baselineOffset to get a complete canvas

* fix(components): [watermark] prevent unnecessary baselineOffset process
2025-11-06 10:24:56 +08:00
SuQingyao
5b1bde20fe feat(components): [watermark] add fontGap prop (#22342)
* feat(components): [watermark] add fontGap property

* docs(components): [watermark] add fontGap option

* docs(components): [watermark] add version annotation to fontGap property
2025-09-29 14:25:07 +08:00
一只前端汪
7c16480bcd refactor(style): Update Eslint to V9 and Prettier to V3 (#21949)
* refactor(style): Update Eslint to V9 and Prettier to V3

* fix: vscode color

* fix: vscode color

* chore: remove Useless dependence and old config file

* chore: format

* Merge branch 'dev' into eslintV9

* fix: fix

* fix: ssr test

* fix: ssr test

* fix: use defineConfig

* fix: prettier format and ignore docs dist

* fix: index.mjs => index.js

* fix: Vscode color

* fix: prettier ignore global.d.ts

* fix: format

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-09-29 14:14:30 +08:00
Zhong
2d089b19d1 fix(components): [watermark] resolve text clipping caused by textAlign (#21639)
* fix(components): [watermark] resolve text clipping caused by textAlign

* refactor(components): [watermark] update based on review feeddback

* fix: update
2025-08-06 17:55:33 +08:00
Zhong
bc9a95d9ba chore(components): fix typos (#21473) 2025-07-23 07:09:15 +08:00
yuhengshen
cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00
Noblet Ouways
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
betavs
959030c463 fix(components): [watermark] content not fully displayed (#20348) 2025-04-05 19:51:08 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
jiaxiang
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
dopamine
79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
sea
14fa38a778 refactor(components): [watermark] change textBaseline default value to hanging (#17036)
refactor: [watermark] change textBaseline default to hanging
2024-06-03 21:29:12 +08:00
btea
d0eb6c3d1a feat: support node 18+ & update tsx and vitest (#16190)
* feat: support node 18+ & update tsx and vitest

* chore: update

* chore: remove

* fix: update dep

* test: fix autocomplete

* test: update

* test: update

* chore: update

* chore: update

* chore: update
2024-04-11 17:48:34 +08:00
Travis
0ee51e0708 fix(components): [watermark] Support for lower versions of Firefox (#14993)
* fix(components): [watermark] Support for lower versions of Firefox

fontBoundingBoxAscent属性在firefox V116版本才支持,在低版本firefox中,采用 actualBoundingBoxAscent 进行向下兼容,可以支持到
firefox V74

* chore(components): [watermark] add a line of comments for the processing

* perf(components): [watermark] change "!=" to "!=="
2023-12-04 19:40:32 +08:00
Fuphoenixes
6594757abf fix(components): [watermark] mutationObserver should work (#14822)
fix(components): mutationObserver should work

closed #14819

Co-authored-by: phoenizhao <phoenizhao@tencent.com>
2023-12-04 14:00:37 +08:00
Icey Wu
3b27db428b feat(components): [watermark] add font textAlign and textBaseline (#14567) 2023-10-29 11:42:58 +08:00
qiang
730ffa35e9 fix(components): [watermark] missing the CSS file (#14564)
closed #14560
2023-10-18 11:43:41 +08:00
刘臻
7916200ba4 feat(components): watermark component (#14236)
* feat(components): watermark component

be able to set text,multi-text,image as watermark

* docs(components): update image watermark example

update the image for dark mode
2023-10-10 17:42:22 +08:00